2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Cilk Runtime Library 2.0.
5 # Report bugs to <cilk@intel.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev
/null
; then :
188 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
193 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
196 test -z "$as_dir" && as_dir
=.
200 for as_base
in sh bash ksh sh5
; do
201 # Try only shells that exist, to save several forks.
202 as_shell
=$as_dir/$as_base
203 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
205 CONFIG_SHELL
=$as_shell as_have_required
=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
214 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
216 CONFIG_SHELL
=$SHELL as_have_required
=yes
221 if test "x$CONFIG_SHELL" != x
; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
227 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and cilk@intel.com
240 $0: about your system, including any error possibly output
241 $0: before this message. Then install a modern shell, or
242 $0: manually run the script under such a shell if you do
249 SHELL
=${CONFIG_SHELL-/bin/sh}
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE
= GREP_OPTIONS
=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
260 # Portably unset VAR.
263 { eval $1=; unset $1;}
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
287 # Create "$as_dir" as a directory, including parents if necessary.
292 -*) as_dir
=.
/$as_dir;;
294 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
298 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 as_dirs
="'$as_qdir' $as_dirs"
302 as_dir
=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
325 test -d "$as_dir" && break
327 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
328 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
339 eval 'as_fn_append ()
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
363 as_val
=`expr "$@" || test $? -eq 1`
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
375 as_status
=$?
; test $as_status -eq 0 && as_status
=1
377 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit
$as_status
384 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
391 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
397 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
403 as_me
=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
422 # Avoid depending upon Character Ranges.
423 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits
='0123456789'
427 as_cr_alnum
=$as_cr_Letters$as_cr_digits
430 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
431 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x
"$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
461 ECHO_C
= ECHO_N
= ECHO_T
=
462 case `echo -n x` in #(((((
464 case `echo 'xy\c'` in
465 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
474 rm -f conf$$ conf$$.exe conf$$.
file
475 if test -d conf$$.dir
; then
476 rm -f conf$$.dir
/conf$$.
file
479 mkdir conf$$.dir
2>/dev
/null
481 if (echo >conf$$.
file) 2>/dev
/null
; then
482 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
490 elif ln conf$$.
file conf$$
2>/dev
/null
; then
498 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
499 rmdir conf$$.dir
2>/dev
/null
501 if mkdir
-p .
2>/dev
/null
; then
502 as_mkdir_p
='mkdir -p "$as_dir"'
504 test -d .
/-p && rmdir .
/-p
508 if test -x / >/dev
/null
2>&1; then
511 if ls -dL / >/dev
/null
2>&1; then
518 if test -d "$1"; then
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
529 as_executable_p
=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL
=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev
/null
6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix
=/usr
/local
552 ac_config_libobj_dir
=.
559 # Identity of this package.
560 PACKAGE_NAME
='Cilk Runtime Library'
561 PACKAGE_TARNAME
='cilk-runtime-library'
562 PACKAGE_VERSION
='2.0'
563 PACKAGE_STRING
='Cilk Runtime Library 2.0'
564 PACKAGE_BUGREPORT
='cilk@intel.com'
567 # Factoring default headers for most tests.
568 ac_includes_default
="\
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
580 # ifdef HAVE_STDLIB_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
603 ac_subst_vars
='am__EXEEXT_FALSE
630 MAC_LINKER_SCRIPT_FALSE
631 MAC_LINKER_SCRIPT_TRUE
632 LINUX_LINKER_SCRIPT_FALSE
633 LINUX_LINKER_SCRIPT_TRUE
664 MAINTAINER_MODE_FALSE
674 INSTALL_STRIP_PROGRAM
728 program_transform_name
741 enable_option_checking
742 enable_maintainer_mode
744 enable_dependency_tracking
745 enable_version_specific_runtime_libs
753 ac_precious_vars
='build_alias
768 # Initialize some variables set by options.
770 ac_init_version
=false
771 ac_unrecognized_opts
=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
782 program_transform_name
=s
,x
,x
,
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir
='${exec_prefix}/bin'
797 sbindir
='${exec_prefix}/sbin'
798 libexecdir
='${exec_prefix}/libexec'
799 datarootdir
='${prefix}/share'
800 datadir
='${datarootdir}'
801 sysconfdir
='${prefix}/etc'
802 sharedstatedir
='${prefix}/com'
803 localstatedir
='${prefix}/var'
804 includedir
='${prefix}/include'
805 oldincludedir
='/usr/include'
806 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir
='${datarootdir}/info'
812 libdir
='${exec_prefix}/lib'
813 localedir
='${datarootdir}/locale'
814 mandir
='${datarootdir}/man'
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\
$ac_option
828 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
838 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
840 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
843 -build |
--build |
--buil |
--bui |
--bu)
844 ac_prev
=build_alias
;;
845 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
846 build_alias
=$ac_optarg ;;
848 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
849 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
850 ac_prev
=cache_file
;;
851 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
852 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
853 cache_file
=$ac_optarg ;;
856 cache_file
=config.cache
;;
858 -datadir |
--datadir |
--datadi |
--datad)
860 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
861 datadir
=$ac_optarg ;;
863 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
864 |
--dataroo |
--dataro |
--datar)
865 ac_prev
=datarootdir
;;
866 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
867 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
868 datarootdir
=$ac_optarg ;;
870 -disable-* |
--disable-*)
871 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
874 as_fn_error
"invalid feature name: $ac_useropt"
875 ac_useropt_orig
=$ac_useropt
876 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
881 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep
=', ';;
884 eval enable_
$ac_useropt=no
;;
886 -docdir |
--docdir |
--docdi |
--doc |
--do)
888 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
891 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
893 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
896 -enable-* |
--enable-*)
897 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
900 as_fn_error
"invalid feature name: $ac_useropt"
901 ac_useropt_orig
=$ac_useropt
902 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep
=', ';;
910 eval enable_
$ac_useropt=\
$ac_optarg ;;
912 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
913 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
914 |
--exec |
--exe |
--ex)
915 ac_prev
=exec_prefix
;;
916 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
917 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
918 |
--exec=* |
--exe=* |
--ex=*)
919 exec_prefix
=$ac_optarg ;;
921 -gas |
--gas |
--ga |
--g)
922 # Obsolete; use --with-gas.
925 -help |
--help |
--hel |
--he |
-h)
927 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
928 ac_init_help
=recursive
;;
929 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
930 ac_init_help
=short
;;
932 -host |
--host |
--hos |
--ho)
933 ac_prev
=host_alias
;;
934 -host=* |
--host=* |
--hos=* |
--ho=*)
935 host_alias
=$ac_optarg ;;
937 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
939 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
941 htmldir
=$ac_optarg ;;
943 -includedir |
--includedir |
--includedi |
--included |
--include \
944 |
--includ |
--inclu |
--incl |
--inc)
945 ac_prev
=includedir
;;
946 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
947 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
948 includedir
=$ac_optarg ;;
950 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
952 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
953 infodir
=$ac_optarg ;;
955 -libdir |
--libdir |
--libdi |
--libd)
957 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
960 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
961 |
--libexe |
--libex |
--libe)
962 ac_prev
=libexecdir
;;
963 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
964 |
--libexe=* |
--libex=* |
--libe=*)
965 libexecdir
=$ac_optarg ;;
967 -localedir |
--localedir |
--localedi |
--localed |
--locale)
969 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
970 localedir
=$ac_optarg ;;
972 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
973 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
974 ac_prev
=localstatedir
;;
975 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
976 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
977 localstatedir
=$ac_optarg ;;
979 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
981 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
985 # Obsolete; use --without-fp.
988 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
989 |
--no-cr |
--no-c |
-n)
992 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
993 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
996 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
997 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
998 |
--oldin |
--oldi |
--old |
--ol |
--o)
999 ac_prev
=oldincludedir
;;
1000 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1001 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1002 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1003 oldincludedir
=$ac_optarg ;;
1005 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1007 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1008 prefix
=$ac_optarg ;;
1010 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1011 |
--program-pre |
--program-pr |
--program-p)
1012 ac_prev
=program_prefix
;;
1013 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1014 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1015 program_prefix
=$ac_optarg ;;
1017 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1018 |
--program-suf |
--program-su |
--program-s)
1019 ac_prev
=program_suffix
;;
1020 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1021 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1022 program_suffix
=$ac_optarg ;;
1024 -program-transform-name |
--program-transform-name \
1025 |
--program-transform-nam |
--program-transform-na \
1026 |
--program-transform-n |
--program-transform- \
1027 |
--program-transform |
--program-transfor \
1028 |
--program-transfo |
--program-transf \
1029 |
--program-trans |
--program-tran \
1030 |
--progr-tra |
--program-tr |
--program-t)
1031 ac_prev
=program_transform_name
;;
1032 -program-transform-name=* |
--program-transform-name=* \
1033 |
--program-transform-nam=* |
--program-transform-na=* \
1034 |
--program-transform-n=* |
--program-transform-=* \
1035 |
--program-transform=* |
--program-transfor=* \
1036 |
--program-transfo=* |
--program-transf=* \
1037 |
--program-trans=* |
--program-tran=* \
1038 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1039 program_transform_name
=$ac_optarg ;;
1041 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1043 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1044 pdfdir
=$ac_optarg ;;
1046 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1048 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1051 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1052 |
-silent |
--silent |
--silen |
--sile |
--sil)
1055 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1057 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1059 sbindir
=$ac_optarg ;;
1061 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1062 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1063 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1065 ac_prev
=sharedstatedir
;;
1066 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1067 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1068 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1070 sharedstatedir
=$ac_optarg ;;
1072 -site |
--site |
--sit)
1074 -site=* |
--site=* |
--sit=*)
1077 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1079 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1080 srcdir
=$ac_optarg ;;
1082 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1083 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1084 ac_prev
=sysconfdir
;;
1085 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1086 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1087 sysconfdir
=$ac_optarg ;;
1089 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1090 ac_prev
=target_alias
;;
1091 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1092 target_alias
=$ac_optarg ;;
1094 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1097 -version |
--version |
--versio |
--versi |
--vers |
-V)
1098 ac_init_version
=: ;;
1101 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1104 as_fn_error
"invalid package name: $ac_useropt"
1105 ac_useropt_orig
=$ac_useropt
1106 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1111 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep
=', ';;
1114 eval with_
$ac_useropt=\
$ac_optarg ;;
1116 -without-* |
--without-*)
1117 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1120 as_fn_error
"invalid package name: $ac_useropt"
1121 ac_useropt_orig
=$ac_useropt
1122 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep
=', ';;
1130 eval with_
$ac_useropt=no
;;
1133 # Obsolete; use --with-x.
1136 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1137 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1138 ac_prev
=x_includes
;;
1139 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1140 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1141 x_includes
=$ac_optarg ;;
1143 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1144 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1145 ac_prev
=x_libraries
;;
1146 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1147 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1148 x_libraries
=$ac_optarg ;;
1150 -*) as_fn_error
"unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information."
1155 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1159 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1161 eval $ac_envvar=\
$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 if test -n "$ac_prev"; then
1176 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error
"missing argument to $ac_option"
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1183 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 # Check all directory arguments for consistency.
1189 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val
=\$
$ac_var
1195 # Remove trailing slashes.
1198 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\
$ac_val;;
1201 # Be sure to have absolute directory names.
1203 [\\/$
]* | ?
:[\\/]* ) continue;;
1204 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1206 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1214 target
=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x
; then
1218 if test "x$build_alias" = x
; then
1219 cross_compiling
=maybe
1220 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1228 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1230 test "$silent" = yes && exec 6>/dev
/null
1233 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di
=`ls -di .` &&
1235 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error
"working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error
"pwd does not report name of working directory"
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted
=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir
=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1273 ac_srcdir_defaulted
=no
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1277 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1279 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1291 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 for ac_var
in $ac_precious_vars; do
1294 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1296 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1301 # Report the --help message.
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1307 \`configure' configures Cilk Runtime Library 2.0 to adapt to many kinds of systems.
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1314 Defaults for the options are specified in brackets.
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1338 For better control, use the options below.
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root
1356 [DATAROOTDIR/doc/cilk-runtime-library]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1371 --build=BUILD configure
for building on BUILD
[guessed
]
1372 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1373 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive
) echo "Configuration of Cilk Runtime Library 2.0:";;
1384 --disable-option-checking ignore unrecognized
--enable/--with options
1385 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1386 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1387 --enable-maintainer-mode enable make rules and dependencies not useful
1388 (and sometimes confusing
) to the casual installer
1389 --enable-multilib build many library versions
(default
)
1390 --disable-dependency-tracking speeds up one-time build
1391 --enable-dependency-tracking do not reject slow dependency extractors
1392 --enable-version-specific-runtime-libs
1393 Specify that runtime libraries should be installed
1394 in a compi ler-specific directory
1395 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1396 --enable-static[=PKGS
] build static libraries
[default
=yes]
1397 --enable-fast-install[=PKGS
]
1398 optimize
for fast installation
[default
=yes]
1399 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1402 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1403 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1404 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1406 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1408 Some influential environment variables
:
1409 CC C compiler
command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1412 nonstandard directory
<lib dir
>
1413 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1414 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1415 you have headers
in a nonstandard directory
<include dir
>
1417 CXX C
++ compiler
command
1418 CXXFLAGS C
++ compiler flags
1419 CXXCPP C
++ preprocessor
1421 Use these variables to override the choices made by
`configure' or to help
1422 it to find libraries and programs with nonstandard names/locations.
1424 Report bugs to <cilk@intel.com>.
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1454 .) # We are building in place.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for guested configure.
1471 if test -f "$ac_srcdir/configure.gnu"; then
1473 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474 elif test -f "$ac_srcdir/configure"; then
1476 $SHELL "$ac_srcdir/configure" --help=recursive
1478 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 cd "$ac_pwd" || { ac_status=$?; break; }
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1487 Cilk Runtime Library configure 2.0
1488 generated by GNU Autoconf 2.64
1490 Copyright (C) 2009 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1497 ## ------------------------ ##
1498 ## Autoconf initialization. ##
1499 ## ------------------------ ##
1501 # ac_fn_c_try_compile LINENO
1502 # --------------------------
1503 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_compile ()
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 rm -f conftest.$ac_objext
1508 if { { ac_try="$ac_compile"
1510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1511 *) ac_try_echo
=$ac_try;;
1513 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_compile") 2>conftest.err
1517 if test -s conftest.err
; then
1518 grep -v '^ *+' conftest.err
>conftest.er1
1519 cat conftest.er1
>&5
1520 mv -f conftest.er1 conftest.err
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } && {
1524 test -z "$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 } && test -s conftest.
$ac_objext; then :
1529 $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.
$ac_ext >&5
1534 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1537 } # ac_fn_c_try_compile
1539 # ac_fn_c_try_cpp LINENO
1540 # ----------------------
1541 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1544 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1545 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } >/dev/null && {
1561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1577 # -------------------------------------------------------
1578 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1579 # the include files in INCLUDES and setting the cache variable VAR
1581 ac_fn_c_check_header_mongrel ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1588 $as_echo_n "(cached) " >&6
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1594 # Is the header compilable?
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1596 $as_echo_n "checking $2 usability... " >&6; }
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1602 if ac_fn_c_try_compile "$LINENO"; then :
1603 ac_header_compiler=yes
1605 ac_header_compiler=no
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1609 $as_echo "$ac_header_compiler" >&6; }
1611 # Is the header present?
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1613 $as_echo_n "checking $2 presence... " >&6; }
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1618 if ac_fn_c_try_cpp "$LINENO"; then :
1619 ac_header_preproc=yes
1621 ac_header_preproc=no
1623 rm -f conftest.err conftest.$ac_ext
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1625 $as_echo "$ac_header_preproc" >&6; }
1627 # So? What about this header?
1628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1631 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1637 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1639 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1641 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1643 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1645 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1647 ## ----------------------------- ##
1648 ## Report this to cilk@intel.com ##
1649 ## ----------------------------- ##
1651 ) | sed "s/^/$as_me: WARNING: /" >&2
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1657 $as_echo_n "(cached) " >&6
1659 eval "$3=\$ac_header_compiler"
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667 } # ac_fn_c_check_header_mongrel
1669 # ac_fn_c_try_run LINENO
1670 # ----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672 # that executables *can* be run.
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_link"
1678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1679 *) ac_try_echo
=$ac_try;;
1681 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>&5
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1687 { { case "(($ac_try" in
1688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_try") 2>&5
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; }; }; then :
1699 $as_echo "$as_me: program exited with status $ac_status" >&5
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1703 ac_retval=$ac_status
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists and can be compiled using the include files in
1714 # INCLUDES, setting the cache variable VAR accordingly.
1715 ac_fn_c_check_header_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721 $as_echo_n "(cached) " >&6
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1728 if ac_fn_c_try_compile "$LINENO"; then :
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 } # ac_fn_c_check_header_compile
1742 # ac_fn_cxx_try_compile LINENO
1743 # ----------------------------
1744 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_cxx_try_compile ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 rm -f conftest.$ac_objext
1749 if { { ac_try="$ac_compile"
1751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1752 *) ac_try_echo
=$ac_try;;
1754 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_compile") 2>conftest.err
1758 if test -s conftest.err
; then
1759 grep -v '^ *+' conftest.err
>conftest.er1
1760 cat conftest.er1
>&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_cxx_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest.
$ac_objext; then :
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.
$ac_ext >&5
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1778 } # ac_fn_cxx_try_compile
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1785 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1786 rm -f conftest.
$ac_objext conftest
$ac_exeext
1787 if { { ac_try
="$ac_link"
1789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 $as_test_x conftest$ac_exeext
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 } # ac_fn_c_try_link
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835 $as_echo_n "(cached) " >&6
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1849 # include <limits.h>
1851 # include <assert.h>
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1878 if ac_fn_c_try_link "$LINENO"; then :
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891 } # ac_fn_c_check_func
1893 # ac_fn_cxx_try_cpp LINENO
1894 # ------------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_cpp ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1902 *) ac_try_echo
=$ac_try;;
1904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1908 if test -s conftest.err
; then
1909 grep -v '^ *+' conftest.err
>conftest.er1
1910 cat conftest.er1
>&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } >/dev
/null
&& {
1915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.
$ac_ext >&5
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1928 } # ac_fn_cxx_try_cpp
1930 # ac_fn_cxx_try_link LINENO
1931 # -------------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_cxx_try_link
()
1935 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1936 rm -f conftest.
$ac_objext conftest
$ac_exeext
1937 if { { ac_try
="$ac_link"
1939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 $as_test_x conftest$ac_exeext
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 } # ac_fn_cxx_try_link
1975 cat >config.log <<_ACEOF
1976 This file contains any messages produced by compilers while
1977 running configure, to aid debugging if configure makes a mistake.
1979 It was created by Cilk Runtime Library $as_me 2.0, which was
1980 generated by GNU Autoconf 2.64. Invocation command line was
1992 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1993 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1994 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1995 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1996 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1998 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1999 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2001 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2002 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2003 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2004 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2005 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2006 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2007 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 $as_echo "PATH: $as_dir"
2032 # Keep a trace of the command line.
2033 # Strip out --no-create and --no-recursion so they do not pile up.
2034 # Strip out --silent because we don't want to record it for future runs.
2035 # Also quote any args containing shell meta-characters.
2036 # Make two passes to allow for proper duplicate-argument suppression.
2040 ac_must_keep_next=false
2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2048 | -silent | --silent | --silen | --sile | --sil)
2051 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056 as_fn_append ac_configure_args1 " '$ac_arg'"
2057 if test $ac_must_keep_next = true; then
2058 ac_must_keep_next=false # Got value, back to normal.
2061 *=* | --config-cache | -C | -disable-* | --disable-* \
2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2064 | -with-* | --with-* | -without-* | --without-* | --x)
2065 case "$ac_configure_args0 " in
2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2069 -* ) ac_must_keep_next=true ;;
2072 as_fn_append ac_configure_args " '$ac_arg'"
2077 { ac_configure_args0=; unset ac_configure_args0;}
2078 { ac_configure_args1=; unset ac_configure_args1;}
2080 # When interrupted or exit'd, cleanup temporary files, and complete
2081 # config.log. We remove comments because anyway the quotes in there
2082 # would cause problems or look ugly.
2083 # WARNING: Use '\'' to represent an apostrophe within the trap.
2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2085 trap 'exit_status=$?
2086 # Save into config.log some information that might help in debugging.
2091 ## ---------------- ##
2092 ## Cache variables. ##
2093 ## ---------------- ##
2096 # The following way of writing the cache mishandles newlines in values,
2098 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2099 eval ac_val=\$$ac_var
2103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2107 _ | IFS | as_nl) ;; #(
2108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2109 *) { eval $ac_var=; unset $ac_var;} ;;
2114 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2115 *${as_nl}ac_space=\ *)
2117 "s/'\''/'\''\\\\'\'''\''/g;
2118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129 ## ----------------- ##
2130 ## Output variables. ##
2131 ## ----------------- ##
2134 for ac_var in $ac_subst_vars
2136 eval ac_val=\$$ac_var
2138 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 $as_echo "$ac_var='\''$ac_val'\''"
2144 if test -n "$ac_subst_files"; then
2146 ## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##
2151 for ac_var in $ac_subst_files
2153 eval ac_val=\$$ac_var
2155 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 $as_echo "$ac_var='\''$ac_val'\''"
2162 if test -s confdefs.h; then
2172 test "$ac_signal" != 0 &&
2173 $as_echo "$as_me: caught signal $ac_signal"
2174 $as_echo "$as_me: exit $exit_status"
2176 rm -f core *.core core.conftest.* &&
2177 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2180 for ac_signal in 1 2 13 15; do
2181 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2186 rm -f -r conftest* confdefs.h
2188 $as_echo "/* confdefs.h */" > confdefs.h
2190 # Predefined preprocessor variables.
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_NAME "$PACKAGE_NAME"
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_STRING "$PACKAGE_STRING"
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_URL "$PACKAGE_URL"
2217 # Let the site file select an alternate cache file if it wants to.
2218 # Prefer an explicitly selected file to automatically selected ones.
2221 if test -n "$CONFIG_SITE"; then
2222 ac_site_file1=$CONFIG_SITE
2223 elif test "x$prefix" != xNONE; then
2224 ac_site_file1=$prefix/share/config.site
2225 ac_site_file2=$prefix/etc/config.site
2227 ac_site_file1=$ac_default_prefix/share/config.site
2228 ac_site_file2=$ac_default_prefix/etc/config.site
2230 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2232 test "x$ac_site_file" = xNONE && continue
2233 if test -r "$ac_site_file"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2235 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2236 sed 's/^/| /' "$ac_site_file" >&5
2241 if test -r "$cache_file"; then
2242 # Some versions of bash will fail to source /dev/null (special
2243 # files actually), so we avoid doing that.
2244 if test -f "$cache_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2246 $as_echo "$as_me: loading cache $cache_file" >&6;}
2248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2249 *) . "./$cache_file";;
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2254 $as_echo "$as_me: creating cache $cache_file" >&6;}
2258 # Check that the precious variables saved in the cache have kept the same
2260 ac_cache_corrupted=false
2261 for ac_var in $ac_precious_vars; do
2262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2263 eval ac_new_set=\$ac_env_${ac_var}_set
2264 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2265 eval ac_new_val=\$ac_env_${ac_var}_value
2266 case $ac_old_set,$ac_new_set in
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2269 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2273 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2274 ac_cache_corrupted=: ;;
2277 if test "x$ac_old_val" != "x$ac_new_val"; then
2278 # differences in whitespace do not lead to failure.
2279 ac_old_val_w=`echo x
$ac_old_val`
2280 ac_new_val_w=`echo x
$ac_new_val`
2281 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2283 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2284 ac_cache_corrupted=:
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2287 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2288 eval $ac_var=\$ac_old_val
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2291 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2293 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2296 # Pass precious variables to config.status.
2297 if test "$ac_new_set" = set; then
2299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2300 *) ac_arg=$ac_var=$ac_new_val ;;
2302 case " $ac_configure_args " in
2303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2304 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2308 if $ac_cache_corrupted; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2312 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2313 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2315 ## -------------------- ##
2316 ## Main body of script. ##
2317 ## -------------------- ##
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331 # Needed to define ${target}. Needs to be very early to avoid annoying
2332 # warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 for ac_t in install-sh install.sh shtool; do
2336 if test -f "$ac_dir/$ac_t"; then
2338 ac_install_sh="$ac_aux_dir/$ac_t -c"
2343 if test -z "$ac_aux_dir"; then
2344 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2356 # Make sure we can run config.sub.
2357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2361 $as_echo_n "checking build system type... " >&6; }
2362 if test "${ac_cv_build+set}" = set; then :
2363 $as_echo_n "(cached) " >&6
2365 ac_build_alias=$build_alias
2366 test "x$ac_build_alias" = x &&
2367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2368 test "x$ac_build_alias" = x &&
2369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2375 $as_echo "$ac_cv_build" >&6; }
2376 case $ac_cv_build in
2378 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2381 ac_save_IFS=$IFS; IFS='-'
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2391 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395 $as_echo_n "checking host system type... " >&6; }
2396 if test "${ac_cv_host+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2399 if test "x$host_alias" = x; then
2400 ac_cv_host=$ac_cv_build
2402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408 $as_echo "$ac_cv_host" >&6; }
2411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2414 ac_save_IFS=$IFS; IFS='-'
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2424 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2428 $as_echo_n "checking target system type... " >&6; }
2429 if test "${ac_cv_target+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2432 if test "x$target_alias" = x; then
2433 ac_cv_target=$ac_cv_host
2435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2441 $as_echo "$ac_cv_target" >&6; }
2442 case $ac_cv_target in
2444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2446 target=$ac_cv_target
2447 ac_save_IFS=$IFS; IFS='-'
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2457 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2460 # The aliases save the names the user supplied, while $host etc.
2461 # will get canonicalized.
2462 test -n "$target_alias" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2465 program_prefix=${target_alias}-
2467 target_alias=${target_alias-$host_alias}
2470 am__api_version='1.11'
2472 # Find a good install program. We prefer a C program (faster),
2473 # so one script is as good as another. But avoid the broken or
2474 # incompatible versions:
2475 # SysV /etc/install, /usr/sbin/install
2476 # SunOS /usr/etc/install
2477 # IRIX /sbin/install
2479 # AmigaOS /C/install, which installs bootblocks on floppy discs
2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483 # OS/2's system install, which has a completely different semantic
2484 # ./install, which can be erroneously created by make from ./install.sh.
2485 # Reject install programs that cannot install multiple files.
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2488 if test -z "$INSTALL"; then
2489 if test "${ac_cv_path_install+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 # Account for people who put trailing slashes in PATH elements.
2498 case $as_dir/ in #((
2499 ./ | .// | /[cC]/* | \
2500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2504 # OSF1 and SCO ODT 3.0 have their own names for install.
2505 # Don't use installbsd from OSF since it installs stuff as root
2507 for ac_prog in ginstall scoinst install; do
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2510 if test $ac_prog = install &&
2511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512 # AIX install. It has an incompatible calling convention.
2514 elif test $ac_prog = install &&
2515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516 # program-specific install script used by HP pwplus--don't use.
2519 rm -rf conftest.one conftest.two conftest.dir
2520 echo one > conftest.one
2521 echo two > conftest.two
2523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2524 test -s conftest.one && test -s conftest.two &&
2525 test -s conftest.dir/conftest.one &&
2526 test -s conftest.dir/conftest.two
2528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541 rm -rf conftest.one conftest.two conftest.dir
2544 if test "${ac_cv_path_install+set}" = set; then
2545 INSTALL=$ac_cv_path_install
2547 # As a last resort, use the slow shell script. Don't cache a
2548 # value for INSTALL within a source directory, because that will
2549 # break other packages using the cache if that directory is
2550 # removed, or if the value is a relative name.
2551 INSTALL=$ac_install_sh
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555 $as_echo "$INSTALL" >&6; }
2557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558 # It thinks the first close brace ends the variable substitution.
2559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2566 $as_echo_n "checking whether build environment is sane... " >&6; }
2569 echo timestamp > conftest.file
2570 # Reject unsafe characters in $srcdir or the absolute working directory
2571 # name. Accept space and tab only in the latter.
2575 *[\\\"\#\$\&\'\`$am_lf]*)
2576 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2579 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2580 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2583 # Do `set' in a subshell so we don't clobber the current shell's
2584 # arguments. Must try -L first in case configure is actually a
2585 # symlink; some systems play weird games with the mod time of symlinks
2586 # (eg FreeBSD returns the mod time of the symlink's containing
2589 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2590 if test "$*" = "X"; then
2592 set X
`ls -t "$srcdir/configure" conftest.file`
2595 if test "$*" != "X $srcdir/configure conftest.file" \
2596 && test "$*" != "X conftest.file $srcdir/configure"; then
2598 # If neither matched, then we have a broken ls. This can happen
2599 # if, for instance, CONFIG_SHELL is bash and it inherits a
2600 # broken ls alias from the environment. This has actually
2601 # happened. Such a system could not be considered "sane".
2602 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2603 alias in your environment" "$LINENO" 5
2606 test "$2" = conftest.
file
2612 as_fn_error
"newly created file is older than distributed files!
2613 Check your system clock" "$LINENO" 5
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 test "$program_prefix" != NONE
&&
2618 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE
&&
2621 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2622 # Double any \ or $.
2623 # By default was `s,x,x', remove it if useless.
2624 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2625 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir
=`cd $ac_aux_dir && pwd`
2630 if test x
"${MISSING+set}" != xset
; then
2633 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2635 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2638 # Use eval to expand $SHELL
2639 if eval "$MISSING --run true"; then
2640 am_missing_run
="$MISSING --run "
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2644 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2647 if test x
"${install_sh}" != xset
; then
2650 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2652 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2656 # Installed binaries are usually stripped using `strip' when the user
2657 # run `make install-strip'. However `strip' might not be the right
2658 # tool to use in cross-compilation environments, therefore Automake
2659 # will honor the `STRIP' environment variable to overrule this program.
2660 if test "$cross_compiling" != no
; then
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_STRIP+set}" = set; then :
2667 $as_echo_n "(cached) " >&6
2669 if test -n "$STRIP"; then
2670 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir
=.
2677 for ac_exec_ext
in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 STRIP
=$ac_cv_prog_STRIP
2690 if test -n "$STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692 $as_echo "$STRIP" >&6; }
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2700 if test -z "$ac_cv_prog_STRIP"; then
2702 # Extract the first word of "strip", so it can be a program name with args.
2703 set dummy strip
; ac_word
=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2709 if test -n "$ac_ct_STRIP"; then
2710 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2716 test -z "$as_dir" && as_dir
=.
2717 for ac_exec_ext
in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_ac_ct_STRIP
="strip"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2730 if test -n "$ac_ct_STRIP"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2732 $as_echo "$ac_ct_STRIP" >&6; }
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2738 if test "x$ac_ct_STRIP" = x
; then
2741 case $cross_compiling:$ac_tool_warned in
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned
=yes ;;
2750 STRIP
="$ac_cv_prog_STRIP"
2754 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2757 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2758 if test -z "$MKDIR_P"; then
2759 if test "${ac_cv_path_mkdir+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2766 test -z "$as_dir" && as_dir
=.
2767 for ac_prog
in mkdir gmkdir
; do
2768 for ac_exec_ext
in '' $ac_executable_extensions; do
2769 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2770 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2771 'mkdir (GNU coreutils) '* | \
2772 'mkdir (coreutils) '* | \
2773 'mkdir (fileutils) '4.1*)
2774 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2784 if test "${ac_cv_path_mkdir+set}" = set; then
2785 MKDIR_P
="$ac_cv_path_mkdir -p"
2787 # As a last resort, use the slow shell script. Don't cache a
2788 # value for MKDIR_P within a source directory, because that will
2789 # break other packages using the cache if that directory is
2790 # removed, or if the value is a relative name.
2791 test -d .
/--version && rmdir .
/--version
2792 MKDIR_P
="$ac_install_sh -d"
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796 $as_echo "$MKDIR_P" >&6; }
2800 [\\/$
]* | ?
:[\\/]*) ;;
2801 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2804 for ac_prog
in gawk mawk nawk
awk
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy
$ac_prog; ac_word
=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_AWK+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$AWK"; then
2814 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir
=.
2821 for ac_exec_ext
in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_AWK
="$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 if test -n "$AWK"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2836 $as_echo "$AWK" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2843 test -n "$AWK" && break
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2847 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2849 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2850 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2851 $as_echo_n "(cached) " >&6
2853 cat >conftest.
make <<\_ACEOF
2856 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2861 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2863 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2867 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 SET_MAKE
="MAKE=${MAKE-make}"
2877 rm -rf .tst
2>/dev
/null
2878 mkdir .tst
2>/dev
/null
2879 if test -d .tst
; then
2884 rmdir .tst
2>/dev
/null
2886 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2887 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2888 # is not polluted with repeated "-I."
2889 am__isrc
=' -I$(srcdir)'
2890 # test to see if srcdir already configured
2891 if test -f $srcdir/config.status
; then
2892 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2896 # test whether we have cygpath
2897 if test -z "$CYGPATH_W"; then
2898 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2899 CYGPATH_W
='cygpath -w'
2906 # Define the identity of the package.
2907 PACKAGE
='cilk-runtime-library'
2911 cat >>confdefs.h
<<_ACEOF
2912 #define PACKAGE "$PACKAGE"
2916 cat >>confdefs.h
<<_ACEOF
2917 #define VERSION "$VERSION"
2920 # Some tools Automake needs.
2922 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2928 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2934 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2936 # We need awk for the "check" target. The system "awk" is bad on
2938 # Always define AMTAR for backward compatibility. Yes, it's still used
2939 # in the wild :-( We should find a proper way to deprecate it ...
2942 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2951 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2952 # Check whether --enable-maintainer-mode was given.
2953 if test "${enable_maintainer_mode+set}" = set; then :
2954 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2956 USE_MAINTAINER_MODE
=no
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2960 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2961 if test $USE_MAINTAINER_MODE = yes; then
2962 MAINTAINER_MODE_TRUE
=
2963 MAINTAINER_MODE_FALSE
='#'
2965 MAINTAINER_MODE_TRUE
='#'
2966 MAINTAINER_MODE_FALSE
=
2969 MAINT
=$MAINTAINER_MODE_TRUE
2973 # Default to --enable-multilib
2974 # Check whether --enable-multilib was given.
2975 if test "${enable_multilib+set}" = set; then :
2976 enableval
=$enable_multilib; case "$enableval" in
2977 yes) multilib
=yes ;;
2979 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2986 # We may get other options which we leave undocumented:
2987 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2988 # See config-ml.in if you want the gory details.
2990 if test "$srcdir" = "."; then
2991 if test "$with_target_subdir" != "."; then
2992 multi_basedir
="$srcdir/$with_multisrctop../.."
2994 multi_basedir
="$srcdir/$with_multisrctop.."
2997 multi_basedir
="$srcdir/.."
3001 # Even if the default multilib is not a cross compilation,
3002 # it may be that some of the other multilibs are.
3003 if test $cross_compiling = no
&& test $multilib = yes \
3004 && test "x${with_multisubdir}" != x
; then
3005 cross_compiling
=maybe
3008 ac_config_commands
="$ac_config_commands default-1"
3011 # Test for GNU extensions. Will define _GNU_SOURCE if they're available
3012 DEPDIR
="${am__leading_dot}deps"
3014 ac_config_commands
="$ac_config_commands depfiles"
3017 am_make
=${MAKE-make}
3018 cat > confinc
<< 'END'
3020 @
echo this is the am__doit target
3023 # If we don't find an include directive, just comment out the code.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3025 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3029 # First try GNU make style include.
3030 echo "include confinc" > confmf
3031 # Ignore all kinds of additional output from `make'.
3032 case `$am_make -s -f confmf 2> /dev/null` in #(
3033 *the\ am__doit\ target
*)
3039 # Now try BSD make style include.
3040 if test "$am__include" = "#"; then
3041 echo '.include "confinc"' > confmf
3042 case `$am_make -s -f confmf 2> /dev/null` in #(
3043 *the\ am__doit\ target
*)
3044 am__include
=.include
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3053 $as_echo "$_am_result" >&6; }
3054 rm -f confinc confmf
3056 # Check whether --enable-dependency-tracking was given.
3057 if test "${enable_dependency_tracking+set}" = set; then :
3058 enableval
=$enable_dependency_tracking;
3061 if test "x$enable_dependency_tracking" != xno
; then
3062 am_depcomp
="$ac_aux_dir/depcomp"
3066 if test "x$enable_dependency_tracking" != xno; then
3076 ac_cpp
='$CPP $CPPFLAGS'
3077 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC
="$CC" # Let the user override the test.
3091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir
=.
3096 for ac_exec_ext
in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3119 if test -z "$ac_cv_prog_CC"; then
3121 # Extract the first word of "gcc", so it can be a program name with args.
3122 set dummy gcc
; ac_word
=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir
=.
3136 for ac_exec_ext
in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_ac_ct_CC
="gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3157 if test "x$ac_ct_CC" = x
; then
3160 case $cross_compiling:$ac_tool_warned in
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned
=yes ;;
3172 if test -z "$CC"; then
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC
="$CC" # Let the user override the test.
3184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir
=.
3189 for ac_exec_ext
in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3213 if test -z "$CC"; then
3214 # Extract the first word of "cc", so it can be a program name with args.
3215 set dummy cc
; ac_word
=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then :
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC
="$CC" # Let the user override the test.
3225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir
=.
3230 for ac_exec_ext
in '' $ac_executable_extensions; do
3231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233 ac_prog_rejected
=yes
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 if test $ac_prog_rejected = yes; then
3245 # We found a bogon in the path, so make sure we never use it.
3246 set dummy
$ac_cv_prog_CC
3248 if test $# != 0; then
3249 # We chose a different compiler from the bogus one.
3250 # However, it has the same basename, so the bogon will be chosen
3251 # first if we set CC to just the basename; use the full file name.
3253 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3269 if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 for ac_prog
in cl.exe
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC
="$CC" # Let the user override the test.
3283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir
=.
3288 for ac_exec_ext
in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3310 test -n "$CC" && break
3313 if test -z "$CC"; then
3315 for ac_prog
in cl.exe
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy
$ac_prog; ac_word
=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3322 $as_echo_n "(cached) " >&6
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir
=.
3332 for ac_exec_ext
in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 ac_cv_prog_ac_ct_CC
="$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3345 if test -n "$ac_ct_CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347 $as_echo "$ac_ct_CC" >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3354 test -n "$ac_ct_CC" && break
3357 if test "x$ac_ct_CC" = x
; then
3360 case $cross_compiling:$ac_tool_warned in
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364 ac_tool_warned
=yes ;;
3373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error
"no acceptable C compiler found in \$PATH
3376 See \`config.log' for more details." "$LINENO" 5; }
3378 # Provide some information about the compiler.
3379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3382 for ac_option
in --version -v -V -qversion; do
3383 { { ac_try
="$ac_compiler $ac_option >&5"
3385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3392 if test -s conftest.err; then
3394 ... rest of stderr output deleted ...
3395 10q' conftest.err >conftest.er1
3396 cat conftest.er1 >&5
3397 rm -f conftest.er1 conftest.err
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3414 ac_clean_files_save=$ac_clean_files
3415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3416 # Try to create an executable without -o first, disregard a.out.
3417 # It will help us diagnose broken compilers, and finding out an intuition
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3420 $as_echo_n "checking for C compiler default output file name... " >&6; }
3421 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3423 # The possible output files:
3424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3427 for ac_file in $ac_files
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3436 if { { ac_try="$ac_link_default"
3438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3439 *) ac_try_echo
=$ac_try;;
3441 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link_default") 2>&5
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3450 # so that the user can short-circuit this test for compilers unknown to
3452 for ac_file
in $ac_files ''
3454 test -f "$ac_file" ||
continue
3456 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3459 # We found the default executable, but exeext='' is most
3463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3465 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467 # We set ac_cv_exeext here because the later test for it is not
3468 # safe: cross compilers may not add the suffix if given an `-o'
3469 # argument, so we may need to know it at that point already.
3470 # Even if this section looks crufty: it has the advantage of
3477 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3483 $as_echo "$ac_file" >&6; }
3484 if test -z "$ac_file"; then :
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.
$ac_ext >&5
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 { as_fn_set_status
77
3491 as_fn_error
"C compiler cannot create executables
3492 See \`config.log' for more details." "$LINENO" 5; }; }
3494 ac_exeext
=$ac_cv_exeext
3496 # Check that the compiler produces executables we can run. If not, either
3497 # the compiler is broken, or we cross compile.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3499 $as_echo_n "checking whether the C compiler works... " >&6; }
3500 # If not cross compiling, check that we can run a simple program.
3501 if test "$cross_compiling" != yes; then
3502 if { ac_try
='./$ac_file'
3503 { { case "(($ac_try" in
3504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_try") 2>&5
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; }; then
3515 if test "$cross_compiling" = maybe; then
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error "cannot run C compiled programs.
3521 If you meant to cross compile
, use \
`--host'.
3522 See \`config.log
' for more details." "$LINENO" 5; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527 $as_echo "yes" >&6; }
3529 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3530 ac_clean_files=$ac_clean_files_save
3531 # Check that the compiler produces executables we can run. If not, either
3532 # the compiler is broken, or we cross compile.
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3534 $as_echo_n "checking whether we are cross compiling... " >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3536 $as_echo "$cross_compiling" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3539 $as_echo_n "checking for suffix of executables... " >&6; }
3540 if { { ac_try="$ac_link"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link") 2>&5
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3552 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3553 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3555 for ac_file
in conftest.exe conftest conftest.
*; do
3556 test -f "$ac_file" ||
continue
3558 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3559 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3568 See \`config.log' for more details." "$LINENO" 5; }
3570 rm -f conftest
$ac_cv_exeext
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3572 $as_echo "$ac_cv_exeext" >&6; }
3574 rm -f conftest.
$ac_ext
3575 EXEEXT
=$ac_cv_exeext
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3578 $as_echo_n "checking for suffix of object files... " >&6; }
3579 if test "${ac_cv_objext+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3593 rm -f conftest.o conftest.obj
3594 if { { ac_try
="$ac_compile"
3596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_compile") 2>&5
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
3605 for ac_file in conftest.o conftest.obj conftest.*; do
3606 test -f "$ac_file" || continue;
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3614 $as_echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error "cannot compute suffix of object files
: cannot compile
3620 See \
`config.log' for more details." "$LINENO" 5; }
3622 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3625 $as_echo "$ac_cv_objext" >&6; }
3626 OBJEXT=$ac_cv_objext
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3629 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3630 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3647 if ac_fn_c_try_compile "$LINENO"; then :
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3657 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3658 if test $ac_compiler_gnu = yes; then
3663 ac_test_CFLAGS=${CFLAGS+set}
3664 ac_save_CFLAGS=$CFLAGS
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3666 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3667 if test "${ac_cv_prog_cc_g+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
3670 ac_save_c_werror_flag=$ac_c_werror_flag
3671 ac_c_werror_flag=yes
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3685 if ac_fn_c_try_compile "$LINENO"; then :
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3700 if ac_fn_c_try_compile "$LINENO"; then :
3703 ac_c_werror_flag=$ac_save_c_werror_flag
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3716 if ac_fn_c_try_compile "$LINENO"; then :
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_c_werror_flag=$ac_save_c_werror_flag
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3727 $as_echo "$ac_cv_prog_cc_g" >&6; }
3728 if test "$ac_test_CFLAGS" = set; then
3729 CFLAGS=$ac_save_CFLAGS
3730 elif test $ac_cv_prog_cc_g = yes; then
3731 if test "$GCC" = yes; then
3737 if test "$GCC" = yes; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3744 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3745 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3748 ac_cv_prog_cc_c89=no
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3754 #include <sys/types.h>
3755 #include <sys/stat.h>
3756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3757 struct buf { int x; };
3758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3759 static char *e (p, i)
3765 static char *f (char * (*g) (char **, int), char **p, ...)
3770 s = g (p, va_arg (v,int));
3775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3776 function prototypes and stuff, but not '\xHH' hex character constants.
3777 These don't provoke an error unfortunately, instead are silently treated
3778 as 'x'. The following induces an error, until -std is added to get
3779 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3780 array size at least. It's necessary to write '\x00'==0 to get something
3781 that's true only with -std. */
3782 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3785 inside strings and character constants. */
3787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3789 int test (int i, double x);
3790 struct s1 {int (*f) (int a);};
3791 struct s2 {int (*f) (double a);};
3792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3804 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3806 CC="$ac_save_CC $ac_arg"
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_prog_cc_c89=$ac_arg
3810 rm -f core conftest.err conftest.$ac_objext
3811 test "x$ac_cv_prog_cc_c89" != "xno" && break
3813 rm -f conftest.$ac_ext
3818 case "x$ac_cv_prog_cc_c89" in
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3821 $as_echo "none needed" >&6; } ;;
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3824 $as_echo "unsupported" >&6; } ;;
3826 CC="$CC $ac_cv_prog_cc_c89"
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3828 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3830 if test "x$ac_cv_prog_cc_c89" != xno; then :
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840 depcc="$CC" am_compiler_list=
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3843 $as_echo_n "checking dependency style of $depcc... " >&6; }
3844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848 # We make a subdir and do the tests there. Otherwise we can end up
3849 # making bogus files that we don't know about and never remove. For
3850 # instance it was reported that on HP-UX the gcc test will end up
3851 # making a dummy file named `D
' -- because `-MD' means
`put the output
3855 # Copy depcomp to subdir because otherwise we won't find it if we're
3856 # using a relative directory.
3857 cp "$am_depcomp" conftest.dir
3859 # We will build objects and dependencies in a subdirectory because
3860 # it helps to detect inapplicable dependency modes. For instance
3861 # both Tru64's cc and ICC support -MD to output dependencies as a
3862 # side effect of compilation, but ICC will put the dependencies in
3863 # the current directory while Tru64 will put them in the object
3867 am_cv_CC_dependencies_compiler_type=none
3868 if test "$am_compiler_list" = ""; then
3869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
3872 case " $depcc " in #(
3873 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3876 for depmode in $am_compiler_list; do
3877 # Setup a source with many dependencies, because some compilers
3878 # like to wrap large dependency lists on column 80 (with \), and
3879 # we should not choose a depcomp mode which is confused by this.
3881 # We need to recreate these files for each test, as the compiler may
3882 # overwrite some of them when testing with obscure command lines.
3883 # This happens at least with the AIX C compiler.
3885 for i in 1 2 3 4 5 6; do
3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
3888 # Solaris 8's
{/usr
,}/bin
/sh.
3889 touch sub
/conftst
$i.h
3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3893 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3894 # mode. It turns out that the SunPro C++ compiler does not properly
3895 # handle `-M -o', and we need to detect this. Also, some Intel
3896 # versions had trouble with output in subdirs
3897 am__obj
=sub
/conftest.
${OBJEXT-o}
3898 am__minus_obj
="-o $am__obj"
3901 # This depmode causes a compiler race in universal mode.
3902 test "$am__universal" = false ||
continue
3905 # after this tag, mechanisms are not by side-effect, so they'll
3906 # only be used when explicitly requested
3907 if test "x$enable_dependency_tracking" = xyes
; then
3913 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
3914 # This compiler won't grok `-c -o', but also, the minuso test has
3915 # not run yet. These depmodes are late enough in the game, and
3916 # so weak that their functioning should not be impacted.
3917 am__obj
=conftest.
${OBJEXT-o}
3922 if depmode
=$depmode \
3923 source=sub
/conftest.c object
=$am__obj \
3924 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3925 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
3926 >/dev
/null
2>conftest.err
&&
3927 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3928 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3929 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
3930 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3931 # icc doesn't choke on unknown options, it will just issue warnings
3932 # or remarks (even with -Werror). So we grep stderr for any message
3933 # that says an option was ignored or not supported.
3934 # When given -MP, icc 7.0 and 7.1 complain thusly:
3935 # icc: Command line warning: ignoring option '-M'; no argument required
3936 # The diagnosis changed in icc 8.0:
3937 # icc: Command line remark: option '-MP' not supported
3938 if (grep 'ignoring option' conftest.err ||
3939 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3940 am_cv_CC_dependencies_compiler_type
=$depmode
3949 am_cv_CC_dependencies_compiler_type
=none
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3954 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3955 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3958 test "x$enable_dependency_tracking" != xno \
3959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3961 am__fastdepCC_FALSE
='#'
3963 am__fastdepCC_TRUE
='#'
3964 am__fastdepCC_FALSE
=
3970 ac_cpp
='$CPP $CPPFLAGS'
3971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3975 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3976 # On Suns, sometimes $CPP names a directory.
3977 if test -n "$CPP" && test -d "$CPP"; then
3980 if test -z "$CPP"; then
3981 if test "${ac_cv_prog_CPP+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3984 # Double quotes because CPP needs to be expanded
3985 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3988 for ac_c_preproc_warn_flag
in '' yes
3990 # Use a header file that comes with gcc, so configuring glibc
3991 # with a fresh cross-compiler works.
3992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 # <limits.h> exists even on freestanding compilers.
3994 # On the NeXT, cc -E runs the code through the compiler's parser,
3995 # not just through cpp. "Syntax error" is here to catch this case.
3996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3999 # include <limits.h>
4001 # include <assert.h>
4005 if ac_fn_c_try_cpp
"$LINENO"; then :
4008 # Broken: fails on valid input.
4011 rm -f conftest.err conftest.
$ac_ext
4013 # OK, works on sane cases. Now check whether nonexistent headers
4014 # can be detected and how.
4015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017 #include <ac_nonexistent.h>
4019 if ac_fn_c_try_cpp
"$LINENO"; then :
4020 # Broken: success on invalid input.
4023 # Passes both tests.
4027 rm -f conftest.err conftest.
$ac_ext
4030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031 rm -f conftest.err conftest.
$ac_ext
4032 if $ac_preproc_ok; then :
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4045 $as_echo "$CPP" >&6; }
4047 for ac_c_preproc_warn_flag
in '' yes
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4058 # include <limits.h>
4060 # include <assert.h>
4064 if ac_fn_c_try_cpp
"$LINENO"; then :
4067 # Broken: fails on valid input.
4070 rm -f conftest.err conftest.
$ac_ext
4072 # OK, works on sane cases. Now check whether nonexistent headers
4073 # can be detected and how.
4074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #include <ac_nonexistent.h>
4078 if ac_fn_c_try_cpp
"$LINENO"; then :
4079 # Broken: success on invalid input.
4082 # Passes both tests.
4086 rm -f conftest.err conftest.
$ac_ext
4089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4090 rm -f conftest.err conftest.
$ac_ext
4091 if $ac_preproc_ok; then :
4094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4096 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." "$LINENO" 5; }
4101 ac_cpp
='$CPP $CPPFLAGS'
4102 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4109 if test "${ac_cv_path_GREP+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4112 if test -z "$GREP"; then
4113 ac_path_GREP_found
=false
4114 # Loop through the user's path and test for each of PROGNAME-LIST
4115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4116 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4119 test -z "$as_dir" && as_dir
=.
4120 for ac_prog
in grep ggrep
; do
4121 for ac_exec_ext
in '' $ac_executable_extensions; do
4122 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4123 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4124 # Check for GNU ac_path_GREP and select it if it is found.
4125 # Check for GNU $ac_path_GREP
4126 case `"$ac_path_GREP" --version 2>&1` in
4128 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4131 $as_echo_n 0123456789 >"conftest.in"
4134 cat "conftest.in" "conftest.in" >"conftest.tmp"
4135 mv "conftest.tmp" "conftest.in"
4136 cp "conftest.in" "conftest.nl"
4137 $as_echo 'GREP' >> "conftest.nl"
4138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4139 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4140 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4142 # Best one so far, save it but keep looking for a better one
4143 ac_cv_path_GREP
="$ac_path_GREP"
4144 ac_path_GREP_max
=$ac_count
4146 # 10*(2^10) chars as input seems more than enough
4147 test $ac_count -gt 10 && break
4149 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4152 $ac_path_GREP_found && break 3
4157 if test -z "$ac_cv_path_GREP"; then
4158 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4161 ac_cv_path_GREP
=$GREP
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4166 $as_echo "$ac_cv_path_GREP" >&6; }
4167 GREP
="$ac_cv_path_GREP"
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4171 $as_echo_n "checking for egrep... " >&6; }
4172 if test "${ac_cv_path_EGREP+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4175 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4176 then ac_cv_path_EGREP
="$GREP -E"
4178 if test -z "$EGREP"; then
4179 ac_path_EGREP_found
=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4182 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4185 test -z "$as_dir" && as_dir
=.
4186 for ac_prog
in egrep; do
4187 for ac_exec_ext
in '' $ac_executable_extensions; do
4188 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4189 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4190 # Check for GNU ac_path_EGREP and select it if it is found.
4191 # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4194 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4197 $as_echo_n 0123456789 >"conftest.in"
4200 cat "conftest.in" "conftest.in" >"conftest.tmp"
4201 mv "conftest.tmp" "conftest.in"
4202 cp "conftest.in" "conftest.nl"
4203 $as_echo 'EGREP' >> "conftest.nl"
4204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4205 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4206 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208 # Best one so far, save it but keep looking for a better one
4209 ac_cv_path_EGREP
="$ac_path_EGREP"
4210 ac_path_EGREP_max
=$ac_count
4212 # 10*(2^10) chars as input seems more than enough
4213 test $ac_count -gt 10 && break
4215 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4218 $ac_path_EGREP_found && break 3
4223 if test -z "$ac_cv_path_EGREP"; then
4224 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4227 ac_cv_path_EGREP
=$EGREP
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4233 $as_echo "$ac_cv_path_EGREP" >&6; }
4234 EGREP
="$ac_cv_path_EGREP"
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4238 $as_echo_n "checking for ANSI C header files... " >&6; }
4239 if test "${ac_cv_header_stdc+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4257 if ac_fn_c_try_compile
"$LINENO"; then :
4258 ac_cv_header_stdc
=yes
4260 ac_cv_header_stdc
=no
4262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4264 if test $ac_cv_header_stdc = yes; then
4265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4272 $EGREP "memchr" >/dev
/null
2>&1; then :
4275 ac_cv_header_stdc
=no
4281 if test $ac_cv_header_stdc = yes; then
4282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289 $EGREP "free" >/dev
/null
2>&1; then :
4292 ac_cv_header_stdc
=no
4298 if test $ac_cv_header_stdc = yes; then
4299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4300 if test "$cross_compiling" = yes; then :
4303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4307 #if ((' ' & 0x0FF) == 0x020)
4308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4311 # define ISLOWER(c) \
4312 (('a' <= (c) && (c) <= 'i') \
4313 || ('j' <= (c) && (c) <= 'r') \
4314 || ('s' <= (c) && (c) <= 'z'))
4315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4323 for (i = 0; i < 256; i++)
4324 if (XOR (islower (i), ISLOWER (i))
4325 || toupper (i) != TOUPPER (i))
4330 if ac_fn_c_try_run
"$LINENO"; then :
4333 ac_cv_header_stdc
=no
4335 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4336 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4342 $as_echo "$ac_cv_header_stdc" >&6; }
4343 if test $ac_cv_header_stdc = yes; then
4345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4350 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4351 inttypes.h stdint.h unistd.h
4353 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4354 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4356 eval as_val
=\$
$as_ac_Header
4357 if test "x$as_val" = x
""yes; then :
4358 cat >>confdefs.h
<<_ACEOF
4359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4368 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4369 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4376 if test "$MINIX" = yes; then
4378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4384 $as_echo "#define _MINIX 1" >>confdefs.h
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4397 # define __EXTENSIONS__ 1
4398 $ac_includes_default
4407 if ac_fn_c_try_compile
"$LINENO"; then :
4408 ac_cv_safe_to_define___extensions__
=yes
4410 ac_cv_safe_to_define___extensions__
=no
4412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4416 test $ac_cv_safe_to_define___extensions__ = yes &&
4417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4421 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4423 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4425 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4429 # Build a DLL on Windows
4430 # AC_LIBTOOL_WIN32_DLL
4432 ac_cpp
='$CPP $CPPFLAGS'
4433 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4436 if test -n "$ac_tool_prefix"; then
4437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4438 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_CC+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4444 if test -n "$CC"; then
4445 ac_cv_prog_CC
="$CC" # Let the user override the test.
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 if test -n "$CC"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4467 $as_echo "$CC" >&6; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4475 if test -z "$ac_cv_prog_CC"; then
4477 # Extract the first word of "gcc", so it can be a program name with args.
4478 set dummy gcc
; ac_word
=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4484 if test -n "$ac_ct_CC"; then
4485 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4491 test -z "$as_dir" && as_dir
=.
4492 for ac_exec_ext
in '' $ac_executable_extensions; do
4493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4494 ac_cv_prog_ac_ct_CC
="gcc"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4505 if test -n "$ac_ct_CC"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4507 $as_echo "$ac_ct_CC" >&6; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4513 if test "x$ac_ct_CC" = x
; then
4516 case $cross_compiling:$ac_tool_warned in
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4520 ac_tool_warned
=yes ;;
4528 if test -z "$CC"; then
4529 if test -n "$ac_tool_prefix"; then
4530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4531 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_prog_CC+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4537 if test -n "$CC"; then
4538 ac_cv_prog_CC
="$CC" # Let the user override the test.
4540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4544 test -z "$as_dir" && as_dir
=.
4545 for ac_exec_ext
in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 if test -n "$CC"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4560 $as_echo "$CC" >&6; }
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4569 if test -z "$CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571 set dummy cc
; ac_word
=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_CC+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4577 if test -n "$CC"; then
4578 ac_cv_prog_CC
="$CC" # Let the user override the test.
4581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir
=.
4586 for ac_exec_ext
in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589 ac_prog_rejected
=yes
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 if test $ac_prog_rejected = yes; then
4601 # We found a bogon in the path, so make sure we never use it.
4602 set dummy
$ac_cv_prog_CC
4604 if test $# != 0; then
4605 # We chose a different compiler from the bogus one.
4606 # However, it has the same basename, so the bogon will be chosen
4607 # first if we set CC to just the basename; use the full file name.
4609 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4615 if test -n "$CC"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4617 $as_echo "$CC" >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4625 if test -z "$CC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 for ac_prog
in cl.exe
4629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if test "${ac_cv_prog_CC+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC
="$CC" # Let the user override the test.
4639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir
=.
4644 for ac_exec_ext
in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 if test -n "$CC"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4659 $as_echo "$CC" >&6; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4666 test -n "$CC" && break
4669 if test -z "$CC"; then
4671 for ac_prog
in cl.exe
4673 # Extract the first word of "$ac_prog", so it can be a program name with args.
4674 set dummy
$ac_prog; ac_word
=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4680 if test -n "$ac_ct_CC"; then
4681 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir
=.
4688 for ac_exec_ext
in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_ac_ct_CC
="$ac_prog"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4701 if test -n "$ac_ct_CC"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4703 $as_echo "$ac_ct_CC" >&6; }
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4710 test -n "$ac_ct_CC" && break
4713 if test "x$ac_ct_CC" = x
; then
4716 case $cross_compiling:$ac_tool_warned in
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned
=yes ;;
4729 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4731 as_fn_error
"no acceptable C compiler found in \$PATH
4732 See \`config.log' for more details." "$LINENO" 5; }
4734 # Provide some information about the compiler.
4735 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4738 for ac_option
in --version -v -V -qversion; do
4739 { { ac_try
="$ac_compiler $ac_option >&5"
4741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745 $as_echo "$ac_try_echo"; } >&5
4746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4748 if test -s conftest.err; then
4750 ... rest of stderr output deleted ...
4751 10q' conftest.err >conftest.er1
4752 cat conftest.er1 >&5
4753 rm -f conftest.er1 conftest.err
4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4760 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4761 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4778 if ac_fn_c_try_compile "$LINENO"; then :
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4788 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4789 if test $ac_compiler_gnu = yes; then
4794 ac_test_CFLAGS=${CFLAGS+set}
4795 ac_save_CFLAGS=$CFLAGS
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4797 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4798 if test "${ac_cv_prog_cc_g+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4801 ac_save_c_werror_flag=$ac_c_werror_flag
4802 ac_c_werror_flag=yes
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4816 if ac_fn_c_try_compile "$LINENO"; then :
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4831 if ac_fn_c_try_compile "$LINENO"; then :
4834 ac_c_werror_flag=$ac_save_c_werror_flag
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4847 if ac_fn_c_try_compile "$LINENO"; then :
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 ac_c_werror_flag=$ac_save_c_werror_flag
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4858 $as_echo "$ac_cv_prog_cc_g" >&6; }
4859 if test "$ac_test_CFLAGS" = set; then
4860 CFLAGS=$ac_save_CFLAGS
4861 elif test $ac_cv_prog_cc_g = yes; then
4862 if test "$GCC" = yes; then
4868 if test "$GCC" = yes; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4875 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4876 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4879 ac_cv_prog_cc_c89=no
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4885 #include <sys/types.h>
4886 #include <sys/stat.h>
4887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4888 struct buf { int x; };
4889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4890 static char *e (p, i)
4896 static char *f (char * (*g) (char **, int), char **p, ...)
4901 s = g (p, va_arg (v,int));
4906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4907 function prototypes and stuff, but not '\xHH' hex character constants.
4908 These don't provoke an error unfortunately, instead are silently treated
4909 as 'x'. The following induces an error, until -std is added to get
4910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4911 array size at least. It's necessary to write '\x00'==0 to get something
4912 that's true only with -std. */
4913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4916 inside strings and character constants. */
4918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4920 int test (int i, double x);
4921 struct s1 {int (*f) (int a);};
4922 struct s2 {int (*f) (double a);};
4923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4937 CC="$ac_save_CC $ac_arg"
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 ac_cv_prog_cc_c89=$ac_arg
4941 rm -f core conftest.err conftest.$ac_objext
4942 test "x$ac_cv_prog_cc_c89" != "xno" && break
4944 rm -f conftest.$ac_ext
4949 case "x$ac_cv_prog_cc_c89" in
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4952 $as_echo "none needed" >&6; } ;;
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4955 $as_echo "unsupported" >&6; } ;;
4957 CC="$CC $ac_cv_prog_cc_c89"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4959 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4961 if test "x$ac_cv_prog_cc_c89" != xno; then :
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971 depcc="$CC" am_compiler_list=
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4974 $as_echo_n "checking dependency style of $depcc... " >&6; }
4975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4979 # We make a subdir and do the tests there. Otherwise we can end up
4980 # making bogus files that we don't know about and never remove. For
4981 # instance it was reported that on HP-UX the gcc test will end up
4982 # making a dummy file named `D
' -- because `-MD' means
`put the output
4986 # Copy depcomp to subdir because otherwise we won't find it if we're
4987 # using a relative directory.
4988 cp "$am_depcomp" conftest.dir
4990 # We will build objects and dependencies in a subdirectory because
4991 # it helps to detect inapplicable dependency modes. For instance
4992 # both Tru64's cc and ICC support -MD to output dependencies as a
4993 # side effect of compilation, but ICC will put the dependencies in
4994 # the current directory while Tru64 will put them in the object
4998 am_cv_CC_dependencies_compiler_type=none
4999 if test "$am_compiler_list" = ""; then
5000 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5003 case " $depcc " in #(
5004 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5007 for depmode in $am_compiler_list; do
5008 # Setup a source with many dependencies, because some compilers
5009 # like to wrap large dependency lists on column 80 (with \), and
5010 # we should not choose a depcomp mode which is confused by this.
5012 # We need to recreate these files for each test, as the compiler may
5013 # overwrite some of them when testing with obscure command lines.
5014 # This happens at least with the AIX C compiler.
5016 for i in 1 2 3 4 5 6; do
5017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5018 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5019 # Solaris 8's
{/usr
,}/bin
/sh.
5020 touch sub
/conftst
$i.h
5022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5025 # mode. It turns out that the SunPro C++ compiler does not properly
5026 # handle `-M -o', and we need to detect this. Also, some Intel
5027 # versions had trouble with output in subdirs
5028 am__obj
=sub
/conftest.
${OBJEXT-o}
5029 am__minus_obj
="-o $am__obj"
5032 # This depmode causes a compiler race in universal mode.
5033 test "$am__universal" = false ||
continue
5036 # after this tag, mechanisms are not by side-effect, so they'll
5037 # only be used when explicitly requested
5038 if test "x$enable_dependency_tracking" = xyes
; then
5044 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5045 # This compiler won't grok `-c -o', but also, the minuso test has
5046 # not run yet. These depmodes are late enough in the game, and
5047 # so weak that their functioning should not be impacted.
5048 am__obj
=conftest.
${OBJEXT-o}
5053 if depmode
=$depmode \
5054 source=sub
/conftest.c object
=$am__obj \
5055 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5056 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5057 >/dev
/null
2>conftest.err
&&
5058 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5059 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5060 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5061 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5062 # icc doesn't choke on unknown options, it will just issue warnings
5063 # or remarks (even with -Werror). So we grep stderr for any message
5064 # that says an option was ignored or not supported.
5065 # When given -MP, icc 7.0 and 7.1 complain thusly:
5066 # icc: Command line warning: ignoring option '-M'; no argument required
5067 # The diagnosis changed in icc 8.0:
5068 # icc: Command line remark: option '-MP' not supported
5069 if (grep 'ignoring option' conftest.err ||
5070 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5071 am_cv_CC_dependencies_compiler_type
=$depmode
5080 am_cv_CC_dependencies_compiler_type
=none
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5085 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5086 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5089 test "x$enable_dependency_tracking" != xno \
5090 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5092 am__fastdepCC_FALSE
='#'
5094 am__fastdepCC_TRUE
='#'
5095 am__fastdepCC_FALSE
=
5100 ac_cpp
='$CXXCPP $CPPFLAGS'
5101 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5104 if test -z "$CXX"; then
5105 if test -n "$CCC"; then
5108 if test -n "$ac_tool_prefix"; then
5109 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5112 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_prog_CXX+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5118 if test -n "$CXX"; then
5119 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir
=.
5126 for ac_exec_ext
in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 if test -n "$CXX"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5141 $as_echo "$CXX" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 test -n "$CXX" && break
5151 if test -z "$CXX"; then
5153 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy
$ac_prog; ac_word
=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5162 if test -n "$ac_ct_CXX"; then
5163 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5169 test -z "$as_dir" && as_dir
=.
5170 for ac_exec_ext
in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5183 if test -n "$ac_ct_CXX"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5185 $as_echo "$ac_ct_CXX" >&6; }
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5192 test -n "$ac_ct_CXX" && break
5195 if test "x$ac_ct_CXX" = x
; then
5198 case $cross_compiling:$ac_tool_warned in
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned
=yes ;;
5210 # Provide some information about the compiler.
5211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5214 for ac_option
in --version -v -V -qversion; do
5215 { { ac_try
="$ac_compiler $ac_option >&5"
5217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5221 $as_echo "$ac_try_echo"; } >&5
5222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5224 if test -s conftest.err; then
5226 ... rest of stderr output deleted ...
5227 10q' conftest.err >conftest.er1
5228 cat conftest.er1 >&5
5229 rm -f conftest.er1 conftest.err
5231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5232 test $ac_status = 0; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5236 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5237 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5254 if ac_fn_cxx_try_compile "$LINENO"; then :
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5264 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5265 if test $ac_compiler_gnu = yes; then
5270 ac_test_CXXFLAGS=${CXXFLAGS+set}
5271 ac_save_CXXFLAGS=$CXXFLAGS
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5273 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5274 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5277 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5278 ac_cxx_werror_flag=yes
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5292 if ac_fn_cxx_try_compile "$LINENO"; then :
5293 ac_cv_prog_cxx_g=yes
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5307 if ac_fn_cxx_try_compile "$LINENO"; then :
5310 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5323 if ac_fn_cxx_try_compile "$LINENO"; then :
5324 ac_cv_prog_cxx_g=yes
5326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5334 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5335 if test "$ac_test_CXXFLAGS" = set; then
5336 CXXFLAGS=$ac_save_CXXFLAGS
5337 elif test $ac_cv_prog_cxx_g = yes; then
5338 if test "$GXX" = yes; then
5344 if test "$GXX" = yes; then
5351 ac_cpp='$CPP $CPPFLAGS'
5352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 depcc="$CXX" am_compiler_list=
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5359 $as_echo_n "checking dependency style of $depcc... " >&6; }
5360 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364 # We make a subdir and do the tests there. Otherwise we can end up
5365 # making bogus files that we don't know about and never remove. For
5366 # instance it was reported that on HP-UX the gcc test will end up
5367 # making a dummy file named `D
' -- because `-MD' means
`put the output
5371 # Copy depcomp to subdir because otherwise we won't find it if we're
5372 # using a relative directory.
5373 cp "$am_depcomp" conftest.dir
5375 # We will build objects and dependencies in a subdirectory because
5376 # it helps to detect inapplicable dependency modes. For instance
5377 # both Tru64's cc and ICC support -MD to output dependencies as a
5378 # side effect of compilation, but ICC will put the dependencies in
5379 # the current directory while Tru64 will put them in the object
5383 am_cv_CXX_dependencies_compiler_type=none
5384 if test "$am_compiler_list" = ""; then
5385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5388 case " $depcc " in #(
5389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5392 for depmode in $am_compiler_list; do
5393 # Setup a source with many dependencies, because some compilers
5394 # like to wrap large dependency lists on column 80 (with \), and
5395 # we should not choose a depcomp mode which is confused by this.
5397 # We need to recreate these files for each test, as the compiler may
5398 # overwrite some of them when testing with obscure command lines.
5399 # This happens at least with the AIX C compiler.
5401 for i in 1 2 3 4 5 6; do
5402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5404 # Solaris 8's
{/usr
,}/bin
/sh.
5405 touch sub
/conftst
$i.h
5407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5409 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5410 # mode. It turns out that the SunPro C++ compiler does not properly
5411 # handle `-M -o', and we need to detect this. Also, some Intel
5412 # versions had trouble with output in subdirs
5413 am__obj
=sub
/conftest.
${OBJEXT-o}
5414 am__minus_obj
="-o $am__obj"
5417 # This depmode causes a compiler race in universal mode.
5418 test "$am__universal" = false ||
continue
5421 # after this tag, mechanisms are not by side-effect, so they'll
5422 # only be used when explicitly requested
5423 if test "x$enable_dependency_tracking" = xyes
; then
5429 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5430 # This compiler won't grok `-c -o', but also, the minuso test has
5431 # not run yet. These depmodes are late enough in the game, and
5432 # so weak that their functioning should not be impacted.
5433 am__obj
=conftest.
${OBJEXT-o}
5438 if depmode
=$depmode \
5439 source=sub
/conftest.c object
=$am__obj \
5440 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5441 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5442 >/dev
/null
2>conftest.err
&&
5443 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5444 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5445 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5446 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5447 # icc doesn't choke on unknown options, it will just issue warnings
5448 # or remarks (even with -Werror). So we grep stderr for any message
5449 # that says an option was ignored or not supported.
5450 # When given -MP, icc 7.0 and 7.1 complain thusly:
5451 # icc: Command line warning: ignoring option '-M'; no argument required
5452 # The diagnosis changed in icc 8.0:
5453 # icc: Command line remark: option '-MP' not supported
5454 if (grep 'ignoring option' conftest.err ||
5455 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5456 am_cv_CXX_dependencies_compiler_type
=$depmode
5465 am_cv_CXX_dependencies_compiler_type
=none
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5470 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5471 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5474 test "x$enable_dependency_tracking" != xno \
5475 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5476 am__fastdepCXX_TRUE
=
5477 am__fastdepCXX_FALSE
='#'
5479 am__fastdepCXX_TRUE
='#'
5480 am__fastdepCXX_FALSE
=
5485 # AC_CONFIG_MACRO_DIR([..])
5486 ac_config_files
="$ac_config_files Makefile libcilkrts.spec"
5488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5489 # for constant arguments. Useless!
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5491 $as_echo_n "checking for working alloca.h... " >&6; }
5492 if test "${ac_cv_working_alloca_h+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5501 char *p = (char *) alloca (2 * sizeof (int));
5507 if ac_fn_c_try_link
"$LINENO"; then :
5508 ac_cv_working_alloca_h
=yes
5510 ac_cv_working_alloca_h
=no
5512 rm -f core conftest.err conftest.
$ac_objext \
5513 conftest
$ac_exeext conftest.
$ac_ext
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5516 $as_echo "$ac_cv_working_alloca_h" >&6; }
5517 if test $ac_cv_working_alloca_h = yes; then
5519 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5524 $as_echo_n "checking for alloca... " >&6; }
5525 if test "${ac_cv_func_alloca_works+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5531 # define alloca __builtin_alloca
5534 # include <malloc.h>
5535 # define alloca _alloca
5537 # ifdef HAVE_ALLOCA_H
5538 # include <alloca.h>
5543 # ifndef alloca /* predefined by HP cc +Olibcalls */
5554 char *p = (char *) alloca (1);
5560 if ac_fn_c_try_link
"$LINENO"; then :
5561 ac_cv_func_alloca_works
=yes
5563 ac_cv_func_alloca_works
=no
5565 rm -f core conftest.err conftest.
$ac_objext \
5566 conftest
$ac_exeext conftest.
$ac_ext
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5569 $as_echo "$ac_cv_func_alloca_works" >&6; }
5571 if test $ac_cv_func_alloca_works = yes; then
5573 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5576 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5577 # that cause trouble. Some versions do not even contain alloca or
5578 # contain a buggy version. If you still want to use their alloca,
5579 # use ar to extract alloca.o from them instead of compiling alloca.c.
5581 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5583 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5587 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5588 if test "${ac_cv_os_cray+set}" = set; then :
5589 $as_echo_n "(cached) " >&6
5591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #if defined CRAY && ! defined CRAY2
5600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5601 $EGREP "webecray" >/dev
/null
2>&1; then :
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5610 $as_echo "$ac_cv_os_cray" >&6; }
5611 if test $ac_cv_os_cray = yes; then
5612 for ac_func
in _getb67 GETB67 getb67
; do
5613 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5614 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5615 eval as_val
=\$
$as_ac_var
5616 if test "x$as_val" = x
""yes; then :
5618 cat >>confdefs.h
<<_ACEOF
5619 #define CRAY_STACKSEG_END $ac_func
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5629 $as_echo_n "checking stack direction for C alloca... " >&6; }
5630 if test "${ac_cv_c_stack_direction+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5633 if test "$cross_compiling" = yes; then :
5634 ac_cv_c_stack_direction
=0
5636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 $ac_includes_default
5640 find_stack_direction ()
5642 static char *addr = 0;
5647 return find_stack_direction ();
5650 return (&dummy > addr) ? 1 : -1;
5656 return find_stack_direction () < 0;
5659 if ac_fn_c_try_run
"$LINENO"; then :
5660 ac_cv_c_stack_direction
=1
5662 ac_cv_c_stack_direction
=-1
5664 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5665 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5670 $as_echo "$ac_cv_c_stack_direction" >&6; }
5671 cat >>confdefs.h
<<_ACEOF
5672 #define STACK_DIRECTION $ac_cv_c_stack_direction
5679 # Check for dl functions
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
5681 $as_echo_n "checking for dladdr in -ldl... " >&6; }
5682 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5685 ac_check_lib_save_LIBS
=$LIBS
5687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5690 /* Override any GCC internal prototype to avoid an error.
5691 Use char because int might match the return type of a GCC
5692 builtin and then its argument prototype would still apply. */
5705 if ac_fn_c_try_link
"$LINENO"; then :
5706 ac_cv_lib_dl_dladdr
=yes
5708 ac_cv_lib_dl_dladdr
=no
5710 rm -f core conftest.err conftest.
$ac_objext \
5711 conftest
$ac_exeext conftest.
$ac_ext
5712 LIBS
=$ac_check_lib_save_LIBS
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
5715 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
5716 if test "x$ac_cv_lib_dl_dladdr" = x
""yes; then :
5718 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
5723 # Check whether the target supports protected visibility.
5724 save_CFLAGS
="$CFLAGS"
5725 CFLAGS
="$CFLAGS -Werror"
5726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 void __attribute__((visibility("protected"))) foo(void) { }
5737 if ac_fn_c_try_compile
"$LINENO"; then :
5738 libcilkrts_cv_have_attribute_visibility
=yes
5740 libcilkrts_cv_have_attribute_visibility
=no
5742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5743 CFLAGS
="$save_CFLAGS"
5744 if test $libcilkrts_cv_have_attribute_visibility = yes; then
5746 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
5750 # Get target configury.
5751 .
${srcdir}/configure.tgt
5752 if test -n "$UNSUPPORTED"; then
5753 as_fn_error
"Configuration ${target} is unsupported." "$LINENO" 5
5756 if test "${multilib}" = "yes"; then
5757 multilib_arg
="--enable-multilib"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5763 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5764 # Check whether --enable-version-specific-runtime-libs was given.
5765 if test "${enable_version_specific_runtime_libs+set}" = set; then :
5766 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
5767 yes) enable_version_specific_runtime_libs
=yes ;;
5768 no
) enable_version_specific_runtime_libs
=no
;;
5769 *) as_fn_error
"Unknown argument to enable/disable version-specific libs
5773 enable_version_specific_runtime_libs
=no
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
5777 $as_echo "$enable_version_specific_runtime_libs" >&6; }
5780 # Calculate toolexeclibdir
5781 # Also toolexecdir, though it's only used in toolexeclibdir
5782 case ${enable_version_specific_runtime_libs} in
5784 # Need the gcc compiler version to know where to install libraries
5785 # and header files if --enable-version-specific-runtime-libs option
5787 toolexecdir
='$(libdir)/gcc/$(target_alias)'
5788 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5791 if test -n "$with_cross_host" &&
5792 test x
"$with_cross_host" != x
"no"; then
5793 # Install a library built with a cross compiler in tooldir, not libdir.
5794 toolexecdir
='$(exec_prefix)/$(target_alias)'
5795 toolexeclibdir
='$(toolexecdir)/lib'
5797 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
5798 toolexeclibdir
='$(libdir)'
5800 multi_os_directory
=`$CC -print-multi-os-directory`
5801 case $multi_os_directory in
5802 .
) ;; # Avoid trailing /.
5803 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
5808 # Set config_dir based on the target. config_dir specifies where to get
5809 # target-specific files. The generic implementation is incomplete, but
5810 # contains information on what's needed
5813 i?
86-*-* | x86_64-
*-*)
5826 config_dir
="generic"
5832 # We have linker scripts for appropriate operating systems
5833 linux_linker_script
=no
5836 linux_linker_script
=yes
5839 if test "$linux_linker_script" = "yes"; then
5840 LINUX_LINKER_SCRIPT_TRUE
=
5841 LINUX_LINKER_SCRIPT_FALSE
='#'
5843 LINUX_LINKER_SCRIPT_TRUE
='#'
5844 LINUX_LINKER_SCRIPT_FALSE
=
5848 mac_linker_script
=no
5851 mac_linker_script
=yes
5854 if test "$mac_linker_script" = "yes"; then
5855 MAC_LINKER_SCRIPT_TRUE
=
5856 MAC_LINKER_SCRIPT_FALSE
='#'
5858 MAC_LINKER_SCRIPT_TRUE
='#'
5859 MAC_LINKER_SCRIPT_FALSE
=
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5870 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5875 macro_version
='2.2.7a'
5876 macro_revision
='1.3134'
5890 ltmain
="$ac_aux_dir/ltmain.sh"
5892 # Backslashify metacharacters that are still active within
5893 # double-quoted strings.
5894 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5896 # Same as above, but do not quote variable references.
5897 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5899 # Sed substitution to delay expansion of an escaped shell variable in a
5900 # double_quote_subst'ed string.
5901 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5903 # Sed substitution to delay expansion of an escaped single quote.
5904 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5906 # Sed substitution to avoid accidental globbing in evaled expressions
5907 no_glob_subst
='s/\*/\\\*/g'
5909 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5910 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5911 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5914 $as_echo_n "checking how to print strings... " >&6; }
5915 # Test print first, because it will be a builtin if present.
5916 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5917 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5919 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5922 # Use this function as a fallback that always works.
5923 func_fallback_echo ()
5925 eval 'cat <<_LTECHO_EOF
5929 ECHO='func_fallback_echo
'
5932 # func_echo_all arg...
5933 # Invoke $ECHO with all args, space-separated.
5940 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5941 $as_echo "printf" >&6; } ;;
5942 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5943 $as_echo "print -r" >&6; } ;;
5944 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5945 $as_echo "cat" >&6; } ;;
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5962 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5963 if test "${ac_cv_path_SED+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5966 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5967 for ac_i in 1 2 3 4 5 6 7; do
5968 ac_script="$ac_script$as_nl$ac_script"
5970 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5971 { ac_script=; unset ac_script;}
5972 if test -z "$SED"; then
5973 ac_path_SED_found=false
5974 # Loop through the user's path and
test for each of PROGNAME-LIST
5975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir
=.
5980 for ac_prog
in sed gsed
; do
5981 for ac_exec_ext
in '' $ac_executable_extensions; do
5982 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5983 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
5984 # Check for GNU ac_path_SED and select it if it is found.
5985 # Check for GNU $ac_path_SED
5986 case `"$ac_path_SED" --version 2>&1` in
5988 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5991 $as_echo_n 0123456789 >"conftest.in"
5994 cat "conftest.in" "conftest.in" >"conftest.tmp"
5995 mv "conftest.tmp" "conftest.in"
5996 cp "conftest.in" "conftest.nl"
5997 $as_echo '' >> "conftest.nl"
5998 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5999 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6000 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6001 if test $ac_count -gt ${ac_path_SED_max-0}; then
6002 # Best one so far, save it but keep looking for a better one
6003 ac_cv_path_SED
="$ac_path_SED"
6004 ac_path_SED_max
=$ac_count
6006 # 10*(2^10) chars as input seems more than enough
6007 test $ac_count -gt 10 && break
6009 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6012 $ac_path_SED_found && break 3
6017 if test -z "$ac_cv_path_SED"; then
6018 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6026 $as_echo "$ac_cv_path_SED" >&6; }
6027 SED
="$ac_cv_path_SED"
6030 test -z "$SED" && SED
=sed
6031 Xsed
="$SED -e 1s/^X//"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6044 $as_echo_n "checking for fgrep... " >&6; }
6045 if test "${ac_cv_path_FGREP+set}" = set; then :
6046 $as_echo_n "(cached) " >&6
6048 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6049 then ac_cv_path_FGREP
="$GREP -F"
6051 if test -z "$FGREP"; then
6052 ac_path_FGREP_found
=false
6053 # Loop through the user's path and test for each of PROGNAME-LIST
6054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6055 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6058 test -z "$as_dir" && as_dir
=.
6059 for ac_prog
in fgrep
; do
6060 for ac_exec_ext
in '' $ac_executable_extensions; do
6061 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6062 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
6063 # Check for GNU ac_path_FGREP and select it if it is found.
6064 # Check for GNU $ac_path_FGREP
6065 case `"$ac_path_FGREP" --version 2>&1` in
6067 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6070 $as_echo_n 0123456789 >"conftest.in"
6073 cat "conftest.in" "conftest.in" >"conftest.tmp"
6074 mv "conftest.tmp" "conftest.in"
6075 cp "conftest.in" "conftest.nl"
6076 $as_echo 'FGREP' >> "conftest.nl"
6077 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6078 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6079 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6080 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6081 # Best one so far, save it but keep looking for a better one
6082 ac_cv_path_FGREP
="$ac_path_FGREP"
6083 ac_path_FGREP_max
=$ac_count
6085 # 10*(2^10) chars as input seems more than enough
6086 test $ac_count -gt 10 && break
6088 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6091 $ac_path_FGREP_found && break 3
6096 if test -z "$ac_cv_path_FGREP"; then
6097 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6100 ac_cv_path_FGREP
=$FGREP
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6106 $as_echo "$ac_cv_path_FGREP" >&6; }
6107 FGREP
="$ac_cv_path_FGREP"
6110 test -z "$GREP" && GREP
=grep
6130 # Check whether --with-gnu-ld was given.
6131 if test "${with_gnu_ld+set}" = set; then :
6132 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6138 if test "$GCC" = yes; then
6139 # Check if gcc -print-prog-name=ld gives a path.
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6141 $as_echo_n "checking for ld used by $CC... " >&6; }
6144 # gcc leaves a trailing carriage return which upsets mingw
6145 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6147 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6150 # Accept absolute paths.
6152 re_direlt
='/[^/][^/]*/\.\./'
6153 # Canonicalize the pathname of ld
6154 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6155 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6156 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6158 test -z "$LD" && LD
="$ac_prog"
6161 # If it fails, then pretend we aren't using GCC.
6165 # If it is relative, then search for the first ld in PATH.
6169 elif test "$with_gnu_ld" = yes; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6171 $as_echo_n "checking for GNU ld... " >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6174 $as_echo_n "checking for non-GNU ld... " >&6; }
6176 if test "${lt_cv_path_LD+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6179 if test -z "$LD"; then
6180 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6181 for ac_dir
in $PATH; do
6183 test -z "$ac_dir" && ac_dir
=.
6184 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6185 lt_cv_path_LD
="$ac_dir/$ac_prog"
6186 # Check to see if the program is GNU ld. I'd rather use --version,
6187 # but apparently some variants of GNU ld only accept -v.
6188 # Break only if it was the GNU/non-GNU ld that we prefer.
6189 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6190 *GNU
* |
*'with BFD'*)
6191 test "$with_gnu_ld" != no
&& break
6194 test "$with_gnu_ld" != yes && break
6201 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6206 if test -n "$LD"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6208 $as_echo "$LD" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6213 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6215 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6216 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6219 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6220 case `$LD -v 2>&1 </dev/null` in
6221 *GNU
* |
*'with BFD'*)
6222 lt_cv_prog_gnu_ld
=yes
6225 lt_cv_prog_gnu_ld
=no
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6230 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6231 with_gnu_ld
=$lt_cv_prog_gnu_ld
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6242 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6243 if test "${lt_cv_path_NM+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6246 if test -n "$NM"; then
6247 # Let the user override the test.
6250 lt_nm_to_check
="${ac_tool_prefix}nm"
6251 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6252 lt_nm_to_check
="$lt_nm_to_check nm"
6254 for lt_tmp_nm
in $lt_nm_to_check; do
6255 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6256 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6258 test -z "$ac_dir" && ac_dir
=.
6259 tmp_nm
="$ac_dir/$lt_tmp_nm"
6260 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6261 # Check to see if the nm accepts a BSD-compat flag.
6262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6263 # nm: unknown option "B" ignored
6264 # Tru64's nm complains that /dev/null is an invalid object file
6265 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6266 */dev
/null
* |
*'Invalid file or object type'*)
6267 lt_cv_path_NM
="$tmp_nm -B"
6271 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6273 lt_cv_path_NM
="$tmp_nm -p"
6277 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6278 continue # so that we can try to find one that supports BSD flags
6287 : ${lt_cv_path_NM=no}
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6291 $as_echo "$lt_cv_path_NM" >&6; }
6292 if test "$lt_cv_path_NM" != "no"; then
6295 # Didn't find any BSD compatible name lister, look for dumpbin.
6296 if test -n "$DUMPBIN"; then :
6297 # Let the user override the test.
6299 if test -n "$ac_tool_prefix"; then
6300 for ac_prog
in dumpbin
"link -dump"
6302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6303 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6307 $as_echo_n "(cached) " >&6
6309 if test -n "$DUMPBIN"; then
6310 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir
=.
6317 for ac_exec_ext
in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 DUMPBIN
=$ac_cv_prog_DUMPBIN
6330 if test -n "$DUMPBIN"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6332 $as_echo "$DUMPBIN" >&6; }
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6339 test -n "$DUMPBIN" && break
6342 if test -z "$DUMPBIN"; then
6343 ac_ct_DUMPBIN
=$DUMPBIN
6344 for ac_prog
in dumpbin
"link -dump"
6346 # Extract the first word of "$ac_prog", so it can be a program name with args.
6347 set dummy
$ac_prog; ac_word
=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6353 if test -n "$ac_ct_DUMPBIN"; then
6354 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6360 test -z "$as_dir" && as_dir
=.
6361 for ac_exec_ext
in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6374 if test -n "$ac_ct_DUMPBIN"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6376 $as_echo "$ac_ct_DUMPBIN" >&6; }
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6383 test -n "$ac_ct_DUMPBIN" && break
6386 if test "x$ac_ct_DUMPBIN" = x
; then
6389 case $cross_compiling:$ac_tool_warned in
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned
=yes ;;
6395 DUMPBIN
=$ac_ct_DUMPBIN
6399 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6401 DUMPBIN
="$DUMPBIN -symbols"
6409 if test "$DUMPBIN" != ":"; then
6413 test -z "$NM" && NM
=nm
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6421 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6422 if test "${lt_cv_nm_interface+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6425 lt_cv_nm_interface
="BSD nm"
6426 echo "int some_variable = 0;" > conftest.
$ac_ext
6427 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6428 (eval "$ac_compile" 2>conftest.err
)
6429 cat conftest.err
>&5
6430 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6431 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6432 cat conftest.err
>&5
6433 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6434 cat conftest.out
>&5
6435 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6436 lt_cv_nm_interface
="MS dumpbin"
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6441 $as_echo "$lt_cv_nm_interface" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6444 $as_echo_n "checking whether ln -s works... " >&6; }
6446 if test "$LN_S" = "ln -s"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6448 $as_echo "yes" >&6; }
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6451 $as_echo "no, using $LN_S" >&6; }
6454 # find the maximum length of command line arguments
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6456 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6457 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6465 # On DJGPP, this test can blow up pretty badly due to problems in libc
6466 # (any single argument exceeding 2000 bytes causes a buffer overrun
6467 # during glob expansion). Even if it were fixed, the result of this
6468 # check would be larger than it should be.
6469 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6473 # Under GNU Hurd, this test is not required because there is
6474 # no limit to the length of command line arguments.
6475 # Libtool will interpret -1 as no limit whatsoever
6476 lt_cv_sys_max_cmd_len
=-1;
6479 cygwin
* | mingw
* | cegcc
*)
6480 # On Win9x/ME, this test blows up -- it succeeds, but takes
6481 # about 5 minutes as the teststring grows exponentially.
6482 # Worse, since 9x/ME are not pre-emptively multitasking,
6483 # you end up with a "frozen" computer, even though with patience
6484 # the test eventually succeeds (with a max line length of 256k).
6485 # Instead, let's just punt: use the minimum linelength reported by
6486 # all of the supported platforms: 8192 (on NT/2K/XP).
6487 lt_cv_sys_max_cmd_len
=8192;
6491 # On MiNT this can take a long time and run out of memory.
6492 lt_cv_sys_max_cmd_len
=8192;
6496 # On AmigaOS with pdksh, this test takes hours, literally.
6497 # So we just punt and use a minimum line length of 8192.
6498 lt_cv_sys_max_cmd_len
=8192;
6501 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6502 # This has been around since 386BSD, at least. Likely further.
6503 if test -x /sbin
/sysctl
; then
6504 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6505 elif test -x /usr
/sbin
/sysctl
; then
6506 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6508 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6510 # And add a safety zone
6511 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6512 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6516 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6517 lt_cv_sys_max_cmd_len
=196608
6521 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6522 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6523 # nice to cause kernel panics so lets avoid the loop below.
6524 # First set a reasonable default.
6525 lt_cv_sys_max_cmd_len
=16384
6527 if test -x /sbin
/sysconfig
; then
6528 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6529 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6534 lt_cv_sys_max_cmd_len
=102400
6536 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6537 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6538 if test -n "$kargmax"; then
6539 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6541 lt_cv_sys_max_cmd_len
=32768
6545 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6546 if test -n "$lt_cv_sys_max_cmd_len"; then
6547 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6548 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6550 # Make teststring a little bigger before we do anything with it.
6551 # a 1K string should be a reasonable start.
6552 for i
in 1 2 3 4 5 6 7 8 ; do
6553 teststring
=$teststring$teststring
6555 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6556 # If test is not a shell built-in, we'll probably end up computing a
6557 # maximum length that is only half of the actual maximum length, but
6559 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6560 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6561 test $i != 17 # 1/2 MB should be enough
6564 teststring
=$teststring$teststring
6566 # Only check the string length outside the loop.
6567 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6569 # Add a significant safety factor because C++ compilers can tack on
6570 # massive amounts of additional arguments before passing them to the
6571 # linker. It appears as though 1/2 is a usable value.
6572 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6579 if test -n $lt_cv_sys_max_cmd_len ; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6581 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6584 $as_echo "none" >&6; }
6586 max_cmd_len
=$lt_cv_sys_max_cmd_len
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6598 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6599 # Try some XSI features
6602 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6604 && eval 'test $(( 1 + 1 )) -eq 2 \
6605 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6608 $as_echo "$xsi_shell" >&6; }
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6612 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6614 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6616 && lt_shell_append=yes
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6618 $as_echo "$lt_shell_append" >&6; }
6621 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6631 # test EBCDIC or ASCII
6632 case `echo X|tr X '\101'` in
6633 A) # ASCII based system
6634 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6635 lt_SP2NL='tr \040 \012'
6636 lt_NL2SP='tr \015\012 \040\040'
6638 *) # EBCDIC based system
6639 lt_SP2NL='tr \100 \n'
6640 lt_NL2SP='tr \r\n \100\100'
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6653 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6654 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6655 $as_echo_n "(cached
) " >&6
6657 lt_cv_ld_reload_flag='-r'
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6660 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6661 reload_flag=$lt_cv_ld_reload_flag
6662 case $reload_flag in
6664 *) reload_flag=" $reload_flag" ;;
6666 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6669 if test "$GCC" = yes; then
6670 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6672 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6685 if test -n "$ac_tool_prefix"; then
6686 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6687 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6689 $as_echo_n "checking
for $ac_word...
" >&6; }
6690 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6691 $as_echo_n "(cached
) " >&6
6693 if test -n "$OBJDUMP"; then
6694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6713 OBJDUMP=$ac_cv_prog_OBJDUMP
6714 if test -n "$OBJDUMP"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6716 $as_echo "$OBJDUMP" >&6; }
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6719 $as_echo "no
" >&6; }
6724 if test -z "$ac_cv_prog_OBJDUMP"; then
6725 ac_ct_OBJDUMP=$OBJDUMP
6726 # Extract the first word of "objdump
", so it can be a program name with args.
6727 set dummy objdump; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6729 $as_echo_n "checking
for $ac_word...
" >&6; }
6730 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6731 $as_echo_n "(cached
) " >&6
6733 if test -n "$ac_ct_OBJDUMP"; then
6734 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6753 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6754 if test -n "$ac_ct_OBJDUMP"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6756 $as_echo "$ac_ct_OBJDUMP" >&6; }
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6759 $as_echo "no
" >&6; }
6762 if test "x
$ac_ct_OBJDUMP" = x; then
6765 case $cross_compiling:$ac_tool_warned in
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6768 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6769 ac_tool_warned=yes ;;
6771 OBJDUMP=$ac_ct_OBJDUMP
6774 OBJDUMP="$ac_cv_prog_OBJDUMP"
6777 test -z "$OBJDUMP" && OBJDUMP=objdump
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6788 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6789 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6790 $as_echo_n "(cached
) " >&6
6792 lt_cv_file_magic_cmd='$MAGIC_CMD'
6793 lt_cv_file_magic_test_file=
6794 lt_cv_deplibs_check_method='unknown'
6795 # Need to set the preceding variable on all platforms that support
6796 # interlibrary dependencies.
6797 # 'none' -- dependencies not supported.
6798 # `unknown' -- same as none, but documents that we really don't know.
6799 # 'pass_all' -- all dependencies passed with no checks.
6800 # 'test_compile' -- check by making test program.
6801 # 'file_magic [[regex]]' -- check by looking for files in library path
6802 # which responds to the $file_magic_cmd with a given extended regex.
6803 # If you have `file' or equivalent on your system and you're not sure
6804 # whether `pass_all' will *always* work, you probably want this one.
6808 lt_cv_deplibs_check_method=pass_all
6812 lt_cv_deplibs_check_method=pass_all
6816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6817 lt_cv_file_magic_cmd='/usr/bin/file -L'
6818 lt_cv_file_magic_test_file=/shlib/libc.so
6822 # func_win32_libid is a shell function defined in ltmain.sh
6823 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6824 lt_cv_file_magic_cmd='func_win32_libid'
6828 # Base MSYS/MinGW do not provide the 'file' command needed by
6829 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6830 # unless we find 'file', for example because we are cross-compiling.
6831 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6832 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6834 lt_cv_file_magic_cmd='func_win32_libid'
6836 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6837 lt_cv_file_magic_cmd='$OBJDUMP -f'
6842 # use the weaker test based on 'objdump'. See mingw*.
6843 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6844 lt_cv_file_magic_cmd='$OBJDUMP -f'
6847 darwin* | rhapsody*)
6848 lt_cv_deplibs_check_method=pass_all
6851 freebsd* | dragonfly*)
6852 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6855 # Not sure whether the presence of OpenBSD here was a mistake.
6856 # Let's accept both of them until this is cleared up.
6857 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6858 lt_cv_file_magic_cmd=/usr/bin/file
6859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6863 lt_cv_deplibs_check_method=pass_all
6868 lt_cv_deplibs_check_method=pass_all
6872 lt_cv_deplibs_check_method=pass_all
6875 hpux10.20* | hpux11*)
6876 lt_cv_file_magic_cmd=/usr/bin/file
6879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6880 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6883 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6884 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6887 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6888 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6894 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6898 irix5* | irix6* | nonstopux*)
6900 *-32|*"-32 ") libmagic=32-bit;;
6901 *-n32|*"-n32 ") libmagic=N32;;
6902 *-64|*"-64 ") libmagic=64-bit;;
6903 *) libmagic=never-match;;
6905 lt_cv_deplibs_check_method=pass_all
6908 # This must be Linux ELF.
6909 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6910 lt_cv_deplibs_check_method=pass_all
6914 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6923 lt_cv_file_magic_cmd=/usr/bin/file
6924 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6928 lt_cv_deplibs_check_method=pass_all
6932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6939 osf3* | osf4* | osf5*)
6940 lt_cv_deplibs_check_method=pass_all
6944 lt_cv_deplibs_check_method=pass_all
6948 lt_cv_deplibs_check_method=pass_all
6951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6952 lt_cv_deplibs_check_method=pass_all
6956 case $host_vendor in
6958 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]'
6959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6962 lt_cv_deplibs_check_method=pass_all
6965 lt_cv_file_magic_cmd='/bin/file'
6966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6969 lt_cv_file_magic_cmd='/bin/file'
6970 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6971 lt_cv_file_magic_test_file=/lib/libc.so
6974 lt_cv_deplibs_check_method=pass_all
6977 lt_cv_deplibs_check_method=pass_all
6983 lt_cv_deplibs_check_method=pass_all
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6989 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6990 file_magic_cmd=$lt_cv_file_magic_cmd
6991 deplibs_check_method=$lt_cv_deplibs_check_method
6992 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}ar; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7009 $as_echo_n "checking
for $ac_word...
" >&6; }
7010 if test "${ac_cv_prog_AR+set}" = set; then :
7011 $as_echo_n "(cached
) " >&6
7013 if test -n "$AR"; then
7014 ac_cv_prog_AR="$AR" # Let the user override the test.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_AR="${ac_tool_prefix}ar"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7034 if test -n "$AR"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
7036 $as_echo "$AR" >&6; }
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7039 $as_echo "no
" >&6; }
7044 if test -z "$ac_cv_prog_AR"; then
7046 # Extract the first word of "ar", so it can be a program name with args.
7047 set dummy ar; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7049 $as_echo_n "checking
for $ac_word...
" >&6; }
7050 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7051 $as_echo_n "(cached
) " >&6
7053 if test -n "$ac_ct_AR"; then
7054 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_AR="ar"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7073 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7074 if test -n "$ac_ct_AR"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
7076 $as_echo "$ac_ct_AR" >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7079 $as_echo "no
" >&6; }
7082 if test "x
$ac_ct_AR" = x; then
7085 case $cross_compiling:$ac_tool_warned in
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7088 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7089 ac_tool_warned=yes ;;
7097 test -z "$AR" && AR=ar
7098 test -z "$AR_FLAGS" && AR_FLAGS=cru
7110 if test -n "$ac_tool_prefix"; then
7111 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7112 set dummy ${ac_tool_prefix}strip; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7114 $as_echo_n "checking
for $ac_word...
" >&6; }
7115 if test "${ac_cv_prog_STRIP+set}" = set; then :
7116 $as_echo_n "(cached
) " >&6
7118 if test -n "$STRIP"; then
7119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7138 STRIP=$ac_cv_prog_STRIP
7139 if test -n "$STRIP"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7141 $as_echo "$STRIP" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7144 $as_echo "no
" >&6; }
7149 if test -z "$ac_cv_prog_STRIP"; then
7151 # Extract the first word of "strip
", so it can be a program name with args.
7152 set dummy strip; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7154 $as_echo_n "checking
for $ac_word...
" >&6; }
7155 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7156 $as_echo_n "(cached
) " >&6
7158 if test -n "$ac_ct_STRIP"; then
7159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_prog_ac_ct_STRIP="strip
"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7179 if test -n "$ac_ct_STRIP"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7181 $as_echo "$ac_ct_STRIP" >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7184 $as_echo "no
" >&6; }
7187 if test "x
$ac_ct_STRIP" = x; then
7190 case $cross_compiling:$ac_tool_warned in
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7193 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7194 ac_tool_warned=yes ;;
7199 STRIP="$ac_cv_prog_STRIP"
7202 test -z "$STRIP" && STRIP=:
7209 if test -n "$ac_tool_prefix"; then
7210 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7213 $as_echo_n "checking
for $ac_word...
" >&6; }
7214 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7215 $as_echo_n "(cached
) " >&6
7217 if test -n "$RANLIB"; then
7218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7237 RANLIB=$ac_cv_prog_RANLIB
7238 if test -n "$RANLIB"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7240 $as_echo "$RANLIB" >&6; }
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7243 $as_echo "no
" >&6; }
7248 if test -z "$ac_cv_prog_RANLIB"; then
7249 ac_ct_RANLIB=$RANLIB
7250 # Extract the first word of "ranlib
", so it can be a program name with args.
7251 set dummy ranlib; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7253 $as_echo_n "checking
for $ac_word...
" >&6; }
7254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7255 $as_echo_n "(cached
) " >&6
7257 if test -n "$ac_ct_RANLIB"; then
7258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7268 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7278 if test -n "$ac_ct_RANLIB"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7280 $as_echo "$ac_ct_RANLIB" >&6; }
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7283 $as_echo "no
" >&6; }
7286 if test "x
$ac_ct_RANLIB" = x; then
7289 case $cross_compiling:$ac_tool_warned in
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7292 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7293 ac_tool_warned=yes ;;
7295 RANLIB=$ac_ct_RANLIB
7298 RANLIB="$ac_cv_prog_RANLIB"
7301 test -z "$RANLIB" && RANLIB=:
7308 # Determine commands to create old-style static archives.
7309 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7310 old_postinstall_cmds='chmod 644 $oldlib'
7311 old_postuninstall_cmds=
7313 if test -n "$RANLIB"; then
7316 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7319 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7322 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7327 lock_old_archive_extraction=yes ;;
7329 lock_old_archive_extraction=no ;;
7370 # If no C compiler was specified, use CC.
7373 # If no C compiler flags were specified, use CFLAGS.
7374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7376 # Allow CC to be a program name with arguments.
7380 # Check for command to grab the raw symbol name followed by C symbol from nm.
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7382 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7383 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7384 $as_echo_n "(cached
) " >&6
7387 # These are sane defaults that work on at least a few old systems.
7388 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7390 # Character class describing NM global symbol codes.
7391 symcode='[BCDEGRST]'
7393 # Regexp to match symbols that can be accessed directly from C.
7394 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7396 # Define system-specific variables.
7401 cygwin* | mingw* | pw32* | cegcc*)
7402 symcode='[ABCDGISTW]'
7405 if test "$host_cpu" = ia64; then
7406 symcode='[ABCDEGRST]'
7410 symcode='[BCDEGRST]'
7413 symcode='[BCDEGQRST]'
7424 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7432 # If we're using GNU nm, then use its standard symbol codes.
7433 case `$NM -V 2>&1` in
7434 *GNU* | *'with BFD'*)
7435 symcode='[ABCDGIRSTW]' ;;
7438 # Transform an extracted symbol line into a proper C declaration.
7439 # Some systems (esp. on ia64) link data and code symbols differently,
7440 # so use this general approach.
7441 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7443 # Transform an extracted symbol line into symbol name and symbol address
7444 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7445 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7447 # Handle CRLF in mingw tool chain
7451 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7455 # Try without a prefix underscore, then with it.
7456 for ac_symprfx in "" "_
"; do
7458 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7459 symxfrm="\\1 $ac_symprfx\\2 \\2"
7461 # Write the raw and C identifiers.
7462 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7463 # Fake it for dumpbin and say T for any non-static function
7464 # and D for any global variable.
7465 # Also find C++ and __fastcall symbols from MSVC++,
7466 # which start with @ or ?.
7467 lt_cv_sys_global_symbol_pipe="$AWK '"\
7468 " {last_section=section; section=\$ 3};"\
7469 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7470 " \$ 0!~/External *\|/{next};"\
7471 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7472 " {if(hide[section]) next};"\
7473 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7474 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7475 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7476 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7477 " ' prfx
=^
$ac_symprfx"
7479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7482 # Check to see that the pipe works correctly.
7486 cat > conftest.$ac_ext <<_LT_EOF
7491 void nm_test_func(void);
7492 void nm_test_func(void){}
7496 int main(){nm_test_var='a';nm_test_func();return(0);}
7499 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7500 (eval $ac_compile) 2>&5
7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7503 test $ac_status = 0; }; then
7504 # Now try to grab the symbols.
7506 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7507 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7509 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7510 test $ac_status = 0; } && test -s "$nlist"; then
7511 # Try sorting and uniquifying the output.
7512 if sort "$nlist" | uniq > "$nlist"T; then
7513 mv -f "$nlist"T "$nlist"
7518 # Make sure that we snagged all the symbols we need.
7519 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7520 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7521 cat <<_LT_EOF > conftest.$ac_ext
7527 # Now generate the symbol file.
7528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7530 cat <<_LT_EOF >> conftest.$ac_ext
7532 /* The mapping between symbol names and symbols. */
7537 lt__PROGRAM__LTX_preloaded_symbols[] =
7539 { "@PROGRAM@
", (void *) 0 },
7541 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7542 cat <<\_LT_EOF >> conftest.$ac_ext
7546 /* This works around a problem in FreeBSD linker */
7547 #ifdef FREEBSD_WORKAROUND
7548 static const void *lt_preloaded_setup() {
7549 return lt__PROGRAM__LTX_preloaded_symbols;
7557 # Now try linking the two files.
7558 mv conftest.$ac_objext conftstm.$ac_objext
7559 lt_save_LIBS="$LIBS"
7560 lt_save_CFLAGS="$CFLAGS"
7561 LIBS="conftstm.
$ac_objext"
7562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7563 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7564 (eval $ac_link) 2>&5
7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7567 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7570 LIBS="$lt_save_LIBS"
7571 CFLAGS="$lt_save_CFLAGS"
7573 echo "cannot
find nm_test_func
in $nlist" >&5
7576 echo "cannot
find nm_test_var
in $nlist" >&5
7579 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7582 echo "$progname: failed program was
:" >&5
7583 cat conftest.$ac_ext >&5
7585 rm -rf conftest* conftst*
7587 # Do not use the global_symbol_pipe unless it works.
7588 if test "$pipe_works" = yes; then
7591 lt_cv_sys_global_symbol_pipe=
7597 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7598 lt_cv_sys_global_symbol_to_cdecl=
7600 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7602 $as_echo "failed
" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7605 $as_echo "ok
" >&6; }
7629 # Check whether --enable-libtool-lock was given.
7630 if test "${enable_libtool_lock+set}" = set; then :
7631 enableval=$enable_libtool_lock;
7634 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7636 # Some flags need to be propagated to the compiler or linker for good
7640 # Find out which ABI we are using.
7641 echo 'int i;' > conftest.$ac_ext
7642 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7643 (eval $ac_compile) 2>&5
7645 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7646 test $ac_status = 0; }; then
7647 case `/usr/bin/file conftest.$ac_objext` in
7659 # Find out which ABI we are using.
7660 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7661 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7662 (eval $ac_compile) 2>&5
7664 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7665 test $ac_status = 0; }; then
7666 if test "$lt_cv_prog_gnu_ld" = yes; then
7667 case `/usr/bin/file conftest.$ac_objext` in
7669 LD="${LD-ld} -melf32bsmip"
7672 LD="${LD-ld} -melf32bmipn32"
7675 LD="${LD-ld} -melf64bmip"
7679 case `/usr/bin/file conftest.$ac_objext` in
7695 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7696 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7697 # Find out which ABI we are using.
7698 echo 'int i;' > conftest.$ac_ext
7699 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700 (eval $ac_compile) 2>&5
7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7703 test $ac_status = 0; }; then
7704 case `/usr/bin/file conftest.o` in
7707 x86_64-*kfreebsd*-gnu)
7708 LD="${LD-ld} -m elf_i386_fbsd
"
7711 case `/usr/bin/file conftest.o` in
7713 LD="${LD-ld} -m elf32_x86_64
"
7716 LD="${LD-ld} -m elf_i386
"
7720 powerpc64le-*linux*)
7721 LD="${LD-ld} -m elf32lppclinux
"
7724 LD="${LD-ld} -m elf32ppclinux
"
7727 LD="${LD-ld} -m elf_s390
"
7730 LD="${LD-ld} -m elf32_sparc
"
7736 x86_64-*kfreebsd*-gnu)
7737 LD="${LD-ld} -m elf_x86_64_fbsd
"
7740 LD="${LD-ld} -m elf_x86_64
"
7743 LD="${LD-ld} -m elf64lppc
"
7746 LD="${LD-ld} -m elf64ppc
"
7748 s390*-*linux*|s390*-*tpf*)
7749 LD="${LD-ld} -m elf64_s390
"
7752 LD="${LD-ld} -m elf64_sparc
"
7762 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7763 SAVE_CFLAGS="$CFLAGS"
7764 CFLAGS="$CFLAGS -belf"
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7766 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7767 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7768 $as_echo_n "(cached
) " >&6
7771 ac_cpp='$CPP $CPPFLAGS'
7772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7787 if ac_fn_c_try_link "$LINENO"; then :
7788 lt_cv_cc_needs_belf=yes
7790 lt_cv_cc_needs_belf=no
7792 rm -f core conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7795 ac_cpp='$CPP $CPPFLAGS'
7796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7802 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7803 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7804 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7805 CFLAGS="$SAVE_CFLAGS"
7809 # Find out which ABI we are using.
7810 echo 'int i;' > conftest.$ac_ext
7811 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7812 (eval $ac_compile) 2>&5
7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7815 test $ac_status = 0; }; then
7816 case `/usr/bin/file conftest.o` in
7818 case $lt_cv_prog_gnu_ld in
7819 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7821 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7833 need_locks="$enable_libtool_lock"
7837 rhapsody* | darwin*)
7838 if test -n "$ac_tool_prefix"; then
7839 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7840 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7842 $as_echo_n "checking
for $ac_word...
" >&6; }
7843 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7844 $as_echo_n "(cached
) " >&6
7846 if test -n "$DSYMUTIL"; then
7847 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7866 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7867 if test -n "$DSYMUTIL"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7869 $as_echo "$DSYMUTIL" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7872 $as_echo "no
" >&6; }
7877 if test -z "$ac_cv_prog_DSYMUTIL"; then
7878 ac_ct_DSYMUTIL=$DSYMUTIL
7879 # Extract the first word of "dsymutil
", so it can be a program name with args.
7880 set dummy dsymutil; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7882 $as_echo_n "checking
for $ac_word...
" >&6; }
7883 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7884 $as_echo_n "(cached
) " >&6
7886 if test -n "$ac_ct_DSYMUTIL"; then
7887 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7906 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7907 if test -n "$ac_ct_DSYMUTIL"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7909 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7912 $as_echo "no
" >&6; }
7915 if test "x
$ac_ct_DSYMUTIL" = x; then
7918 case $cross_compiling:$ac_tool_warned in
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7921 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7922 ac_tool_warned=yes ;;
7924 DSYMUTIL=$ac_ct_DSYMUTIL
7927 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7930 if test -n "$ac_tool_prefix"; then
7931 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7932 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7934 $as_echo_n "checking
for $ac_word...
" >&6; }
7935 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7936 $as_echo_n "(cached
) " >&6
7938 if test -n "$NMEDIT"; then
7939 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7958 NMEDIT=$ac_cv_prog_NMEDIT
7959 if test -n "$NMEDIT"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7961 $as_echo "$NMEDIT" >&6; }
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7964 $as_echo "no
" >&6; }
7969 if test -z "$ac_cv_prog_NMEDIT"; then
7970 ac_ct_NMEDIT=$NMEDIT
7971 # Extract the first word of "nmedit
", so it can be a program name with args.
7972 set dummy nmedit; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7974 $as_echo_n "checking
for $ac_word...
" >&6; }
7975 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7976 $as_echo_n "(cached
) " >&6
7978 if test -n "$ac_ct_NMEDIT"; then
7979 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7998 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7999 if test -n "$ac_ct_NMEDIT"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
8001 $as_echo "$ac_ct_NMEDIT" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8004 $as_echo "no
" >&6; }
8007 if test "x
$ac_ct_NMEDIT" = x; then
8010 case $cross_compiling:$ac_tool_warned in
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8013 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8014 ac_tool_warned=yes ;;
8016 NMEDIT=$ac_ct_NMEDIT
8019 NMEDIT="$ac_cv_prog_NMEDIT"
8022 if test -n "$ac_tool_prefix"; then
8023 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
8024 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8026 $as_echo_n "checking
for $ac_word...
" >&6; }
8027 if test "${ac_cv_prog_LIPO+set}" = set; then :
8028 $as_echo_n "(cached
) " >&6
8030 if test -n "$LIPO"; then
8031 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8050 LIPO=$ac_cv_prog_LIPO
8051 if test -n "$LIPO"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8053 $as_echo "$LIPO" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8056 $as_echo "no
" >&6; }
8061 if test -z "$ac_cv_prog_LIPO"; then
8063 # Extract the first word of "lipo
", so it can be a program name with args.
8064 set dummy lipo; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8066 $as_echo_n "checking
for $ac_word...
" >&6; }
8067 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8068 $as_echo_n "(cached
) " >&6
8070 if test -n "$ac_ct_LIPO"; then
8071 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8080 ac_cv_prog_ac_ct_LIPO="lipo
"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8090 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8091 if test -n "$ac_ct_LIPO"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8093 $as_echo "$ac_ct_LIPO" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8096 $as_echo "no
" >&6; }
8099 if test "x
$ac_ct_LIPO" = x; then
8102 case $cross_compiling:$ac_tool_warned in
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8105 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8106 ac_tool_warned=yes ;;
8111 LIPO="$ac_cv_prog_LIPO"
8114 if test -n "$ac_tool_prefix"; then
8115 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8116 set dummy ${ac_tool_prefix}otool; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8118 $as_echo_n "checking
for $ac_word...
" >&6; }
8119 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8120 $as_echo_n "(cached
) " >&6
8122 if test -n "$OTOOL"; then
8123 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8142 OTOOL=$ac_cv_prog_OTOOL
8143 if test -n "$OTOOL"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8145 $as_echo "$OTOOL" >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8148 $as_echo "no
" >&6; }
8153 if test -z "$ac_cv_prog_OTOOL"; then
8155 # Extract the first word of "otool
", so it can be a program name with args.
8156 set dummy otool; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8158 $as_echo_n "checking
for $ac_word...
" >&6; }
8159 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8160 $as_echo_n "(cached
) " >&6
8162 if test -n "$ac_ct_OTOOL"; then
8163 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172 ac_cv_prog_ac_ct_OTOOL="otool
"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8182 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8183 if test -n "$ac_ct_OTOOL"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8185 $as_echo "$ac_ct_OTOOL" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8188 $as_echo "no
" >&6; }
8191 if test "x
$ac_ct_OTOOL" = x; then
8194 case $cross_compiling:$ac_tool_warned in
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8197 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8198 ac_tool_warned=yes ;;
8203 OTOOL="$ac_cv_prog_OTOOL"
8206 if test -n "$ac_tool_prefix"; then
8207 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8210 $as_echo_n "checking
for $ac_word...
" >&6; }
8211 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8212 $as_echo_n "(cached
) " >&6
8214 if test -n "$OTOOL64"; then
8215 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8234 OTOOL64=$ac_cv_prog_OTOOL64
8235 if test -n "$OTOOL64"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8237 $as_echo "$OTOOL64" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8240 $as_echo "no
" >&6; }
8245 if test -z "$ac_cv_prog_OTOOL64"; then
8246 ac_ct_OTOOL64=$OTOOL64
8247 # Extract the first word of "otool64
", so it can be a program name with args.
8248 set dummy otool64; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8250 $as_echo_n "checking
for $ac_word...
" >&6; }
8251 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8252 $as_echo_n "(cached
) " >&6
8254 if test -n "$ac_ct_OTOOL64"; then
8255 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8274 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8275 if test -n "$ac_ct_OTOOL64"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8277 $as_echo "$ac_ct_OTOOL64" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8280 $as_echo "no
" >&6; }
8283 if test "x
$ac_ct_OTOOL64" = x; then
8286 case $cross_compiling:$ac_tool_warned in
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8289 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8290 ac_tool_warned=yes ;;
8292 OTOOL64=$ac_ct_OTOOL64
8295 OTOOL64="$ac_cv_prog_OTOOL64"
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8325 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8326 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8327 $as_echo_n "(cached
) " >&6
8329 lt_cv_apple_cc_single_mod=no
8330 if test -z "${LT_MULTI_MODULE}"; then
8331 # By default we will add the -single_module flag. You can override
8332 # by either setting the environment variable LT_MULTI_MODULE
8333 # non-empty at configure time, or by adding -multi_module to the
8335 rm -rf libconftest.dylib*
8336 echo "int foo
(void
){return 1;}" > conftest.c
8337 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8338 -dynamiclib -Wl,-single_module conftest.c
" >&5
8339 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8340 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8342 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8343 lt_cv_apple_cc_single_mod=yes
8345 cat conftest.err >&5
8347 rm -rf libconftest.dylib*
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8352 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8354 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8355 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8356 $as_echo_n "(cached
) " >&6
8358 lt_cv_ld_exported_symbols_list=no
8359 save_LDFLAGS=$LDFLAGS
8360 echo "_main
" > conftest.sym
8361 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8373 if ac_fn_c_try_link "$LINENO"; then :
8374 lt_cv_ld_exported_symbols_list=yes
8376 lt_cv_ld_exported_symbols_list=no
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 LDFLAGS="$save_LDFLAGS"
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8384 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8386 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8387 if test "${lt_cv_ld_force_load+set}" = set; then :
8388 $as_echo_n "(cached
) " >&6
8390 lt_cv_ld_force_load=no
8391 cat > conftest.c << _LT_EOF
8392 int forced_loaded() { return 2;}
8394 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8395 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8396 echo "$AR cru libconftest.a conftest.o
" >&5
8397 $AR cru libconftest.a conftest.o 2>&5
8398 cat > conftest.c << _LT_EOF
8399 int main() { return 0;}
8401 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8402 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8404 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8405 lt_cv_ld_force_load=yes
8407 cat conftest.err >&5
8409 rm -f conftest.err libconftest.a conftest conftest.c
8410 rm -rf conftest.dSYM
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8414 $as_echo "$lt_cv_ld_force_load" >&6; }
8416 rhapsody* | darwin1.[012])
8417 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8419 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8420 darwin*) # darwin 5.x on
8421 # if running on 10.5 or later, the deployment target defaults
8422 # to the OS version, if on x86, and 10.4, the deployment
8423 # target defaults to 10.4. Don't you love it?
8424 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8425 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8426 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8428 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8430 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8434 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8435 _lt_dar_single_mod='$single_module'
8437 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8438 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8440 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8442 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8443 _lt_dsymutil='~$DSYMUTIL $lib || :'
8450 for ac_header in dlfcn.h
8452 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8454 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
8455 cat >>confdefs.h <<_ACEOF
8456 #define HAVE_DLFCN_H 1
8476 # Check whether --enable-shared was given.
8477 if test "${enable_shared+set}" = set; then :
8478 enableval=$enable_shared; p=${PACKAGE-default}
8480 yes) enable_shared=yes ;;
8481 no) enable_shared=no ;;
8484 # Look at the argument we got. We use all the common list separators.
8485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8486 for pkg in $enableval; do
8488 if test "X
$pkg" = "X
$p"; then
8507 # Check whether --enable-static was given.
8508 if test "${enable_static+set}" = set; then :
8509 enableval=$enable_static; p=${PACKAGE-default}
8511 yes) enable_static=yes ;;
8512 no) enable_static=no ;;
8515 # Look at the argument we got. We use all the common list separators.
8516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8517 for pkg in $enableval; do
8519 if test "X
$pkg" = "X
$p"; then
8539 # Check whether --with-pic was given.
8540 if test "${with_pic+set}" = set; then :
8541 withval=$with_pic; pic_mode="$withval"
8547 test -z "$pic_mode" && pic_mode=default
8555 # Check whether --enable-fast-install was given.
8556 if test "${enable_fast_install+set}" = set; then :
8557 enableval=$enable_fast_install; p=${PACKAGE-default}
8559 yes) enable_fast_install=yes ;;
8560 no) enable_fast_install=no ;;
8562 enable_fast_install=no
8563 # Look at the argument we got. We use all the common list separators.
8564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8565 for pkg in $enableval; do
8567 if test "X
$pkg" = "X
$p"; then
8568 enable_fast_install=yes
8575 enable_fast_install=yes
8588 # This can be used to rebuild libtool when needed
8589 LIBTOOL_DEPS="$ltmain"
8591 # Always use our own libtool.
8592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8619 test -z "$LN_S" && LN_S="ln -s"
8634 if test -n "${ZSH_VERSION+set}" ; then
8635 setopt NO_GLOB_SUBST
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8639 $as_echo_n "checking
for objdir...
" >&6; }
8640 if test "${lt_cv_objdir+set}" = set; then :
8641 $as_echo_n "(cached
) " >&6
8643 rm -f .libs 2>/dev/null
8644 mkdir .libs 2>/dev/null
8645 if test -d .libs; then
8648 # MS-DOS does not allow filenames that begin with a dot.
8651 rmdir .libs 2>/dev/null
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8654 $as_echo "$lt_cv_objdir" >&6; }
8655 objdir=$lt_cv_objdir
8661 cat >>confdefs.h <<_ACEOF
8662 #define LT_OBJDIR "$lt_cv_objdir/"
8670 # AIX sometimes has problems with the GCC collect2 program. For some
8671 # reason, if we set the COLLECT_NAMES environment variable, the problems
8672 # vanish in a puff of smoke.
8673 if test "X
${COLLECT_NAMES+set}" != Xset; then
8675 export COLLECT_NAMES
8682 can_build_shared=yes
8684 # All known linkers require a `.a' archive for static linking (except MSVC,
8685 # which needs '.lib').
8688 with_gnu_ld="$lt_cv_prog_gnu_ld"
8691 old_CFLAGS="$CFLAGS"
8693 # Set sane defaults for various variables
8694 test -z "$CC" && CC=cc
8695 test -z "$LTCC" && LTCC=$CC
8696 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8697 test -z "$LD" && LD=ld
8698 test -z "$ac_objext" && ac_objext=o
8700 for cc_temp in $compiler""; do
8702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8708 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8711 # Only perform the check for file, if the check method requires it
8712 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8713 case $deplibs_check_method in
8715 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8717 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8718 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8719 $as_echo_n "(cached
) " >&6
8723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8726 lt_save_MAGIC_CMD="$MAGIC_CMD"
8727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8728 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8729 for ac_dir in $ac_dummy; do
8731 test -z "$ac_dir" && ac_dir=.
8732 if test -f $ac_dir/${ac_tool_prefix}file; then
8733 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8734 if test -n "$file_magic_test_file"; then
8735 case $deplibs_check_method in
8737 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8739 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8740 $EGREP "$file_magic_regex" > /dev/null; then
8745 *** Warning: the command libtool uses to detect shared libraries,
8746 *** $file_magic_cmd, produces output that libtool cannot recognize.
8747 *** The result is that libtool may fail to recognize shared libraries
8748 *** as such. This will affect the creation of libtool libraries that
8749 *** depend on shared libraries, but programs linked with such libtool
8750 *** libraries will work regardless of this problem. Nevertheless, you
8751 *** may want to report the problem to your system manager and/or to
8752 *** bug-libtool@gnu.org
8762 MAGIC_CMD="$lt_save_MAGIC_CMD"
8767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8768 if test -n "$MAGIC_CMD"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8770 $as_echo "$MAGIC_CMD" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8773 $as_echo "no
" >&6; }
8780 if test -z "$lt_cv_path_MAGIC_CMD"; then
8781 if test -n "$ac_tool_prefix"; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8783 $as_echo_n "checking
for file...
" >&6; }
8784 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8785 $as_echo_n "(cached
) " >&6
8789 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8792 lt_save_MAGIC_CMD="$MAGIC_CMD"
8793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8794 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8795 for ac_dir in $ac_dummy; do
8797 test -z "$ac_dir" && ac_dir=.
8798 if test -f $ac_dir/file; then
8799 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8800 if test -n "$file_magic_test_file"; then
8801 case $deplibs_check_method in
8803 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8804 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8805 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8806 $EGREP "$file_magic_regex" > /dev/null; then
8811 *** Warning: the command libtool uses to detect shared libraries,
8812 *** $file_magic_cmd, produces output that libtool cannot recognize.
8813 *** The result is that libtool may fail to recognize shared libraries
8814 *** as such. This will affect the creation of libtool libraries that
8815 *** depend on shared libraries, but programs linked with such libtool
8816 *** libraries will work regardless of this problem. Nevertheless, you
8817 *** may want to report the problem to your system manager and/or to
8818 *** bug-libtool@gnu.org
8828 MAGIC_CMD="$lt_save_MAGIC_CMD"
8833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8834 if test -n "$MAGIC_CMD"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8836 $as_echo "$MAGIC_CMD" >&6; }
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8839 $as_echo "no
" >&6; }
8852 # Use C for the default configuration in the libtool script
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8862 # Source file extension for C test sources.
8865 # Object file extension for compiled C test sources.
8869 # Code to be used in simple compile tests
8870 lt_simple_compile_test_code="int some_variable
= 0;"
8872 # Code to be used in simple link tests
8873 lt_simple_link_test_code='int main(){return(0);}'
8881 # If no C compiler was specified, use CC.
8884 # If no C compiler flags were specified, use CFLAGS.
8885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8887 # Allow CC to be a program name with arguments.
8890 # Save the default compiler, since it gets overwritten when the other
8891 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8892 compiler_DEFAULT=$CC
8894 # save warnings/boilerplate of simple test code
8895 ac_outfile=conftest.$ac_objext
8896 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8897 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8898 _lt_compiler_boilerplate=`cat conftest.err`
8901 ac_outfile=conftest.$ac_objext
8902 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8903 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8904 _lt_linker_boilerplate=`cat conftest.err`
8909 ## There is no encapsulation within the following macros, do not change
8910 ## the running order or otherwise move them around unless you know exactly
8911 ## what you are doing...
8912 if test -n "$compiler"; then
8914 lt_prog_compiler_no_builtin_flag=
8916 if test "$GCC" = yes; then
8917 case $cc_basename in
8919 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8921 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8925 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8926 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8927 $as_echo_n "(cached
) " >&6
8929 lt_cv_prog_compiler_rtti_exceptions=no
8930 ac_outfile=conftest.$ac_objext
8931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8932 lt_compiler_flag="-fno-rtti -fno-exceptions"
8933 # Insert the option either (1) after the last *FLAGS variable, or
8934 # (2) before a word containing "conftest.
", or (3) at the end.
8935 # Note that $ac_compile itself does not contain backslashes and begins
8936 # with a dollar sign (not a hyphen), so the echo should work correctly.
8937 # The option is referenced via a variable to avoid confusing sed.
8938 lt_compile=`echo "$ac_compile" | $SED \
8939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8941 -e 's:$: $lt_compiler_flag:'`
8942 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8943 (eval "$lt_compile" 2>conftest.err)
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8947 if (exit $ac_status) && test -s "$ac_outfile"; then
8948 # The compiler can only warn and ignore the option if not recognized
8949 # So say no if there are warnings other than the usual output.
8950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8953 lt_cv_prog_compiler_rtti_exceptions=yes
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8960 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8962 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8963 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8975 lt_prog_compiler_wl=
8976 lt_prog_compiler_pic=
8977 lt_prog_compiler_static=
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8980 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8982 if test "$GCC" = yes; then
8983 lt_prog_compiler_wl='-Wl,'
8984 lt_prog_compiler_static='-static'
8988 # All AIX code is PIC.
8989 if test "$host_cpu" = ia64; then
8990 # AIX 5 now supports IA64 processor
8991 lt_prog_compiler_static='-Bstatic'
8993 lt_prog_compiler_pic='-fPIC'
8999 # see comment about AmigaOS4 .so support
9000 lt_prog_compiler_pic='-fPIC'
9003 # FIXME: we need at least 68020 code to build shared libraries, but
9004 # adding the `-m68020' flag to GCC prevents building anything better,
9006 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9011 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9012 # PIC is the default for these OSes.
9015 mingw* | cygwin* | pw32* | os2* | cegcc*)
9016 # This hack is so that the source file can tell whether it is being
9017 # built for inclusion in a dll (and should export symbols for example).
9018 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9019 # (--disable-auto-import) libraries
9020 lt_prog_compiler_pic='-DDLL_EXPORT'
9023 darwin* | rhapsody*)
9024 # PIC is the default on this platform
9025 # Common symbols not allowed in MH_DYLIB files
9026 lt_prog_compiler_pic='-fno-common'
9030 # PIC is the default for Haiku.
9031 # The "-static" flag exists, but is broken.
9032 lt_prog_compiler_static=
9036 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9037 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9038 # sets the default TLS model and affects inlining.
9044 lt_prog_compiler_pic='-fPIC'
9050 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9051 # Instead, we relocate shared libraries at runtime.
9055 # Just because we use GCC doesn't mean we suddenly get shared libraries
9056 # on systems that don't support them.
9057 lt_prog_compiler_can_build_shared=no
9062 # QNX uses GNU C++, but need to define -shared option too, otherwise
9064 lt_prog_compiler_pic='-fPIC -shared'
9068 if test -d /usr/nec; then
9069 lt_prog_compiler_pic=-Kconform_pic
9074 lt_prog_compiler_pic='-fPIC'
9078 case $cc_basename in
9079 nvcc*) # Cuda Compiler Driver 2.2
9080 lt_prog_compiler_wl='-Xlinker '
9081 lt_prog_compiler_pic='-Xcompiler -fPIC'
9085 # PORTME Check for flag to pass linker flags through the system compiler.
9088 lt_prog_compiler_wl='-Wl,'
9089 if test "$host_cpu" = ia64; then
9090 # AIX 5 now supports IA64 processor
9091 lt_prog_compiler_static='-Bstatic'
9093 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9097 mingw* | cygwin* | pw32* | os2* | cegcc*)
9098 # This hack is so that the source file can tell whether it is being
9099 # built for inclusion in a dll (and should export symbols for example).
9100 lt_prog_compiler_pic='-DDLL_EXPORT'
9103 hpux9* | hpux10* | hpux11*)
9104 lt_prog_compiler_wl='-Wl,'
9105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9112 lt_prog_compiler_pic='+Z'
9115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9116 lt_prog_compiler_static='${wl}-a ${wl}archive'
9119 irix5* | irix6* | nonstopux*)
9120 lt_prog_compiler_wl='-Wl,'
9121 # PIC (with -KPIC) is the default.
9122 lt_prog_compiler_static='-non_shared'
9125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9126 case $cc_basename in
9127 # old Intel for x86_64 which still supported -KPIC.
9129 lt_prog_compiler_wl='-Wl,'
9130 lt_prog_compiler_pic='-KPIC'
9131 lt_prog_compiler_static='-static'
9133 # icc used to be incompatible with GCC.
9134 # ICC 10 doesn't accept -KPIC any more.
9136 lt_prog_compiler_wl='-Wl,'
9137 lt_prog_compiler_pic='-fPIC'
9138 lt_prog_compiler_static='-static'
9140 # Lahey Fortran 8.1.
9142 lt_prog_compiler_wl='-Wl,'
9143 lt_prog_compiler_pic='--shared'
9144 lt_prog_compiler_static='--static'
9146 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9147 # Portland Group compilers (*not* the Pentium gcc compiler,
9148 # which looks to be a dead project)
9149 lt_prog_compiler_wl='-Wl,'
9150 lt_prog_compiler_pic='-fpic'
9151 lt_prog_compiler_static='-Bstatic'
9154 lt_prog_compiler_wl='-Wl,'
9155 # All Alpha code is PIC.
9156 lt_prog_compiler_static='-non_shared'
9158 xl* | bgxl* | bgf* | mpixl*)
9159 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9160 lt_prog_compiler_wl='-Wl,'
9161 lt_prog_compiler_pic='-qpic'
9162 lt_prog_compiler_static='-qstaticlink'
9165 case `$CC -V 2>&1 | sed 5q` in
9166 *Sun\ F* | *Sun*Fortran*)
9167 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9168 lt_prog_compiler_pic='-KPIC'
9169 lt_prog_compiler_static='-Bstatic'
9170 lt_prog_compiler_wl=''
9174 lt_prog_compiler_pic='-KPIC'
9175 lt_prog_compiler_static='-Bstatic'
9176 lt_prog_compiler_wl='-Wl,'
9184 lt_prog_compiler_pic='-KPIC'
9185 lt_prog_compiler_static='-Bstatic'
9189 # QNX uses GNU C++, but need to define -shared option too, otherwise
9191 lt_prog_compiler_pic='-fPIC -shared'
9194 osf3* | osf4* | osf5*)
9195 lt_prog_compiler_wl='-Wl,'
9196 # All OSF/1 code is PIC.
9197 lt_prog_compiler_static='-non_shared'
9201 lt_prog_compiler_static='-non_shared'
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-Bstatic'
9207 case $cc_basename in
9209 lt_prog_compiler_wl='-Qoption ld ';;
9211 lt_prog_compiler_wl='-Wl,';;
9216 lt_prog_compiler_wl='-Qoption ld '
9217 lt_prog_compiler_pic='-PIC'
9218 lt_prog_compiler_static='-Bstatic'
9221 sysv4 | sysv4.2uw2* | sysv4.3*)
9222 lt_prog_compiler_wl='-Wl,'
9223 lt_prog_compiler_pic='-KPIC'
9224 lt_prog_compiler_static='-Bstatic'
9228 if test -d /usr/nec ;then
9229 lt_prog_compiler_pic='-Kconform_pic'
9230 lt_prog_compiler_static='-Bstatic'
9234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9235 lt_prog_compiler_wl='-Wl,'
9236 lt_prog_compiler_pic='-KPIC'
9237 lt_prog_compiler_static='-Bstatic'
9241 lt_prog_compiler_wl='-Wl,'
9242 lt_prog_compiler_can_build_shared=no
9246 lt_prog_compiler_pic='-pic'
9247 lt_prog_compiler_static='-Bstatic'
9251 lt_prog_compiler_can_build_shared=no
9257 # For platforms which do not support PIC, -DPIC is meaningless:
9259 lt_prog_compiler_pic=
9262 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9266 $as_echo "$lt_prog_compiler_pic" >&6; }
9274 # Check to make sure the PIC flag actually works.
9276 if test -n "$lt_prog_compiler_pic"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9278 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9279 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9280 $as_echo_n "(cached
) " >&6
9282 lt_cv_prog_compiler_pic_works=no
9283 ac_outfile=conftest.$ac_objext
9284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9285 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9286 # Insert the option either (1) after the last *FLAGS variable, or
9287 # (2) before a word containing "conftest.
", or (3) at the end.
9288 # Note that $ac_compile itself does not contain backslashes and begins
9289 # with a dollar sign (not a hyphen), so the echo should work correctly.
9290 # The option is referenced via a variable to avoid confusing sed.
9291 lt_compile=`echo "$ac_compile" | $SED \
9292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9294 -e 's:$: $lt_compiler_flag:'`
9295 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9296 (eval "$lt_compile" 2>conftest.err)
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9300 if (exit $ac_status) && test -s "$ac_outfile"; then
9301 # The compiler can only warn and ignore the option if not recognized
9302 # So say no if there are warnings other than the usual output.
9303 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9306 lt_cv_prog_compiler_pic_works=yes
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9313 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9315 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9316 case $lt_prog_compiler_pic in
9318 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9321 lt_prog_compiler_pic=
9322 lt_prog_compiler_can_build_shared=no
9333 # Check to make sure the static flag actually works.
9335 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9337 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9338 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9339 $as_echo_n "(cached
) " >&6
9341 lt_cv_prog_compiler_static_works=no
9342 save_LDFLAGS="$LDFLAGS"
9343 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9344 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9345 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9346 # The linker can only warn and ignore the option if not recognized
9347 # So say no if there are warnings
9348 if test -s conftest.err; then
9349 # Append any errors to the config.log.
9350 cat conftest.err 1>&5
9351 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9353 if diff conftest.exp conftest.er2 >/dev/null; then
9354 lt_cv_prog_compiler_static_works=yes
9357 lt_cv_prog_compiler_static_works=yes
9361 LDFLAGS="$save_LDFLAGS"
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9365 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9367 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9370 lt_prog_compiler_static=
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9380 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9381 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9382 $as_echo_n "(cached
) " >&6
9384 lt_cv_prog_compiler_c_o=no
9385 $RM -r conftest 2>/dev/null
9389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9391 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9392 # Insert the option either (1) after the last *FLAGS variable, or
9393 # (2) before a word containing "conftest.
", or (3) at the end.
9394 # Note that $ac_compile itself does not contain backslashes and begins
9395 # with a dollar sign (not a hyphen), so the echo should work correctly.
9396 lt_compile=`echo "$ac_compile" | $SED \
9397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9399 -e 's:$: $lt_compiler_flag:'`
9400 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9401 (eval "$lt_compile" 2>out/conftest.err)
9403 cat out/conftest.err >&5
9404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9405 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9407 # The compiler can only warn and ignore the option if not recognized
9408 # So say no if there are warnings
9409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9412 lt_cv_prog_compiler_c_o=yes
9417 # SGI C++ compiler will create directory out/ii_files/ for
9418 # template instantiation
9419 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9420 $RM out/* && rmdir out
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9427 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9435 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9436 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9437 $as_echo_n "(cached
) " >&6
9439 lt_cv_prog_compiler_c_o=no
9440 $RM -r conftest 2>/dev/null
9444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9446 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9447 # Insert the option either (1) after the last *FLAGS variable, or
9448 # (2) before a word containing "conftest.
", or (3) at the end.
9449 # Note that $ac_compile itself does not contain backslashes and begins
9450 # with a dollar sign (not a hyphen), so the echo should work correctly.
9451 lt_compile=`echo "$ac_compile" | $SED \
9452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9454 -e 's:$: $lt_compiler_flag:'`
9455 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9456 (eval "$lt_compile" 2>out/conftest.err)
9458 cat out/conftest.err >&5
9459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9462 # The compiler can only warn and ignore the option if not recognized
9463 # So say no if there are warnings
9464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9467 lt_cv_prog_compiler_c_o=yes
9472 # SGI C++ compiler will create directory out/ii_files/ for
9473 # template instantiation
9474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9475 $RM out/* && rmdir out
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9482 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9487 hard_links="nottested
"
9488 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9489 # do not overwrite the value of need_locks provided by the user
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9491 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9496 ln conftest.a conftest.b 2>&5 || hard_links=no
9497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9499 $as_echo "$hard_links" >&6; }
9500 if test "$hard_links" = no; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9502 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9515 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9518 allow_undefined_flag=
9519 always_export_symbols=no
9521 archive_expsym_cmds=
9522 compiler_needs_object=no
9523 enable_shared_with_static_runtimes=no
9524 export_dynamic_flag_spec=
9525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9526 hardcode_automatic=no
9528 hardcode_direct_absolute=no
9529 hardcode_libdir_flag_spec=
9530 hardcode_libdir_flag_spec_ld=
9531 hardcode_libdir_separator=
9533 hardcode_shlibpath_var=unsupported
9535 link_all_deplibs=unknown
9538 old_archive_from_new_cmds=
9539 old_archive_from_expsyms_cmds=
9540 thread_safe_flag_spec=
9541 whole_archive_flag_spec=
9542 # include_expsyms should be a list of space-separated symbols to be *always*
9543 # included in the symbol list
9545 # exclude_expsyms can be an extended regexp of symbols to exclude
9546 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9548 # as well as any symbol that contains `d'.
9549 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9551 # platforms (ab)use it in PIC code, but their linkers get confused if
9552 # the symbol is explicitly referenced. Since portable code cannot
9553 # rely on this symbol name, it's probably fine to never include it in
9554 # preloaded symbol tables.
9555 # Exclude shared library initialization/finalization symbols.
9556 extract_expsyms_cmds=
9559 cygwin* | mingw* | pw32* | cegcc*)
9560 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9561 # When not using gcc, we currently assume that we are using
9562 # Microsoft Visual C++.
9563 if test "$GCC" != yes; then
9568 # we just hope/assume this is gcc and not c89 (= MSVC++)
9578 # On some targets, GNU ld is compatible enough with the native linker
9579 # that we're better off using the native interface for both.
9580 lt_use_gnu_ld_interface=no
9581 if test "$with_gnu_ld" = yes; then
9584 # The AIX port of GNU ld has always aspired to compatibility
9585 # with the native linker. However, as the warning in the GNU ld
9586 # block says, versions before 2.19.5* couldn't really create working
9587 # shared libraries, regardless of the interface used.
9588 case `$LD -v 2>&1` in
9589 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9590 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9591 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9593 lt_use_gnu_ld_interface=yes
9598 lt_use_gnu_ld_interface=yes
9603 if test "$lt_use_gnu_ld_interface" = yes; then
9604 # If archive_cmds runs LD, not CC, wlarc should be empty
9607 # Set some defaults for GNU ld with shared library support. These
9608 # are reset later if shared libraries are not supported. Putting them
9609 # here allows them to be overridden if necessary.
9610 runpath_var=LD_RUN_PATH
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 export_dynamic_flag_spec='${wl}--export-dynamic'
9613 # ancient GNU ld didn't support --whole-archive et. al.
9614 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9615 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9617 whole_archive_flag_spec=
9619 supports_anon_versioning=no
9620 case `$LD -v 2>&1` in
9621 *GNU\ gold*) supports_anon_versioning=yes ;;
9622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9625 *\ 2.11.*) ;; # other 2.11 versions
9626 *) supports_anon_versioning=yes ;;
9629 # See if GNU ld supports shared libraries.
9632 # On AIX/PPC, the GNU linker is very broken
9633 if test "$host_cpu" != ia64; then
9637 *** Warning: the GNU linker, at least up to release 2.19, is reported
9638 *** to be unable to reliably create shared libraries on AIX.
9639 *** Therefore, libtool is disabling shared libraries support. If you
9640 *** really care for shared libraries, you may want to install binutils
9641 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9642 *** You will then need to restart the configuration process.
9651 # see comment about AmigaOS4 .so support
9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653 archive_expsym_cmds=''
9656 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)'
9657 hardcode_libdir_flag_spec
='-L$libdir'
9658 hardcode_minus_L
=yes
9664 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9665 allow_undefined_flag
=unsupported
9666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9667 # support --undefined. This deserves some investigation. FIXME
9668 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9674 cygwin
* | mingw
* | pw32
* | cegcc
*)
9675 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9676 # as there is no search path for DLLs.
9677 hardcode_libdir_flag_spec
='-L$libdir'
9678 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9679 allow_undefined_flag
=unsupported
9680 always_export_symbols
=no
9681 enable_shared_with_static_runtimes
=yes
9682 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9684 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9685 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9686 # If the export-symbols file already is a .def file (1st line
9687 # is EXPORTS), use it as is; otherwise, prepend...
9688 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9689 cp $export_symbols $output_objdir/$soname.def;
9691 echo EXPORTS > $output_objdir/$soname.def;
9692 cat $export_symbols >> $output_objdir/$soname.def;
9694 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9701 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9702 link_all_deplibs
=yes
9707 hardcode_shlibpath_var
=no
9708 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9709 export_dynamic_flag_spec
='${wl}-E'
9710 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9711 # Instead, shared libraries are loaded at an image base (0x10000000 by
9712 # default) and relocated if they conflict, which is a slow very memory
9713 # consuming and fragmenting process. To avoid this, we pick a random,
9714 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9715 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9716 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9717 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9720 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9722 if test "$host_os" = linux-dietlibc
; then
9723 case $cc_basename in
9724 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9727 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9728 && test "$tmp_diet" = no
9730 tmp_addflag
=' $pic_flag'
9731 tmp_sharedflag
='-shared'
9732 case $cc_basename,$host_cpu in
9733 pgcc
*) # Portland Group C compiler
9734 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9735 tmp_addflag
=' $pic_flag'
9737 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9738 # Portland Group f77 and f90 compilers
9739 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9740 tmp_addflag
=' $pic_flag -Mnomain' ;;
9741 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9742 tmp_addflag
=' -i_dynamic' ;;
9743 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9744 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9745 ifc
* | ifort
*) # Intel Fortran compiler
9746 tmp_addflag
=' -nofor_main' ;;
9747 lf95
*) # Lahey Fortran 8.1
9748 whole_archive_flag_spec
=
9749 tmp_sharedflag
='--shared' ;;
9750 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9751 tmp_sharedflag
='-qmkshrobj'
9753 nvcc
*) # Cuda Compiler Driver 2.2
9754 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9755 compiler_needs_object
=yes
9758 case `$CC -V 2>&1 | sed 5q` in
9759 *Sun\ C
*) # Sun C 5.9
9760 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9761 compiler_needs_object
=yes
9762 tmp_sharedflag
='-G' ;;
9763 *Sun\ F
*) # Sun Fortran 8.3
9764 tmp_sharedflag
='-G' ;;
9766 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9768 if test "x$supports_anon_versioning" = xyes
; then
9769 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9771 echo "local: *; };" >> $output_objdir/$libname.ver~
9772 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9775 case $cc_basename in
9776 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9777 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9778 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9779 hardcode_libdir_flag_spec
=
9780 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9781 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9782 if test "x$supports_anon_versioning" = xyes
; then
9783 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9785 echo "local: *; };" >> $output_objdir/$libname.ver~
9786 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9796 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9797 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9800 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9806 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9810 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9811 *** create shared libraries on Solaris systems. Therefore, libtool
9812 *** is disabling shared libraries support. We urge you to upgrade GNU
9813 *** binutils to release 2.9.1 or newer. Another option is to modify
9814 *** your PATH or compiler configuration so that the native linker is
9815 *** used, and then restart.
9818 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9819 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9826 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9827 case `$LD -v 2>&1` in
9828 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9832 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9833 *** reliably create shared libraries on SCO systems. Therefore, libtool
9834 *** is disabling shared libraries support. We urge you to upgrade GNU
9835 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9836 *** your PATH or compiler configuration so that the native linker is
9837 *** used, and then restart.
9842 # For security reasons, it is highly recommended that you always
9843 # use absolute paths for naming shared libraries, and exclude the
9844 # DT_RUNPATH tag from executables and libraries. But doing so
9845 # requires that you compile everything twice, which is a pain.
9846 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9847 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9848 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9849 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9858 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9861 hardcode_shlibpath_var
=no
9865 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9866 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9867 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9874 if test "$ld_shlibs" = no
; then
9876 hardcode_libdir_flag_spec
=
9877 export_dynamic_flag_spec
=
9878 whole_archive_flag_spec
=
9881 # PORTME fill in a description of your system's linker (not GNU ld)
9884 allow_undefined_flag
=unsupported
9885 always_export_symbols
=yes
9886 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'
9887 # Note: this linker hardcodes the directories in LIBPATH if there
9888 # are no directories specified by -L.
9889 hardcode_minus_L
=yes
9890 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9891 # Neither direct hardcoding nor static linking is supported with a
9893 hardcode_direct
=unsupported
9898 if test "$host_cpu" = ia64
; then
9899 # On IA64, the linker does run time linking by default, so we don't
9900 # have to do anything special.
9901 aix_use_runtimelinking
=no
9902 exp_sym_flag
='-Bexport'
9905 # If we're using GNU nm, then we don't want the "-C" option.
9906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9907 # Also, AIX nm treats weak defined symbols like other global
9908 # defined symbols, whereas GNU nm marks them as "W".
9909 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9910 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9912 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9914 aix_use_runtimelinking
=no
9916 # Test if we are trying to use run time linking or normal
9917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9918 # need to do runtime linking.
9919 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9920 for ld_flag
in $LDFLAGS; do
9921 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9922 aix_use_runtimelinking
=yes
9929 exp_sym_flag
='-bexport'
9930 no_entry_flag
='-bnoentry'
9933 # When large executables or shared objects are built, AIX ld can
9934 # have problems creating the table of contents. If linking a library
9935 # or program results in "error TOC overflow" add -mminimal-toc to
9936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9941 hardcode_direct_absolute
=yes
9942 hardcode_libdir_separator
=':'
9943 link_all_deplibs
=yes
9944 file_list_spec
='${wl}-f,'
9946 if test "$GCC" = yes; then
9947 case $host_os in aix4.
[012]|aix4.
[012].
*)
9948 # We only want to do this on AIX 4.2 and lower, the check
9949 # below for broken collect2 doesn't work under 4.3+
9950 collect2name
=`${CC} -print-prog-name=collect2`
9951 if test -f "$collect2name" &&
9952 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9954 # We have reworked collect2
9957 # We have old collect2
9958 hardcode_direct
=unsupported
9959 # It fails to find uninstalled libraries when the uninstalled
9960 # path is not listed in the libpath. Setting hardcode_minus_L
9961 # to unsupported forces relinking
9962 hardcode_minus_L
=yes
9963 hardcode_libdir_flag_spec
='-L$libdir'
9964 hardcode_libdir_separator
=
9968 shared_flag
='-shared'
9969 if test "$aix_use_runtimelinking" = yes; then
9970 shared_flag
="$shared_flag "'${wl}-G'
9974 if test "$host_cpu" = ia64
; then
9975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9976 # chokes on -Wl,-G. The following line is correct:
9979 if test "$aix_use_runtimelinking" = yes; then
9980 shared_flag
='${wl}-G'
9982 shared_flag
='${wl}-bM:SRE'
9987 export_dynamic_flag_spec
='${wl}-bexpall'
9988 # It seems that -bexpall does not export symbols beginning with
9989 # underscore (_), so it is better to generate a list of symbols to export.
9990 always_export_symbols
=yes
9991 if test "$aix_use_runtimelinking" = yes; then
9992 # Warning - without using the other runtime loading flags (-brtl),
9993 # -berok will link without error, but may produce a broken library.
9994 allow_undefined_flag
='-berok'
9995 # Determine the default libpath from the value encoded in an
9997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10008 if ac_fn_c_try_link
"$LINENO"; then :
10010 lt_aix_libpath_sed
='
10011 /Import File Strings/,/^$/ {
10017 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10018 # Check for a 64-bit object if we didn't find anything.
10019 if test -z "$aix_libpath"; then
10020 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10023 rm -f core conftest.err conftest.
$ac_objext \
10024 conftest
$ac_exeext conftest.
$ac_ext
10025 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10027 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10028 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10030 if test "$host_cpu" = ia64
; then
10031 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10032 allow_undefined_flag
="-z nodefs"
10033 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10035 # Determine the default libpath from the value encoded in an
10036 # empty executable.
10037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10048 if ac_fn_c_try_link
"$LINENO"; then :
10050 lt_aix_libpath_sed
='
10051 /Import File Strings/,/^$/ {
10057 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10058 # Check for a 64-bit object if we didn't find anything.
10059 if test -z "$aix_libpath"; then
10060 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10063 rm -f core conftest.err conftest.
$ac_objext \
10064 conftest
$ac_exeext conftest.
$ac_ext
10065 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10067 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10068 # Warning - without using the other run time loading flags,
10069 # -berok will link without error, but may produce a broken library.
10070 no_undefined_flag
=' ${wl}-bernotok'
10071 allow_undefined_flag
=' ${wl}-berok'
10072 if test "$with_gnu_ld" = yes; then
10073 # We only use this code for GNU lds that support --whole-archive.
10074 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10076 # Exported symbols can be pulled into shared objects from archives
10077 whole_archive_flag_spec
='$convenience'
10079 archive_cmds_need_lc
=yes
10080 # This is similar to how AIX traditionally builds its shared libraries.
10081 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10089 # see comment about AmigaOS4 .so support
10090 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10091 archive_expsym_cmds
=''
10094 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)'
10095 hardcode_libdir_flag_spec
='-L$libdir'
10096 hardcode_minus_L
=yes
10102 export_dynamic_flag_spec
=-rdynamic
10105 cygwin
* | mingw
* | pw32
* | cegcc
*)
10106 # When not using gcc, we currently assume that we are using
10107 # Microsoft Visual C++.
10108 # hardcode_libdir_flag_spec is actually meaningless, as there is
10109 # no search path for DLLs.
10110 hardcode_libdir_flag_spec
=' '
10111 allow_undefined_flag
=unsupported
10112 # Tell ltmain to make .lib files, not .a files.
10114 # Tell ltmain to make .dll files, not .so files.
10116 # FIXME: Setting linknames here is a bad hack.
10117 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10118 # The linker will automatically build a .lib file if we build a DLL.
10119 old_archive_from_new_cmds
='true'
10120 # FIXME: Should let the user specify the lib program.
10121 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10122 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10123 enable_shared_with_static_runtimes
=yes
10126 darwin
* | rhapsody
*)
10129 archive_cmds_need_lc
=no
10131 hardcode_automatic
=yes
10132 hardcode_shlibpath_var
=unsupported
10133 if test "$lt_cv_ld_force_load" = "yes"; then
10134 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10136 whole_archive_flag_spec
=''
10138 link_all_deplibs
=yes
10139 allow_undefined_flag
="$_lt_dar_allow_undefined"
10140 case $cc_basename in
10141 ifort
*) _lt_dar_can_shared
=yes ;;
10142 *) _lt_dar_can_shared
=$GCC ;;
10144 if test "$_lt_dar_can_shared" = "yes"; then
10145 output_verbose_link_cmd
=func_echo_all
10146 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10147 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10148 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10149 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10158 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10159 hardcode_libdir_flag_spec
='-L$libdir'
10160 hardcode_shlibpath_var
=no
10163 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10164 # support. Future versions do this automatically, but an explicit c++rt0.o
10165 # does not break anything, and helps significantly (at the cost of a little
10168 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10169 hardcode_libdir_flag_spec
='-R$libdir'
10170 hardcode_direct
=yes
10171 hardcode_shlibpath_var
=no
10174 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10176 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_direct
=yes
10178 hardcode_minus_L
=yes
10179 hardcode_shlibpath_var
=no
10182 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10183 freebsd
* | dragonfly
*)
10184 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10185 hardcode_libdir_flag_spec
='-R$libdir'
10186 hardcode_direct
=yes
10187 hardcode_shlibpath_var
=no
10191 if test "$GCC" = yes; then
10192 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'
10194 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'
10196 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10197 hardcode_libdir_separator
=:
10198 hardcode_direct
=yes
10200 # hardcode_minus_L: Not really in the search PATH,
10201 # but as the default location of the library.
10202 hardcode_minus_L
=yes
10203 export_dynamic_flag_spec
='${wl}-E'
10207 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10208 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10210 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10212 if test "$with_gnu_ld" = no
; then
10213 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10214 hardcode_libdir_flag_spec_ld
='+b $libdir'
10215 hardcode_libdir_separator
=:
10216 hardcode_direct
=yes
10217 hardcode_direct_absolute
=yes
10218 export_dynamic_flag_spec
='${wl}-E'
10219 # hardcode_minus_L: Not really in the search PATH,
10220 # but as the default location of the library.
10221 hardcode_minus_L
=yes
10226 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10229 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10248 # Older versions of the 11.00 compiler do not understand -b yet
10249 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10251 $as_echo_n "checking if $CC understands -b... " >&6; }
10252 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10255 lt_cv_prog_compiler__b
=no
10256 save_LDFLAGS
="$LDFLAGS"
10257 LDFLAGS
="$LDFLAGS -b"
10258 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10259 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10260 # The linker can only warn and ignore the option if not recognized
10261 # So say no if there are warnings
10262 if test -s conftest.err
; then
10263 # Append any errors to the config.log.
10264 cat conftest.err
1>&5
10265 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10266 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10267 if diff conftest.exp conftest.er2
>/dev
/null
; then
10268 lt_cv_prog_compiler__b
=yes
10271 lt_cv_prog_compiler__b
=yes
10275 LDFLAGS
="$save_LDFLAGS"
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10279 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10281 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10282 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10284 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10290 if test "$with_gnu_ld" = no
; then
10291 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10292 hardcode_libdir_separator
=:
10297 hardcode_shlibpath_var
=no
10300 hardcode_direct
=yes
10301 hardcode_direct_absolute
=yes
10302 export_dynamic_flag_spec
='${wl}-E'
10304 # hardcode_minus_L: Not really in the search PATH,
10305 # but as the default location of the library.
10306 hardcode_minus_L
=yes
10312 irix5
* | irix6
* | nonstopux
*)
10313 if test "$GCC" = yes; then
10314 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10315 # Try to use the -exported_symbol ld option, if it does not
10316 # work, assume that -exports_file does not work either and
10317 # implicitly export all symbols.
10318 save_LDFLAGS
="$LDFLAGS"
10319 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10324 if ac_fn_c_try_link
"$LINENO"; then :
10325 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10328 rm -f core conftest.err conftest.
$ac_objext \
10329 conftest
$ac_exeext conftest.
$ac_ext
10330 LDFLAGS
="$save_LDFLAGS"
10332 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10333 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10335 archive_cmds_need_lc
='no'
10336 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10337 hardcode_libdir_separator
=:
10339 link_all_deplibs
=yes
10343 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10344 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10346 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10348 hardcode_libdir_flag_spec
='-R$libdir'
10349 hardcode_direct
=yes
10350 hardcode_shlibpath_var
=no
10354 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_direct
=yes
10356 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10357 hardcode_libdir_separator
=:
10358 hardcode_shlibpath_var
=no
10365 if test -f /usr
/libexec
/ld.so
; then
10366 hardcode_direct
=yes
10367 hardcode_shlibpath_var
=no
10368 hardcode_direct_absolute
=yes
10369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10370 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10371 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10372 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10373 export_dynamic_flag_spec
='${wl}-E'
10376 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10377 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_libdir_flag_spec
='-R$libdir'
10381 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10382 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10392 hardcode_libdir_flag_spec
='-L$libdir'
10393 hardcode_minus_L
=yes
10394 allow_undefined_flag
=unsupported
10395 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'
10396 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10400 if test "$GCC" = yes; then
10401 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10402 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10404 allow_undefined_flag
=' -expect_unresolved \*'
10405 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10407 archive_cmds_need_lc
='no'
10408 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10409 hardcode_libdir_separator
=:
10412 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10413 if test "$GCC" = yes; then
10414 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10415 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10416 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10418 allow_undefined_flag
=' -expect_unresolved \*'
10419 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10420 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10421 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10423 # Both c and cxx compiler support -rpath directly
10424 hardcode_libdir_flag_spec
='-rpath $libdir'
10426 archive_cmds_need_lc
='no'
10427 hardcode_libdir_separator
=:
10431 no_undefined_flag
=' -z defs'
10432 if test "$GCC" = yes; then
10434 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10435 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10436 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10438 case `$CC -V 2>&1` in
10441 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10442 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10447 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10448 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10449 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10453 hardcode_libdir_flag_spec
='-R$libdir'
10454 hardcode_shlibpath_var
=no
10456 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10458 # The compiler driver will combine and reorder linker options,
10459 # but understands `-z linker_flag'. GCC discards it without `$wl',
10460 # but is careful enough not to reorder.
10461 # Supported since Solaris 2.6 (maybe 2.5.1?)
10462 if test "$GCC" = yes; then
10463 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10465 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10469 link_all_deplibs
=yes
10473 if test "x$host_vendor" = xsequent
; then
10474 # Use $CC to link under sequent, because it throws in some extra .o
10475 # files that make .init and .fini sections work.
10476 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10478 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10480 hardcode_libdir_flag_spec
='-L$libdir'
10481 hardcode_direct
=yes
10482 hardcode_minus_L
=yes
10483 hardcode_shlibpath_var
=no
10487 case $host_vendor in
10489 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490 hardcode_direct
=yes # is this really true???
10493 ## LD is ld it makes a PLAMLIB
10494 ## CC just makes a GrossModule.
10495 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10496 reload_cmds
='$CC -r -o $output$reload_objs'
10500 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10501 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10504 runpath_var
='LD_RUN_PATH'
10505 hardcode_shlibpath_var
=no
10509 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510 hardcode_shlibpath_var
=no
10511 export_dynamic_flag_spec
='-Bexport'
10515 if test -d /usr
/nec
; then
10516 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517 hardcode_shlibpath_var
=no
10518 runpath_var
=LD_RUN_PATH
10519 hardcode_runpath_var
=yes
10524 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10525 no_undefined_flag
='${wl}-z,text'
10526 archive_cmds_need_lc
=no
10527 hardcode_shlibpath_var
=no
10528 runpath_var
='LD_RUN_PATH'
10530 if test "$GCC" = yes; then
10531 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10532 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10534 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10535 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10539 sysv5
* | sco3.2v5
* | sco5v6
*)
10540 # Note: We can NOT use -z defs as we might desire, because we do not
10541 # link with -lc, and that would cause any symbols used from libc to
10542 # always be unresolved, which means just about no library would
10543 # ever link correctly. If we're not using GNU ld we use -z text
10544 # though, which does catch some bad symbols but isn't as heavy-handed
10546 no_undefined_flag
='${wl}-z,text'
10547 allow_undefined_flag
='${wl}-z,nodefs'
10548 archive_cmds_need_lc
=no
10549 hardcode_shlibpath_var
=no
10550 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10551 hardcode_libdir_separator
=':'
10552 link_all_deplibs
=yes
10553 export_dynamic_flag_spec
='${wl}-Bexport'
10554 runpath_var
='LD_RUN_PATH'
10556 if test "$GCC" = yes; then
10557 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10566 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10567 hardcode_libdir_flag_spec
='-L$libdir'
10568 hardcode_shlibpath_var
=no
10576 if test x
$host_vendor = xsni
; then
10578 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10579 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10586 $as_echo "$ld_shlibs" >&6; }
10587 test "$ld_shlibs" = no
&& can_build_shared
=no
10589 with_gnu_ld
=$with_gnu_ld
10606 # Do we need to explicitly link libc?
10608 case "x$archive_cmds_need_lc" in
10610 # Assume -lc should be added
10611 archive_cmds_need_lc
=yes
10613 if test "$enable_shared" = yes && test "$GCC" = yes; then
10614 case $archive_cmds in
10616 # FIXME: we may have to deal with multi-command sequences.
10619 # Test whether the compiler implicitly links with -lc since on some
10620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10621 # to ld, don't add -lc before -lgcc.
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10623 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10624 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10628 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10631 (eval $ac_compile) 2>&5
10633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10634 test $ac_status = 0; } 2>conftest.err
; then
10637 libobjs
=conftest.
$ac_objext
10639 wl
=$lt_prog_compiler_wl
10640 pic_flag
=$lt_prog_compiler_pic
10646 lt_save_allow_undefined_flag
=$allow_undefined_flag
10647 allow_undefined_flag
=
10648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10649 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10652 test $ac_status = 0; }
10654 lt_cv_archive_cmds_need_lc
=no
10656 lt_cv_archive_cmds_need_lc
=yes
10658 allow_undefined_flag
=$lt_save_allow_undefined_flag
10660 cat conftest.err
1>&5
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10666 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10667 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10831 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10833 if test "$GCC" = yes; then
10835 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10836 *) lt_awk_arg
="/^libraries:/" ;;
10839 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10840 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10842 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10843 case $lt_search_path_spec in
10845 # if the path contains ";" then we assume it to be the separator
10846 # otherwise default to the standard path separator (i.e. ":") - it is
10847 # assumed that no part of a normal pathname contains ";" but that should
10848 # okay in the real world where ";" in dirpaths is itself problematic.
10849 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10852 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10855 # Ok, now we have the path, separated by spaces, we can step through it
10856 # and add multilib dir if necessary.
10857 lt_tmp_lt_search_path_spec
=
10858 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10859 for lt_sys_path
in $lt_search_path_spec; do
10860 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10861 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10863 test -d "$lt_sys_path" && \
10864 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10867 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10868 BEGIN {RS=" "; FS="/|\n";} {
10871 for (lt_i = NF; lt_i > 0; lt_i--) {
10872 if ($lt_i != "" && $lt_i != ".") {
10873 if ($lt_i == "..") {
10876 if (lt_count == 0) {
10877 lt_foo="/" $lt_i lt_foo;
10884 if (lt_foo != "") { lt_freq[lt_foo]++; }
10885 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10887 # AWK program above erroneously prepends '/' to C:/dos/paths
10890 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10891 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10893 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10895 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10897 library_names_spec
=
10898 libname_spec
='lib$name'
10902 postuninstall_cmds
=
10906 shlibpath_overrides_runpath
=unknown
10908 dynamic_linker
="$host_os ld.so"
10909 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10910 need_lib_prefix
=unknown
10911 hardcode_into_libs
=no
10913 # when you set need_version to no, make sure it does not cause -set_version
10914 # flags to be left without arguments
10915 need_version
=unknown
10920 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10921 shlibpath_var
=LIBPATH
10923 # AIX 3 has no versioning support, so we append a major version to the name.
10924 soname_spec
='${libname}${release}${shared_ext}$major'
10931 hardcode_into_libs
=yes
10932 if test "$host_cpu" = ia64
; then
10933 # AIX 5 supports IA64
10934 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10935 shlibpath_var
=LD_LIBRARY_PATH
10937 # With GCC up to 2.95.x, collect2 would create an import file
10938 # for dependence libraries. The import file would start with
10939 # the line `#! .'. This would cause the generated library to
10940 # depend on `.', always an invalid library. This was fixed in
10941 # development snapshots of GCC prior to 3.0.
10943 aix4 | aix4.
[01] | aix4.
[01].
*)
10944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10946 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10949 can_build_shared
=no
10953 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10954 # soname into executable. Probably we can add versioning support to
10955 # collect2, so additional links can be useful in future.
10956 if test "$aix_use_runtimelinking" = yes; then
10957 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10958 # instead of lib<name>.a to let people know that these are not
10959 # typical AIX shared libraries.
10960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 # We preserve .a as extension for shared libraries through AIX4.2
10963 # and later when we are not doing run time linking.
10964 library_names_spec
='${libname}${release}.a $libname.a'
10965 soname_spec
='${libname}${release}${shared_ext}$major'
10967 shlibpath_var
=LIBPATH
10974 # Since July 2007 AmigaOS4 officially supports .so libraries.
10975 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 library_names_spec
='$libname.ixlibrary $libname.a'
10980 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10981 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10987 library_names_spec
='${libname}${shared_ext}'
10988 dynamic_linker
="$host_os ld.so"
10989 shlibpath_var
=LIBRARY_PATH
10995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec
='${libname}${release}${shared_ext}$major'
10997 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10998 shlibpath_var
=LD_LIBRARY_PATH
10999 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11000 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11001 # the default ld.so.conf also contains /usr/contrib/lib and
11002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11003 # libtool to hard-code these into programs
11006 cygwin
* | mingw
* | pw32
* | cegcc
*)
11007 version_type
=windows
11012 case $GCC,$host_os in
11013 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11014 library_names_spec
='$libname.dll.a'
11015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11016 postinstall_cmds
='base_file=`basename \${file}`~
11017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11018 dldir=$destdir/`dirname \$dlpath`~
11019 test -d \$dldir || mkdir -p \$dldir~
11020 $install_prog $dir/$dlname \$dldir/$dlname~
11021 chmod a+x \$dldir/$dlname~
11022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11023 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11025 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11026 dlpath=$dir/\$dldll~
11028 shlibpath_overrides_runpath
=yes
11032 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11033 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11035 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11038 # MinGW DLLs use traditional 'lib' prefix
11039 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11042 # pw32 DLLs use 'pw' prefix rather than 'lib'
11043 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11049 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11052 dynamic_linker
='Win32 ld.exe'
11053 # FIXME: first we should search . and the directory the executable is in
11057 darwin
* | rhapsody
*)
11058 dynamic_linker
="$host_os dyld"
11059 version_type
=darwin
11062 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11063 soname_spec
='${libname}${release}${major}$shared_ext'
11064 shlibpath_overrides_runpath
=yes
11065 shlibpath_var
=DYLD_LIBRARY_PATH
11066 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11068 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11069 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11077 soname_spec
='${libname}${release}${shared_ext}$major'
11078 shlibpath_var
=LD_LIBRARY_PATH
11081 freebsd
* | dragonfly
*)
11082 # DragonFly does not have aout. When/if they implement a new
11083 # versioning mechanism, adjust this.
11084 if test -x /usr
/bin
/objformat
; then
11085 objformat
=`/usr/bin/objformat`
11088 freebsd
[23].
*) objformat
=aout
;;
11089 *) objformat
=elf
;;
11092 version_type
=freebsd-
$objformat
11093 case $version_type in
11095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11100 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11104 shlibpath_var
=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath
=yes
11109 freebsd3.
[01]* | freebsdelf3.
[01]*)
11110 shlibpath_overrides_runpath
=yes
11111 hardcode_into_libs
=yes
11113 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11114 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11115 shlibpath_overrides_runpath
=no
11116 hardcode_into_libs
=yes
11118 *) # from 4.6 on, and DragonFly
11119 shlibpath_overrides_runpath
=yes
11120 hardcode_into_libs
=yes
11129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11130 soname_spec
='${libname}${release}${shared_ext}$major'
11131 shlibpath_var
=LD_LIBRARY_PATH
11132 hardcode_into_libs
=yes
11139 dynamic_linker
="$host_os runtime_loader"
11140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11141 soname_spec
='${libname}${release}${shared_ext}$major'
11142 shlibpath_var
=LIBRARY_PATH
11143 shlibpath_overrides_runpath
=yes
11144 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11145 hardcode_into_libs
=yes
11148 hpux9
* | hpux10
* | hpux11
*)
11149 # Give a soname corresponding to the major version so that dld.sl refuses to
11150 # link against other versions.
11157 hardcode_into_libs
=yes
11158 dynamic_linker
="$host_os dld.so"
11159 shlibpath_var
=LD_LIBRARY_PATH
11160 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 soname_spec
='${libname}${release}${shared_ext}$major'
11163 if test "X$HPUX_IA64_MODE" = X32
; then
11164 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11166 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11168 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11172 hardcode_into_libs
=yes
11173 dynamic_linker
="$host_os dld.sl"
11174 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11175 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec
='${libname}${release}${shared_ext}$major'
11178 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11179 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11183 dynamic_linker
="$host_os dld.sl"
11184 shlibpath_var
=SHLIB_PATH
11185 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11186 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec
='${libname}${release}${shared_ext}$major'
11190 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11191 postinstall_cmds
='chmod 555 $lib'
11192 # or fails outright, so override atomically:
11193 install_override_mode
=555
11200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11201 soname_spec
='${libname}${release}${shared_ext}$major'
11202 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11203 shlibpath_var
=LD_LIBRARY_PATH
11204 shlibpath_overrides_runpath
=no
11205 hardcode_into_libs
=yes
11208 irix5
* | irix6
* | nonstopux
*)
11210 nonstopux
*) version_type
=nonstopux
;;
11212 if test "$lt_cv_prog_gnu_ld" = yes; then
11220 soname_spec
='${libname}${release}${shared_ext}$major'
11221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11223 irix5
* | nonstopux
*)
11224 libsuff
= shlibsuff
=
11227 case $LD in # libtool.m4 will add one of these switches to LD
11228 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11229 libsuff
= shlibsuff
= libmagic
=32-bit;;
11230 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11231 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11232 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11233 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11234 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11238 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11239 shlibpath_overrides_runpath
=no
11240 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11241 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11242 hardcode_into_libs
=yes
11245 # No shared lib support for Linux oldld, aout, or coff.
11246 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11250 # This must be Linux ELF.
11251 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256 soname_spec
='${libname}${release}${shared_ext}$major'
11257 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11258 shlibpath_var
=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath
=no
11261 # Some binutils ld are patched to set DT_RUNPATH
11262 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11263 $as_echo_n "(cached) " >&6
11265 lt_cv_shlibpath_overrides_runpath
=no
11266 save_LDFLAGS
=$LDFLAGS
11267 save_libdir
=$libdir
11268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11281 if ac_fn_c_try_link
"$LINENO"; then :
11282 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11283 lt_cv_shlibpath_overrides_runpath
=yes
11286 rm -f core conftest.err conftest.
$ac_objext \
11287 conftest
$ac_exeext conftest.
$ac_ext
11288 LDFLAGS
=$save_LDFLAGS
11289 libdir
=$save_libdir
11293 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11295 # This implies no fast_install, which is unacceptable.
11296 # Some rework will be needed to allow for fast_install
11297 # before this can be enabled.
11298 hardcode_into_libs
=yes
11300 # Append ld.so.conf contents to the search path
11301 if test -f /etc
/ld.so.conf
; then
11302 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11303 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11306 # We used to test for /lib/ld.so.1 and disable shared libraries on
11307 # powerpc, because MkLinux only supported shared libraries with the
11308 # GNU dynamic linker. Since this was broken with cross compilers,
11309 # most powerpc-linux boxes support dynamic linking these days and
11310 # people can always --disable-shared, the test was removed, and we
11311 # assume the GNU/Linux dynamic linker is in use.
11312 dynamic_linker
='GNU/Linux ld.so'
11319 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11320 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11321 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11322 dynamic_linker
='NetBSD (a.out) ld.so'
11324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11325 soname_spec
='${libname}${release}${shared_ext}$major'
11326 dynamic_linker
='NetBSD ld.elf_so'
11328 shlibpath_var
=LD_LIBRARY_PATH
11329 shlibpath_overrides_runpath
=yes
11330 hardcode_into_libs
=yes
11335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336 shlibpath_var
=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath
=yes
11344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 soname_spec
='${libname}${release}${shared_ext}$major'
11346 shlibpath_var
=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath
=no
11348 hardcode_into_libs
=yes
11349 dynamic_linker
='ldqnx.so'
11354 sys_lib_dlsearch_path_spec
="/usr/lib"
11356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11358 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11359 *) need_version
=no
;;
11361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11362 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11363 shlibpath_var
=LD_LIBRARY_PATH
11364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11366 openbsd2.
[89] | openbsd2.
[89].
*)
11367 shlibpath_overrides_runpath
=no
11370 shlibpath_overrides_runpath
=yes
11374 shlibpath_overrides_runpath
=yes
11379 libname_spec
='$name'
11382 library_names_spec
='$libname${shared_ext} $libname.a'
11383 dynamic_linker
='OS/2 ld.exe'
11384 shlibpath_var
=LIBPATH
11387 osf3
* | osf4
* | osf5
*)
11391 soname_spec
='${libname}${release}${shared_ext}$major'
11392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393 shlibpath_var
=LD_LIBRARY_PATH
11394 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11395 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 soname_spec
='${libname}${release}${shared_ext}$major'
11408 shlibpath_var
=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath
=yes
11410 hardcode_into_libs
=yes
11411 # ldd complains unless libraries are executable
11412 postinstall_cmds
='chmod +x $lib'
11417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11418 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11419 shlibpath_var
=LD_LIBRARY_PATH
11420 shlibpath_overrides_runpath
=yes
11421 if test "$with_gnu_ld" = yes; then
11429 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430 soname_spec
='${libname}${release}${shared_ext}$major'
11431 shlibpath_var
=LD_LIBRARY_PATH
11432 case $host_vendor in
11434 shlibpath_overrides_runpath
=no
11436 runpath_var
=LD_RUN_PATH
11444 shlibpath_overrides_runpath
=no
11445 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11451 if test -d /usr
/nec
;then
11453 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11454 soname_spec
='$libname${shared_ext}.$major'
11455 shlibpath_var
=LD_LIBRARY_PATH
11459 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11460 version_type
=freebsd-elf
11463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11464 soname_spec
='${libname}${release}${shared_ext}$major'
11465 shlibpath_var
=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath
=yes
11467 hardcode_into_libs
=yes
11468 if test "$with_gnu_ld" = yes; then
11469 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11471 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11474 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11478 sys_lib_dlsearch_path_spec
='/usr/lib'
11482 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11486 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487 shlibpath_var
=LD_LIBRARY_PATH
11488 shlibpath_overrides_runpath
=no
11489 hardcode_into_libs
=yes
11494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 soname_spec
='${libname}${release}${shared_ext}$major'
11496 shlibpath_var
=LD_LIBRARY_PATH
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11504 $as_echo "$dynamic_linker" >&6; }
11505 test "$dynamic_linker" = no
&& can_build_shared
=no
11507 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11508 if test "$GCC" = yes; then
11509 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11512 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11513 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11515 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11516 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11611 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11613 if test -n "$hardcode_libdir_flag_spec" ||
11614 test -n "$runpath_var" ||
11615 test "X$hardcode_automatic" = "Xyes" ; then
11617 # We can hardcode non-existent directories.
11618 if test "$hardcode_direct" != no
&&
11619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11620 # have to relink, otherwise we might link with an installed library
11621 # when we should be linking with a yet-to-be-installed one
11622 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11623 test "$hardcode_minus_L" != no
; then
11624 # Linking always hardcodes the temporary library directory.
11625 hardcode_action
=relink
11627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11628 hardcode_action
=immediate
11631 # We cannot hardcode anything, or else we can only hardcode existing
11633 hardcode_action
=unsupported
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11636 $as_echo "$hardcode_action" >&6; }
11638 if test "$hardcode_action" = relink ||
11639 test "$inherit_rpath" = yes; then
11640 # Fast installation is not supported
11641 enable_fast_install
=no
11642 elif test "$shlibpath_overrides_runpath" = yes ||
11643 test "$enable_shared" = no
; then
11644 # Fast installation is not necessary
11645 enable_fast_install
=needless
11653 if test "x$enable_dlopen" != xyes
; then
11654 enable_dlopen
=unknown
11655 enable_dlopen_self
=unknown
11656 enable_dlopen_self_static
=unknown
11663 lt_cv_dlopen
="load_add_on"
11665 lt_cv_dlopen_self
=yes
11668 mingw
* | pw32
* | cegcc
*)
11669 lt_cv_dlopen
="LoadLibrary"
11674 lt_cv_dlopen
="dlopen"
11679 # if libdl is installed we need to link against it
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11685 ac_check_lib_save_LIBS
=$LIBS
11687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11705 if ac_fn_c_try_link
"$LINENO"; then :
11706 ac_cv_lib_dl_dlopen
=yes
11708 ac_cv_lib_dl_dlopen
=no
11710 rm -f core conftest.err conftest.
$ac_objext \
11711 conftest
$ac_exeext conftest.
$ac_ext
11712 LIBS
=$ac_check_lib_save_LIBS
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11716 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11717 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11720 lt_cv_dlopen
="dyld"
11722 lt_cv_dlopen_self
=yes
11729 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11730 if test "x$ac_cv_func_shl_load" = x
""yes; then :
11731 lt_cv_dlopen
="shl_load"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11734 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11735 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11738 ac_check_lib_save_LIBS
=$LIBS
11740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11743 /* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11753 return shl_load ();
11758 if ac_fn_c_try_link
"$LINENO"; then :
11759 ac_cv_lib_dld_shl_load
=yes
11761 ac_cv_lib_dld_shl_load
=no
11763 rm -f core conftest.err conftest.
$ac_objext \
11764 conftest
$ac_exeext conftest.
$ac_ext
11765 LIBS
=$ac_check_lib_save_LIBS
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11768 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11769 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
11770 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11772 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11773 if test "x$ac_cv_func_dlopen" = x
""yes; then :
11774 lt_cv_dlopen
="dlopen"
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11777 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11779 $as_echo_n "(cached) " >&6
11781 ac_check_lib_save_LIBS
=$LIBS
11783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11786 /* Override any GCC internal prototype to avoid an error.
11787 Use char because int might match the return type of a GCC
11788 builtin and then its argument prototype would still apply. */
11801 if ac_fn_c_try_link
"$LINENO"; then :
11802 ac_cv_lib_dl_dlopen
=yes
11804 ac_cv_lib_dl_dlopen
=no
11806 rm -f core conftest.err conftest.
$ac_objext \
11807 conftest
$ac_exeext conftest.
$ac_ext
11808 LIBS
=$ac_check_lib_save_LIBS
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11811 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11812 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11813 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11816 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11817 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11820 ac_check_lib_save_LIBS
=$LIBS
11821 LIBS
="-lsvld $LIBS"
11822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11825 /* Override any GCC internal prototype to avoid an error.
11826 Use char because int might match the return type of a GCC
11827 builtin and then its argument prototype would still apply. */
11840 if ac_fn_c_try_link
"$LINENO"; then :
11841 ac_cv_lib_svld_dlopen
=yes
11843 ac_cv_lib_svld_dlopen
=no
11845 rm -f core conftest.err conftest.
$ac_objext \
11846 conftest
$ac_exeext conftest.
$ac_ext
11847 LIBS
=$ac_check_lib_save_LIBS
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11850 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11851 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11852 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11855 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11856 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11857 $as_echo_n "(cached) " >&6
11859 ac_check_lib_save_LIBS
=$LIBS
11861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11874 return dld_link ();
11879 if ac_fn_c_try_link
"$LINENO"; then :
11880 ac_cv_lib_dld_dld_link
=yes
11882 ac_cv_lib_dld_dld_link
=no
11884 rm -f core conftest.err conftest.
$ac_objext \
11885 conftest
$ac_exeext conftest.
$ac_ext
11886 LIBS
=$ac_check_lib_save_LIBS
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11889 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11890 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11891 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11912 if test "x$lt_cv_dlopen" != xno
; then
11918 case $lt_cv_dlopen in
11920 save_CPPFLAGS
="$CPPFLAGS"
11921 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11923 save_LDFLAGS
="$LDFLAGS"
11924 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11927 LIBS
="$lt_cv_dlopen_libs $LIBS"
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11930 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11931 if test "${lt_cv_dlopen_self+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11934 if test "$cross_compiling" = yes; then :
11935 lt_cv_dlopen_self
=cross
11937 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11938 lt_status
=$lt_dlunknown
11939 cat > conftest.
$ac_ext <<_LT_EOF
11940 #line 11940 "configure"
11941 #include "confdefs.h"
11950 # define LT_DLGLOBAL RTLD_GLOBAL
11953 # define LT_DLGLOBAL DL_GLOBAL
11955 # define LT_DLGLOBAL 0
11959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11960 find out it does not work in some platform. */
11961 #ifndef LT_DLLAZY_OR_NOW
11963 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11966 # define LT_DLLAZY_OR_NOW DL_LAZY
11969 # define LT_DLLAZY_OR_NOW RTLD_NOW
11972 # define LT_DLLAZY_OR_NOW DL_NOW
11974 # define LT_DLLAZY_OR_NOW 0
11981 /* When -fvisbility=hidden is used, assume the code has been annotated
11982 correspondingly for the symbols needed. */
11983 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11984 void fnord () __attribute__((visibility("default")));
11987 void fnord () { int i=42; }
11990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11991 int status = $lt_dlunknown;
11995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11998 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11999 else puts (dlerror ());
12001 /* dlclose (self); */
12009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12010 (eval $ac_link) 2>&5
12012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12014 (.
/conftest
; exit; ) >&5 2>/dev
/null
12016 case x
$lt_status in
12017 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12018 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12019 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12022 # compilation failed
12023 lt_cv_dlopen_self
=no
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12031 $as_echo "$lt_cv_dlopen_self" >&6; }
12033 if test "x$lt_cv_dlopen_self" = xyes
; then
12034 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12036 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12037 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12040 if test "$cross_compiling" = yes; then :
12041 lt_cv_dlopen_self_static
=cross
12043 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12044 lt_status
=$lt_dlunknown
12045 cat > conftest.
$ac_ext <<_LT_EOF
12046 #line 12046 "configure"
12047 #include "confdefs.h"
12056 # define LT_DLGLOBAL RTLD_GLOBAL
12059 # define LT_DLGLOBAL DL_GLOBAL
12061 # define LT_DLGLOBAL 0
12065 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12066 find out it does not work in some platform. */
12067 #ifndef LT_DLLAZY_OR_NOW
12069 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12072 # define LT_DLLAZY_OR_NOW DL_LAZY
12075 # define LT_DLLAZY_OR_NOW RTLD_NOW
12078 # define LT_DLLAZY_OR_NOW DL_NOW
12080 # define LT_DLLAZY_OR_NOW 0
12087 /* When -fvisbility=hidden is used, assume the code has been annotated
12088 correspondingly for the symbols needed. */
12089 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12090 void fnord () __attribute__((visibility("default")));
12093 void fnord () { int i=42; }
12096 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12097 int status = $lt_dlunknown;
12101 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12104 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12105 else puts (dlerror ());
12107 /* dlclose (self); */
12115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12116 (eval $ac_link) 2>&5
12118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12119 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12120 (.
/conftest
; exit; ) >&5 2>/dev
/null
12122 case x
$lt_status in
12123 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12124 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12125 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12128 # compilation failed
12129 lt_cv_dlopen_self_static
=no
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12137 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12140 CPPFLAGS
="$save_CPPFLAGS"
12141 LDFLAGS
="$save_LDFLAGS"
12146 case $lt_cv_dlopen_self in
12147 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12148 *) enable_dlopen_self
=unknown
;;
12151 case $lt_cv_dlopen_self_static in
12152 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12153 *) enable_dlopen_self_static
=unknown
;;
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12176 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12177 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12178 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12179 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12181 $as_echo "yes" >&6; }
12183 # FIXME - insert some real tests, host_os isn't really good enough
12186 if test -n "$STRIP" ; then
12187 striplib
="$STRIP -x"
12188 old_striplib
="$STRIP -S"
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12190 $as_echo "yes" >&6; }
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12214 # Report which library types will actually be built
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12216 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12218 $as_echo "$can_build_shared" >&6; }
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12221 $as_echo_n "checking whether to build shared libraries... " >&6; }
12222 test "$can_build_shared" = "no" && enable_shared
=no
12224 # On AIX, shared libraries and static libraries use the same namespace, and
12225 # are all built from PIC.
12228 test "$enable_shared" = yes && enable_static
=no
12229 if test -n "$RANLIB"; then
12230 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12231 postinstall_cmds
='$RANLIB $lib'
12236 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12237 test "$enable_shared" = yes && enable_static
=no
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12242 $as_echo "$enable_shared" >&6; }
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12245 $as_echo_n "checking whether to build static libraries... " >&6; }
12246 # Make sure either enable_shared or enable_static is yes.
12247 test "$enable_shared" = yes || enable_static
=yes
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12249 $as_echo "$enable_static" >&6; }
12256 ac_cpp
='$CPP $CPPFLAGS'
12257 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12258 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12259 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12263 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12264 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12265 (test "X$CXX" != "Xg++"))) ; then
12267 ac_cpp
='$CXXCPP $CPPFLAGS'
12268 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12269 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12270 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12272 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12273 if test -z "$CXXCPP"; then
12274 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12275 $as_echo_n "(cached) " >&6
12277 # Double quotes because CXXCPP needs to be expanded
12278 for CXXCPP
in "$CXX -E" "/lib/cpp"
12280 ac_preproc_ok
=false
12281 for ac_cxx_preproc_warn_flag
in '' yes
12283 # Use a header file that comes with gcc, so configuring glibc
12284 # with a fresh cross-compiler works.
12285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286 # <limits.h> exists even on freestanding compilers.
12287 # On the NeXT, cc -E runs the code through the compiler's parser,
12288 # not just through cpp. "Syntax error" is here to catch this case.
12289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12292 # include <limits.h>
12294 # include <assert.h>
12298 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12301 # Broken: fails on valid input.
12304 rm -f conftest.err conftest.
$ac_ext
12306 # OK, works on sane cases. Now check whether nonexistent headers
12307 # can be detected and how.
12308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12310 #include <ac_nonexistent.h>
12312 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12313 # Broken: success on invalid input.
12316 # Passes both tests.
12320 rm -f conftest.err conftest.
$ac_ext
12323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12324 rm -f conftest.err conftest.
$ac_ext
12325 if $ac_preproc_ok; then :
12330 ac_cv_prog_CXXCPP
=$CXXCPP
12333 CXXCPP
=$ac_cv_prog_CXXCPP
12335 ac_cv_prog_CXXCPP
=$CXXCPP
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12338 $as_echo "$CXXCPP" >&6; }
12339 ac_preproc_ok
=false
12340 for ac_cxx_preproc_warn_flag
in '' yes
12342 # Use a header file that comes with gcc, so configuring glibc
12343 # with a fresh cross-compiler works.
12344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12345 # <limits.h> exists even on freestanding compilers.
12346 # On the NeXT, cc -E runs the code through the compiler's parser,
12347 # not just through cpp. "Syntax error" is here to catch this case.
12348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12351 # include <limits.h>
12353 # include <assert.h>
12357 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12360 # Broken: fails on valid input.
12363 rm -f conftest.err conftest.
$ac_ext
12365 # OK, works on sane cases. Now check whether nonexistent headers
12366 # can be detected and how.
12367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12369 #include <ac_nonexistent.h>
12371 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12372 # Broken: success on invalid input.
12375 # Passes both tests.
12379 rm -f conftest.err conftest.
$ac_ext
12382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12383 rm -f conftest.err conftest.
$ac_ext
12384 if $ac_preproc_ok; then :
12387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12389 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
12390 See \`config.log' for more details." "$LINENO" 5; }
12394 ac_cpp
='$CPP $CPPFLAGS'
12395 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12400 _lt_caught_CXX_error
=yes
12404 ac_cpp
='$CXXCPP $CPPFLAGS'
12405 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12406 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12407 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12409 archive_cmds_need_lc_CXX
=no
12410 allow_undefined_flag_CXX
=
12411 always_export_symbols_CXX
=no
12412 archive_expsym_cmds_CXX
=
12413 compiler_needs_object_CXX
=no
12414 export_dynamic_flag_spec_CXX
=
12415 hardcode_direct_CXX
=no
12416 hardcode_direct_absolute_CXX
=no
12417 hardcode_libdir_flag_spec_CXX
=
12418 hardcode_libdir_flag_spec_ld_CXX
=
12419 hardcode_libdir_separator_CXX
=
12420 hardcode_minus_L_CXX
=no
12421 hardcode_shlibpath_var_CXX
=unsupported
12422 hardcode_automatic_CXX
=no
12423 inherit_rpath_CXX
=no
12425 module_expsym_cmds_CXX
=
12426 link_all_deplibs_CXX
=unknown
12427 old_archive_cmds_CXX
=$old_archive_cmds
12428 reload_flag_CXX
=$reload_flag
12429 reload_cmds_CXX
=$reload_cmds
12430 no_undefined_flag_CXX
=
12431 whole_archive_flag_spec_CXX
=
12432 enable_shared_with_static_runtimes_CXX
=no
12434 # Source file extension for C++ test sources.
12437 # Object file extension for compiled C++ test sources.
12441 # No sense in running all these tests if we already determined that
12442 # the CXX compiler isn't working. Some variables (like enable_shared)
12443 # are currently assumed to apply to all compilers on this platform,
12444 # and will be corrupted by setting them based on a non-working compiler.
12445 if test "$_lt_caught_CXX_error" != yes; then
12446 # Code to be used in simple compile tests
12447 lt_simple_compile_test_code
="int some_variable = 0;"
12449 # Code to be used in simple link tests
12450 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12459 # If no C compiler was specified, use CC.
12462 # If no C compiler flags were specified, use CFLAGS.
12463 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12465 # Allow CC to be a program name with arguments.
12469 # save warnings/boilerplate of simple test code
12470 ac_outfile
=conftest.
$ac_objext
12471 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12472 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12473 _lt_compiler_boilerplate
=`cat conftest.err`
12476 ac_outfile
=conftest.
$ac_objext
12477 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12478 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12479 _lt_linker_boilerplate
=`cat conftest.err`
12483 # Allow CC to be a program name with arguments.
12488 lt_save_with_gnu_ld
=$with_gnu_ld
12489 lt_save_path_LD
=$lt_cv_path_LD
12490 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12491 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12493 $as_unset lt_cv_prog_gnu_ld
12495 if test -n "${lt_cv_path_LDCXX+set}"; then
12496 lt_cv_path_LD
=$lt_cv_path_LDCXX
12498 $as_unset lt_cv_path_LD
12500 test -z "${LDCXX+set}" || LD
=$LDCXX
12504 for cc_temp
in $compiler""; do
12506 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12507 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12512 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12515 if test -n "$compiler"; then
12516 # We don't want -fno-exception when compiling C++ code, so set the
12517 # no_builtin_flag separately
12518 if test "$GXX" = yes; then
12519 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12521 lt_prog_compiler_no_builtin_flag_CXX
=
12524 if test "$GXX" = yes; then
12525 # Set up default GNU C++ configuration
12529 # Check whether --with-gnu-ld was given.
12530 if test "${with_gnu_ld+set}" = set; then :
12531 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12537 if test "$GCC" = yes; then
12538 # Check if gcc -print-prog-name=ld gives a path.
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12540 $as_echo_n "checking for ld used by $CC... " >&6; }
12543 # gcc leaves a trailing carriage return which upsets mingw
12544 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12546 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12549 # Accept absolute paths.
12551 re_direlt
='/[^/][^/]*/\.\./'
12552 # Canonicalize the pathname of ld
12553 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12554 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12555 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12557 test -z "$LD" && LD
="$ac_prog"
12560 # If it fails, then pretend we aren't using GCC.
12564 # If it is relative, then search for the first ld in PATH.
12565 with_gnu_ld
=unknown
12568 elif test "$with_gnu_ld" = yes; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12570 $as_echo_n "checking for GNU ld... " >&6; }
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12573 $as_echo_n "checking for non-GNU ld... " >&6; }
12575 if test "${lt_cv_path_LD+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
12578 if test -z "$LD"; then
12579 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12580 for ac_dir
in $PATH; do
12582 test -z "$ac_dir" && ac_dir
=.
12583 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12584 lt_cv_path_LD
="$ac_dir/$ac_prog"
12585 # Check to see if the program is GNU ld. I'd rather use --version,
12586 # but apparently some variants of GNU ld only accept -v.
12587 # Break only if it was the GNU/non-GNU ld that we prefer.
12588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12589 *GNU
* |
*'with BFD'*)
12590 test "$with_gnu_ld" != no
&& break
12593 test "$with_gnu_ld" != yes && break
12600 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12604 LD
="$lt_cv_path_LD"
12605 if test -n "$LD"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12607 $as_echo "$LD" >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12612 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12615 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12616 $as_echo_n "(cached) " >&6
12618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12619 case `$LD -v 2>&1 </dev/null` in
12620 *GNU
* |
*'with BFD'*)
12621 lt_cv_prog_gnu_ld
=yes
12624 lt_cv_prog_gnu_ld
=no
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12630 with_gnu_ld
=$lt_cv_prog_gnu_ld
12638 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12639 # archiving commands below assume that GNU ld is being used.
12640 if test "$with_gnu_ld" = yes; then
12641 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12642 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12644 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12645 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12647 # If archive_cmds runs LD, not CC, wlarc should be empty
12648 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12649 # investigate it a little bit more. (MM)
12652 # ancient GNU ld didn't support --whole-archive et. al.
12653 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12654 $GREP 'no-whole-archive' > /dev
/null
; then
12655 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12657 whole_archive_flag_spec_CXX
=
12663 # A generic and very simple default shared library creation
12664 # command for GNU C++ for the case where it uses the native
12665 # linker, instead of GNU ld. If possible, this setting should
12666 # overridden to take advantage of the native linker features on
12667 # the platform it is being used on.
12668 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12671 # Commands to make compiler produce verbose output that lists
12672 # what "hidden" libraries, object files and flags are used when
12673 # linking a shared library.
12674 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12682 # PORTME: fill in a description of your system's C++ link characteristics
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12688 # FIXME: insert proper C++ library support
12692 if test "$host_cpu" = ia64
; then
12693 # On IA64, the linker does run time linking by default, so we don't
12694 # have to do anything special.
12695 aix_use_runtimelinking
=no
12696 exp_sym_flag
='-Bexport'
12699 aix_use_runtimelinking
=no
12701 # Test if we are trying to use run time linking or normal
12702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12703 # need to do runtime linking.
12704 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12705 for ld_flag
in $LDFLAGS; do
12708 aix_use_runtimelinking
=yes
12716 exp_sym_flag
='-bexport'
12717 no_entry_flag
='-bnoentry'
12720 # When large executables or shared objects are built, AIX ld can
12721 # have problems creating the table of contents. If linking a library
12722 # or program results in "error TOC overflow" add -mminimal-toc to
12723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12726 archive_cmds_CXX
=''
12727 hardcode_direct_CXX
=yes
12728 hardcode_direct_absolute_CXX
=yes
12729 hardcode_libdir_separator_CXX
=':'
12730 link_all_deplibs_CXX
=yes
12731 file_list_spec_CXX
='${wl}-f,'
12733 if test "$GXX" = yes; then
12734 case $host_os in aix4.
[012]|aix4.
[012].
*)
12735 # We only want to do this on AIX 4.2 and lower, the check
12736 # below for broken collect2 doesn't work under 4.3+
12737 collect2name
=`${CC} -print-prog-name=collect2`
12738 if test -f "$collect2name" &&
12739 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12741 # We have reworked collect2
12744 # We have old collect2
12745 hardcode_direct_CXX
=unsupported
12746 # It fails to find uninstalled libraries when the uninstalled
12747 # path is not listed in the libpath. Setting hardcode_minus_L
12748 # to unsupported forces relinking
12749 hardcode_minus_L_CXX
=yes
12750 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12751 hardcode_libdir_separator_CXX
=
12754 shared_flag
='-shared'
12755 if test "$aix_use_runtimelinking" = yes; then
12756 shared_flag
="$shared_flag "'${wl}-G'
12760 if test "$host_cpu" = ia64
; then
12761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12762 # chokes on -Wl,-G. The following line is correct:
12765 if test "$aix_use_runtimelinking" = yes; then
12766 shared_flag
='${wl}-G'
12768 shared_flag
='${wl}-bM:SRE'
12773 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12774 # It seems that -bexpall does not export symbols beginning with
12775 # underscore (_), so it is better to generate a list of symbols to
12777 always_export_symbols_CXX
=yes
12778 if test "$aix_use_runtimelinking" = yes; then
12779 # Warning - without using the other runtime loading flags (-brtl),
12780 # -berok will link without error, but may produce a broken library.
12781 allow_undefined_flag_CXX
='-berok'
12782 # Determine the default libpath from the value encoded in an empty
12784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12795 if ac_fn_cxx_try_link
"$LINENO"; then :
12797 lt_aix_libpath_sed
='
12798 /Import File Strings/,/^$/ {
12804 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12805 # Check for a 64-bit object if we didn't find anything.
12806 if test -z "$aix_libpath"; then
12807 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12810 rm -f core conftest.err conftest.
$ac_objext \
12811 conftest
$ac_exeext conftest.
$ac_ext
12812 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12814 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12816 archive_expsym_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12818 if test "$host_cpu" = ia64
; then
12819 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12820 allow_undefined_flag_CXX
="-z nodefs"
12821 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12823 # Determine the default libpath from the value encoded in an
12824 # empty executable.
12825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12836 if ac_fn_cxx_try_link
"$LINENO"; then :
12838 lt_aix_libpath_sed
='
12839 /Import File Strings/,/^$/ {
12845 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12846 # Check for a 64-bit object if we didn't find anything.
12847 if test -z "$aix_libpath"; then
12848 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12851 rm -f core conftest.err conftest.
$ac_objext \
12852 conftest
$ac_exeext conftest.
$ac_ext
12853 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12855 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12856 # Warning - without using the other run time loading flags,
12857 # -berok will link without error, but may produce a broken library.
12858 no_undefined_flag_CXX
=' ${wl}-bernotok'
12859 allow_undefined_flag_CXX
=' ${wl}-berok'
12860 if test "$with_gnu_ld" = yes; then
12861 # We only use this code for GNU lds that support --whole-archive.
12862 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12864 # Exported symbols can be pulled into shared objects from archives
12865 whole_archive_flag_spec_CXX
='$convenience'
12867 archive_cmds_need_lc_CXX
=yes
12868 # This is similar to how AIX traditionally builds its shared
12870 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12876 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12877 allow_undefined_flag_CXX
=unsupported
12878 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12879 # support --undefined. This deserves some investigation. FIXME
12880 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12887 case $cc_basename in
12889 # FIXME: insert proper C++ library support
12895 cygwin
* | mingw
* | pw32
* | cegcc
*)
12896 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12897 # as there is no search path for DLLs.
12898 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12899 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12900 allow_undefined_flag_CXX
=unsupported
12901 always_export_symbols_CXX
=no
12902 enable_shared_with_static_runtimes_CXX
=yes
12904 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12905 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12906 # If the export-symbols file already is a .def file (1st line
12907 # is EXPORTS), use it as is; otherwise, prepend...
12908 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12909 cp $export_symbols $output_objdir/$soname.def;
12911 echo EXPORTS > $output_objdir/$soname.def;
12912 cat $export_symbols >> $output_objdir/$soname.def;
12914 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12919 darwin
* | rhapsody
*)
12922 archive_cmds_need_lc_CXX
=no
12923 hardcode_direct_CXX
=no
12924 hardcode_automatic_CXX
=yes
12925 hardcode_shlibpath_var_CXX
=unsupported
12926 if test "$lt_cv_ld_force_load" = "yes"; then
12927 whole_archive_flag_spec_CXX
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12929 whole_archive_flag_spec_CXX
=''
12931 link_all_deplibs_CXX
=yes
12932 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12933 case $cc_basename in
12934 ifort
*) _lt_dar_can_shared
=yes ;;
12935 *) _lt_dar_can_shared
=$GCC ;;
12937 if test "$_lt_dar_can_shared" = "yes"; then
12938 output_verbose_link_cmd
=func_echo_all
12939 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12940 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12941 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12942 module_expsym_cmds_CXX
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12943 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12944 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12945 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12955 case $cc_basename in
12957 # FIXME: insert proper C++ library support
12961 # Green Hills C++ Compiler
12962 # FIXME: insert proper C++ library support
12966 # FIXME: insert proper C++ library support
12973 # C++ shared libraries reported to be fairly broken before
12979 archive_cmds_need_lc_CXX
=no
12982 freebsd
* | dragonfly
*)
12983 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12992 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12993 link_all_deplibs_CXX
=yes
12997 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12998 hardcode_libdir_separator_CXX
=:
12999 export_dynamic_flag_spec_CXX
='${wl}-E'
13000 hardcode_direct_CXX
=yes
13001 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13002 # but as the default
13003 # location of the library.
13005 case $cc_basename in
13007 # FIXME: insert proper C++ library support
13011 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'
13012 # Commands to make compiler produce verbose output that lists
13013 # what "hidden" libraries, object files and flags are used when
13014 # linking a shared library.
13016 # There doesn't appear to be a way to prevent this compiler from
13017 # explicitly linking system object files so we need to strip them
13018 # from the output so that they don't get included in the library
13020 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13023 if test "$GXX" = yes; then
13024 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'
13026 # FIXME: insert proper C++ library support
13034 if test $with_gnu_ld = no
; then
13035 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13036 hardcode_libdir_separator_CXX
=:
13042 export_dynamic_flag_spec_CXX
='${wl}-E'
13048 hardcode_direct_CXX
=no
13049 hardcode_shlibpath_var_CXX
=no
13052 hardcode_direct_CXX
=yes
13053 hardcode_direct_absolute_CXX
=yes
13054 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13055 # but as the default
13056 # location of the library.
13060 case $cc_basename in
13062 # FIXME: insert proper C++ library support
13068 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13071 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13074 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13077 # Commands to make compiler produce verbose output that lists
13078 # what "hidden" libraries, object files and flags are used when
13079 # linking a shared library.
13081 # There doesn't appear to be a way to prevent this compiler from
13082 # explicitly linking system object files so we need to strip them
13083 # from the output so that they don't get included in the library
13085 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; func_echo_all "$list"'
13088 if test "$GXX" = yes; then
13089 if test $with_gnu_ld = no
; then
13092 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13095 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13098 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'
13103 # FIXME: insert proper C++ library support
13111 hardcode_direct_CXX
=no
13112 hardcode_shlibpath_var_CXX
=no
13113 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13114 export_dynamic_flag_spec_CXX
='${wl}-E'
13115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13116 # Instead, shared libraries are loaded at an image base (0x10000000 by
13117 # default) and relocated if they conflict, which is a slow very memory
13118 # consuming and fragmenting process. To avoid this, we pick a random,
13119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13120 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13121 archive_cmds_CXX
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13122 archive_expsym_cmds_CXX
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13125 case $cc_basename in
13128 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13130 # Archives containing C++ object files must be created using
13131 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13132 # necessary to make sure instantiated templates are included
13134 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
13137 if test "$GXX" = yes; then
13138 if test "$with_gnu_ld" = no
; then
13139 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13141 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13144 link_all_deplibs_CXX
=yes
13147 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13148 hardcode_libdir_separator_CXX
=:
13149 inherit_rpath_CXX
=yes
13152 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13153 case $cc_basename in
13155 # Kuck and Associates, Inc. (KAI) C++ Compiler
13157 # KCC will only create a shared library if the output file
13158 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13159 # to its proper name (with version) after linking.
13160 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'
13161 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'
13162 # Commands to make compiler produce verbose output that lists
13163 # what "hidden" libraries, object files and flags are used when
13164 # linking a shared library.
13166 # There doesn't appear to be a way to prevent this compiler from
13167 # explicitly linking system object files so we need to strip them
13168 # from the output so that they don't get included in the library
13170 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; func_echo_all "$list"'
13172 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13173 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13175 # Archives containing C++ object files must be created using
13176 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13177 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
13182 # version 8.0 and above of icpc choke on multiply defined symbols
13183 # if we add $predep_objects and $postdep_objects, however 7.1 and
13184 # earlier do not add the objects themselves.
13185 case `$CC -V 2>&1` in
13187 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13188 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'
13190 *) # Version 8.0 or newer
13193 ia64
*) tmp_idyn
=' -i_dynamic';;
13195 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13196 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'
13199 archive_cmds_need_lc_CXX
=no
13200 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13201 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13202 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13205 # Portland Group C++ compiler
13207 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
13208 prelink_cmds_CXX
='tpldir=Template.dir~
13210 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13211 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13212 old_archive_cmds_CXX
='tpldir=Template.dir~
13214 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13215 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13217 archive_cmds_CXX
='tpldir=Template.dir~
13219 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13220 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13221 archive_expsym_cmds_CXX
='tpldir=Template.dir~
13223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13224 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13226 *) # Version 6 and above use weak symbols
13227 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13228 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13232 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
13233 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13234 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13238 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13239 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'
13241 runpath_var
=LD_RUN_PATH
13242 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13243 hardcode_libdir_separator_CXX
=:
13245 # Commands to make compiler produce verbose output that lists
13246 # what "hidden" libraries, object files and flags are used when
13247 # linking a shared library.
13249 # There doesn't appear to be a way to prevent this compiler from
13250 # explicitly linking system object files so we need to strip them
13251 # from the output so that they don't get included in the library
13253 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13255 xl
* | mpixl
* | bgxl
*)
13256 # IBM XL 8.0 on PPC, with GNU ld
13257 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13258 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13259 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260 if test "x$supports_anon_versioning" = xyes
; then
13261 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
13262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13263 echo "local: *; };" >> $output_objdir/$libname.ver~
13264 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13268 case `$CC -V 2>&1 | sed 5q` in
13271 no_undefined_flag_CXX
=' -zdefs'
13272 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13273 archive_expsym_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13274 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13275 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13276 compiler_needs_object_CXX
=yes
13278 # Not sure whether something based on
13279 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13281 output_verbose_link_cmd
='func_echo_all'
13283 # Archives containing C++ object files must be created using
13284 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13285 # necessary to make sure instantiated templates are included
13287 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13295 # FIXME: insert proper C++ library support
13300 # FIXME: insert proper C++ library support
13305 case $cc_basename in
13307 # FIXME: insert proper C++ library support
13311 # FIXME: insert proper C++ library support
13318 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13319 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13321 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13322 hardcode_direct_CXX
=yes
13323 hardcode_shlibpath_var_CXX
=no
13325 # Workaround some broken pre-1.5 toolchains
13326 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13334 # C++ shared libraries are fairly broken
13339 if test -f /usr
/libexec
/ld.so
; then
13340 hardcode_direct_CXX
=yes
13341 hardcode_shlibpath_var_CXX
=no
13342 hardcode_direct_absolute_CXX
=yes
13343 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13344 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13346 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13347 export_dynamic_flag_spec_CXX
='${wl}-E'
13348 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13350 output_verbose_link_cmd
=func_echo_all
13356 osf3
* | osf4
* | osf5
*)
13357 case $cc_basename in
13359 # Kuck and Associates, Inc. (KAI) C++ Compiler
13361 # KCC will only create a shared library if the output file
13362 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13363 # to its proper name (with version) after linking.
13364 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'
13366 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13367 hardcode_libdir_separator_CXX
=:
13369 # Archives containing C++ object files must be created using
13370 # the KAI C++ compiler.
13372 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
13373 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
13377 # Rational C++ 2.4.1
13378 # FIXME: insert proper C++ library support
13384 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13385 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13386 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13389 allow_undefined_flag_CXX
=' -expect_unresolved \*'
13390 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13391 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13392 echo "-hidden">> $lib.exp~
13393 $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 ${output_objdir}/so_locations -o $lib~
13395 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13399 hardcode_libdir_separator_CXX
=:
13401 # Commands to make compiler produce verbose output that lists
13402 # what "hidden" libraries, object files and flags are used when
13403 # linking a shared library.
13405 # There doesn't appear to be a way to prevent this compiler from
13406 # explicitly linking system object files so we need to strip them
13407 # from the output so that they don't get included in the library
13409 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13412 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13413 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13416 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13419 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13423 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13424 hardcode_libdir_separator_CXX
=:
13426 # Commands to make compiler produce verbose output that lists
13427 # what "hidden" libraries, object files and flags are used when
13428 # linking a shared library.
13429 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13432 # FIXME: insert proper C++ library support
13440 # FIXME: insert proper C++ library support
13445 case $cc_basename in
13448 # FIXME: insert proper C++ library support
13453 # FIXME: insert proper C++ library support
13457 # FIXME: insert proper C++ library support
13464 case $cc_basename in
13466 # Sun C++ 4.2, 5.x and Centerline C++
13467 archive_cmds_need_lc_CXX
=yes
13468 no_undefined_flag_CXX
=' -zdefs'
13469 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13470 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13471 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13473 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13474 hardcode_shlibpath_var_CXX
=no
13476 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13478 # The compiler driver will combine and reorder linker options,
13479 # but understands `-z linker_flag'.
13480 # Supported since Solaris 2.6 (maybe 2.5.1?)
13481 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13484 link_all_deplibs_CXX
=yes
13486 output_verbose_link_cmd
='func_echo_all'
13488 # Archives containing C++ object files must be created using
13489 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13490 # necessary to make sure instantiated templates are included
13492 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13495 # Green Hills C++ Compiler
13496 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13498 # The C++ compiler must be used to create the archive.
13499 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13502 # GNU C++ compiler with Solaris linker
13503 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13504 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13505 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13506 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13507 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13508 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13510 # Commands to make compiler produce verbose output that lists
13511 # what "hidden" libraries, object files and flags are used when
13512 # linking a shared library.
13513 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13515 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13517 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13518 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13519 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13521 # Commands to make compiler produce verbose output that lists
13522 # what "hidden" libraries, object files and flags are used when
13523 # linking a shared library.
13524 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13527 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13529 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13531 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13539 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13540 no_undefined_flag_CXX
='${wl}-z,text'
13541 archive_cmds_need_lc_CXX
=no
13542 hardcode_shlibpath_var_CXX
=no
13543 runpath_var
='LD_RUN_PATH'
13545 case $cc_basename in
13547 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13548 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13557 sysv5
* | sco3.2v5
* | sco5v6
*)
13558 # Note: We can NOT use -z defs as we might desire, because we do not
13559 # link with -lc, and that would cause any symbols used from libc to
13560 # always be unresolved, which means just about no library would
13561 # ever link correctly. If we're not using GNU ld we use -z text
13562 # though, which does catch some bad symbols but isn't as heavy-handed
13564 no_undefined_flag_CXX
='${wl}-z,text'
13565 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13566 archive_cmds_need_lc_CXX
=no
13567 hardcode_shlibpath_var_CXX
=no
13568 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13569 hardcode_libdir_separator_CXX
=':'
13570 link_all_deplibs_CXX
=yes
13571 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13572 runpath_var
='LD_RUN_PATH'
13574 case $cc_basename in
13576 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13577 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13579 '"$old_archive_cmds_CXX"
13580 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13581 '"$reload_cmds_CXX"
13584 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13585 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13591 case $cc_basename in
13593 # NonStop-UX NCC 3.20
13594 # FIXME: insert proper C++ library support
13598 # FIXME: insert proper C++ library support
13605 # FIXME: insert proper C++ library support
13610 # FIXME: insert proper C++ library support
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13616 $as_echo "$ld_shlibs_CXX" >&6; }
13617 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13623 ## There is no encapsulation within the following macros, do not change
13624 ## the running order or otherwise move them around unless you know exactly
13625 ## what you are doing...
13626 # Dependencies to place before and after the object being linked:
13627 predep_objects_CXX
=
13628 postdep_objects_CXX
=
13631 compiler_lib_search_path_CXX
=
13633 cat > conftest.
$ac_ext <<_LT_EOF
13637 Foo (void) { a = 0; }
13643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13644 (eval $ac_compile) 2>&5
13646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13647 test $ac_status = 0; }; then
13648 # Parse the compiler output and extract the necessary
13649 # objects, libraries and library flags.
13651 # Sentinel used to keep track of whether or not we are before
13652 # the conftest object file.
13653 pre_test_object_deps_done
=no
13655 for p
in `eval "$output_verbose_link_cmd"`; do
13659 # Some compilers place space between "-{L,R}" and the path.
13660 # Remove the space.
13661 if test $p = "-L" ||
13662 test $p = "-R"; then
13669 if test "$pre_test_object_deps_done" = no
; then
13672 # Internal compiler library paths should come after those
13673 # provided the user. The postdeps already come after the
13674 # user supplied libs so there is no need to process them.
13675 if test -z "$compiler_lib_search_path_CXX"; then
13676 compiler_lib_search_path_CXX
="${prev}${p}"
13678 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13681 # The "-l" case would never come before the object being
13682 # linked, so don't bother handling this case.
13685 if test -z "$postdeps_CXX"; then
13686 postdeps_CXX
="${prev}${p}"
13688 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13694 # This assumes that the test object file only shows up
13695 # once in the compiler output.
13696 if test "$p" = "conftest.$objext"; then
13697 pre_test_object_deps_done
=yes
13701 if test "$pre_test_object_deps_done" = no
; then
13702 if test -z "$predep_objects_CXX"; then
13703 predep_objects_CXX
="$p"
13705 predep_objects_CXX
="$predep_objects_CXX $p"
13708 if test -z "$postdep_objects_CXX"; then
13709 postdep_objects_CXX
="$p"
13711 postdep_objects_CXX
="$postdep_objects_CXX $p"
13716 *) ;; # Ignore the rest.
13724 echo "libtool.m4: error: problem compiling CXX test program"
13727 $RM -f confest.
$objext
13729 # PORTME: override above test on systems where it is broken
13732 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13733 # hack all around it, let's just trust "g++" to DTRT.
13734 predep_objects_CXX
=
13735 postdep_objects_CXX
=
13740 case `$CC -V 2>&1 | sed 5q` in
13744 # The more standards-conforming stlport4 library is
13745 # incompatible with the Cstd library. Avoid specifying
13746 # it if it's in CXXFLAGS. Ignore libCrun as
13747 # -library=stlport4 depends on it.
13748 case " $CXX $CXXFLAGS " in
13749 *" -library=stlport4 "*)
13750 solaris_use_stlport4
=yes
13754 if test "$solaris_use_stlport4" != yes; then
13755 postdeps_CXX
='-library=Cstd -library=Crun'
13762 case $cc_basename in
13764 # The more standards-conforming stlport4 library is
13765 # incompatible with the Cstd library. Avoid specifying
13766 # it if it's in CXXFLAGS. Ignore libCrun as
13767 # -library=stlport4 depends on it.
13768 case " $CXX $CXXFLAGS " in
13769 *" -library=stlport4 "*)
13770 solaris_use_stlport4
=yes
13774 # Adding this requires a known-good setup of shared libraries for
13775 # Sun compiler versions before 5.6, else PIC objects from an old
13776 # archive will be linked into the output, leading to subtle bugs.
13777 if test "$solaris_use_stlport4" != yes; then
13778 postdeps_CXX
='-library=Cstd -library=Crun'
13786 case " $postdeps_CXX " in
13787 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13789 compiler_lib_search_dirs_CXX
=
13790 if test -n "${compiler_lib_search_path_CXX}"; then
13791 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13824 lt_prog_compiler_wl_CXX
=
13825 lt_prog_compiler_pic_CXX
=
13826 lt_prog_compiler_static_CXX
=
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13829 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13831 # C++ specific cases for pic, static, wl, etc.
13832 if test "$GXX" = yes; then
13833 lt_prog_compiler_wl_CXX
='-Wl,'
13834 lt_prog_compiler_static_CXX
='-static'
13838 # All AIX code is PIC.
13839 if test "$host_cpu" = ia64
; then
13840 # AIX 5 now supports IA64 processor
13841 lt_prog_compiler_static_CXX
='-Bstatic'
13843 lt_prog_compiler_pic_CXX
='-fPIC'
13849 # see comment about AmigaOS4 .so support
13850 lt_prog_compiler_pic_CXX
='-fPIC'
13853 # FIXME: we need at least 68020 code to build shared libraries, but
13854 # adding the `-m68020' flag to GCC prevents building anything better,
13856 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13861 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13862 # PIC is the default for these OSes.
13864 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13865 # This hack is so that the source file can tell whether it is being
13866 # built for inclusion in a dll (and should export symbols for example).
13867 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13868 # (--disable-auto-import) libraries
13869 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13871 darwin
* | rhapsody
*)
13872 # PIC is the default on this platform
13873 # Common symbols not allowed in MH_DYLIB files
13874 lt_prog_compiler_pic_CXX
='-fno-common'
13877 # DJGPP does not support shared libraries at all
13878 lt_prog_compiler_pic_CXX
=
13881 # PIC is the default for Haiku.
13882 # The "-static" flag exists, but is broken.
13883 lt_prog_compiler_static_CXX
=
13886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13887 # Instead, we relocate shared libraries at runtime.
13890 if test -d /usr
/nec
; then
13891 lt_prog_compiler_pic_CXX
=-Kconform_pic
13895 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13896 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13897 # sets the default TLS model and affects inlining.
13902 lt_prog_compiler_pic_CXX
='-fPIC'
13907 # QNX uses GNU C++, but need to define -shared option too, otherwise
13908 # it will coredump.
13909 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13912 lt_prog_compiler_pic_CXX
='-fPIC'
13918 # All AIX code is PIC.
13919 if test "$host_cpu" = ia64
; then
13920 # AIX 5 now supports IA64 processor
13921 lt_prog_compiler_static_CXX
='-Bstatic'
13923 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13927 case $cc_basename in
13929 # Green Hills C++ Compiler
13930 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13935 case $cc_basename in
13937 lt_prog_compiler_pic_CXX
='-KPIC'
13940 # Green Hills C++ Compiler
13941 lt_prog_compiler_pic_CXX
='-pic'
13947 freebsd
* | dragonfly
*)
13948 # FreeBSD uses GNU C++
13950 hpux9
* | hpux10
* | hpux11
*)
13951 case $cc_basename in
13953 lt_prog_compiler_wl_CXX
='-Wl,'
13954 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13955 if test "$host_cpu" != ia64
; then
13956 lt_prog_compiler_pic_CXX
='+Z'
13960 lt_prog_compiler_wl_CXX
='-Wl,'
13961 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13967 lt_prog_compiler_pic_CXX
='+Z'
13976 # This is c89, which is MS Visual C++ (no shared libs)
13977 # Anyone wants to do a port?
13979 irix5
* | irix6
* | nonstopux
*)
13980 case $cc_basename in
13982 lt_prog_compiler_wl_CXX
='-Wl,'
13983 lt_prog_compiler_static_CXX
='-non_shared'
13984 # CC pic flag -KPIC is the default.
13990 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13991 case $cc_basename in
13994 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13995 lt_prog_compiler_pic_CXX
='-fPIC'
13998 # old Intel C++ for x86_64 which still supported -KPIC.
13999 lt_prog_compiler_wl_CXX
='-Wl,'
14000 lt_prog_compiler_pic_CXX
='-KPIC'
14001 lt_prog_compiler_static_CXX
='-static'
14004 # Intel C++, used to be incompatible with GCC.
14005 # ICC 10 doesn't accept -KPIC any more.
14006 lt_prog_compiler_wl_CXX
='-Wl,'
14007 lt_prog_compiler_pic_CXX
='-fPIC'
14008 lt_prog_compiler_static_CXX
='-static'
14011 # Portland Group C++ compiler
14012 lt_prog_compiler_wl_CXX
='-Wl,'
14013 lt_prog_compiler_pic_CXX
='-fpic'
14014 lt_prog_compiler_static_CXX
='-Bstatic'
14018 # Make sure the PIC flag is empty. It appears that all Alpha
14019 # Linux and Compaq Tru64 Unix objects are PIC.
14020 lt_prog_compiler_pic_CXX
=
14021 lt_prog_compiler_static_CXX
='-non_shared'
14023 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
14024 # IBM XL 8.0, 9.0 on PPC and BlueGene
14025 lt_prog_compiler_wl_CXX
='-Wl,'
14026 lt_prog_compiler_pic_CXX
='-qpic'
14027 lt_prog_compiler_static_CXX
='-qstaticlink'
14030 case `$CC -V 2>&1 | sed 5q` in
14033 lt_prog_compiler_pic_CXX
='-KPIC'
14034 lt_prog_compiler_static_CXX
='-Bstatic'
14035 lt_prog_compiler_wl_CXX
='-Qoption ld '
14046 case $cc_basename in
14048 lt_prog_compiler_pic_CXX
='-W c,exportall'
14057 # QNX uses GNU C++, but need to define -shared option too, otherwise
14058 # it will coredump.
14059 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14061 osf3
* | osf4
* | osf5
*)
14062 case $cc_basename in
14064 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14067 # Rational C++ 2.4.1
14068 lt_prog_compiler_pic_CXX
='-pic'
14071 # Digital/Compaq C++
14072 lt_prog_compiler_wl_CXX
='-Wl,'
14073 # Make sure the PIC flag is empty. It appears that all Alpha
14074 # Linux and Compaq Tru64 Unix objects are PIC.
14075 lt_prog_compiler_pic_CXX
=
14076 lt_prog_compiler_static_CXX
='-non_shared'
14085 case $cc_basename in
14087 # Sun C++ 4.2, 5.x and Centerline C++
14088 lt_prog_compiler_pic_CXX
='-KPIC'
14089 lt_prog_compiler_static_CXX
='-Bstatic'
14090 lt_prog_compiler_wl_CXX
='-Qoption ld '
14093 # Green Hills C++ Compiler
14094 lt_prog_compiler_pic_CXX
='-PIC'
14101 case $cc_basename in
14104 lt_prog_compiler_pic_CXX
='-pic'
14105 lt_prog_compiler_static_CXX
='-Bstatic'
14109 lt_prog_compiler_pic_CXX
='-pic'
14115 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14116 case $cc_basename in
14118 lt_prog_compiler_wl_CXX
='-Wl,'
14119 lt_prog_compiler_pic_CXX
='-KPIC'
14120 lt_prog_compiler_static_CXX
='-Bstatic'
14125 case $cc_basename in
14127 # NonStop-UX NCC 3.20
14128 lt_prog_compiler_pic_CXX
='-KPIC'
14137 lt_prog_compiler_can_build_shared_CXX
=no
14143 # For platforms which do not support PIC, -DPIC is meaningless:
14145 lt_prog_compiler_pic_CXX
=
14148 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14152 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14157 # Check to make sure the PIC flag actually works.
14159 if test -n "$lt_prog_compiler_pic_CXX"; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14161 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14162 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
14165 lt_cv_prog_compiler_pic_works_CXX
=no
14166 ac_outfile
=conftest.
$ac_objext
14167 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14168 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
14169 # Insert the option either (1) after the last *FLAGS variable, or
14170 # (2) before a word containing "conftest.", or (3) at the end.
14171 # Note that $ac_compile itself does not contain backslashes and begins
14172 # with a dollar sign (not a hyphen), so the echo should work correctly.
14173 # The option is referenced via a variable to avoid confusing sed.
14174 lt_compile
=`echo "$ac_compile" | $SED \
14175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14177 -e 's:$: $lt_compiler_flag:'`
14178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14179 (eval "$lt_compile" 2>conftest.err
)
14181 cat conftest.err
>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 if (exit $ac_status) && test -s "$ac_outfile"; then
14184 # The compiler can only warn and ignore the option if not recognized
14185 # So say no if there are warnings other than the usual output.
14186 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
14187 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14188 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14189 lt_cv_prog_compiler_pic_works_CXX
=yes
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14196 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14198 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
14199 case $lt_prog_compiler_pic_CXX in
14201 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
14204 lt_prog_compiler_pic_CXX
=
14205 lt_prog_compiler_can_build_shared_CXX
=no
14213 # Check to make sure the static flag actually works.
14215 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14217 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14218 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14219 $as_echo_n "(cached) " >&6
14221 lt_cv_prog_compiler_static_works_CXX
=no
14222 save_LDFLAGS
="$LDFLAGS"
14223 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14224 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14225 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14226 # The linker can only warn and ignore the option if not recognized
14227 # So say no if there are warnings
14228 if test -s conftest.err
; then
14229 # Append any errors to the config.log.
14230 cat conftest.err
1>&5
14231 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
14232 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14233 if diff conftest.exp conftest.er2
>/dev
/null
; then
14234 lt_cv_prog_compiler_static_works_CXX
=yes
14237 lt_cv_prog_compiler_static_works_CXX
=yes
14241 LDFLAGS
="$save_LDFLAGS"
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14245 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14247 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
14250 lt_prog_compiler_static_CXX
=
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14258 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14261 lt_cv_prog_compiler_c_o_CXX
=no
14262 $RM -r conftest
2>/dev
/null
14266 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14268 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14269 # Insert the option either (1) after the last *FLAGS variable, or
14270 # (2) before a word containing "conftest.", or (3) at the end.
14271 # Note that $ac_compile itself does not contain backslashes and begins
14272 # with a dollar sign (not a hyphen), so the echo should work correctly.
14273 lt_compile
=`echo "$ac_compile" | $SED \
14274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14276 -e 's:$: $lt_compiler_flag:'`
14277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14278 (eval "$lt_compile" 2>out
/conftest.err
)
14280 cat out
/conftest.err
>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14284 # The compiler can only warn and ignore the option if not recognized
14285 # So say no if there are warnings
14286 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14287 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14288 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14289 lt_cv_prog_compiler_c_o_CXX
=yes
14294 # SGI C++ compiler will create directory out/ii_files/ for
14295 # template instantiation
14296 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14297 $RM out
/* && rmdir out
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14304 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14310 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14311 $as_echo_n "(cached) " >&6
14313 lt_cv_prog_compiler_c_o_CXX
=no
14314 $RM -r conftest
2>/dev
/null
14318 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14320 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14321 # Insert the option either (1) after the last *FLAGS variable, or
14322 # (2) before a word containing "conftest.", or (3) at the end.
14323 # Note that $ac_compile itself does not contain backslashes and begins
14324 # with a dollar sign (not a hyphen), so the echo should work correctly.
14325 lt_compile
=`echo "$ac_compile" | $SED \
14326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14328 -e 's:$: $lt_compiler_flag:'`
14329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14330 (eval "$lt_compile" 2>out
/conftest.err
)
14332 cat out
/conftest.err
>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14336 # The compiler can only warn and ignore the option if not recognized
14337 # So say no if there are warnings
14338 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14339 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14340 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14341 lt_cv_prog_compiler_c_o_CXX
=yes
14346 # SGI C++ compiler will create directory out/ii_files/ for
14347 # template instantiation
14348 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14349 $RM out
/* && rmdir out
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14356 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14361 hard_links
="nottested"
14362 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
14363 # do not overwrite the value of need_locks provided by the user
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14365 $as_echo_n "checking if we can lock with hard links... " >&6; }
14368 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14370 ln conftest.a conftest.b
2>&5 || hard_links
=no
14371 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14373 $as_echo "$hard_links" >&6; }
14374 if test "$hard_links" = no
; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14388 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14391 # If we're using GNU nm, then we don't want the "-C" option.
14392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14393 # Also, AIX nm treats weak defined symbols like other global defined
14394 # symbols, whereas GNU nm marks them as "W".
14395 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
14396 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14398 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14402 export_symbols_cmds_CXX
="$ltdll_cmds"
14404 cygwin
* | mingw
* | cegcc
*)
14405 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'
14408 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14411 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14414 $as_echo "$ld_shlibs_CXX" >&6; }
14415 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14417 with_gnu_ld_CXX
=$with_gnu_ld
14425 # Do we need to explicitly link libc?
14427 case "x$archive_cmds_need_lc_CXX" in
14429 # Assume -lc should be added
14430 archive_cmds_need_lc_CXX
=yes
14432 if test "$enable_shared" = yes && test "$GCC" = yes; then
14433 case $archive_cmds_CXX in
14435 # FIXME: we may have to deal with multi-command sequences.
14438 # Test whether the compiler implicitly links with -lc since on some
14439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14440 # to ld, don't add -lc before -lgcc.
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14442 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14443 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14447 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14450 (eval $ac_compile) 2>&5
14452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14453 test $ac_status = 0; } 2>conftest.err
; then
14456 libobjs
=conftest.
$ac_objext
14458 wl
=$lt_prog_compiler_wl_CXX
14459 pic_flag
=$lt_prog_compiler_pic_CXX
14465 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14466 allow_undefined_flag_CXX
=
14467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14468 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14471 test $ac_status = 0; }
14473 lt_cv_archive_cmds_need_lc_CXX
=no
14475 lt_cv_archive_cmds_need_lc_CXX
=yes
14477 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14479 cat conftest.err
1>&5
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14485 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14486 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14557 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14559 library_names_spec
=
14560 libname_spec
='lib$name'
14564 postuninstall_cmds
=
14568 shlibpath_overrides_runpath
=unknown
14570 dynamic_linker
="$host_os ld.so"
14571 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14572 need_lib_prefix
=unknown
14573 hardcode_into_libs
=no
14575 # when you set need_version to no, make sure it does not cause -set_version
14576 # flags to be left without arguments
14577 need_version
=unknown
14582 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14583 shlibpath_var
=LIBPATH
14585 # AIX 3 has no versioning support, so we append a major version to the name.
14586 soname_spec
='${libname}${release}${shared_ext}$major'
14593 hardcode_into_libs
=yes
14594 if test "$host_cpu" = ia64
; then
14595 # AIX 5 supports IA64
14596 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14597 shlibpath_var
=LD_LIBRARY_PATH
14599 # With GCC up to 2.95.x, collect2 would create an import file
14600 # for dependence libraries. The import file would start with
14601 # the line `#! .'. This would cause the generated library to
14602 # depend on `.', always an invalid library. This was fixed in
14603 # development snapshots of GCC prior to 3.0.
14605 aix4 | aix4.
[01] | aix4.
[01].
*)
14606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14608 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14611 can_build_shared
=no
14615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14616 # soname into executable. Probably we can add versioning support to
14617 # collect2, so additional links can be useful in future.
14618 if test "$aix_use_runtimelinking" = yes; then
14619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14620 # instead of lib<name>.a to let people know that these are not
14621 # typical AIX shared libraries.
14622 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14624 # We preserve .a as extension for shared libraries through AIX4.2
14625 # and later when we are not doing run time linking.
14626 library_names_spec
='${libname}${release}.a $libname.a'
14627 soname_spec
='${libname}${release}${shared_ext}$major'
14629 shlibpath_var
=LIBPATH
14636 # Since July 2007 AmigaOS4 officially supports .so libraries.
14637 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641 library_names_spec
='$libname.ixlibrary $libname.a'
14642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14643 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14649 library_names_spec
='${libname}${shared_ext}'
14650 dynamic_linker
="$host_os ld.so"
14651 shlibpath_var
=LIBRARY_PATH
14657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658 soname_spec
='${libname}${release}${shared_ext}$major'
14659 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14660 shlibpath_var
=LD_LIBRARY_PATH
14661 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14662 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14663 # the default ld.so.conf also contains /usr/contrib/lib and
14664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14665 # libtool to hard-code these into programs
14668 cygwin
* | mingw
* | pw32
* | cegcc
*)
14669 version_type
=windows
14674 case $GCC,$host_os in
14675 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14676 library_names_spec
='$libname.dll.a'
14677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14678 postinstall_cmds
='base_file=`basename \${file}`~
14679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14680 dldir=$destdir/`dirname \$dlpath`~
14681 test -d \$dldir || mkdir -p \$dldir~
14682 $install_prog $dir/$dlname \$dldir/$dlname~
14683 chmod a+x \$dldir/$dlname~
14684 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14685 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14687 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14688 dlpath=$dir/\$dldll~
14690 shlibpath_overrides_runpath
=yes
14694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14695 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14699 # MinGW DLLs use traditional 'lib' prefix
14700 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14703 # pw32 DLLs use 'pw' prefix rather than 'lib'
14704 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14710 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14713 dynamic_linker
='Win32 ld.exe'
14714 # FIXME: first we should search . and the directory the executable is in
14718 darwin
* | rhapsody
*)
14719 dynamic_linker
="$host_os dyld"
14720 version_type
=darwin
14723 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14724 soname_spec
='${libname}${release}${major}$shared_ext'
14725 shlibpath_overrides_runpath
=yes
14726 shlibpath_var
=DYLD_LIBRARY_PATH
14727 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14729 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14737 soname_spec
='${libname}${release}${shared_ext}$major'
14738 shlibpath_var
=LD_LIBRARY_PATH
14741 freebsd
* | dragonfly
*)
14742 # DragonFly does not have aout. When/if they implement a new
14743 # versioning mechanism, adjust this.
14744 if test -x /usr
/bin
/objformat
; then
14745 objformat
=`/usr/bin/objformat`
14748 freebsd
[23].
*) objformat
=aout
;;
14749 *) objformat
=elf
;;
14752 version_type
=freebsd-
$objformat
14753 case $version_type in
14755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14760 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14764 shlibpath_var
=LD_LIBRARY_PATH
14767 shlibpath_overrides_runpath
=yes
14769 freebsd3.
[01]* | freebsdelf3.
[01]*)
14770 shlibpath_overrides_runpath
=yes
14771 hardcode_into_libs
=yes
14773 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14774 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14775 shlibpath_overrides_runpath
=no
14776 hardcode_into_libs
=yes
14778 *) # from 4.6 on, and DragonFly
14779 shlibpath_overrides_runpath
=yes
14780 hardcode_into_libs
=yes
14789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14790 soname_spec
='${libname}${release}${shared_ext}$major'
14791 shlibpath_var
=LD_LIBRARY_PATH
14792 hardcode_into_libs
=yes
14799 dynamic_linker
="$host_os runtime_loader"
14800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14801 soname_spec
='${libname}${release}${shared_ext}$major'
14802 shlibpath_var
=LIBRARY_PATH
14803 shlibpath_overrides_runpath
=yes
14804 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14805 hardcode_into_libs
=yes
14808 hpux9
* | hpux10
* | hpux11
*)
14809 # Give a soname corresponding to the major version so that dld.sl refuses to
14810 # link against other versions.
14817 hardcode_into_libs
=yes
14818 dynamic_linker
="$host_os dld.so"
14819 shlibpath_var
=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14822 soname_spec
='${libname}${release}${shared_ext}$major'
14823 if test "X$HPUX_IA64_MODE" = X32
; then
14824 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14826 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14828 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14832 hardcode_into_libs
=yes
14833 dynamic_linker
="$host_os dld.sl"
14834 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14835 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837 soname_spec
='${libname}${release}${shared_ext}$major'
14838 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14839 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14843 dynamic_linker
="$host_os dld.sl"
14844 shlibpath_var
=SHLIB_PATH
14845 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec
='${libname}${release}${shared_ext}$major'
14850 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14851 postinstall_cmds
='chmod 555 $lib'
14852 # or fails outright, so override atomically:
14853 install_override_mode
=555
14860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14861 soname_spec
='${libname}${release}${shared_ext}$major'
14862 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14863 shlibpath_var
=LD_LIBRARY_PATH
14864 shlibpath_overrides_runpath
=no
14865 hardcode_into_libs
=yes
14868 irix5
* | irix6
* | nonstopux
*)
14870 nonstopux
*) version_type
=nonstopux
;;
14872 if test "$lt_cv_prog_gnu_ld" = yes; then
14880 soname_spec
='${libname}${release}${shared_ext}$major'
14881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14883 irix5
* | nonstopux
*)
14884 libsuff
= shlibsuff
=
14887 case $LD in # libtool.m4 will add one of these switches to LD
14888 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14889 libsuff
= shlibsuff
= libmagic
=32-bit;;
14890 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14891 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14892 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14893 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14894 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14898 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14899 shlibpath_overrides_runpath
=no
14900 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14901 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14902 hardcode_into_libs
=yes
14905 # No shared lib support for Linux oldld, aout, or coff.
14906 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14910 # This must be Linux ELF.
14911 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 soname_spec
='${libname}${release}${shared_ext}$major'
14917 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14918 shlibpath_var
=LD_LIBRARY_PATH
14919 shlibpath_overrides_runpath
=no
14921 # Some binutils ld are patched to set DT_RUNPATH
14922 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14923 $as_echo_n "(cached) " >&6
14925 lt_cv_shlibpath_overrides_runpath
=no
14926 save_LDFLAGS
=$LDFLAGS
14927 save_libdir
=$libdir
14928 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14929 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14941 if ac_fn_cxx_try_link
"$LINENO"; then :
14942 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14943 lt_cv_shlibpath_overrides_runpath
=yes
14946 rm -f core conftest.err conftest.
$ac_objext \
14947 conftest
$ac_exeext conftest.
$ac_ext
14948 LDFLAGS
=$save_LDFLAGS
14949 libdir
=$save_libdir
14953 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14955 # This implies no fast_install, which is unacceptable.
14956 # Some rework will be needed to allow for fast_install
14957 # before this can be enabled.
14958 hardcode_into_libs
=yes
14960 # Append ld.so.conf contents to the search path
14961 if test -f /etc
/ld.so.conf
; then
14962 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14963 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14966 # We used to test for /lib/ld.so.1 and disable shared libraries on
14967 # powerpc, because MkLinux only supported shared libraries with the
14968 # GNU dynamic linker. Since this was broken with cross compilers,
14969 # most powerpc-linux boxes support dynamic linking these days and
14970 # people can always --disable-shared, the test was removed, and we
14971 # assume the GNU/Linux dynamic linker is in use.
14972 dynamic_linker
='GNU/Linux ld.so'
14979 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14981 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14982 dynamic_linker
='NetBSD (a.out) ld.so'
14984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14985 soname_spec
='${libname}${release}${shared_ext}$major'
14986 dynamic_linker
='NetBSD ld.elf_so'
14988 shlibpath_var
=LD_LIBRARY_PATH
14989 shlibpath_overrides_runpath
=yes
14990 hardcode_into_libs
=yes
14995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996 shlibpath_var
=LD_LIBRARY_PATH
14997 shlibpath_overrides_runpath
=yes
15004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 soname_spec
='${libname}${release}${shared_ext}$major'
15006 shlibpath_var
=LD_LIBRARY_PATH
15007 shlibpath_overrides_runpath
=no
15008 hardcode_into_libs
=yes
15009 dynamic_linker
='ldqnx.so'
15014 sys_lib_dlsearch_path_spec
="/usr/lib"
15016 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15018 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15019 *) need_version
=no
;;
15021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15022 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15023 shlibpath_var
=LD_LIBRARY_PATH
15024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15026 openbsd2.
[89] | openbsd2.
[89].
*)
15027 shlibpath_overrides_runpath
=no
15030 shlibpath_overrides_runpath
=yes
15034 shlibpath_overrides_runpath
=yes
15039 libname_spec
='$name'
15042 library_names_spec
='$libname${shared_ext} $libname.a'
15043 dynamic_linker
='OS/2 ld.exe'
15044 shlibpath_var
=LIBPATH
15047 osf3
* | osf4
* | osf5
*)
15051 soname_spec
='${libname}${release}${shared_ext}$major'
15052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15053 shlibpath_var
=LD_LIBRARY_PATH
15054 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15055 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15067 soname_spec
='${libname}${release}${shared_ext}$major'
15068 shlibpath_var
=LD_LIBRARY_PATH
15069 shlibpath_overrides_runpath
=yes
15070 hardcode_into_libs
=yes
15071 # ldd complains unless libraries are executable
15072 postinstall_cmds
='chmod +x $lib'
15077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15078 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15079 shlibpath_var
=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath
=yes
15081 if test "$with_gnu_ld" = yes; then
15089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec
='${libname}${release}${shared_ext}$major'
15091 shlibpath_var
=LD_LIBRARY_PATH
15092 case $host_vendor in
15094 shlibpath_overrides_runpath
=no
15096 runpath_var
=LD_RUN_PATH
15104 shlibpath_overrides_runpath
=no
15105 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15111 if test -d /usr
/nec
;then
15113 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15114 soname_spec
='$libname${shared_ext}.$major'
15115 shlibpath_var
=LD_LIBRARY_PATH
15119 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15120 version_type
=freebsd-elf
15123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15124 soname_spec
='${libname}${release}${shared_ext}$major'
15125 shlibpath_var
=LD_LIBRARY_PATH
15126 shlibpath_overrides_runpath
=yes
15127 hardcode_into_libs
=yes
15128 if test "$with_gnu_ld" = yes; then
15129 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15131 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15134 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15138 sys_lib_dlsearch_path_spec
='/usr/lib'
15142 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 shlibpath_var
=LD_LIBRARY_PATH
15148 shlibpath_overrides_runpath
=no
15149 hardcode_into_libs
=yes
15154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155 soname_spec
='${libname}${release}${shared_ext}$major'
15156 shlibpath_var
=LD_LIBRARY_PATH
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15164 $as_echo "$dynamic_linker" >&6; }
15165 test "$dynamic_linker" = no
&& can_build_shared
=no
15167 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15168 if test "$GCC" = yes; then
15169 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15172 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15173 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
15175 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15176 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15217 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15218 hardcode_action_CXX
=
15219 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15220 test -n "$runpath_var_CXX" ||
15221 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15223 # We can hardcode non-existent directories.
15224 if test "$hardcode_direct_CXX" != no
&&
15225 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15226 # have to relink, otherwise we might link with an installed library
15227 # when we should be linking with a yet-to-be-installed one
15228 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15229 test "$hardcode_minus_L_CXX" != no
; then
15230 # Linking always hardcodes the temporary library directory.
15231 hardcode_action_CXX
=relink
15233 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15234 hardcode_action_CXX
=immediate
15237 # We cannot hardcode anything, or else we can only hardcode existing
15239 hardcode_action_CXX
=unsupported
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15242 $as_echo "$hardcode_action_CXX" >&6; }
15244 if test "$hardcode_action_CXX" = relink ||
15245 test "$inherit_rpath_CXX" = yes; then
15246 # Fast installation is not supported
15247 enable_fast_install
=no
15248 elif test "$shlibpath_overrides_runpath" = yes ||
15249 test "$enable_shared" = no
; then
15250 # Fast installation is not necessary
15251 enable_fast_install
=needless
15260 fi # test -n "$compiler"
15266 with_gnu_ld
=$lt_save_with_gnu_ld
15267 lt_cv_path_LDCXX
=$lt_cv_path_LD
15268 lt_cv_path_LD
=$lt_save_path_LD
15269 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
15270 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
15271 fi # test "$_lt_caught_CXX_error" != yes
15274 ac_cpp
='$CPP $CPPFLAGS'
15275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15291 ac_config_commands
="$ac_config_commands libtool"
15296 # Only expand once:
15304 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15305 # Note that the CILK_SELF_SPEC in gcc.c may force -pthread.
15306 # In case the pthread.h system header is not found, this test will fail.
15309 CFLAGS
="$CFLAGS -pthread"
15310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15312 #include <pthread.h>
15313 void *g(void *d) { return NULL; }
15317 pthread_t t; pthread_create(&t,NULL,g,NULL);
15322 if ac_fn_c_try_link
"$LINENO"; then :
15323 XCFLAGS
=" -Wc,-pthread"
15325 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
15326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328 #include <pthread.h>
15329 void *g(void *d) { return NULL; }
15333 pthread_t t; pthread_create(&t,NULL,g,NULL);
15338 if ac_fn_c_try_link
"$LINENO"; then :
15341 as_fn_error
"Pthreads are required to build libcilkrts" "$LINENO" 5
15343 rm -f core conftest.err conftest.
$ac_objext \
15344 conftest
$ac_exeext conftest.
$ac_ext
15346 rm -f core conftest.err conftest.
$ac_objext \
15347 conftest
$ac_exeext conftest.
$ac_ext
15349 # Check for pthread_{,attr_}[sg]etaffinity_np.
15350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h. */
15352 #include <pthread.h>
15357 pthread_attr_t attr;
15358 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15359 if (CPU_ISSET (0, &cpuset))
15360 CPU_SET (1, &cpuset);
15362 CPU_ZERO (&cpuset);
15363 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15364 pthread_attr_init (&attr);
15365 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15366 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15371 if ac_fn_c_try_link
"$LINENO"; then :
15373 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15376 rm -f core conftest.err conftest.
$ac_objext \
15377 conftest
$ac_exeext conftest.
$ac_ext
15379 # Every c++ lib is linking by default with -nostdlib, which leads to the
15380 # fact, that proper pthread library will not be given at link time. We have
15381 # to hard-code that.
15382 case "${target}" in
15385 XLDFLAGS
="$XLDFLAGS -lc"
15388 XLDFLAGS
="$XLDFLAGS -lpthread"
15396 CFLAGS
="$save_CFLAGS"
15398 if test $enable_shared = yes; then
15399 link_cilkrts
="-lcilkrts %{static: $LIBS}"
15401 link_cilkrts
="-lcilkrts $LIBS"
15407 cat >confcache
<<\_ACEOF
15408 # This file is a shell script that caches the results of configure
15409 # tests run on this system so they can be shared between configure
15410 # scripts and configure runs, see configure's option --config-cache.
15411 # It is not useful on other systems. If it contains results you don't
15412 # want to keep, you may remove or edit it.
15414 # config.status only pays attention to the cache file if you give it
15415 # the --recheck option to rerun configure.
15417 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15419 # following values.
15423 # The following way of writing the cache mishandles newlines in values,
15424 # but we know of no workaround that is simple, portable, and efficient.
15425 # So, we kill variables containing newlines.
15426 # Ultrix sh set writes to stderr and can't be redirected directly,
15427 # and sets the high bit in the cache file unless we assign to the vars.
15429 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15430 eval ac_val
=\$
$ac_var
15434 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15438 _ | IFS | as_nl
) ;; #(
15439 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15440 *) { eval $ac_var=; unset $ac_var;} ;;
15446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15447 *${as_nl}ac_space
=\
*)
15448 # `set' does not quote correctly, so add quotes: double-quote
15449 # substitution turns \\\\ into \\, and sed turns \\ into \.
15452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15455 # `set' quotes correctly as required by POSIX, so do not add quotes.
15456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15469 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15470 if test -w "$cache_file"; then
15471 test "x$cache_file" != "x/dev/null" &&
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15473 $as_echo "$as_me: updating cache $cache_file" >&6;}
15474 cat confcache
>$cache_file
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15477 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15482 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15483 # Let make expand exec_prefix.
15484 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15486 # Transform confdefs.h into DEFS.
15487 # Protect against shell expansion while executing Makefile rules.
15488 # Protect against Makefile macro expansion.
15490 # If the first sed substitution is executed (which looks for macros that
15491 # take arguments), then branch to the quote section. Otherwise,
15492 # look for a macro that doesn't take arguments.
15502 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15504 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15508 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15521 DEFS
=`sed -n "$ac_script" confdefs.h`
15526 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15527 # 1. Remove the extension, and $U if already installed.
15528 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15529 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15531 # will be set to the directory where LIBOBJS objects are built.
15532 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15533 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15535 LIBOBJS
=$ac_libobjs
15537 LTLIBOBJS
=$ac_ltlibobjs
15540 if test -n "$EXEEXT"; then
15542 am__EXEEXT_FALSE
='#'
15544 am__EXEEXT_TRUE
='#'
15548 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15549 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15552 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15553 as_fn_error
"conditional \"AMDEP\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15556 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15557 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15560 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15561 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15564 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15565 as_fn_error
"conditional \"am__fastdepCXX\" was never defined.
15566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15568 if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
15569 as_fn_error
"conditional \"LINUX_LINKER_SCRIPT\" was never defined.
15570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15572 if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
15573 as_fn_error
"conditional \"MAC_LINKER_SCRIPT\" was never defined.
15574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15577 : ${CONFIG_STATUS=./config.status}
15579 ac_clean_files_save
=$ac_clean_files
15580 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15582 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15584 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15586 # Generated by $as_me.
15587 # Run this file to recreate the current configuration.
15588 # Compiler output produced by configure, useful for debugging
15589 # configure, is in config.log if it exists.
15592 ac_cs_recheck=false
15595 SHELL=\${CONFIG_SHELL-$SHELL}
15598 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15599 ## -------------------- ##
15600 ## M4sh Initialization. ##
15601 ## -------------------- ##
15603 # Be more Bourne compatible
15604 DUALCASE
=1; export DUALCASE
# for MKS sh
15605 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15609 # is contrary to our usage. Disable this feature.
15610 alias -g '${1+"$@"}'='"$@"'
15611 setopt NO_GLOB_SUBST
15613 case `(set -o) 2>/dev/null` in #(
15625 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15626 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15628 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15629 # Prefer a ksh shell builtin over an external printf program on Solaris,
15630 # but without wasting forks for bash or zsh.
15631 if test -z "$BASH_VERSION$ZSH_VERSION" \
15632 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15633 as_echo='print
-r --'
15634 as_echo_n='print
-rn --'
15635 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15636 as_echo='printf %s
\n'
15637 as_echo_n='printf %s
'
15639 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15640 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15641 as_echo_n='/usr
/ucb
/echo -n'
15643 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15644 as_echo_n_body='eval
15648 expr "X$arg" : "X\\(.*\\)$as_nl";
15649 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15651 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15653 export as_echo_n_body
15654 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15656 export as_echo_body
15657 as_echo='sh
-c $as_echo_body as_echo
'
15660 # The user is always right.
15661 if test "${PATH_SEPARATOR+set}" != set; then
15663 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15664 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15671 # We need space, tab and new line, in precisely that order. Quoting is
15672 # there to prevent editors from complaining about space-tab.
15673 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15674 # splitting by setting IFS to empty value.)
15677 # Find who we are. Look in the path if we contain no directory separator.
15679 *[\\/]* ) as_myself=$0 ;;
15680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15681 for as_dir in $PATH
15684 test -z "$as_dir" && as_dir=.
15685 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15691 # We did not find ourselves, most probably we were run as `sh COMMAND'
15692 # in which case we are not to be found in the path.
15693 if test "x$as_myself" = x
; then
15696 if test ! -f "$as_myself"; then
15697 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15701 # Unset variables that we do not need and which cause bugs (e.g. in
15702 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15703 # suppresses any "Segmentation fault" message there. '((' could
15704 # trigger a bug in pdksh 5.2.14.
15705 for as_var
in BASH_ENV ENV MAIL MAILPATH
15706 do eval test x\
${$as_var+set} = xset \
15707 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15720 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15723 # as_fn_error ERROR [LINENO LOG_FD]
15724 # ---------------------------------
15725 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15726 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15727 # script with status $?, using 1 if that was 0.
15730 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15732 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15733 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15735 $as_echo "$as_me: error: $1" >&2
15736 as_fn_exit
$as_status
15740 # as_fn_set_status STATUS
15741 # -----------------------
15742 # Set $? to STATUS, without forking.
15743 as_fn_set_status
()
15746 } # as_fn_set_status
15748 # as_fn_exit STATUS
15749 # -----------------
15750 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15754 as_fn_set_status
$1
15760 # Portably unset VAR.
15763 { eval $1=; unset $1;}
15765 as_unset
=as_fn_unset
15766 # as_fn_append VAR VALUE
15767 # ----------------------
15768 # Append the text in VALUE to the end of the definition contained in VAR. Take
15769 # advantage of any shell optimizations that allow amortized linear growth over
15770 # repeated appends, instead of the typical quadratic growth present in naive
15772 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15773 eval 'as_fn_append ()
15784 # as_fn_arith ARG...
15785 # ------------------
15786 # Perform arithmetic evaluation on the ARGs, and store the result in the
15787 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15788 # must be portable across $(()) and expr.
15789 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15790 eval 'as_fn_arith ()
15797 as_val
=`expr "$@" || test $? -eq 1`
15802 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15803 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15809 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15810 as_basename
=basename
15815 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15821 as_me
=`$as_basename -- "$0" ||
15822 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15823 X"$0" : 'X\(//\)$' \| \
15824 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15826 sed '/^.*\/\([^/][^/]*\)\/*$/{
15840 # Avoid depending upon Character Ranges.
15841 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15842 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15843 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15844 as_cr_digits
='0123456789'
15845 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15847 ECHO_C
= ECHO_N
= ECHO_T
=
15848 case `echo -n x` in #(((((
15850 case `echo 'xy\c'` in
15851 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15853 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15860 rm -f conf$$ conf$$.exe conf$$.
file
15861 if test -d conf$$.dir
; then
15862 rm -f conf$$.dir
/conf$$.
file
15865 mkdir conf$$.dir
2>/dev
/null
15867 if (echo >conf$$.
file) 2>/dev
/null
; then
15868 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15870 # ... but there are two gotchas:
15871 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15872 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15873 # In both cases, we have to default to `cp -p'.
15874 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15876 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15884 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15885 rmdir conf$$.dir
2>/dev
/null
15890 # Create "$as_dir" as a directory, including parents if necessary.
15895 -*) as_dir
=.
/$as_dir;;
15897 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15901 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15902 *) as_qdir
=$as_dir;;
15904 as_dirs
="'$as_qdir' $as_dirs"
15905 as_dir
=`$as_dirname -- "$as_dir" ||
15906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15907 X"$as_dir" : 'X\(//\)[^/]' \| \
15908 X"$as_dir" : 'X\(//\)$' \| \
15909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15910 $as_echo X"$as_dir" |
15911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15915 /^X\(\/\/\)[^/].*/{
15928 test -d "$as_dir" && break
15930 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15931 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15935 if mkdir
-p .
2>/dev
/null
; then
15936 as_mkdir_p
='mkdir -p "$as_dir"'
15938 test -d .
/-p && rmdir .
/-p
15942 if test -x / >/dev
/null
2>&1; then
15943 as_test_x
='test -x'
15945 if ls -dL / >/dev
/null
2>&1; then
15952 if test -d "$1"; then
15958 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15959 ???[sx]*):;;*)false;;esac;fi
15963 as_executable_p
=$as_test_x
15965 # Sed expression to map a string onto a valid CPP name.
15966 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15968 # Sed expression to map a string onto a valid variable name.
15969 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15973 ## ----------------------------------- ##
15974 ## Main body of $CONFIG_STATUS script. ##
15975 ## ----------------------------------- ##
15977 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15980 # Save the log message, to keep $0 and so on meaningful, and to
15981 # report actual input values of CONFIG_FILES etc. instead of their
15982 # values after options handling.
15984 This file was extended by Cilk Runtime Library $as_me 2.0, which was
15985 generated by GNU Autoconf 2.64. Invocation command line was
15987 CONFIG_FILES = $CONFIG_FILES
15988 CONFIG_HEADERS = $CONFIG_HEADERS
15989 CONFIG_LINKS = $CONFIG_LINKS
15990 CONFIG_COMMANDS = $CONFIG_COMMANDS
15993 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15998 case $ac_config_files in *"
15999 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16005 # Files that config.status was made for.
16006 config_files="$ac_config_files"
16007 config_commands="$ac_config_commands"
16011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16013 \`$as_me' instantiates files and other configuration actions
16014 from templates according to the current configuration. Unless the files
16015 and actions are specified as TAGs, all are instantiated by default.
16017 Usage: $0 [OPTION]... [TAG]...
16019 -h, --help print this help, then exit
16020 -V, --version print version number and configuration settings, then exit
16021 -q, --quiet, --silent
16022 do not print progress messages
16023 -d, --debug don't remove temporary files
16024 --recheck update $as_me by reconfiguring in the same conditions
16025 --file=FILE[:TEMPLATE]
16026 instantiate the configuration file FILE
16028 Configuration files:
16031 Configuration commands:
16034 Report bugs to <cilk@intel.com>."
16037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16039 Cilk Runtime Library config.status 2.0
16040 configured by $0, generated by GNU Autoconf 2.64,
16041 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16043 Copyright (C) 2009 Free Software Foundation, Inc.
16044 This config.status script is free software; the Free Software Foundation
16045 gives unlimited permission to copy, distribute and modify it."
16052 test -n "\$AWK" || AWK=awk
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16056 # The default lists apply if the user does not specify any file.
16062 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16063 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16074 # Handling of the options.
16075 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16077 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16078 $as_echo "$ac_cs_version"; exit ;;
16079 --debug |
--debu |
--deb |
--de |
--d |
-d )
16081 --file |
--fil |
--fi |
--f )
16084 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16086 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16087 ac_need_defaults
=false
;;
16088 --he |
--h |
--help |
--hel |
-h )
16089 $as_echo "$ac_cs_usage"; exit ;;
16090 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16091 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16094 # This is an error.
16095 -*) as_fn_error
"unrecognized option: \`$1'
16096 Try \`$0 --help' for more information." ;;
16098 *) as_fn_append ac_config_targets
" $1"
16099 ac_need_defaults
=false
;;
16105 ac_configure_extra_args
=
16107 if $ac_cs_silent; then
16109 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16114 if \$ac_cs_recheck; then
16115 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16117 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16118 CONFIG_SHELL='$SHELL'
16119 export CONFIG_SHELL
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16129 ## Running $as_me. ##
16135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16143 with_multisubdir="$with_multisubdir"
16144 with_multisrctop="$with_multisrctop"
16145 with_target_subdir="$with_target_subdir"
16146 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16147 multi_basedir="$multi_basedir"
16148 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16151 GFORTRAN="$GFORTRAN"
16152 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16155 # The HP-UX ksh and POSIX shell print the target directory to stdout
16156 # if CDPATH is set.
16157 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16159 sed_quote_subst='$sed_quote_subst'
16160 double_quote_subst='$double_quote_subst'
16161 delay_variable_subst='$delay_variable_subst'
16162 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16163 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16164 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16165 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16166 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16167 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16168 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16169 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16170 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16171 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16172 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16173 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16174 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16175 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16176 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16177 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16178 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16179 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16180 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16181 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16182 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16183 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16184 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16185 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16186 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16187 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16188 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16189 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16190 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16191 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16192 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16193 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16194 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16195 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16196 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16197 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16198 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16199 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16200 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16201 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16202 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16203 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16204 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16205 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16206 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16207 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16208 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16209 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16210 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16211 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16212 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16213 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16214 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16215 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16216 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16217 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16218 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16219 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16220 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16221 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16222 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16223 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16224 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16225 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16226 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16227 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16228 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16229 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16230 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16231 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16232 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16233 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16234 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16235 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16236 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16237 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16238 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16239 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16240 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16241 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16242 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16243 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16244 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16245 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16246 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16247 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16248 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16249 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16250 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16251 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16252 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16253 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16254 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16255 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16256 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16257 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16258 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16259 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16260 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16261 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16262 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16263 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16264 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16265 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16266 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16267 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16268 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16269 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16270 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16271 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16272 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16273 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16274 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16275 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16276 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16277 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16278 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16279 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16280 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16281 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16282 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16283 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16284 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16285 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16286 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16287 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16288 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16289 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16290 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16291 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16292 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16293 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16294 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16295 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16296 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16297 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16298 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16299 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16300 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16301 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16302 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16303 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16304 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16305 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16306 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16307 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16308 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16309 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16310 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16311 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16312 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16313 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16314 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16315 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16316 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16317 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16318 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16319 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16320 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16321 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16322 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16323 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16324 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16325 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16326 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16327 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16328 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16329 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16330 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16331 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16332 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16333 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16334 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16335 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16336 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16339 LTCFLAGS='$LTCFLAGS'
16340 compiler='$compiler_DEFAULT'
16342 # A function that is used when there is no print builtin or printf.
16343 func_fallback_echo ()
16345 eval 'cat <<_LTECHO_EOF
16350 # Quote evaled strings.
16364 deplibs_check_method \
16373 lt_cv_sys_global_symbol_pipe \
16374 lt_cv_sys_global_symbol_to_cdecl \
16375 lt_cv_sys_global_symbol_to_c_name_address \
16376 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16377 lt_prog_compiler_no_builtin_flag \
16378 lt_prog_compiler_wl \
16379 lt_prog_compiler_pic \
16380 lt_prog_compiler_static \
16381 lt_cv_prog_compiler_c_o \
16389 export_dynamic_flag_spec \
16390 whole_archive_flag_spec \
16391 compiler_needs_object \
16393 allow_undefined_flag \
16394 no_undefined_flag \
16395 hardcode_libdir_flag_spec \
16396 hardcode_libdir_flag_spec_ld \
16397 hardcode_libdir_separator \
16402 variables_saved_for_relink \
16404 library_names_spec \
16406 install_override_mode \
16410 compiler_lib_search_dirs \
16415 compiler_lib_search_path \
16419 lt_prog_compiler_no_builtin_flag_CXX \
16420 lt_prog_compiler_wl_CXX \
16421 lt_prog_compiler_pic_CXX \
16422 lt_prog_compiler_static_CXX \
16423 lt_cv_prog_compiler_c_o_CXX \
16424 export_dynamic_flag_spec_CXX \
16425 whole_archive_flag_spec_CXX \
16426 compiler_needs_object_CXX \
16428 allow_undefined_flag_CXX \
16429 no_undefined_flag_CXX \
16430 hardcode_libdir_flag_spec_CXX \
16431 hardcode_libdir_flag_spec_ld_CXX \
16432 hardcode_libdir_separator_CXX \
16433 fix_srcfile_path_CXX \
16434 exclude_expsyms_CXX \
16435 include_expsyms_CXX \
16436 file_list_spec_CXX \
16437 compiler_lib_search_dirs_CXX \
16438 predep_objects_CXX \
16439 postdep_objects_CXX \
16442 compiler_lib_search_path_CXX; do
16443 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16444 *[\\\\\\\`\\"\\\$]*)
16445 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16448 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16453 # Double-quote double-evaled strings.
16454 for var in reload_cmds \
16455 old_postinstall_cmds \
16456 old_postuninstall_cmds \
16458 extract_expsyms_cmds \
16459 old_archive_from_new_cmds \
16460 old_archive_from_expsyms_cmds \
16462 archive_expsym_cmds \
16464 module_expsym_cmds \
16465 export_symbols_cmds \
16468 postuninstall_cmds \
16470 sys_lib_search_path_spec \
16471 sys_lib_dlsearch_path_spec \
16473 old_archive_cmds_CXX \
16474 old_archive_from_new_cmds_CXX \
16475 old_archive_from_expsyms_cmds_CXX \
16477 archive_expsym_cmds_CXX \
16479 module_expsym_cmds_CXX \
16480 export_symbols_cmds_CXX \
16481 prelink_cmds_CXX; do
16482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16483 *[\\\\\\\`\\"\\\$]*)
16484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16492 ac_aux_dir='$ac_aux_dir'
16493 xsi_shell='$xsi_shell'
16494 lt_shell_append='$lt_shell_append'
16496 # See if we are running on zsh, and set the options which allow our
16497 # commands through without removal of \ escapes INIT.
16498 if test -n "\${ZSH_VERSION+set}" ; then
16499 setopt NO_GLOB_SUBST
16505 TIMESTAMP='$TIMESTAMP'
16516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16518 # Handling of arguments.
16519 for ac_config_target
in $ac_config_targets
16521 case $ac_config_target in
16522 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16523 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16524 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16525 "libcilkrts.spec") CONFIG_FILES
="$CONFIG_FILES libcilkrts.spec" ;;
16526 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16528 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16533 # If the user did not use the arguments to specify the items to instantiate,
16534 # then the envvar interface is used. Set only those that are not.
16535 # We use the long form for the default assignment because of an extremely
16536 # bizarre bug on SunOS 4.1.3.
16537 if $ac_need_defaults; then
16538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16539 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16542 # Have a temporary directory for convenience. Make it in the build tree
16543 # simply because there is no reason against having it here, and in addition,
16544 # creating and moving files from /tmp can sometimes cause problems.
16545 # Hook for its removal unless debugging.
16546 # Note that there is a small window in which the directory will not be cleaned:
16547 # after its creation but before its name has been assigned to `$tmp'.
16551 trap 'exit_status=$?
16552 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16554 trap 'as_fn_exit 1' 1 2 13 15
16556 # Create a (secure) tmp directory for tmp files.
16559 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16560 test -n "$tmp" && test -d "$tmp"
16563 tmp
=.
/conf$$
-$RANDOM
16564 (umask 077 && mkdir
"$tmp")
16565 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16567 # Set up the scripts for CONFIG_FILES section.
16568 # No need to generate them if there are no CONFIG_FILES.
16569 # This happens for instance with `./config.status config.h'.
16570 if test -n "$CONFIG_FILES"; then
16573 ac_cr
=`echo X | tr X '\015'`
16574 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16575 # But we know of no other shell where ac_cr would be empty at this
16576 # point, so we can use a bashism as a fallback.
16577 if test "x$ac_cr" = x
; then
16578 eval ac_cr
=\$
\'\\r
\'
16580 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16581 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16584 ac_cs_awk_cr
=$ac_cr
16587 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16592 echo "cat >conf$$subs.awk <<_ACEOF" &&
16593 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16595 } >conf$$subs.sh ||
16596 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16597 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16599 for ac_last_try in false false false false false :; do
16600 . ./conf$$subs.sh ||
16601 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16603 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16604 if test $ac_delim_n = $ac_delim_num; then
16606 elif $ac_last_try; then
16607 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16609 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16612 rm -f conf$$subs.sh
16614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16615 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16619 s/^/S["/; s
/!.
*/"]=/
16629 s/\(.\{148\}\).*/\1/
16631 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16636 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16643 s/\(.\{148\}\).*/\1/
16645 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16649 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16654 ' <conf$$subs.awk | sed '
16659 ' >>$CONFIG_STATUS || ac_write_fail=1
16660 rm -f conf$$subs.awk
16661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16663 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16664 for (key in S) S_is_set[key] = 1
16670 nfields = split(line, field, "@
")
16672 len = length(field[1])
16673 for (i = 2; i < nfields; i++) {
16675 keylen = length(key)
16676 if (S_is_set[key]) {
16678 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16679 len += length(value) + length(field[++i])
16690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16691 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16692 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16695 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16696 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16699 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16700 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16701 # trailing colons and then remove the whole line if VPATH becomes empty
16702 # (actually we leave an empty line to preserve line numbers).
16703 if test "x
$srcdir" = x.; then
16704 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16705 s/:*\$(srcdir):*/:/
16706 s/:*\${srcdir}:*/:/
16708 s/^\([^=]*=[ ]*\):*/\1/
16714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16715 fi # test -n "$CONFIG_FILES"
16718 eval set X " :F
$CONFIG_FILES :C
$CONFIG_COMMANDS"
16723 :[FHLC]) ac_mode=$ac_tag; continue;;
16725 case $ac_mode$ac_tag in
16727 :L* | :C*:*) as_fn_error "invalid tag \
`$ac_tag'" "$LINENO" 5;;
16728 :[FH]-) ac_tag=-:-;;
16729 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16746 -) ac_f="$tmp/stdin";;
16747 *) # Look for the file first in the build tree, then in the source tree
16748 # (if the path is not absolute). The absolute path cannot be DOS-style,
16749 # because $ac_f cannot contain `:'.
16753 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16755 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16757 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
16758 as_fn_append ac_file_inputs " '$ac_f'"
16761 # Let's still pretend it is `configure' which instantiates (i.e., don't
16762 # use $as_me), people would be surprised to read:
16763 # /* config.h. Generated by config.status. */
16764 configure_input='Generated from '`
16765 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16767 if test x"$ac_file" != x-; then
16768 configure_input="$ac_file.
$configure_input"
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
16770 $as_echo "$as_me: creating
$ac_file" >&6;}
16772 # Neutralize special characters interpreted by sed in replacement strings.
16773 case $configure_input in #(
16774 *\&* | *\|* | *\\* )
16775 ac_sed_conf_input=`$as_echo "$configure_input" |
16776 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16777 *) ac_sed_conf_input=$configure_input;;
16781 *:-:* | *:-) cat >"$tmp/stdin
" \
16782 || as_fn_error "could not create
$ac_file" "$LINENO" 5 ;;
16787 ac_dir=`$as_dirname -- "$ac_file" ||
16788 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16789 X"$ac_file" : 'X\(//\)[^/]' \| \
16790 X"$ac_file" : 'X\(//\)$' \| \
16791 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16792 $as_echo X"$ac_file" |
16793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16797 /^X\(\/\/\)[^/].*/{
16810 as_dir="$ac_dir"; as_fn_mkdir_p
16814 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16816 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16817 # A "..
" for each directory in $ac_dir_suffix.
16818 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16819 case $ac_top_builddir_sub in
16820 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16821 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16824 ac_abs_top_builddir=$ac_pwd
16825 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16826 # for backward compatibility:
16827 ac_top_builddir=$ac_top_build_prefix
16830 .) # We are building in place.
16832 ac_top_srcdir=$ac_top_builddir_sub
16833 ac_abs_top_srcdir=$ac_pwd ;;
16834 [\\/]* | ?:[\\/]* ) # Absolute name.
16835 ac_srcdir=$srcdir$ac_dir_suffix;
16836 ac_top_srcdir=$srcdir
16837 ac_abs_top_srcdir=$srcdir ;;
16838 *) # Relative name.
16839 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16840 ac_top_srcdir=$ac_top_build_prefix$srcdir
16841 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16843 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16854 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16856 ac_MKDIR_P=$MKDIR_P
16858 [\\/$]* | ?:[\\/]* ) ;;
16859 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16864 # If the template does not know about datarootdir, expand it.
16865 # FIXME: This hack should be removed a few years after 2.60.
16866 ac_datarootdir_hack=; ac_datarootdir_seen=
16877 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
16878 *datarootdir*) ac_datarootdir_seen=yes;;
16879 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
16881 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
16883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16884 ac_datarootdir_hack='
16885 s&@datadir@&$datadir&g
16886 s&@docdir@&$docdir&g
16887 s&@infodir@&$infodir&g
16888 s&@localedir@&$localedir&g
16889 s&@mandir@&$mandir&g
16890 s&\\\${datarootdir}&$datarootdir&g' ;;
16894 # Neutralize VPATH when `$srcdir' = `.'.
16895 # Shell code in configure.ac might set extrasub.
16896 # FIXME: do we really want to maintain this feature?
16897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16898 ac_sed_extra="$ac_vpsub
16901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16903 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16904 s|@configure_input@|
$ac_sed_conf_input|
;t t
16905 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16906 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16907 s
&@srcdir@
&$ac_srcdir&;t t
16908 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16909 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16910 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16911 s
&@builddir@
&$ac_builddir&;t t
16912 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16913 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16914 s
&@INSTALL@
&$ac_INSTALL&;t t
16915 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16916 $ac_datarootdir_hack
16918 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
16919 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16921 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16922 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16923 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16925 which seems to be undefined. Please make sure it is defined." >&5
16926 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16927 which seems to be undefined. Please make sure it is defined." >&2;}
16931 -) cat "$tmp/out" && rm -f "$tmp/out";;
16932 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16934 || as_fn_error "could not create $ac_file" "$LINENO" 5
16938 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16939 $as_echo "$as_me: executing $ac_file commands" >&6;}
16944 case $ac_file$ac_mode in
16946 # Only add multilib support code if we just rebuilt the top-level
16948 case " $CONFIG_FILES " in
16950 ac_file=Makefile . ${multi_basedir}/config-ml.in
16953 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16954 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16955 # are listed without --file. Let's play safe and only
enable the
eval
16956 # if we detect the quoting.
16957 case $CONFIG_FILES in
16958 *\'*) eval set x
"$CONFIG_FILES" ;;
16959 *) set x
$CONFIG_FILES ;;
16964 # Strip MF so we end up with the name of the file.
16965 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16966 # Check whether this is an Automake generated Makefile or not.
16967 # We used to match only the files named `Makefile.in', but
16968 # some people rename them; so instead we look at the file content.
16969 # Grep'ing the first line is not enough: some people post-process
16970 # each Makefile.in and add a new line on top of each file to say so.
16971 # Grep'ing the whole file is not good either: AIX grep has a line
16972 # limit of 2048, but all sed's we know have understand at least 4000.
16973 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16974 dirpart
=`$as_dirname -- "$mf" ||
16975 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16976 X"$mf" : 'X\(//\)[^/]' \| \
16977 X"$mf" : 'X\(//\)$' \| \
16978 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16984 /^X\(\/\/\)[^/].*/{
17000 # Extract the definition of DEPDIR, am__include, and am__quote
17001 # from the Makefile without running `make'.
17002 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17003 test -z "$DEPDIR" && continue
17004 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17005 test -z "am__include" && continue
17006 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17007 # When using ansi2knr, U may be empty or an underscore; expand it
17008 U
=`sed -n 's/^U = //p' < "$mf"`
17009 # Find all dependency output files, they are included files with
17010 # $(DEPDIR) in their names. We invoke sed twice because it is the
17011 # simplest approach to changing $(DEPDIR) to its actual value in the
17013 for file in `sed -n "
17014 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17015 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17016 # Make sure the directory exists.
17017 test -f "$dirpart/$file" && continue
17018 fdir
=`$as_dirname -- "$file" ||
17019 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17020 X"$file" : 'X\(//\)[^/]' \| \
17021 X"$file" : 'X\(//\)$' \| \
17022 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17023 $as_echo X"$file" |
17024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17028 /^X\(\/\/\)[^/].*/{
17041 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17042 # echo "creating $dirpart/$file"
17043 echo '# dummy' > "$dirpart/$file"
17050 # See if we are running on zsh, and set the options which allow our
17051 # commands through without removal of \ escapes.
17052 if test -n "${ZSH_VERSION+set}" ; then
17053 setopt NO_GLOB_SUBST
17056 cfgfile
="${ofile}T"
17057 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17060 cat <<_LT_EOF >> "$cfgfile"
17063 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17064 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17066 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17068 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17069 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17070 # Written by Gordon Matzigkeit, 1996
17072 # This file is part of GNU Libtool.
17074 # GNU Libtool is free software; you can redistribute it and/or
17075 # modify it under the terms of the GNU General Public License as
17076 # published by the Free Software Foundation; either version 2 of
17077 # the License, or (at your option) any later version.
17079 # As a special exception to the GNU General Public License,
17080 # if you distribute this file as part of a program or library that
17081 # is built using GNU Libtool, you may include this file under the
17082 # same distribution terms that you use for the rest of that program.
17084 # GNU Libtool is distributed in the hope that it will be useful,
17085 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17086 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17087 # GNU General Public License for more details.
17089 # You should have received a copy of the GNU General Public License
17090 # along with GNU Libtool; see the file COPYING. If not, a copy
17091 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17092 # obtained by writing to the Free Software Foundation, Inc.,
17093 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17096 # The names of the tagged configurations supported by this script.
17097 available_tags="CXX "
17099 # ### BEGIN LIBTOOL CONFIG
17101 # Which release of libtool.m4 was used?
17102 macro_version=$macro_version
17103 macro_revision=$macro_revision
17105 # Whether or not to build shared libraries.
17106 build_libtool_libs=$enable_shared
17108 # Whether or not to build static libraries.
17109 build_old_libs=$enable_static
17111 # What type of objects to build.
17114 # Whether or not to optimize for fast installation.
17115 fast_install=$enable_fast_install
17117 # Shell to use when invoking shell scripts.
17120 # An echo program that protects backslashes.
17124 host_alias=$host_alias
17128 # The build system.
17129 build_alias=$build_alias
17133 # A sed program that does not truncate output.
17136 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17137 Xsed="\$SED -e 1s/^X//"
17139 # A grep program that handles long lines.
17145 # A literal string matcher.
17148 # A BSD- or MS-compatible name lister.
17151 # Whether we need soft or hard links.
17154 # What is the maximum length of a command?
17155 max_cmd_len=$max_cmd_len
17157 # Object file suffix (normally "o").
17160 # Executable file suffix (normally "").
17163 # whether the shell understands "unset".
17166 # turn spaces into newlines.
17169 # turn newlines into spaces.
17172 # An object symbol dumper.
17173 OBJDUMP=$lt_OBJDUMP
17175 # Method to check whether dependent libraries are shared objects.
17176 deplibs_check_method=$lt_deplibs_check_method
17178 # Command to use when deplibs_check_method == "file_magic".
17179 file_magic_cmd=$lt_file_magic_cmd
17183 AR_FLAGS=$lt_AR_FLAGS
17185 # A symbol stripping program.
17188 # Commands used to install an old-style archive.
17190 old_postinstall_cmds=$lt_old_postinstall_cmds
17191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17193 # Whether to use a lock for old archive extraction.
17194 lock_old_archive_extraction=$lock_old_archive_extraction
17199 # LTCC compiler flags.
17200 LTCFLAGS=$lt_CFLAGS
17202 # Take the output of nm and produce a listing of raw symbols and C names.
17203 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17205 # Transform the output of nm in a proper C declaration.
17206 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17208 # Transform the output of nm in a C name address pair.
17209 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17211 # Transform the output of nm in a C name address pair when lib prefix is needed.
17212 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17214 # The name of the directory that contains temporary libtool files.
17217 # Used to examine libraries when file_magic_cmd begins with "file".
17218 MAGIC_CMD=$MAGIC_CMD
17220 # Must we lock files when doing compilation?
17221 need_locks=$lt_need_locks
17223 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17224 DSYMUTIL=$lt_DSYMUTIL
17226 # Tool to change global to local symbols on Mac OS X.
17229 # Tool to manipulate fat objects and archives on Mac OS X.
17232 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17235 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17236 OTOOL64=$lt_OTOOL64
17238 # Old archive suffix (normally "a").
17241 # Shared library suffix (normally ".so").
17242 shrext_cmds=$lt_shrext_cmds
17244 # The commands to extract the exported symbol list from a shared archive.
17245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17247 # Variables whose values should be saved in libtool wrapper scripts and
17248 # restored at link time.
17249 variables_saved_for_relink=$lt_variables_saved_for_relink
17251 # Do we need the "lib" prefix for modules?
17252 need_lib_prefix=$need_lib_prefix
17254 # Do we need a version for libraries?
17255 need_version=$need_version
17257 # Library versioning type.
17258 version_type=$version_type
17260 # Shared library runtime path variable.
17261 runpath_var=$runpath_var
17263 # Shared library path variable.
17264 shlibpath_var=$shlibpath_var
17266 # Is shlibpath searched before the hard-coded library search path?
17267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17269 # Format of library name prefix.
17270 libname_spec=$lt_libname_spec
17272 # List of archive names. First name is the real one, the rest are links.
17273 # The last name is the one that the linker finds with -lNAME
17274 library_names_spec=$lt_library_names_spec
17276 # The coded name of the library, if different from the real name.
17277 soname_spec=$lt_soname_spec
17279 # Permission mode override for installation of shared libraries.
17280 install_override_mode=$lt_install_override_mode
17282 # Command to use after installation of a shared archive.
17283 postinstall_cmds=$lt_postinstall_cmds
17285 # Command to use after uninstallation of a shared archive.
17286 postuninstall_cmds=$lt_postuninstall_cmds
17288 # Commands used to finish a libtool library installation in a directory.
17289 finish_cmds=$lt_finish_cmds
17291 # As "finish_cmds", except a single script fragment to be evaled but
17293 finish_eval=$lt_finish_eval
17295 # Whether we should hardcode library paths into libraries.
17296 hardcode_into_libs=$hardcode_into_libs
17298 # Compile-time system search path for libraries.
17299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17301 # Run-time system search path for libraries.
17302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17304 # Whether dlopen is supported.
17305 dlopen_support=$enable_dlopen
17307 # Whether dlopen of programs is supported.
17308 dlopen_self=$enable_dlopen_self
17310 # Whether dlopen of statically linked programs is supported.
17311 dlopen_self_static=$enable_dlopen_self_static
17313 # Commands to strip libraries.
17314 old_striplib=$lt_old_striplib
17315 striplib=$lt_striplib
17318 # The linker used to build libraries.
17321 # How to create reloadable object files.
17322 reload_flag=$lt_reload_flag
17323 reload_cmds=$lt_reload_cmds
17325 # Commands used to build an old-style archive.
17326 old_archive_cmds=$lt_old_archive_cmds
17328 # A language specific compiler.
17331 # Is the compiler the GNU compiler?
17334 # Compiler flag to turn off builtin functions.
17335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17337 # How to pass a linker flag through the compiler.
17338 wl=$lt_lt_prog_compiler_wl
17340 # Additional compiler flags for building library objects.
17341 pic_flag=$lt_lt_prog_compiler_pic
17343 # Compiler flag to prevent dynamic linking.
17344 link_static_flag=$lt_lt_prog_compiler_static
17346 # Does compiler simultaneously support -c and -o options?
17347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17349 # Whether or not to add -lc for building shared libraries.
17350 build_libtool_need_lc=$archive_cmds_need_lc
17352 # Whether or not to disallow shared libs when runtime libs are static.
17353 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17355 # Compiler flag to allow reflexive dlopens.
17356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17358 # Compiler flag to generate shared objects directly from archives.
17359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17361 # Whether the compiler copes with passing no objects directly.
17362 compiler_needs_object=$lt_compiler_needs_object
17364 # Create an old-style archive from a shared archive.
17365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17367 # Create a temporary old-style archive to link instead of a shared archive.
17368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17370 # Commands used to build a shared archive.
17371 archive_cmds=$lt_archive_cmds
17372 archive_expsym_cmds=$lt_archive_expsym_cmds
17374 # Commands used to build a loadable module if different from building
17375 # a shared archive.
17376 module_cmds=$lt_module_cmds
17377 module_expsym_cmds=$lt_module_expsym_cmds
17379 # Whether we are building with GNU ld or not.
17380 with_gnu_ld=$lt_with_gnu_ld
17382 # Flag that allows shared libraries with undefined symbols to be built.
17383 allow_undefined_flag=$lt_allow_undefined_flag
17385 # Flag that enforces no undefined symbols.
17386 no_undefined_flag=$lt_no_undefined_flag
17388 # Flag to hardcode \$libdir into a binary during linking.
17389 # This must work even if \$libdir does not exist
17390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17392 # If ld is used when linking, flag to hardcode \$libdir into a binary
17393 # during linking. This must work even if \$libdir does not exist.
17394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17396 # Whether we need a single "-rpath" flag with a separated argument.
17397 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17399 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17400 # DIR into the resulting binary.
17401 hardcode_direct=$hardcode_direct
17403 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17404 # DIR into the resulting binary and the resulting library dependency is
17405 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17406 # library is relocated.
17407 hardcode_direct_absolute=$hardcode_direct_absolute
17409 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17410 # into the resulting binary.
17411 hardcode_minus_L=$hardcode_minus_L
17413 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17414 # into the resulting binary.
17415 hardcode_shlibpath_var=$hardcode_shlibpath_var
17417 # Set to "yes" if building a shared library automatically hardcodes DIR
17418 # into the library and all subsequent libraries and executables linked
17420 hardcode_automatic=$hardcode_automatic
17422 # Set to yes if linker adds runtime paths of dependent libraries
17423 # to runtime path list.
17424 inherit_rpath=$inherit_rpath
17426 # Whether libtool must link a program against all its dependency libraries.
17427 link_all_deplibs=$link_all_deplibs
17429 # Fix the shell variable \$srcfile for the compiler.
17430 fix_srcfile_path=$lt_fix_srcfile_path
17432 # Set to "yes" if exported symbols are required.
17433 always_export_symbols=$always_export_symbols
17435 # The commands to list exported symbols.
17436 export_symbols_cmds=$lt_export_symbols_cmds
17438 # Symbols that should not be listed in the preloaded symbols.
17439 exclude_expsyms=$lt_exclude_expsyms
17441 # Symbols that must always be exported.
17442 include_expsyms=$lt_include_expsyms
17444 # Commands necessary for linking programs (against libraries) with templates.
17445 prelink_cmds=$lt_prelink_cmds
17447 # Specify filename containing input files.
17448 file_list_spec=$lt_file_list_spec
17450 # How to hardcode a shared library path into an executable.
17451 hardcode_action=$hardcode_action
17453 # The directories searched by this compiler when creating a shared library.
17454 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17456 # Dependencies to place before and after the objects being linked to
17457 # create a shared library.
17458 predep_objects=$lt_predep_objects
17459 postdep_objects=$lt_postdep_objects
17460 predeps=$lt_predeps
17461 postdeps=$lt_postdeps
17463 # The library search path used internally by the compiler when linking
17464 # a shared library.
17465 compiler_lib_search_path=$lt_compiler_lib_search_path
17467 # ### END LIBTOOL CONFIG
17473 cat <<\_LT_EOF
>> "$cfgfile"
17474 # AIX sometimes has problems with the GCC collect2 program. For some
17475 # reason, if we set the COLLECT_NAMES environment variable, the problems
17476 # vanish in a puff of smoke.
17477 if test "X${COLLECT_NAMES+set}" != Xset
; then
17479 export COLLECT_NAMES
17486 ltmain
="$ac_aux_dir/ltmain.sh"
17489 # We use sed instead of cat because bash on DJGPP gets confused if
17490 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17491 # text mode, it properly converts lines to CR/LF. This bash problem
17492 # is reportedly fixed, but why not run on old versions too?
17493 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17494 ||
(rm -f "$cfgfile"; exit 1)
17498 cat << \_LT_EOF
>> "$cfgfile"
17500 # func_dirname file append nondir_replacement
17501 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17502 # otherwise set result to NONDIR_REPLACEMENT.
17506 */*) func_dirname_result
="${1%/*}${2}" ;;
17507 * ) func_dirname_result
="${3}" ;;
17511 # func_basename file
17514 func_basename_result
="${1##*/}"
17517 # func_dirname_and_basename file append nondir_replacement
17518 # perform func_basename and func_dirname in a single function
17520 # dirname: Compute the dirname of FILE. If nonempty,
17521 # add APPEND to the result, otherwise set result
17522 # to NONDIR_REPLACEMENT.
17523 # value returned in "$func_dirname_result"
17524 # basename: Compute filename of FILE.
17525 # value retuned in "$func_basename_result"
17526 # Implementation must be kept synchronized with func_dirname
17527 # and func_basename. For efficiency, we do not delegate to
17528 # those functions but instead duplicate the functionality here.
17529 func_dirname_and_basename
()
17532 */*) func_dirname_result
="${1%/*}${2}" ;;
17533 * ) func_dirname_result
="${3}" ;;
17535 func_basename_result
="${1##*/}"
17538 # func_stripname prefix suffix name
17539 # strip PREFIX and SUFFIX off of NAME.
17540 # PREFIX and SUFFIX must not contain globbing or regex special
17541 # characters, hashes, percent signs, but SUFFIX may contain a leading
17542 # dot (in which case that matches only a dot).
17545 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17546 # positional parameters, so assign one to ordinary parameter first.
17547 func_stripname_result
=${3}
17548 func_stripname_result
=${func_stripname_result#"${1}"}
17549 func_stripname_result
=${func_stripname_result%"${2}"}
17555 func_opt_split_opt
=${1%%=*}
17556 func_opt_split_arg
=${1#*=}
17563 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17564 *) func_lo2o_result
=${1} ;;
17568 # func_xform libobj-or-source
17571 func_xform_result
=${1%.*}.lo
17574 # func_arith arithmetic-term...
17577 func_arith_result
=$
(( $
* ))
17581 # STRING may not start with a hyphen.
17584 func_len_result
=${#1}
17589 *) # Bourne compatible functions.
17590 cat << \_LT_EOF
>> "$cfgfile"
17592 # func_dirname file append nondir_replacement
17593 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17594 # otherwise set result to NONDIR_REPLACEMENT.
17597 # Extract subdirectory from the argument.
17598 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17599 if test "X$func_dirname_result" = "X${1}"; then
17600 func_dirname_result
="${3}"
17602 func_dirname_result
="$func_dirname_result${2}"
17606 # func_basename file
17609 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17613 # func_stripname prefix suffix name
17614 # strip PREFIX and SUFFIX off of NAME.
17615 # PREFIX and SUFFIX must not contain globbing or regex special
17616 # characters, hashes, percent signs, but SUFFIX may contain a leading
17617 # dot (in which case that matches only a dot).
17618 # func_strip_suffix prefix name
17622 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17623 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17628 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17629 my_sed_long_arg
='1s/^-[^=]*=//'
17634 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17635 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17641 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17644 # func_xform libobj-or-source
17647 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17650 # func_arith arithmetic-term...
17653 func_arith_result
=`expr "$@"`
17657 # STRING may not start with a hyphen.
17660 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17666 case $lt_shell_append in
17668 cat << \_LT_EOF
>> "$cfgfile"
17670 # func_append var value
17671 # Append VALUE to the end of shell variable VAR.
17679 cat << \_LT_EOF
>> "$cfgfile"
17681 # func_append var value
17682 # Append VALUE to the end of shell variable VAR.
17693 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17694 ||
(rm -f "$cfgfile"; exit 1)
17696 mv -f "$cfgfile" "$ofile" ||
17697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17701 cat <<_LT_EOF >> "$ofile"
17703 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17705 # The linker used to build libraries.
17708 # How to create reloadable object files.
17709 reload_flag=$lt_reload_flag_CXX
17710 reload_cmds=$lt_reload_cmds_CXX
17712 # Commands used to build an old-style archive.
17713 old_archive_cmds=$lt_old_archive_cmds_CXX
17715 # A language specific compiler.
17716 CC=$lt_compiler_CXX
17718 # Is the compiler the GNU compiler?
17721 # Compiler flag to turn off builtin functions.
17722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17724 # How to pass a linker flag through the compiler.
17725 wl=$lt_lt_prog_compiler_wl_CXX
17727 # Additional compiler flags for building library objects.
17728 pic_flag=$lt_lt_prog_compiler_pic_CXX
17730 # Compiler flag to prevent dynamic linking.
17731 link_static_flag=$lt_lt_prog_compiler_static_CXX
17733 # Does compiler simultaneously support -c and -o options?
17734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17736 # Whether or not to add -lc for building shared libraries.
17737 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17739 # Whether or not to disallow shared libs when runtime libs are static.
17740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17742 # Compiler flag to allow reflexive dlopens.
17743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17745 # Compiler flag to generate shared objects directly from archives.
17746 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17748 # Whether the compiler copes with passing no objects directly.
17749 compiler_needs_object=$lt_compiler_needs_object_CXX
17751 # Create an old-style archive from a shared archive.
17752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17754 # Create a temporary old-style archive to link instead of a shared archive.
17755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17757 # Commands used to build a shared archive.
17758 archive_cmds=$lt_archive_cmds_CXX
17759 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17761 # Commands used to build a loadable module if different from building
17762 # a shared archive.
17763 module_cmds=$lt_module_cmds_CXX
17764 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17766 # Whether we are building with GNU ld or not.
17767 with_gnu_ld=$lt_with_gnu_ld_CXX
17769 # Flag that allows shared libraries with undefined symbols to be built.
17770 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17772 # Flag that enforces no undefined symbols.
17773 no_undefined_flag=$lt_no_undefined_flag_CXX
17775 # Flag to hardcode \$libdir into a binary during linking.
17776 # This must work even if \$libdir does not exist
17777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17779 # If ld is used when linking, flag to hardcode \$libdir into a binary
17780 # during linking. This must work even if \$libdir does not exist.
17781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17783 # Whether we need a single "-rpath" flag with a separated argument.
17784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17787 # DIR into the resulting binary.
17788 hardcode_direct=$hardcode_direct_CXX
17790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17791 # DIR into the resulting binary and the resulting library dependency is
17792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17793 # library is relocated.
17794 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17797 # into the resulting binary.
17798 hardcode_minus_L=$hardcode_minus_L_CXX
17800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17801 # into the resulting binary.
17802 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17804 # Set to "yes" if building a shared library automatically hardcodes DIR
17805 # into the library and all subsequent libraries and executables linked
17807 hardcode_automatic=$hardcode_automatic_CXX
17809 # Set to yes if linker adds runtime paths of dependent libraries
17810 # to runtime path list.
17811 inherit_rpath=$inherit_rpath_CXX
17813 # Whether libtool must link a program against all its dependency libraries.
17814 link_all_deplibs=$link_all_deplibs_CXX
17816 # Fix the shell variable \$srcfile for the compiler.
17817 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17819 # Set to "yes" if exported symbols are required.
17820 always_export_symbols=$always_export_symbols_CXX
17822 # The commands to list exported symbols.
17823 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17825 # Symbols that should not be listed in the preloaded symbols.
17826 exclude_expsyms=$lt_exclude_expsyms_CXX
17828 # Symbols that must always be exported.
17829 include_expsyms=$lt_include_expsyms_CXX
17831 # Commands necessary for linking programs (against libraries) with templates.
17832 prelink_cmds=$lt_prelink_cmds_CXX
17834 # Specify filename containing input files.
17835 file_list_spec=$lt_file_list_spec_CXX
17837 # How to hardcode a shared library path into an executable.
17838 hardcode_action=$hardcode_action_CXX
17840 # The directories searched by this compiler when creating a shared library.
17841 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17843 # Dependencies to place before and after the objects being linked to
17844 # create a shared library.
17845 predep_objects=$lt_predep_objects_CXX
17846 postdep_objects=$lt_postdep_objects_CXX
17847 predeps=$lt_predeps_CXX
17848 postdeps=$lt_postdeps_CXX
17850 # The library search path used internally by the compiler when linking
17851 # a shared library.
17852 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17854 # ### END LIBTOOL TAG CONFIG: CXX
17865 ac_clean_files
=$ac_clean_files_save
17867 test $ac_write_fail = 0 ||
17868 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17871 # configure is writing to config.log, and then calls config.status.
17872 # config.status does its own redirection, appending to config.log.
17873 # Unfortunately, on DOS this fails, as config.log is still kept open
17874 # by configure, so config.status won't be able to write to it; its
17875 # output is simply discarded. So we exec the FD to /dev/null,
17876 # effectively closing config.log, so it can be properly (re)opened and
17877 # appended to by config.status. When coming back to configure, we
17878 # need to make the FD available again.
17879 if test "$no_create" != yes; then
17881 ac_config_status_args
=
17882 test "$silent" = yes &&
17883 ac_config_status_args
="$ac_config_status_args --quiet"
17885 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17887 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17888 # would make configure fail if this is the last instruction.
17889 $ac_cs_success || as_fn_exit $?
17891 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17893 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}