2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME
='libgomp'
590 PACKAGE_VERSION
='1.0'
591 PACKAGE_STRING
='GNU Offloading and Multi Processing Runtime Library 1.0'
593 PACKAGE_URL
='http://www.gnu.org/software/libgomp/'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
633 ac_subst_vars
='am__EXEEXT_FALSE
638 OMP_NEST_LOCK_25_KIND
640 OMP_NEST_LOCK_25_ALIGN
641 OMP_NEST_LOCK_25_SIZE
657 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
658 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
659 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
671 offload_additional_lib_paths
672 offload_additional_options
687 PLUGIN_NVPTX_CPPFLAGS
696 MAINTAINER_MODE_FALSE
755 INSTALL_STRIP_PROGRAM
811 program_transform_name
824 enable_option_checking
825 enable_version_specific_runtime_libs
826 enable_generated_files_in_srcdir
830 enable_dependency_tracking
837 enable_maintainer_mode
839 with_cuda_driver_include
842 with_hsa_runtime_include
848 with_gcc_major_version_only
850 ac_precious_vars
='build_alias
861 # Initialize some variables set by options.
863 ac_init_version
=false
864 ac_unrecognized_opts
=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
875 program_transform_name
=s
,x
,x
,
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir
='${exec_prefix}/bin'
890 sbindir
='${exec_prefix}/sbin'
891 libexecdir
='${exec_prefix}/libexec'
892 datarootdir
='${prefix}/share'
893 datadir
='${datarootdir}'
894 sysconfdir
='${prefix}/etc'
895 sharedstatedir
='${prefix}/com'
896 localstatedir
='${prefix}/var'
897 includedir
='${prefix}/include'
898 oldincludedir
='/usr/include'
899 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir
='${datarootdir}/info'
905 libdir
='${exec_prefix}/lib'
906 localedir
='${datarootdir}/locale'
907 mandir
='${datarootdir}/man'
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\
$ac_option
921 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 # Accept the important Cygnus configure options, so we can diagnose typos.
928 case $ac_dashdash$ac_option in
932 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
934 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
937 -build |
--build |
--buil |
--bui |
--bu)
938 ac_prev
=build_alias
;;
939 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
940 build_alias
=$ac_optarg ;;
942 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
943 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
944 ac_prev
=cache_file
;;
945 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
946 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
947 cache_file
=$ac_optarg ;;
950 cache_file
=config.cache
;;
952 -datadir |
--datadir |
--datadi |
--datad)
954 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
955 datadir
=$ac_optarg ;;
957 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
958 |
--dataroo |
--dataro |
--datar)
959 ac_prev
=datarootdir
;;
960 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
961 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
962 datarootdir
=$ac_optarg ;;
964 -disable-* |
--disable-*)
965 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
968 as_fn_error $?
"invalid feature name: $ac_useropt"
969 ac_useropt_orig
=$ac_useropt
970 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep
=', ';;
978 eval enable_
$ac_useropt=no
;;
980 -docdir |
--docdir |
--docdi |
--doc |
--do)
982 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
985 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
987 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
990 -enable-* |
--enable-*)
991 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
994 as_fn_error $?
"invalid feature name: $ac_useropt"
995 ac_useropt_orig
=$ac_useropt
996 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
1001 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep
=', ';;
1004 eval enable_
$ac_useropt=\
$ac_optarg ;;
1006 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1007 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1008 |
--exec |
--exe |
--ex)
1009 ac_prev
=exec_prefix
;;
1010 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1011 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1012 |
--exec=* |
--exe=* |
--ex=*)
1013 exec_prefix
=$ac_optarg ;;
1015 -gas |
--gas |
--ga |
--g)
1016 # Obsolete; use --with-gas.
1019 -help |
--help |
--hel |
--he |
-h)
1020 ac_init_help
=long
;;
1021 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1022 ac_init_help
=recursive
;;
1023 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1024 ac_init_help
=short
;;
1026 -host |
--host |
--hos |
--ho)
1027 ac_prev
=host_alias
;;
1028 -host=* |
--host=* |
--hos=* |
--ho=*)
1029 host_alias
=$ac_optarg ;;
1031 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1033 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1035 htmldir
=$ac_optarg ;;
1037 -includedir |
--includedir |
--includedi |
--included |
--include \
1038 |
--includ |
--inclu |
--incl |
--inc)
1039 ac_prev
=includedir
;;
1040 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1041 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1042 includedir
=$ac_optarg ;;
1044 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1046 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1047 infodir
=$ac_optarg ;;
1049 -libdir |
--libdir |
--libdi |
--libd)
1051 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1052 libdir
=$ac_optarg ;;
1054 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1055 |
--libexe |
--libex |
--libe)
1056 ac_prev
=libexecdir
;;
1057 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1058 |
--libexe=* |
--libex=* |
--libe=*)
1059 libexecdir
=$ac_optarg ;;
1061 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1062 ac_prev
=localedir
;;
1063 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1064 localedir
=$ac_optarg ;;
1066 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1067 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1068 ac_prev
=localstatedir
;;
1069 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1070 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1071 localstatedir
=$ac_optarg ;;
1073 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1075 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1076 mandir
=$ac_optarg ;;
1078 -nfp |
--nfp |
--nf)
1079 # Obsolete; use --without-fp.
1082 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1083 |
--no-cr |
--no-c |
-n)
1086 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1087 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1090 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1091 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1092 |
--oldin |
--oldi |
--old |
--ol |
--o)
1093 ac_prev
=oldincludedir
;;
1094 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1095 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1096 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1097 oldincludedir
=$ac_optarg ;;
1099 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1101 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1102 prefix
=$ac_optarg ;;
1104 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1105 |
--program-pre |
--program-pr |
--program-p)
1106 ac_prev
=program_prefix
;;
1107 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1108 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1109 program_prefix
=$ac_optarg ;;
1111 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1112 |
--program-suf |
--program-su |
--program-s)
1113 ac_prev
=program_suffix
;;
1114 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1115 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1116 program_suffix
=$ac_optarg ;;
1118 -program-transform-name |
--program-transform-name \
1119 |
--program-transform-nam |
--program-transform-na \
1120 |
--program-transform-n |
--program-transform- \
1121 |
--program-transform |
--program-transfor \
1122 |
--program-transfo |
--program-transf \
1123 |
--program-trans |
--program-tran \
1124 |
--progr-tra |
--program-tr |
--program-t)
1125 ac_prev
=program_transform_name
;;
1126 -program-transform-name=* |
--program-transform-name=* \
1127 |
--program-transform-nam=* |
--program-transform-na=* \
1128 |
--program-transform-n=* |
--program-transform-=* \
1129 |
--program-transform=* |
--program-transfor=* \
1130 |
--program-transfo=* |
--program-transf=* \
1131 |
--program-trans=* |
--program-tran=* \
1132 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1133 program_transform_name
=$ac_optarg ;;
1135 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1137 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1138 pdfdir
=$ac_optarg ;;
1140 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1142 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1145 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1146 |
-silent |
--silent |
--silen |
--sile |
--sil)
1149 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1151 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1153 sbindir
=$ac_optarg ;;
1155 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1156 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1157 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1159 ac_prev
=sharedstatedir
;;
1160 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1161 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1162 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1164 sharedstatedir
=$ac_optarg ;;
1166 -site |
--site |
--sit)
1168 -site=* |
--site=* |
--sit=*)
1171 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1173 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1174 srcdir
=$ac_optarg ;;
1176 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1177 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1178 ac_prev
=sysconfdir
;;
1179 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1180 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1181 sysconfdir
=$ac_optarg ;;
1183 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1184 ac_prev
=target_alias
;;
1185 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1186 target_alias
=$ac_optarg ;;
1188 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1191 -version |
--version |
--versio |
--versi |
--vers |
-V)
1192 ac_init_version
=: ;;
1195 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1198 as_fn_error $?
"invalid package name: $ac_useropt"
1199 ac_useropt_orig
=$ac_useropt
1200 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep
=', ';;
1208 eval with_
$ac_useropt=\
$ac_optarg ;;
1210 -without-* |
--without-*)
1211 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1214 as_fn_error $?
"invalid package name: $ac_useropt"
1215 ac_useropt_orig
=$ac_useropt
1216 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1221 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep
=', ';;
1224 eval with_
$ac_useropt=no
;;
1227 # Obsolete; use --with-x.
1230 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1231 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1232 ac_prev
=x_includes
;;
1233 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1234 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1235 x_includes
=$ac_optarg ;;
1237 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1238 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1239 ac_prev
=x_libraries
;;
1240 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1241 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1242 x_libraries
=$ac_optarg ;;
1244 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1249 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1253 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1255 eval $ac_envvar=\
$ac_optarg
1256 export $ac_envvar ;;
1259 # FIXME: should be removed in autoconf 3.0.
1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1269 if test -n "$ac_prev"; then
1270 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $?
"missing argument to $ac_option"
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1277 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 # Check all directory arguments for consistency.
1283 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val
=\$
$ac_var
1289 # Remove trailing slashes.
1292 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\
$ac_val;;
1295 # Be sure to have absolute directory names.
1297 [\\/$
]* | ?
:[\\/]* ) continue;;
1298 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1300 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1308 target
=$target_alias
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x
; then
1312 if test "x$build_alias" = x
; then
1313 cross_compiling
=maybe
1314 elif test "x$build_alias" != "x$host_alias"; then
1320 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1322 test "$silent" = yes && exec 6>/dev
/null
1325 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di
=`ls -di .` &&
1327 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1328 as_fn_error $?
"working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 as_fn_error $?
"pwd does not report name of working directory"
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted
=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir
=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 $as_echo X"$as_myself" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1365 ac_srcdir_defaulted
=no
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1369 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1371 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1383 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 for ac_var
in $ac_precious_vars; do
1386 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1388 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1399 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking ...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1462 --build=BUILD configure
for building on BUILD
[guessed
]
1463 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1464 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1475 --disable-option-checking ignore unrecognized
--enable/--with options
1476 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1477 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1478 --enable-version-specific-runtime-libs
1479 Specify that runtime libraries should be installed
1480 in a compiler-specific directory
[default
=no
]
1481 --enable-generated-files-in-srcdir
1482 put copies of generated files
in source dir intended
1483 for creating
source tarballs
for users without
1484 texinfo bison or flex.
[default
=no
]
1485 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1486 --disable-silent-rules verbose build output
(undo
: "make V=0")
1487 --enable-multilib build many library versions
(default
)
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1493 --enable-static[=PKGS
] build static libraries
[default
=yes]
1494 --enable-fast-install[=PKGS
]
1495 optimize
for fast installation
[default
=yes]
1496 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful
(and
1499 sometimes confusing
) to the casual installer
1500 --enable-linux-futex use the Linux futex system call
[default
=default
]
1501 --enable-tls Use thread-local storage
[default
=yes]
1502 --enable-symvers=STYLE enables symbol versioning of the shared library
1504 --enable-cet enable Intel CET
in target libraries
[default
=no
]
1507 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1508 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1509 --with-toolexeclibdir=DIR
1510 install libraries built with a cross compiler within
1512 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1514 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1515 --with-cuda-driver=PATH specify prefix directory
for installed CUDA driver
1516 package. Equivalent to
1517 --with-cuda-driver-include=PATH
/include plus
1518 --with-cuda-driver-lib=PATH
/lib
1519 --with-cuda-driver-include=PATH
1520 specify directory
for installed CUDA driver include
1522 --with-cuda-driver-lib=PATH
1523 specify directory
for the installed CUDA driver
1525 --with-hsa-runtime=PATH specify prefix directory
for installed HSA run-time
1526 package. Equivalent to
1527 --with-hsa-runtime-include=PATH
/include plus
1528 --with-hsa-runtime-lib=PATH
/lib
1529 --with-hsa-runtime-include=PATH
1530 specify directory
for installed HSA run-time include
1532 --with-hsa-runtime-lib=PATH
1533 specify directory
for the installed HSA run-time
1535 --with-gcc-major-version-only
1536 use only GCC major number
in filesystem paths
1538 Some influential environment variables
:
1539 CC C compiler
command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1542 nonstandard directory
<lib dir
>
1543 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1544 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1545 you have headers
in a nonstandard directory
<include dir
>
1547 FC Fortran compiler
command
1548 FCFLAGS Fortran compiler flags
1550 Use these variables to override the choices made by
`configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1553 Report bugs to the package provider.
1554 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1555 General help using GNU software: <http://www.gnu.org/gethelp/>.
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" ||
1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1585 .) # We are building in place.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for guested configure.
1602 if test -f "$ac_srcdir/configure.gnu"; then
1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605 elif test -f "$ac_srcdir/configure"; then
1607 $SHELL "$ac_srcdir/configure" --help=recursive
1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1618 GNU Offloading and Multi Processing Runtime Library configure 1.0
1619 generated by GNU Autoconf 2.69
1621 Copyright (C) 2012 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1628 ## ------------------------ ##
1629 ## Autoconf initialization. ##
1630 ## ------------------------ ##
1632 # ac_fn_c_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_compile ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1642 *) ac_try_echo
=$ac_try;;
1644 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1648 if test -s conftest.err
; then
1649 grep -v '^ *+' conftest.err
>conftest.er1
1650 cat conftest.er1
>&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.
$ac_objext; then :
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.
$ac_ext >&5
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status
$ac_retval
1668 } # ac_fn_c_try_compile
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1675 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1676 rm -f conftest.
$ac_objext conftest
$ac_exeext
1677 if { { ac_try
="$ac_link"
1679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1714 } # ac_fn_c_try_link
1716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717 # -------------------------------------------------------
1718 # Tests whether HEADER exists and can be compiled using the include files in
1719 # INCLUDES, setting the cache variable VAR accordingly.
1720 ac_fn_c_check_header_compile ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1733 if ac_fn_c_try_compile "$LINENO"; then :
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 } # ac_fn_c_check_header_compile
1747 # ac_fn_c_try_cpp LINENO
1748 # ----------------------
1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1756 *) ac_try_echo
=$ac_try;;
1758 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 if test -s conftest.err
; then
1763 grep -v '^ *+' conftest.err
>conftest.er1
1764 cat conftest.er1
>&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i
&& {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.
$ac_ext >&5
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status
$ac_retval
1784 # ac_fn_c_try_run LINENO
1785 # ----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787 # that executables *can* be run.
1790 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1791 if { { ac_try
="$ac_link"
1793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1804 *) ac_try_echo
=$ac_try;;
1806 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.
$ac_ext >&5
1818 ac_retval
=$ac_status
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status
$ac_retval
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 eval \
${$3+:} false
; 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; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_func
1893 # ac_fn_fc_try_compile LINENO
1894 # ---------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_fc_try_compile
()
1898 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1899 rm -f conftest.
$ac_objext
1900 if { { ac_try
="$ac_compile"
1902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_fc_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_fc_try_compile
1931 # ac_fn_fc_try_link LINENO
1932 # ------------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_fc_try_link ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 rm -f conftest.$ac_objext conftest$ac_exeext
1938 if { { ac_try="$ac_link"
1940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1941 *) ac_try_echo
=$ac_try;;
1943 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>conftest.err
1947 if test -s conftest.err
; then
1948 grep -v '^ *+' conftest.err
>conftest.er1
1949 cat conftest.er1
>&5
1950 mv -f conftest.er1 conftest.err
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && {
1954 test -z "$ac_fc_werror_flag" ||
1955 test ! -s conftest.err
1956 } && test -s conftest
$ac_exeext && {
1957 test "$cross_compiling" = yes ||
1958 test -x conftest
$ac_exeext
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.
$ac_ext >&5
1967 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969 # interfere with the next link command; also delete a directory that is
1970 # left behind by Apple's compiler. We do this before executing the actions.
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status
$ac_retval
1975 } # ac_fn_fc_try_link
1977 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1980 # the include files in INCLUDES and setting the cache variable VAR
1982 ac_fn_c_check_header_mongrel
()
1984 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1985 if eval \
${$3+:} false
; then :
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \
${$3+:} false
; then :
1989 $as_echo_n "(cached) " >&6
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1995 # Is the header compilable?
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1997 $as_echo_n "checking $2 usability... " >&6; }
1998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2003 if ac_fn_c_try_compile
"$LINENO"; then :
2004 ac_header_compiler
=yes
2006 ac_header_compiler
=no
2008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2010 $as_echo "$ac_header_compiler" >&6; }
2012 # Is the header present?
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2014 $as_echo_n "checking $2 presence... " >&6; }
2015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2019 if ac_fn_c_try_cpp
"$LINENO"; then :
2020 ac_header_preproc
=yes
2022 ac_header_preproc
=no
2024 rm -f conftest.err conftest.i conftest.
$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2026 $as_echo "$ac_header_preproc" >&6; }
2028 # So? What about this header?
2029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2032 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2038 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2040 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2042 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2044 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \
${$3+:} false
; then :
2052 $as_echo_n "(cached) " >&6
2054 eval "$3=\$ac_header_compiler"
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 } # ac_fn_c_check_header_mongrel
2064 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2065 # -------------------------------------------
2066 # Tests whether TYPE exists after having included INCLUDES, setting cache
2067 # variable VAR accordingly.
2068 ac_fn_c_check_type
()
2070 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \
${$3+:} false
; then :
2074 $as_echo_n "(cached) " >&6
2077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2089 if ac_fn_c_try_compile
"$LINENO"; then :
2090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2102 if ac_fn_c_try_compile
"$LINENO"; then :
2107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 } # ac_fn_c_check_type
2118 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2119 # --------------------------------------------
2120 # Tries to find the compile-time value of EXPR in a program that includes
2121 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2123 ac_fn_c_compute_int
()
2125 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2126 if test "$cross_compiling" = yes; then
2127 # Depending upon the size, compute the lo and hi bounds.
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) >= 0)];
2136 return test_array [0];
2142 if ac_fn_c_try_compile
"$LINENO"; then :
2145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2151 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2153 return test_array [0];
2159 if ac_fn_c_try_compile
"$LINENO"; then :
2160 ac_hi
=$ac_mid; break
2162 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2163 if test $ac_lo -le $ac_mid; then
2167 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2178 static int test_array [1 - 2 * !(($2) < 0)];
2180 return test_array [0];
2186 if ac_fn_c_try_compile
"$LINENO"; then :
2189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2195 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2197 return test_array [0];
2203 if ac_fn_c_try_compile
"$LINENO"; then :
2204 ac_lo
=$ac_mid; break
2206 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2207 if test $ac_mid -le $ac_hi; then
2211 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2221 # Binary search between lo and hi bounds.
2222 while test "x$ac_lo" != "x$ac_hi"; do
2223 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2230 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2232 return test_array [0];
2238 if ac_fn_c_try_compile
"$LINENO"; then :
2241 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2246 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2253 static long int longval () { return $2; }
2254 static unsigned long int ulongval () { return $2; }
2261 FILE *f = fopen ("conftest.val", "w");
2266 long int i = longval ();
2269 fprintf (f, "%ld", i);
2273 unsigned long int i = ulongval ();
2276 fprintf (f, "%lu", i);
2278 /* Do not output a trailing newline, as this causes \r\n confusion
2279 on some platforms. */
2280 return ferror (f) || fclose (f) != 0;
2286 if ac_fn_c_try_run
"$LINENO"; then :
2287 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2291 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2292 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 as_fn_set_status
$ac_retval
2299 } # ac_fn_c_compute_int
2300 cat >config.log
<<_ACEOF
2301 This file contains any messages produced by compilers while
2302 running configure, to aid debugging if configure makes a mistake.
2304 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2305 generated by GNU Autoconf 2.69. Invocation command line was
2317 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2318 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2319 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2320 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2321 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2323 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2324 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2326 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2327 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2328 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2329 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2330 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2331 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2332 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2340 test -z "$as_dir" && as_dir
=.
2341 $as_echo "PATH: $as_dir"
2357 # Keep a trace of the command line.
2358 # Strip out --no-create and --no-recursion so they do not pile up.
2359 # Strip out --silent because we don't want to record it for future runs.
2360 # Also quote any args containing shell meta-characters.
2361 # Make two passes to allow for proper duplicate-argument suppression.
2365 ac_must_keep_next
=false
2371 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2372 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2373 |
-silent |
--silent |
--silen |
--sile |
--sil)
2376 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2379 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2381 as_fn_append ac_configure_args1
" '$ac_arg'"
2382 if test $ac_must_keep_next = true
; then
2383 ac_must_keep_next
=false
# Got value, back to normal.
2386 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2387 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2388 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2389 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2390 case "$ac_configure_args0 " in
2391 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2394 -* ) ac_must_keep_next
=true
;;
2397 as_fn_append ac_configure_args
" '$ac_arg'"
2402 { ac_configure_args0
=; unset ac_configure_args0
;}
2403 { ac_configure_args1
=; unset ac_configure_args1
;}
2405 # When interrupted or exit'd, cleanup temporary files, and complete
2406 # config.log. We remove comments because anyway the quotes in there
2407 # would cause problems or look ugly.
2408 # WARNING: Use '\'' to represent an apostrophe within the trap.
2409 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2410 trap 'exit_status=$?
2411 # Save into config.log some information that might help in debugging.
2415 $as_echo "## ---------------- ##
2416 ## Cache variables. ##
2417 ## ---------------- ##"
2419 # The following way of writing the cache mishandles newlines in values,
2421 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2422 eval ac_val=\$$ac_var
2426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2430 _ | IFS | as_nl) ;; #(
2431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2432 *) { eval $ac_var=; unset $ac_var;} ;;
2437 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2438 *${as_nl}ac_space=\ *)
2440 "s/'\''/'\''\\\\'\'''\''/g;
2441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2451 $as_echo "## ----------------- ##
2452 ## Output variables. ##
2453 ## ----------------- ##"
2455 for ac_var in $ac_subst_vars
2457 eval ac_val=\$$ac_var
2459 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2461 $as_echo "$ac_var='\''$ac_val'\''"
2465 if test -n "$ac_subst_files"; then
2466 $as_echo "## ------------------- ##
2467 ## File substitutions. ##
2468 ## ------------------- ##"
2470 for ac_var
in $ac_subst_files
2472 eval ac_val
=\$
$ac_var
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476 $as_echo "$ac_var='\''$ac_val'\''"
2481 if test -s confdefs.h; then
2482 $as_echo "## ----------- ##
2489 test "$ac_signal" != 0 &&
2490 $as_echo "$as_me: caught signal $ac_signal"
2491 $as_echo "$as_me: exit $exit_status"
2493 rm -f core *.core core.conftest.* &&
2494 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2497 for ac_signal
in 1 2 13 15; do
2498 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2503 rm -f -r conftest
* confdefs.h
2505 $as_echo "/* confdefs.h */" > confdefs.h
2507 # Predefined preprocessor variables.
2509 cat >>confdefs.h
<<_ACEOF
2510 #define PACKAGE_NAME "$PACKAGE_NAME"
2513 cat >>confdefs.h
<<_ACEOF
2514 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2517 cat >>confdefs.h
<<_ACEOF
2518 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2521 cat >>confdefs.h
<<_ACEOF
2522 #define PACKAGE_STRING "$PACKAGE_STRING"
2525 cat >>confdefs.h
<<_ACEOF
2526 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2529 cat >>confdefs.h
<<_ACEOF
2530 #define PACKAGE_URL "$PACKAGE_URL"
2534 # Let the site file select an alternate cache file if it wants to.
2535 # Prefer an explicitly selected file to automatically selected ones.
2538 if test -n "$CONFIG_SITE"; then
2539 # We do not want a PATH search for config.site.
2540 case $CONFIG_SITE in #((
2541 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2542 */*) ac_site_file1
=$CONFIG_SITE;;
2543 *) ac_site_file1
=.
/$CONFIG_SITE;;
2545 elif test "x$prefix" != xNONE
; then
2546 ac_site_file1
=$prefix/share
/config.site
2547 ac_site_file2
=$prefix/etc
/config.site
2549 ac_site_file1
=$ac_default_prefix/share
/config.site
2550 ac_site_file2
=$ac_default_prefix/etc
/config.site
2552 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2554 test "x$ac_site_file" = xNONE
&& continue
2555 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2557 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2558 sed 's/^/| /' "$ac_site_file" >&5
2560 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 as_fn_error $?
"failed to load site script $ac_site_file
2563 See \`config.log' for more details" "$LINENO" 5; }
2567 if test -r "$cache_file"; then
2568 # Some versions of bash will fail to source /dev/null (special files
2569 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2570 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572 $as_echo "$as_me: loading cache $cache_file" >&6;}
2574 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2575 *) .
"./$cache_file";;
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580 $as_echo "$as_me: creating cache $cache_file" >&6;}
2584 as_fn_append ac_header_list
" unistd.h"
2585 as_fn_append ac_func_list
" secure_getenv"
2586 as_fn_append ac_func_list
" __secure_getenv"
2587 as_fn_append ac_func_list
" getuid"
2588 as_fn_append ac_func_list
" geteuid"
2589 as_fn_append ac_func_list
" getgid"
2590 as_fn_append ac_func_list
" getegid"
2591 # Check that the precious variables saved in the cache have kept the same
2593 ac_cache_corrupted
=false
2594 for ac_var
in $ac_precious_vars; do
2595 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2596 eval ac_new_set
=\
$ac_env_${ac_var}_set
2597 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2598 eval ac_new_val
=\
$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted
=: ;;
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted
=: ;;
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w
=`echo x $ac_old_val`
2613 ac_new_val_w
=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted
=:
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\
$ac_old_val
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2632 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg
=$ac_var=$ac_new_val ;;
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2641 if $ac_cache_corrupted; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2648 ## -------------------- ##
2649 ## Main body of script. ##
2650 ## -------------------- ##
2653 ac_cpp
='$CPP $CPPFLAGS'
2654 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2662 ac_config_headers
="$ac_config_headers config.h"
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2670 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2671 # Check whether --enable-version-specific-runtime-libs was given.
2672 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2673 enableval
=$enable_version_specific_runtime_libs;
2674 case "$enableval" in
2676 *) as_fn_error $?
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2680 enable_version_specific_runtime_libs
=no
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2685 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2687 # We would like our source tree to be readonly. However when releases or
2688 # pre-releases are generated, the flex/bison generated files as well as the
2689 # various formats of manuals need to be included along with the rest of the
2690 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2693 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2694 # Check whether --enable-generated-files-in-srcdir was given.
2695 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2696 enableval
=$enable_generated_files_in_srcdir;
2697 case "$enableval" in
2699 *) as_fn_error $?
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2703 enable_generated_files_in_srcdir
=no
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2708 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2709 if test "$enable_generated_files_in_srcdir" = yes; then
2722 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2724 # You will slowly go insane if you do not grok the following fact: when
2725 # building this library, the top-level /target/ becomes the library's /host/.
2727 # configure then causes --target to default to --host, exactly like any
2728 # other package using autoconf. Therefore, 'target' and 'host' will
2729 # always be the same. This makes sense both for native and cross compilers
2730 # just think about it for a little while. :-)
2732 # Also, if this library is being configured as part of a cross compiler, the
2733 # top-level configure script will pass the "real" host as $with_cross_host.
2735 # Do not delete or change the following two lines. For why, see
2736 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2738 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2739 if test -f "$ac_dir/install-sh"; then
2741 ac_install_sh
="$ac_aux_dir/install-sh -c"
2743 elif test -f "$ac_dir/install.sh"; then
2745 ac_install_sh
="$ac_aux_dir/install.sh -c"
2747 elif test -f "$ac_dir/shtool"; then
2749 ac_install_sh
="$ac_aux_dir/shtool install -c"
2753 if test -z "$ac_aux_dir"; then
2754 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2762 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2763 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2766 # Make sure we can run config.sub.
2767 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2768 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2771 $as_echo_n "checking build system type... " >&6; }
2772 if ${ac_cv_build+:} false
; then :
2773 $as_echo_n "(cached) " >&6
2775 ac_build_alias
=$build_alias
2776 test "x$ac_build_alias" = x
&&
2777 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2778 test "x$ac_build_alias" = x
&&
2779 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2780 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2781 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2785 $as_echo "$ac_cv_build" >&6; }
2786 case $ac_cv_build in
2788 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2791 ac_save_IFS
=$IFS; IFS
='-'
2797 # Remember, the first character of IFS is used to create $*,
2798 # except with old shells:
2801 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2805 $as_echo_n "checking host system type... " >&6; }
2806 if ${ac_cv_host+:} false
; then :
2807 $as_echo_n "(cached) " >&6
2809 if test "x$host_alias" = x
; then
2810 ac_cv_host
=$ac_cv_build
2812 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2813 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2818 $as_echo "$ac_cv_host" >&6; }
2821 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2824 ac_save_IFS
=$IFS; IFS
='-'
2830 # Remember, the first character of IFS is used to create $*,
2831 # except with old shells:
2834 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2838 $as_echo_n "checking target system type... " >&6; }
2839 if ${ac_cv_target+:} false
; then :
2840 $as_echo_n "(cached) " >&6
2842 if test "x$target_alias" = x
; then
2843 ac_cv_target
=$ac_cv_host
2845 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2846 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2851 $as_echo "$ac_cv_target" >&6; }
2852 case $ac_cv_target in
2854 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2856 target
=$ac_cv_target
2857 ac_save_IFS
=$IFS; IFS
='-'
2863 # Remember, the first character of IFS is used to create $*,
2864 # except with old shells:
2867 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2870 # The aliases save the names the user supplied, while $host etc.
2871 # will get canonicalized.
2872 test -n "$target_alias" &&
2873 test "$program_prefix$program_suffix$program_transform_name" = \
2875 program_prefix
=${target_alias}-
2877 target_alias
=${target_alias-$host_alias}
2879 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2880 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2881 # 1.9.0: minimum required version
2882 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2883 # of other PACKAGE_* variables will, however, and there's nothing
2884 # we can do about that; they come from AC_INIT).
2885 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2886 # file in the top srcdir, etc, etc), so stop complaining.
2887 # no-dist: we don't want 'dist' and related rules.
2888 # -Wall: turns on all automake warnings...
2889 # -Wno-portability: ...except this one, since GNU make is required.
2890 # -Wno-override: ... and this one, since we do want this in testsuite.
2891 am__api_version
='1.15'
2893 # Find a good install program. We prefer a C program (faster),
2894 # so one script is as good as another. But avoid the broken or
2895 # incompatible versions:
2896 # SysV /etc/install, /usr/sbin/install
2897 # SunOS /usr/etc/install
2898 # IRIX /sbin/install
2900 # AmigaOS /C/install, which installs bootblocks on floppy discs
2901 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2904 # OS/2's system install, which has a completely different semantic
2905 # ./install, which can be erroneously created by make from ./install.sh.
2906 # Reject install programs that cannot install multiple files.
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2908 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2909 if test -z "$INSTALL"; then
2910 if ${ac_cv_path_install+:} false
; then :
2911 $as_echo_n "(cached) " >&6
2913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir
=.
2918 # Account for people who put trailing slashes in PATH elements.
2919 case $as_dir/ in #((
2920 .
/ | .
// |
/[cC
]/* | \
2921 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2922 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2925 # OSF1 and SCO ODT 3.0 have their own names for install.
2926 # Don't use installbsd from OSF since it installs stuff as root
2928 for ac_prog
in ginstall scoinst
install; do
2929 for ac_exec_ext
in '' $ac_executable_extensions; do
2930 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2931 if test $ac_prog = install &&
2932 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2933 # AIX install. It has an incompatible calling convention.
2935 elif test $ac_prog = install &&
2936 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2937 # program-specific install script used by HP pwplus--don't use.
2940 rm -rf conftest.one conftest.two conftest.dir
2941 echo one
> conftest.one
2942 echo two
> conftest.two
2944 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2945 test -s conftest.one
&& test -s conftest.two
&&
2946 test -s conftest.dir
/conftest.one
&&
2947 test -s conftest.dir
/conftest.two
2949 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2962 rm -rf conftest.one conftest.two conftest.dir
2965 if test "${ac_cv_path_install+set}" = set; then
2966 INSTALL
=$ac_cv_path_install
2968 # As a last resort, use the slow shell script. Don't cache a
2969 # value for INSTALL within a source directory, because that will
2970 # break other packages using the cache if that directory is
2971 # removed, or if the value is a relative name.
2972 INSTALL
=$ac_install_sh
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2976 $as_echo "$INSTALL" >&6; }
2978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2979 # It thinks the first close brace ends the variable substitution.
2980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2984 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2987 $as_echo_n "checking whether build environment is sane... " >&6; }
2988 # Reject unsafe characters in $srcdir or the absolute working directory
2989 # name. Accept space and tab only in the latter.
2993 *[\\\"\
#\$\&\'\`$am_lf]*)
2994 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2997 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2998 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3001 # Do 'set' in a subshell so we don't clobber the current shell's
3002 # arguments. Must try -L first in case configure is actually a
3003 # symlink; some systems play weird games with the mod time of symlinks
3004 # (eg FreeBSD returns the mod time of the symlink's containing
3008 for am_try
in 1 2; do
3009 echo "timestamp, slept: $am_has_slept" > conftest.
file
3010 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3011 if test "$*" = "X"; then
3013 set X
`ls -t "$srcdir/configure" conftest.file`
3015 if test "$*" != "X $srcdir/configure conftest.file" \
3016 && test "$*" != "X conftest.file $srcdir/configure"; then
3018 # If neither matched, then we have a broken ls. This can happen
3019 # if, for instance, CONFIG_SHELL is bash and it inherits a
3020 # broken ls alias from the environment. This has actually
3021 # happened. Such a system could not be considered "sane".
3022 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3023 alias in your environment" "$LINENO" 5
3025 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3032 test "$2" = conftest.
file
3038 as_fn_error $?
"newly created file is older than distributed files!
3039 Check your system clock" "$LINENO" 5
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042 $as_echo "yes" >&6; }
3043 # If we didn't sleep, we still need to ensure time stamps of config.status and
3044 # generated files are strictly newer.
3046 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3053 test "$program_prefix" != NONE
&&
3054 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3055 # Use a double $ so make ignores it.
3056 test "$program_suffix" != NONE
&&
3057 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3058 # Double any \ or $.
3059 # By default was `s,x,x', remove it if useless.
3060 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3061 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3063 # Expand $ac_aux_dir to an absolute path.
3064 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3066 if test x
"${MISSING+set}" != xset
; then
3069 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3071 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3074 # Use eval to expand $SHELL
3075 if eval "$MISSING --is-lightweight"; then
3076 am_missing_run
="$MISSING "
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3080 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3083 if test x
"${install_sh+set}" != xset
; then
3086 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3088 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3092 # Installed binaries are usually stripped using 'strip' when the user
3093 # run "make install-strip". However 'strip' might not be the right
3094 # tool to use in cross-compilation environments, therefore Automake
3095 # will honor the 'STRIP' environment variable to overrule this program.
3096 if test "$cross_compiling" != no
; then
3097 if test -n "$ac_tool_prefix"; then
3098 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3099 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_STRIP+:} false
; then :
3103 $as_echo_n "(cached) " >&6
3105 if test -n "$STRIP"; then
3106 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3112 test -z "$as_dir" && as_dir
=.
3113 for ac_exec_ext
in '' $ac_executable_extensions; do
3114 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 STRIP
=$ac_cv_prog_STRIP
3126 if test -n "$STRIP"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3128 $as_echo "$STRIP" >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3136 if test -z "$ac_cv_prog_STRIP"; then
3138 # Extract the first word of "strip", so it can be a program name with args.
3139 set dummy strip
; ac_word
=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$ac_ct_STRIP"; then
3146 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir
=.
3153 for ac_exec_ext
in '' $ac_executable_extensions; do
3154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_STRIP
="strip"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3166 if test -n "$ac_ct_STRIP"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3168 $as_echo "$ac_ct_STRIP" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3174 if test "x$ac_ct_STRIP" = x
; then
3177 case $cross_compiling:$ac_tool_warned in
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181 ac_tool_warned
=yes ;;
3186 STRIP
="$ac_cv_prog_STRIP"
3190 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3193 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3194 if test -z "$MKDIR_P"; then
3195 if ${ac_cv_path_mkdir+:} false
; then :
3196 $as_echo_n "(cached) " >&6
3198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3199 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3202 test -z "$as_dir" && as_dir
=.
3203 for ac_prog
in mkdir gmkdir
; do
3204 for ac_exec_ext
in '' $ac_executable_extensions; do
3205 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3206 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3207 'mkdir (GNU coreutils) '* | \
3208 'mkdir (coreutils) '* | \
3209 'mkdir (fileutils) '4.1*)
3210 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3220 test -d .
/--version && rmdir .
/--version
3221 if test "${ac_cv_path_mkdir+set}" = set; then
3222 MKDIR_P
="$ac_cv_path_mkdir -p"
3224 # As a last resort, use the slow shell script. Don't cache a
3225 # value for MKDIR_P within a source directory, because that will
3226 # break other packages using the cache if that directory is
3227 # removed, or if the value is a relative name.
3228 MKDIR_P
="$ac_install_sh -d"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3232 $as_echo "$MKDIR_P" >&6; }
3234 for ac_prog
in gawk mawk nawk
awk
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy
$ac_prog; ac_word
=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_AWK+:} false
; then :
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$AWK"; then
3244 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir
=.
3251 for ac_exec_ext
in '' $ac_executable_extensions; do
3252 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_AWK
="$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 if test -n "$AWK"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3266 $as_echo "$AWK" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3273 test -n "$AWK" && break
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3277 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3279 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3280 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3281 $as_echo_n "(cached) " >&6
3283 cat >conftest.
make <<\_ACEOF
3286 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3288 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3289 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3291 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3293 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3297 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 SET_MAKE
="MAKE=${MAKE-make}"
3307 rm -rf .tst
2>/dev
/null
3308 mkdir .tst
2>/dev
/null
3309 if test -d .tst
; then
3314 rmdir .tst
2>/dev
/null
3316 # Check whether --enable-silent-rules was given.
3317 if test "${enable_silent_rules+set}" = set; then :
3318 enableval
=$enable_silent_rules;
3321 case $enable_silent_rules in # (((
3322 yes) AM_DEFAULT_VERBOSITY
=0;;
3323 no
) AM_DEFAULT_VERBOSITY
=1;;
3324 *) AM_DEFAULT_VERBOSITY
=1;;
3326 am_make
=${MAKE-make}
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3328 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3329 if ${am_cv_make_support_nested_variables+:} false
; then :
3330 $as_echo_n "(cached) " >&6
3332 if $as_echo 'TRUE=$(BAR$(V))
3338 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3339 am_cv_make_support_nested_variables
=yes
3341 am_cv_make_support_nested_variables
=no
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3345 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3346 if test $am_cv_make_support_nested_variables = yes; then
3348 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3350 AM_V
=$AM_DEFAULT_VERBOSITY
3351 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3355 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3356 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3357 # is not polluted with repeated "-I."
3358 am__isrc
=' -I$(srcdir)'
3359 # test to see if srcdir already configured
3360 if test -f $srcdir/config.status
; then
3361 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3365 # test whether we have cygpath
3366 if test -z "$CYGPATH_W"; then
3367 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3368 CYGPATH_W
='cygpath -w'
3375 # Define the identity of the package.
3380 cat >>confdefs.h
<<_ACEOF
3381 #define PACKAGE "$PACKAGE"
3385 cat >>confdefs.h
<<_ACEOF
3386 #define VERSION "$VERSION"
3389 # Some tools Automake needs.
3391 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3394 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3397 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3400 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3403 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3405 # For better backward compatibility. To be removed once Automake 1.9.x
3406 # dies out for good. For more background, see:
3407 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3408 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3409 mkdir_p
='$(MKDIR_P)'
3411 # We need awk for the "check" target (and possibly the TAP driver). The
3412 # system "awk" is bad on some platforms.
3413 # Always define AMTAR for backward compatibility. Yes, it's still used
3414 # in the wild :-( We should find a proper way to deprecate it ...
3418 # We'll loop over all known methods to create a tar archive until one works.
3419 _am_tools
='gnutar pax cpio none'
3421 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3428 # POSIX will say in a future version that running "rm -f" with no argument
3429 # is OK; and we want to be able to make that assumption in our Makefile
3430 # recipes. So use an aggressive probe to check that the usage we want is
3431 # actually supported "in the wild" to an acceptable degree.
3432 # See automake bug#10828.
3433 # To make any issue more visible, cause the running configure to be aborted
3434 # by default if the 'rm' program in use doesn't match our expectations; the
3435 # user can still override this though.
3436 if rm -f && rm -fr && rm -rf; then : OK
; else
3440 Your 'rm' program seems unable to run without file operands specified
3441 on the command line, even when the '-f' option is present. This is contrary
3442 to the behaviour of most rm programs out there, and not conforming with
3443 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3445 Please tell bug-automake@gnu.org about your system, including the value
3446 of your $PATH and any error possibly output before this message. This
3447 can help us improve future automake versions.
3450 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3451 echo 'Configuration will proceed anyway, since you have set the' >&2
3452 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3456 Aborting the configuration process, to ensure you take notice of the issue.
3458 You can download and install GNU coreutils to get an 'rm' implementation
3459 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3461 If you want to complete the configuration process using your problematic
3462 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3463 to "yes", and re-run configure.
3466 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3470 # Default to --enable-multilib
3471 # Check whether --enable-multilib was given.
3472 if test "${enable_multilib+set}" = set; then :
3473 enableval
=$enable_multilib; case "$enableval" in
3474 yes) multilib
=yes ;;
3476 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3483 # We may get other options which we leave undocumented:
3484 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3485 # See config-ml.in if you want the gory details.
3487 if test "$srcdir" = "."; then
3488 if test "$with_target_subdir" != "."; then
3489 multi_basedir
="$srcdir/$with_multisrctop../.."
3491 multi_basedir
="$srcdir/$with_multisrctop.."
3494 multi_basedir
="$srcdir/.."
3498 # Even if the default multilib is not a cross compilation,
3499 # it may be that some of the other multilibs are.
3500 if test $cross_compiling = no
&& test $multilib = yes \
3501 && test "x${with_multisubdir}" != x
; then
3502 cross_compiling
=maybe
3505 ac_config_commands
="$ac_config_commands default-1"
3509 # Check whether --with-toolexeclibdir was given.
3510 if test "${with_toolexeclibdir+set}" = set; then :
3511 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3515 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
3519 with_toolexeclibdir
=no
3524 # Calculate toolexeclibdir
3525 # Also toolexecdir, though it's only used in toolexeclibdir
3526 case ${enable_version_specific_runtime_libs} in
3528 # Need the gcc compiler version to know where to install libraries
3529 # and header files if --enable-version-specific-runtime-libs option
3531 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3532 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3535 if test -n "$with_cross_host" &&
3536 test x
"$with_cross_host" != x
"no"; then
3537 # Install a library built with a cross compiler in tooldir, not libdir.
3538 toolexecdir
='$(exec_prefix)/$(target_alias)'
3539 case ${with_toolexeclibdir} in
3541 toolexeclibdir
='$(toolexecdir)/lib'
3544 toolexeclibdir
=${with_toolexeclibdir}
3548 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3549 toolexeclibdir
='$(libdir)'
3551 multi_os_directory
=`$CC -print-multi-os-directory`
3552 case $multi_os_directory in
3553 .
) ;; # Avoid trailing /.
3554 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3561 # Check the compiler.
3562 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3563 # We must force CC to /not/ be precious variables; otherwise
3564 # the wrong, non-multilib-adjusted value will be used in multilibs.
3565 # As a side effect, we have to subst CFLAGS ourselves.
3570 ac_cpp
='$CPP $CPPFLAGS'
3571 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3576 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_CC+:} false
; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC
="$CC" # Let the user override the test.
3585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir
=.
3590 for ac_exec_ext
in '' $ac_executable_extensions; do
3591 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3613 if test -z "$ac_cv_prog_CC"; then
3615 # Extract the first word of "gcc", so it can be a program name with args.
3616 set dummy gcc
; ac_word
=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3620 $as_echo_n "(cached) " >&6
3622 if test -n "$ac_ct_CC"; then
3623 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir
=.
3630 for ac_exec_ext
in '' $ac_executable_extensions; do
3631 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_ac_ct_CC
="gcc"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3643 if test -n "$ac_ct_CC"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645 $as_echo "$ac_ct_CC" >&6; }
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3651 if test "x$ac_ct_CC" = x
; then
3654 case $cross_compiling:$ac_tool_warned in
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned
=yes ;;
3666 if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_CC+:} false
; then :
3673 $as_echo_n "(cached) " >&6
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC
="$CC" # Let the user override the test.
3678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir
=.
3683 for ac_exec_ext
in '' $ac_executable_extensions; do
3684 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3707 if test -z "$CC"; then
3708 # Extract the first word of "cc", so it can be a program name with args.
3709 set dummy cc
; ac_word
=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if ${ac_cv_prog_CC+:} false
; then :
3713 $as_echo_n "(cached) " >&6
3715 if test -n "$CC"; then
3716 ac_cv_prog_CC
="$CC" # Let the user override the test.
3719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir
=.
3724 for ac_exec_ext
in '' $ac_executable_extensions; do
3725 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3727 ac_prog_rejected
=yes
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 if test $ac_prog_rejected = yes; then
3739 # We found a bogon in the path, so make sure we never use it.
3740 set dummy
$ac_cv_prog_CC
3742 if test $# != 0; then
3743 # We chose a different compiler from the bogus one.
3744 # However, it has the same basename, so the bogon will be chosen
3745 # first if we set CC to just the basename; use the full file name.
3747 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3763 if test -z "$CC"; then
3764 if test -n "$ac_tool_prefix"; then
3765 for ac_prog
in cl.exe
3767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3768 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if ${ac_cv_prog_CC+:} false
; then :
3772 $as_echo_n "(cached) " >&6
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC
="$CC" # Let the user override the test.
3777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir
=.
3782 for ac_exec_ext
in '' $ac_executable_extensions; do
3783 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 if test -n "$CC"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 $as_echo "$CC" >&6; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3804 test -n "$CC" && break
3807 if test -z "$CC"; then
3809 for ac_prog
in cl.exe
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy
$ac_prog; ac_word
=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3816 $as_echo_n "(cached) " >&6
3818 if test -n "$ac_ct_CC"; then
3819 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir
=.
3826 for ac_exec_ext
in '' $ac_executable_extensions; do
3827 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_ac_ct_CC
="$ac_prog"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3839 if test -n "$ac_ct_CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841 $as_echo "$ac_ct_CC" >&6; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3848 test -n "$ac_ct_CC" && break
3851 if test "x$ac_ct_CC" = x
; then
3854 case $cross_compiling:$ac_tool_warned in
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858 ac_tool_warned
=yes ;;
3867 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error $?
"no acceptable C compiler found in \$PATH
3870 See \`config.log' for more details" "$LINENO" 5; }
3872 # Provide some information about the compiler.
3873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3876 for ac_option
in --version -v -V -qversion; do
3877 { { ac_try
="$ac_compiler $ac_option >&5"
3879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3886 if test -s conftest.err; then
3888 ... rest of stderr output deleted ...
3889 10q' conftest.err >conftest.er1
3890 cat conftest.er1 >&5
3892 rm -f conftest.er1 conftest.err
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3908 ac_clean_files_save=$ac_clean_files
3909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3910 # Try to create an executable without -o first, disregard a.out.
3911 # It will help us diagnose broken compilers, and finding out an intuition
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3914 $as_echo_n "checking whether the C compiler works... " >&6; }
3915 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3917 # The possible output files:
3918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3921 for ac_file in $ac_files
3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3925 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3930 if { { ac_try="$ac_link_default"
3932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3933 *) ac_try_echo
=$ac_try;;
3935 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_link_default") 2>&5
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; then :
3941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3944 # so that the user can short-circuit this test for compilers unknown to
3946 for ac_file
in $ac_files ''
3948 test -f "$ac_file" ||
continue
3950 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3953 # We found the default executable, but exeext='' is most
3957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3959 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3961 # We set ac_cv_exeext here because the later test for it is not
3962 # safe: cross compilers may not add the suffix if given an `-o'
3963 # argument, so we may need to know it at that point already.
3964 # Even if this section looks crufty: it has the advantage of
3971 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3976 if test -z "$ac_file"; then :
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 $as_echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.
$ac_ext >&5
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error
77 "C compiler cannot create executables
3985 See \`config.log' for more details" "$LINENO" 5; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988 $as_echo "yes" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3991 $as_echo_n "checking for C compiler default output file name... " >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3993 $as_echo "$ac_file" >&6; }
3994 ac_exeext
=$ac_cv_exeext
3996 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3997 ac_clean_files
=$ac_clean_files_save
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3999 $as_echo_n "checking for suffix of executables... " >&6; }
4000 if { { ac_try
="$ac_link"
4002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_link") 2>&5
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; then :
4011 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4012 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4013 # work properly (i.e., refer to `conftest.exe'), while it won't with
4015 for ac_file
in conftest.exe conftest conftest.
*; do
4016 test -f "$ac_file" ||
continue
4018 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4019 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4028 See \`config.log' for more details" "$LINENO" 5; }
4030 rm -f conftest conftest
$ac_cv_exeext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4032 $as_echo "$ac_cv_exeext" >&6; }
4034 rm -f conftest.
$ac_ext
4035 EXEEXT
=$ac_cv_exeext
4037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4043 FILE *f = fopen ("conftest.out", "w");
4044 return ferror (f) || fclose (f) != 0;
4050 ac_clean_files
="$ac_clean_files conftest.out"
4051 # Check that the compiler produces executables we can run. If not, either
4052 # the compiler is broken, or we cross compile.
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4054 $as_echo_n "checking whether we are cross compiling... " >&6; }
4055 if test "$cross_compiling" != yes; then
4056 { { ac_try
="$ac_link"
4058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_link") 2>&5
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 if { ac_try='./conftest$ac_cv_exeext'
4068 { { case "(($ac_try" in
4069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4070 *) ac_try_echo
=$ac_try;;
4072 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_try") 2>&5
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; }; then
4080 if test "$cross_compiling" = maybe
; then
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $?
"cannot run C compiled programs.
4086 If you meant to cross compile, use \`--host'.
4087 See \`config.log' for more details" "$LINENO" 5; }
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4092 $as_echo "$cross_compiling" >&6; }
4094 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4095 ac_clean_files
=$ac_clean_files_save
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4097 $as_echo_n "checking for suffix of object files... " >&6; }
4098 if ${ac_cv_objext+:} false
; then :
4099 $as_echo_n "(cached) " >&6
4101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 rm -f conftest.o conftest.obj
4113 if { { ac_try
="$ac_compile"
4115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119 $as_echo "$ac_try_echo"; } >&5
4120 (eval "$ac_compile") 2>&5
4122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123 test $ac_status = 0; }; then :
4124 for ac_file in conftest.o conftest.obj conftest.*; do
4125 test -f "$ac_file" || continue;
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4133 $as_echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4139 See \
`config.log' for more details" "$LINENO" 5; }
4141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4144 $as_echo "$ac_cv_objext" >&6; }
4145 OBJEXT=$ac_cv_objext
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4149 if ${ac_cv_c_compiler_gnu+:} false; then :
4150 $as_echo_n "(cached) " >&6
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4166 if ac_fn_c_try_compile "$LINENO"; then :
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4176 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4177 if test $ac_compiler_gnu = yes; then
4182 ac_test_CFLAGS=${CFLAGS+set}
4183 ac_save_CFLAGS=$CFLAGS
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4185 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4186 if ${ac_cv_prog_cc_g+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 ac_save_c_werror_flag=$ac_c_werror_flag
4190 ac_c_werror_flag=yes
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4204 if ac_fn_c_try_compile "$LINENO"; then :
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4219 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_c_werror_flag=$ac_save_c_werror_flag
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4235 if ac_fn_c_try_compile "$LINENO"; then :
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 ac_c_werror_flag=$ac_save_c_werror_flag
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4246 $as_echo "$ac_cv_prog_cc_g" >&6; }
4247 if test "$ac_test_CFLAGS" = set; then
4248 CFLAGS=$ac_save_CFLAGS
4249 elif test $ac_cv_prog_cc_g = yes; then
4250 if test "$GCC" = yes; then
4256 if test "$GCC" = yes; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4264 if ${ac_cv_prog_cc_c89+:} false; then :
4265 $as_echo_n "(cached) " >&6
4267 ac_cv_prog_cc_c89=no
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4274 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4275 struct buf { int x; };
4276 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4277 static char *e (p, i)
4283 static char *f (char * (*g) (char **, int), char **p, ...)
4288 s = g (p, va_arg (v,int));
4293 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4294 function prototypes and stuff, but not '\xHH' hex character constants.
4295 These don't provoke an error unfortunately, instead are silently treated
4296 as 'x'. The following induces an error, until -std is added to get
4297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4298 array size at least. It's necessary to write '\x00'==0 to get something
4299 that's true only with -std. */
4300 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4302 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4303 inside strings and character constants. */
4305 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4307 int test (int i, double x);
4308 struct s1 {int (*f) (int a);};
4309 struct s2 {int (*f) (double a);};
4310 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4316 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4321 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4322 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4324 CC="$ac_save_CC $ac_arg"
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326 ac_cv_prog_cc_c89=$ac_arg
4328 rm -f core conftest.err conftest.$ac_objext
4329 test "x$ac_cv_prog_cc_c89" != "xno" && break
4331 rm -f conftest.$ac_ext
4336 case "x$ac_cv_prog_cc_c89" in
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4339 $as_echo "none needed" >&6; } ;;
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342 $as_echo "unsupported" >&6; } ;;
4344 CC="$CC $ac_cv_prog_cc_c89"
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4346 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4348 if test "x$ac_cv_prog_cc_c89" != xno; then :
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4364 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4365 if ${am_cv_prog_cc_c_o+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4379 # Make sure it works both with $CC and with simple cc.
4380 # Following AC_PROG_CC_C_O, we do the test twice because some
4381 # compilers refuse to overwrite an existing .o file with -o,
4382 # though they will create one.
4383 am_cv_prog_cc_c_o=yes
4385 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4386 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } \
4390 && test -f conftest2.$ac_objext; then
4393 am_cv_prog_cc_c_o=no
4397 rm -f core conftest*
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4401 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4402 if test "$am_cv_prog_cc_c_o" != yes; then
4403 # Losing compiler, so override with the script.
4404 # FIXME: It is wrong to rewrite CC.
4405 # But if we don't then we get into trouble of one sort or another.
4406 # A longer-term fix would be to have automake use am__CC in this case,
4407 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4408 CC="$am_aux_dir/compile $CC"
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 DEPDIR="${am__leading_dot}deps"
4418 ac_config_commands="$ac_config_commands depfiles"
4421 am_make=${MAKE-make}
4422 cat > confinc << 'END'
4424 @echo this is the am__doit target
4427 # If we don't find an include directive, just comment out the code.
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4429 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4433 # First try GNU make style include.
4434 echo "include confinc" > confmf
4435 # Ignore all kinds of additional output from 'make'.
4436 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4437 *the\ am__doit\ target*)
4443 # Now try BSD make style include.
4444 if test "$am__include" = "#"; then
4445 echo '.include "confinc"' > confmf
4446 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4447 *the\ am__doit\ target*)
4448 am__include=.include
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4457 $as_echo "$_am_result" >&6; }
4458 rm -f confinc confmf
4460 # Check whether --enable-dependency-tracking was given.
4461 if test "${enable_dependency_tracking+set}" = set; then :
4462 enableval=$enable_dependency_tracking;
4465 if test "x$enable_dependency_tracking" != xno; then
4466 am_depcomp="$ac_aux_dir/depcomp"
4470 if test "x$enable_dependency_tracking" != xno; then
4480 depcc="$CC" am_compiler_list=
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4483 $as_echo_n "checking dependency style of $depcc... " >&6; }
4484 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4488 # We make a subdir and do the tests there. Otherwise we can end up
4489 # making bogus files that we don't know about and never remove. For
4490 # instance it was reported that on HP-UX the gcc test will end up
4491 # making a dummy file named 'D' -- because '-MD' means "put the output
4495 # Copy depcomp to subdir because otherwise we won't find it if we're
4496 # using a relative directory.
4497 cp "$am_depcomp" conftest.dir
4499 # We will build objects and dependencies in a subdirectory because
4500 # it helps to detect inapplicable dependency modes. For instance
4501 # both Tru64's cc and ICC support -MD to output dependencies as a
4502 # side effect of compilation, but ICC will put the dependencies in
4503 # the current directory while Tru64 will put them in the object
4507 am_cv_CC_dependencies_compiler_type=none
4508 if test "$am_compiler_list" = ""; then
4509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4512 case " $depcc " in #(
4513 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4516 for depmode in $am_compiler_list; do
4517 # Setup a source with many dependencies, because some compilers
4518 # like to wrap large dependency lists on column 80 (with \), and
4519 # we should not choose a depcomp mode which is confused by this.
4521 # We need to recreate these files for each test, as the compiler may
4522 # overwrite some of them when testing with obscure command lines.
4523 # This happens at least with the AIX C compiler.
4525 for i in 1 2 3 4 5 6; do
4526 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4527 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4528 # Solaris 10 /bin/sh.
4529 echo '/* dummy */' > sub/conftst$i.h
4531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4533 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4534 # mode. It turns out that the SunPro C++ compiler does not properly
4535 # handle '-M -o', and we need to detect this. Also, some Intel
4536 # versions had trouble with output in subdirs.
4537 am__obj=sub/conftest.${OBJEXT-o}
4538 am__minus_obj="-o $am__obj"
4541 # This depmode causes a compiler race in universal mode.
4542 test "$am__universal" = false || continue
4545 # After this tag, mechanisms are not by side-effect, so they'll
4546 # only be used when explicitly requested.
4547 if test "x$enable_dependency_tracking" = xyes; then
4553 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4554 # This compiler won't grok '-c -o', but also, the minuso test has
4555 # not run yet. These depmodes are late enough in the game, and
4556 # so weak that their functioning should not be impacted.
4557 am__obj=conftest.${OBJEXT-o}
4562 if depmode=$depmode \
4563 source=sub/conftest.c object=$am__obj \
4564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4566 >/dev/null 2>conftest.err &&
4567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4571 # icc doesn't choke on unknown options, it will just issue warnings
4572 # or remarks (even with -Werror). So we grep stderr for any message
4573 # that says an option was ignored or not supported.
4574 # When given -MP, icc 7.0 and 7.1 complain thusly:
4575 # icc: Command line warning: ignoring option '-M'; no argument required
4576 # The diagnosis changed in icc 8.0:
4577 # icc: Command line remark: option '-MP' not supported
4578 if (grep 'ignoring option' conftest.err ||
4579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4580 am_cv_CC_dependencies_compiler_type=$depmode
4589 am_cv_CC_dependencies_compiler_type=none
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4594 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4595 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4598 test "x$enable_dependency_tracking" != xno \
4599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4601 am__fastdepCC_FALSE='#'
4603 am__fastdepCC_TRUE='#'
4604 am__fastdepCC_FALSE=
4612 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4613 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4614 # in both places for now and restore CFLAGS at the end of config.
4615 save_CFLAGS="$CFLAGS"
4617 # Add -Wall -Werror if we are using GCC.
4618 if test "x$GCC" = "xyes"; then
4619 XCFLAGS="$XCFLAGS -Wall -Werror"
4622 # Find other programs we need.
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4625 set dummy ${ac_tool_prefix}ar; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_prog_AR+:} false; then :
4629 $as_echo_n "(cached) " >&6
4631 if test -n "$AR"; then
4632 ac_cv_prog_AR="$AR" # Let the user override the test.
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_AR="${ac_tool_prefix}ar"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 if test -n "$AR"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4654 $as_echo "$AR" >&6; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4662 if test -z "$ac_cv_prog_AR"; then
4664 # Extract the first word of "ar", so it can be a program name with args.
4665 set dummy ar; ac_word=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 if test -n "$ac_ct_AR"; then
4672 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_AR="ar"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4692 if test -n "$ac_ct_AR"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4694 $as_echo "$ac_ct_AR" >&6; }
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4700 if test "x$ac_ct_AR" = x; then
4703 case $cross_compiling:$ac_tool_warned in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned=yes ;;
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_RANLIB+:} false; then :
4721 $as_echo_n "(cached) " >&6
4723 if test -n "$RANLIB"; then
4724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 RANLIB=$ac_cv_prog_RANLIB
4744 if test -n "$RANLIB"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4746 $as_echo "$RANLIB" >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4754 if test -z "$ac_cv_prog_RANLIB"; then
4755 ac_ct_RANLIB=$RANLIB
4756 # Extract the first word of "ranlib", so it can be a program name with args.
4757 set dummy ranlib; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4761 $as_echo_n "(cached) " >&6
4763 if test -n "$ac_ct_RANLIB"; then
4764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_ac_ct_RANLIB="ranlib"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4784 if test -n "$ac_ct_RANLIB"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4786 $as_echo "$ac_ct_RANLIB" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4792 if test "x$ac_ct_RANLIB" = x; then
4793 RANLIB="ranlib-not-found-in-path-error"
4795 case $cross_compiling:$ac_tool_warned in
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799 ac_tool_warned=yes ;;
4801 RANLIB=$ac_ct_RANLIB
4804 RANLIB="$ac_cv_prog_RANLIB"
4807 # Extract the first word of "perl", so it can be a program name with args.
4808 set dummy perl; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_path_PERL+:} false; then :
4812 $as_echo_n "(cached) " >&6
4816 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4838 PERL=$ac_cv_path_PERL
4839 if test -n "$PERL"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4841 $as_echo "$PERL" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4851 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4852 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4853 $as_echo_n "(cached) " >&6
4855 cat >conftest.make <<\_ACEOF
4858 @echo '@@@%%%=$(MAKE)=@@@%%%'
4860 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4861 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4863 eval ac_cv_prog_make_${ac_make}_set=yes;;
4865 eval ac_cv_prog_make_${ac_make}_set=no;;
4869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871 $as_echo "yes" >&6; }
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 SET_MAKE="MAKE=${MAKE-make}"
4881 # See if makeinfo has been installed and is modern enough
4882 # that we can use it.
4884 # Extract the first word of "makeinfo", so it can be a program name with args.
4885 set dummy makeinfo; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_MAKEINFO+:} false; then :
4889 $as_echo_n "(cached) " >&6
4891 if test -n "$MAKEINFO"; then
4892 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_MAKEINFO="makeinfo"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 MAKEINFO=$ac_cv_prog_MAKEINFO
4912 if test -n "$MAKEINFO"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4914 $as_echo "$MAKEINFO" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4921 if test -n "$MAKEINFO"; then
4922 # Found it, now check the version.
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4924 $as_echo_n "checking for modern makeinfo... " >&6; }
4925 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4926 $as_echo_n "(cached) " >&6
4928 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4929 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4931 case $ac_prog_version in
4932 '') gcc_cv_prog_makeinfo_modern=no;;
4933 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4934 *) gcc_cv_prog_makeinfo_modern=no;;
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4939 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4941 gcc_cv_prog_makeinfo_modern=no
4943 if test $gcc_cv_prog_makeinfo_modern = no; then
4944 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4947 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4949 BUILD_INFO_FALSE='#'
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4961 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4966 macro_version='2.2.7a'
4967 macro_revision='1.3134'
4981 ltmain="$ac_aux_dir/ltmain.sh"
4983 # Backslashify metacharacters that are still active within
4984 # double-quoted strings.
4985 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4987 # Same as above, but do not quote variable references.
4988 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4990 # Sed substitution to delay expansion of an escaped shell variable in a
4991 # double_quote_subst'ed string.
4992 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4994 # Sed substitution to delay expansion of an escaped single quote.
4995 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4997 # Sed substitution to avoid accidental globbing in evaled expressions
4998 no_glob_subst='s/\*/\\\*/g'
5000 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5001 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5002 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
5005 $as_echo_n "checking how to print
strings...
" >&6; }
5006 # Test print first, because it will be a builtin if present.
5007 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
5008 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
5010 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
5013 # Use this function as a fallback that always works.
5014 func_fallback_echo ()
5016 eval 'cat <<_LTECHO_EOF
5020 ECHO='func_fallback_echo'
5023 # func_echo_all arg...
5024 # Invoke $ECHO with all args, space-separated.
5031 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
5032 $as_echo "printf" >&6; } ;;
5033 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5034 $as_echo "print
-r" >&6; } ;;
5035 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5036 $as_echo "cat" >&6; } ;;
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5053 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5054 if ${ac_cv_path_SED+:} false; then :
5055 $as_echo_n "(cached
) " >&6
5057 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5058 for ac_i in 1 2 3 4 5 6 7; do
5059 ac_script="$ac_script$as_nl$ac_script"
5061 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5062 { ac_script=; unset ac_script;}
5063 if test -z "$SED"; then
5064 ac_path_SED_found=false
5065 # Loop through the user's path and test for each of PROGNAME-LIST
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir=.
5071 for ac_prog in sed gsed; do
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5074 as_fn_executable_p "$ac_path_SED" || continue
5075 # Check for GNU ac_path_SED and select it if it is found.
5076 # Check for GNU $ac_path_SED
5077 case `"$ac_path_SED" --version 2>&1` in
5079 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5082 $as_echo_n 0123456789 >"conftest.
in"
5085 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5086 mv "conftest.tmp
" "conftest.
in"
5087 cp "conftest.
in" "conftest.
nl"
5088 $as_echo '' >> "conftest.
nl"
5089 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5090 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5091 as_fn_arith $ac_count + 1 && ac_count=$as_val
5092 if test $ac_count -gt ${ac_path_SED_max-0}; then
5093 # Best one so far, save it but keep looking for a better one
5094 ac_cv_path_SED="$ac_path_SED"
5095 ac_path_SED_max=$ac_count
5097 # 10*(2^10) chars as input seems more than enough
5098 test $ac_count -gt 10 && break
5100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5103 $ac_path_SED_found && break 3
5108 if test -z "$ac_cv_path_SED"; then
5109 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5117 $as_echo "$ac_cv_path_SED" >&6; }
5118 SED="$ac_cv_path_SED"
5121 test -z "$SED" && SED=sed
5122 Xsed="$SED -e 1s
/^X
//"
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5135 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5136 if ${ac_cv_path_GREP+:} false; then :
5137 $as_echo_n "(cached
) " >&6
5139 if test -z "$GREP"; then
5140 ac_path_GREP_found=false
5141 # Loop through the user's path and test for each of PROGNAME-LIST
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5146 test -z "$as_dir" && as_dir=.
5147 for ac_prog in grep ggrep; do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5150 as_fn_executable_p "$ac_path_GREP" || continue
5151 # Check for GNU ac_path_GREP and select it if it is found.
5152 # Check for GNU $ac_path_GREP
5153 case `"$ac_path_GREP" --version 2>&1` in
5155 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5158 $as_echo_n 0123456789 >"conftest.
in"
5161 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5162 mv "conftest.tmp
" "conftest.
in"
5163 cp "conftest.
in" "conftest.
nl"
5164 $as_echo 'GREP' >> "conftest.
nl"
5165 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5166 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5167 as_fn_arith $ac_count + 1 && ac_count=$as_val
5168 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5169 # Best one so far, save it but keep looking for a better one
5170 ac_cv_path_GREP="$ac_path_GREP"
5171 ac_path_GREP_max=$ac_count
5173 # 10*(2^10) chars as input seems more than enough
5174 test $ac_count -gt 10 && break
5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5179 $ac_path_GREP_found && break 3
5184 if test -z "$ac_cv_path_GREP"; then
5185 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5188 ac_cv_path_GREP=$GREP
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5193 $as_echo "$ac_cv_path_GREP" >&6; }
5194 GREP="$ac_cv_path_GREP"
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5198 $as_echo_n "checking
for egrep...
" >&6; }
5199 if ${ac_cv_path_EGREP+:} false; then :
5200 $as_echo_n "(cached
) " >&6
5202 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5203 then ac_cv_path_EGREP="$GREP -E"
5205 if test -z "$EGREP"; then
5206 ac_path_EGREP_found=false
5207 # Loop through the user's path and test for each of PROGNAME-LIST
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5212 test -z "$as_dir" && as_dir=.
5213 for ac_prog in egrep; do
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5216 as_fn_executable_p "$ac_path_EGREP" || continue
5217 # Check for GNU ac_path_EGREP and select it if it is found.
5218 # Check for GNU $ac_path_EGREP
5219 case `"$ac_path_EGREP" --version 2>&1` in
5221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5224 $as_echo_n 0123456789 >"conftest.
in"
5227 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5228 mv "conftest.tmp
" "conftest.
in"
5229 cp "conftest.
in" "conftest.
nl"
5230 $as_echo 'EGREP' >> "conftest.
nl"
5231 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5232 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5233 as_fn_arith $ac_count + 1 && ac_count=$as_val
5234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5235 # Best one so far, save it but keep looking for a better one
5236 ac_cv_path_EGREP="$ac_path_EGREP"
5237 ac_path_EGREP_max=$ac_count
5239 # 10*(2^10) chars as input seems more than enough
5240 test $ac_count -gt 10 && break
5242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5245 $ac_path_EGREP_found && break 3
5250 if test -z "$ac_cv_path_EGREP"; then
5251 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5254 ac_cv_path_EGREP=$EGREP
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5260 $as_echo "$ac_cv_path_EGREP" >&6; }
5261 EGREP="$ac_cv_path_EGREP"
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5265 $as_echo_n "checking
for fgrep...
" >&6; }
5266 if ${ac_cv_path_FGREP+:} false; then :
5267 $as_echo_n "(cached
) " >&6
5269 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5270 then ac_cv_path_FGREP="$GREP -F"
5272 if test -z "$FGREP"; then
5273 ac_path_FGREP_found=false
5274 # Loop through the user's path and test for each of PROGNAME-LIST
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5279 test -z "$as_dir" && as_dir=.
5280 for ac_prog in fgrep; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5283 as_fn_executable_p "$ac_path_FGREP" || continue
5284 # Check for GNU ac_path_FGREP and select it if it is found.
5285 # Check for GNU $ac_path_FGREP
5286 case `"$ac_path_FGREP" --version 2>&1` in
5288 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5291 $as_echo_n 0123456789 >"conftest.
in"
5294 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5295 mv "conftest.tmp
" "conftest.
in"
5296 cp "conftest.
in" "conftest.
nl"
5297 $as_echo 'FGREP' >> "conftest.
nl"
5298 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5299 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5300 as_fn_arith $ac_count + 1 && ac_count=$as_val
5301 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5302 # Best one so far, save it but keep looking for a better one
5303 ac_cv_path_FGREP="$ac_path_FGREP"
5304 ac_path_FGREP_max=$ac_count
5306 # 10*(2^10) chars as input seems more than enough
5307 test $ac_count -gt 10 && break
5309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5312 $ac_path_FGREP_found && break 3
5317 if test -z "$ac_cv_path_FGREP"; then
5318 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5321 ac_cv_path_FGREP=$FGREP
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5327 $as_echo "$ac_cv_path_FGREP" >&6; }
5328 FGREP="$ac_cv_path_FGREP"
5331 test -z "$GREP" && GREP=grep
5351 # Check whether --with-gnu-ld was given.
5352 if test "${with_gnu_ld+set}" = set; then :
5353 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5359 if test "$GCC" = yes; then
5360 # Check if gcc -print-prog-name=ld gives a path.
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5362 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5365 # gcc leaves a trailing carriage return which upsets mingw
5366 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5368 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5371 # Accept absolute paths.
5373 re_direlt='/[^/][^/]*/\.\./'
5374 # Canonicalize the pathname of ld
5375 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5376 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5377 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5379 test -z "$LD" && LD="$ac_prog"
5382 # If it fails, then pretend we aren't using GCC.
5386 # If it is relative, then search for the first ld in PATH.
5390 elif test "$with_gnu_ld" = yes; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5392 $as_echo_n "checking
for GNU ld...
" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5395 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5397 if ${lt_cv_path_LD+:} false; then :
5398 $as_echo_n "(cached
) " >&6
5400 if test -z "$LD"; then
5401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5402 for ac_dir in $PATH; do
5404 test -z "$ac_dir" && ac_dir=.
5405 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5406 lt_cv_path_LD="$ac_dir/$ac_prog"
5407 # Check to see if the program is GNU ld. I'd rather use --version,
5408 # but apparently some variants of GNU ld only accept -v.
5409 # Break only if it was the GNU/non-GNU ld that we prefer.
5410 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5411 *GNU* | *'with BFD'*)
5412 test "$with_gnu_ld" != no && break
5415 test "$with_gnu_ld" != yes && break
5422 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5427 if test -n "$LD"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5429 $as_echo "$LD" >&6; }
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5432 $as_echo "no
" >&6; }
5434 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5436 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5437 if ${lt_cv_prog_gnu_ld+:} false; then :
5438 $as_echo_n "(cached
) " >&6
5440 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5441 case `$LD -v 2>&1 </dev/null` in
5442 *GNU* | *'with BFD'*)
5443 lt_cv_prog_gnu_ld=yes
5446 lt_cv_prog_gnu_ld=no
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5451 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5452 with_gnu_ld=$lt_cv_prog_gnu_ld
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5463 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5464 if ${lt_cv_path_NM+:} false; then :
5465 $as_echo_n "(cached
) " >&6
5467 if test -n "$NM"; then
5468 # Let the user override the test.
5471 lt_nm_to_check="${ac_tool_prefix}nm
"
5472 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5473 lt_nm_to_check="$lt_nm_to_check nm
"
5475 for lt_tmp_nm in $lt_nm_to_check; do
5476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5477 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5479 test -z "$ac_dir" && ac_dir=.
5480 tmp_nm="$ac_dir/$lt_tmp_nm"
5481 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5482 # Check to see if the nm accepts a BSD-compat flag.
5483 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5484 # nm: unknown option "B
" ignored
5485 # Tru64's nm complains that /dev/null is an invalid object file
5486 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5487 */dev/null* | *'Invalid file or object type'*)
5488 lt_cv_path_NM="$tmp_nm -B"
5492 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5494 lt_cv_path_NM="$tmp_nm -p"
5498 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5499 continue # so that we can try to find one that supports BSD flags
5508 : ${lt_cv_path_NM=no}
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5512 $as_echo "$lt_cv_path_NM" >&6; }
5513 if test "$lt_cv_path_NM" != "no
"; then
5516 # Didn't find any BSD compatible name lister, look for dumpbin.
5517 if test -n "$DUMPBIN"; then :
5518 # Let the user override the test.
5520 if test -n "$ac_tool_prefix"; then
5521 for ac_prog in dumpbin "link
-dump"
5523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5526 $as_echo_n "checking
for $ac_word...
" >&6; }
5527 if ${ac_cv_prog_DUMPBIN+:} false; then :
5528 $as_echo_n "(cached
) " >&6
5530 if test -n "$DUMPBIN"; then
5531 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5550 DUMPBIN=$ac_cv_prog_DUMPBIN
5551 if test -n "$DUMPBIN"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5553 $as_echo "$DUMPBIN" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5556 $as_echo "no
" >&6; }
5560 test -n "$DUMPBIN" && break
5563 if test -z "$DUMPBIN"; then
5564 ac_ct_DUMPBIN=$DUMPBIN
5565 for ac_prog in dumpbin "link
-dump"
5567 # Extract the first word of "$ac_prog", so it can be a program name with args.
5568 set dummy $ac_prog; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5570 $as_echo_n "checking
for $ac_word...
" >&6; }
5571 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5572 $as_echo_n "(cached
) " >&6
5574 if test -n "$ac_ct_DUMPBIN"; then
5575 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5594 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5595 if test -n "$ac_ct_DUMPBIN"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5597 $as_echo "$ac_ct_DUMPBIN" >&6; }
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5600 $as_echo "no
" >&6; }
5604 test -n "$ac_ct_DUMPBIN" && break
5607 if test "x
$ac_ct_DUMPBIN" = x; then
5610 case $cross_compiling:$ac_tool_warned in
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5613 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5614 ac_tool_warned=yes ;;
5616 DUMPBIN=$ac_ct_DUMPBIN
5620 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5622 DUMPBIN="$DUMPBIN -symbols"
5630 if test "$DUMPBIN" != ":"; then
5634 test -z "$NM" && NM=nm
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5642 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5643 if ${lt_cv_nm_interface+:} false; then :
5644 $as_echo_n "(cached
) " >&6
5646 lt_cv_nm_interface="BSD nm
"
5647 echo "int some_variable
= 0;" > conftest.$ac_ext
5648 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5649 (eval "$ac_compile" 2>conftest.err)
5650 cat conftest.err >&5
5651 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5652 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5653 cat conftest.err >&5
5654 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5655 cat conftest.out >&5
5656 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5657 lt_cv_nm_interface="MS dumpbin
"
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5662 $as_echo "$lt_cv_nm_interface" >&6; }
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5665 $as_echo_n "checking whether
ln -s works...
" >&6; }
5667 if test "$LN_S" = "ln -s"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5669 $as_echo "yes" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5672 $as_echo "no
, using
$LN_S" >&6; }
5675 # find the maximum length of command line arguments
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5677 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5678 if ${lt_cv_sys_max_cmd_len+:} false; then :
5679 $as_echo_n "(cached
) " >&6
5686 # On DJGPP, this test can blow up pretty badly due to problems in libc
5687 # (any single argument exceeding 2000 bytes causes a buffer overrun
5688 # during glob expansion). Even if it were fixed, the result of this
5689 # check would be larger than it should be.
5690 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5694 # Under GNU Hurd, this test is not required because there is
5695 # no limit to the length of command line arguments.
5696 # Libtool will interpret -1 as no limit whatsoever
5697 lt_cv_sys_max_cmd_len=-1;
5700 cygwin* | mingw* | cegcc*)
5701 # On Win9x/ME, this test blows up -- it succeeds, but takes
5702 # about 5 minutes as the teststring grows exponentially.
5703 # Worse, since 9x/ME are not pre-emptively multitasking,
5704 # you end up with a "frozen
" computer, even though with patience
5705 # the test eventually succeeds (with a max line length of 256k).
5706 # Instead, let's just punt: use the minimum linelength reported by
5707 # all of the supported platforms: 8192 (on NT/2K/XP).
5708 lt_cv_sys_max_cmd_len=8192;
5712 # On MiNT this can take a long time and run out of memory.
5713 lt_cv_sys_max_cmd_len=8192;
5717 # On AmigaOS with pdksh, this test takes hours, literally.
5718 # So we just punt and use a minimum line length of 8192.
5719 lt_cv_sys_max_cmd_len=8192;
5722 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5723 # This has been around since 386BSD, at least. Likely further.
5724 if test -x /sbin/sysctl; then
5725 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5726 elif test -x /usr/sbin/sysctl; then
5727 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5729 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5731 # And add a safety zone
5732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5737 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5738 lt_cv_sys_max_cmd_len=196608
5742 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5743 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5744 # nice to cause kernel panics so lets avoid the loop below.
5745 # First set a reasonable default.
5746 lt_cv_sys_max_cmd_len=16384
5748 if test -x /sbin/sysconfig; then
5749 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5750 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5755 lt_cv_sys_max_cmd_len=102400
5757 sysv5* | sco5v6* | sysv4.2uw2*)
5758 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5759 if test -n "$kargmax"; then
5760 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5762 lt_cv_sys_max_cmd_len=32768
5766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5767 if test -n "$lt_cv_sys_max_cmd_len"; then
5768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5771 # Make teststring a little bigger before we do anything with it.
5772 # a 1K string should be a reasonable start.
5773 for i in 1 2 3 4 5 6 7 8 ; do
5774 teststring=$teststring$teststring
5776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5777 # If test is not a shell built-in, we'll probably end up computing a
5778 # maximum length that is only half of the actual maximum length, but
5780 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5781 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5782 test $i != 17 # 1/2 MB should be enough
5785 teststring=$teststring$teststring
5787 # Only check the string length outside the loop.
5788 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5790 # Add a significant safety factor because C++ compilers can tack on
5791 # massive amounts of additional arguments before passing them to the
5792 # linker. It appears as though 1/2 is a usable value.
5793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5800 if test -n $lt_cv_sys_max_cmd_len ; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5802 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5805 $as_echo "none
" >&6; }
5807 max_cmd_len=$lt_cv_sys_max_cmd_len
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5819 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5820 # Try some XSI features
5823 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5825 && eval 'test $(( 1 + 1 )) -eq 2 \
5826 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5829 $as_echo "$xsi_shell" >&6; }
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5833 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5835 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5837 && lt_shell_append
=yes
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5839 $as_echo "$lt_shell_append" >&6; }
5842 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5852 # test EBCDIC or ASCII
5853 case `echo X|tr X '\101'` in
5854 A
) # ASCII based system
5855 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5856 lt_SP2NL
='tr \040 \012'
5857 lt_NL2SP
='tr \015\012 \040\040'
5859 *) # EBCDIC based system
5860 lt_SP2NL
='tr \100 \n'
5861 lt_NL2SP
='tr \r\n \100\100'
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5874 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5875 if ${lt_cv_ld_reload_flag+:} false
; then :
5876 $as_echo_n "(cached) " >&6
5878 lt_cv_ld_reload_flag
='-r'
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5881 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5882 reload_flag
=$lt_cv_ld_reload_flag
5883 case $reload_flag in
5885 *) reload_flag
=" $reload_flag" ;;
5887 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5890 if test "$GCC" = yes; then
5891 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5893 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5906 if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5908 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5912 $as_echo_n "(cached) " >&6
5914 if test -n "$OBJDUMP"; then
5915 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5921 test -z "$as_dir" && as_dir
=.
5922 for ac_exec_ext
in '' $ac_executable_extensions; do
5923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 OBJDUMP
=$ac_cv_prog_OBJDUMP
5935 if test -n "$OBJDUMP"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5937 $as_echo "$OBJDUMP" >&6; }
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5945 if test -z "$ac_cv_prog_OBJDUMP"; then
5946 ac_ct_OBJDUMP
=$OBJDUMP
5947 # Extract the first word of "objdump", so it can be a program name with args.
5948 set dummy objdump
; ac_word
=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5952 $as_echo_n "(cached) " >&6
5954 if test -n "$ac_ct_OBJDUMP"; then
5955 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5961 test -z "$as_dir" && as_dir
=.
5962 for ac_exec_ext
in '' $ac_executable_extensions; do
5963 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5964 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5975 if test -n "$ac_ct_OBJDUMP"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5977 $as_echo "$ac_ct_OBJDUMP" >&6; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5983 if test "x$ac_ct_OBJDUMP" = x
; then
5986 case $cross_compiling:$ac_tool_warned in
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned
=yes ;;
5992 OBJDUMP
=$ac_ct_OBJDUMP
5995 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5998 test -z "$OBJDUMP" && OBJDUMP
=objdump
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6009 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6010 if ${lt_cv_deplibs_check_method+:} false
; then :
6011 $as_echo_n "(cached) " >&6
6013 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6014 lt_cv_file_magic_test_file
=
6015 lt_cv_deplibs_check_method
='unknown'
6016 # Need to set the preceding variable on all platforms that support
6017 # interlibrary dependencies.
6018 # 'none' -- dependencies not supported.
6019 # `unknown' -- same as none, but documents that we really don't know.
6020 # 'pass_all' -- all dependencies passed with no checks.
6021 # 'test_compile' -- check by making test program.
6022 # 'file_magic [[regex]]' -- check by looking for files in library path
6023 # which responds to the $file_magic_cmd with a given extended regex.
6024 # If you have `file' or equivalent on your system and you're not sure
6025 # whether `pass_all' will *always* work, you probably want this one.
6029 lt_cv_deplibs_check_method
=pass_all
6033 lt_cv_deplibs_check_method
=pass_all
6037 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6038 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6039 lt_cv_file_magic_test_file
=/shlib
/libc.so
6043 # func_win32_libid is a shell function defined in ltmain.sh
6044 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6045 lt_cv_file_magic_cmd
='func_win32_libid'
6049 # Base MSYS/MinGW do not provide the 'file' command needed by
6050 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6051 # unless we find 'file', for example because we are cross-compiling.
6052 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6053 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6054 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6055 lt_cv_file_magic_cmd
='func_win32_libid'
6057 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6058 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6063 # use the weaker test based on 'objdump'. See mingw*.
6064 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6065 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6068 darwin
* | rhapsody
*)
6069 lt_cv_deplibs_check_method
=pass_all
6072 freebsd
* | dragonfly
*)
6073 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6076 # Not sure whether the presence of OpenBSD here was a mistake.
6077 # Let's accept both of them until this is cleared up.
6078 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6079 lt_cv_file_magic_cmd
=/usr
/bin
/file
6080 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6084 lt_cv_deplibs_check_method
=pass_all
6089 lt_cv_deplibs_check_method
=pass_all
6093 lt_cv_deplibs_check_method
=pass_all
6096 hpux10.20
* | hpux11
*)
6097 lt_cv_file_magic_cmd
=/usr
/bin
/file
6100 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6101 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6104 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]'
6105 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6108 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6109 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6115 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6116 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6119 irix5
* | irix6
* | nonstopux
*)
6121 *-32|
*"-32 ") libmagic
=32-bit;;
6122 *-n32|
*"-n32 ") libmagic
=N32
;;
6123 *-64|
*"-64 ") libmagic
=64-bit;;
6124 *) libmagic
=never-match
;;
6126 lt_cv_deplibs_check_method
=pass_all
6129 # This must be Linux ELF.
6130 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
6131 lt_cv_deplibs_check_method
=pass_all
6135 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6136 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6138 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6143 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6144 lt_cv_file_magic_cmd
=/usr
/bin
/file
6145 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6149 lt_cv_deplibs_check_method
=pass_all
6153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6154 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6156 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6160 osf3
* | osf4
* | osf5
*)
6161 lt_cv_deplibs_check_method
=pass_all
6165 lt_cv_deplibs_check_method
=pass_all
6169 lt_cv_deplibs_check_method
=pass_all
6172 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6173 lt_cv_deplibs_check_method
=pass_all
6177 case $host_vendor in
6179 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]'
6180 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6183 lt_cv_deplibs_check_method
=pass_all
6186 lt_cv_file_magic_cmd
='/bin/file'
6187 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6190 lt_cv_file_magic_cmd
='/bin/file'
6191 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6192 lt_cv_file_magic_test_file
=/lib
/libc.so
6195 lt_cv_deplibs_check_method
=pass_all
6198 lt_cv_deplibs_check_method
=pass_all
6204 lt_cv_deplibs_check_method
=pass_all
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6210 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6211 file_magic_cmd
=$lt_cv_file_magic_cmd
6212 deplibs_check_method
=$lt_cv_deplibs_check_method
6213 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6228 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_AR+:} false
; then :
6232 $as_echo_n "(cached) " >&6
6234 if test -n "$AR"; then
6235 ac_cv_prog_AR
="$AR" # Let the user override the test.
6237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir
=.
6242 for ac_exec_ext
in '' $ac_executable_extensions; do
6243 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6244 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 if test -n "$AR"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6257 $as_echo "$AR" >&6; }
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6265 if test -z "$ac_cv_prog_AR"; then
6267 # Extract the first word of "ar", so it can be a program name with args.
6268 set dummy
ar; ac_word
=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6272 $as_echo_n "(cached) " >&6
6274 if test -n "$ac_ct_AR"; then
6275 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir
=.
6282 for ac_exec_ext
in '' $ac_executable_extensions; do
6283 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_ac_ct_AR
="ar"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6295 if test -n "$ac_ct_AR"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6297 $as_echo "$ac_ct_AR" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6303 if test "x$ac_ct_AR" = x
; then
6306 case $cross_compiling:$ac_tool_warned in
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned
=yes ;;
6318 test -z "$AR" && AR
=ar
6319 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6333 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_STRIP+:} false
; then :
6337 $as_echo_n "(cached) " >&6
6339 if test -n "$STRIP"; then
6340 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir
=.
6347 for ac_exec_ext
in '' $ac_executable_extensions; do
6348 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 STRIP
=$ac_cv_prog_STRIP
6360 if test -n "$STRIP"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6362 $as_echo "$STRIP" >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6370 if test -z "$ac_cv_prog_STRIP"; then
6372 # Extract the first word of "strip", so it can be a program name with args.
6373 set dummy strip
; ac_word
=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6377 $as_echo_n "(cached) " >&6
6379 if test -n "$ac_ct_STRIP"; then
6380 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir
=.
6387 for ac_exec_ext
in '' $ac_executable_extensions; do
6388 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_ac_ct_STRIP
="strip"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6400 if test -n "$ac_ct_STRIP"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6402 $as_echo "$ac_ct_STRIP" >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6408 if test "x$ac_ct_STRIP" = x
; then
6411 case $cross_compiling:$ac_tool_warned in
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned
=yes ;;
6420 STRIP
="$ac_cv_prog_STRIP"
6423 test -z "$STRIP" && STRIP
=:
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6432 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_RANLIB+:} false
; then :
6436 $as_echo_n "(cached) " >&6
6438 if test -n "$RANLIB"; then
6439 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6445 test -z "$as_dir" && as_dir
=.
6446 for ac_exec_ext
in '' $ac_executable_extensions; do
6447 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 RANLIB
=$ac_cv_prog_RANLIB
6459 if test -n "$RANLIB"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6461 $as_echo "$RANLIB" >&6; }
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6469 if test -z "$ac_cv_prog_RANLIB"; then
6470 ac_ct_RANLIB
=$RANLIB
6471 # Extract the first word of "ranlib", so it can be a program name with args.
6472 set dummy ranlib
; ac_word
=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6476 $as_echo_n "(cached) " >&6
6478 if test -n "$ac_ct_RANLIB"; then
6479 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6485 test -z "$as_dir" && as_dir
=.
6486 for ac_exec_ext
in '' $ac_executable_extensions; do
6487 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6499 if test -n "$ac_ct_RANLIB"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6501 $as_echo "$ac_ct_RANLIB" >&6; }
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6507 if test "x$ac_ct_RANLIB" = x
; then
6510 case $cross_compiling:$ac_tool_warned in
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514 ac_tool_warned
=yes ;;
6516 RANLIB
=$ac_ct_RANLIB
6519 RANLIB
="$ac_cv_prog_RANLIB"
6522 test -z "$RANLIB" && RANLIB
=:
6529 # Determine commands to create old-style static archives.
6530 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6531 old_postinstall_cmds
='chmod 644 $oldlib'
6532 old_postuninstall_cmds
=
6534 if test -n "$RANLIB"; then
6537 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6540 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6543 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6548 lock_old_archive_extraction
=yes ;;
6550 lock_old_archive_extraction
=no
;;
6591 # If no C compiler was specified, use CC.
6594 # If no C compiler flags were specified, use CFLAGS.
6595 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6597 # Allow CC to be a program name with arguments.
6601 # Check for command to grab the raw symbol name followed by C symbol from nm.
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6603 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6604 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6605 $as_echo_n "(cached) " >&6
6608 # These are sane defaults that work on at least a few old systems.
6609 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6611 # Character class describing NM global symbol codes.
6612 symcode
='[BCDEGRST]'
6614 # Regexp to match symbols that can be accessed directly from C.
6615 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6617 # Define system-specific variables.
6622 cygwin
* | mingw
* | pw32
* | cegcc
*)
6623 symcode
='[ABCDGISTW]'
6626 if test "$host_cpu" = ia64
; then
6627 symcode
='[ABCDEGRST]'
6631 symcode
='[BCDEGRST]'
6634 symcode
='[BCDEGQRST]'
6645 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6653 # If we're using GNU nm, then use its standard symbol codes.
6654 case `$NM -V 2>&1` in
6655 *GNU
* |
*'with BFD'*)
6656 symcode
='[ABCDGIRSTW]' ;;
6659 # Transform an extracted symbol line into a proper C declaration.
6660 # Some systems (esp. on ia64) link data and code symbols differently,
6661 # so use this general approach.
6662 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6664 # Transform an extracted symbol line into symbol name and symbol address
6665 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6666 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'"
6668 # Handle CRLF in mingw tool chain
6672 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6676 # Try without a prefix underscore, then with it.
6677 for ac_symprfx
in "" "_"; do
6679 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6680 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6682 # Write the raw and C identifiers.
6683 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6684 # Fake it for dumpbin and say T for any non-static function
6685 # and D for any global variable.
6686 # Also find C++ and __fastcall symbols from MSVC++,
6687 # which start with @ or ?.
6688 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6689 " {last_section=section; section=\$ 3};"\
6690 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6691 " \$ 0!~/External *\|/{next};"\
6692 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6693 " {if(hide[section]) next};"\
6694 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6695 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6696 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6697 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6698 " ' prfx=^$ac_symprfx"
6700 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6703 # Check to see that the pipe works correctly.
6707 cat > conftest.
$ac_ext <<_LT_EOF
6712 void nm_test_func(void);
6713 void nm_test_func(void){}
6717 int main(){nm_test_var='a';nm_test_func();return(0);}
6720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6721 (eval $ac_compile) 2>&5
6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724 test $ac_status = 0; }; then
6725 # Now try to grab the symbols.
6727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6728 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 test $ac_status = 0; } && test -s "$nlist"; then
6732 # Try sorting and uniquifying the output.
6733 if sort "$nlist" |
uniq > "$nlist"T
; then
6734 mv -f "$nlist"T
"$nlist"
6739 # Make sure that we snagged all the symbols we need.
6740 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6741 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6742 cat <<_LT_EOF > conftest.$ac_ext
6748 # Now generate the symbol file.
6749 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6751 cat <<_LT_EOF >> conftest.$ac_ext
6753 /* The mapping between symbol names and symbols. */
6758 lt__PROGRAM__LTX_preloaded_symbols[] =
6760 { "@PROGRAM@", (void *) 0 },
6762 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6763 cat <<\_LT_EOF
>> conftest.
$ac_ext
6767 /* This works around a problem
in FreeBSD linker
*/
6768 #ifdef FREEBSD_WORKAROUND
6769 static const void
*lt_preloaded_setup
() {
6770 return lt__PROGRAM__LTX_preloaded_symbols
;
6778 # Now try linking the two files.
6779 mv conftest.
$ac_objext conftstm.
$ac_objext
6780 lt_save_LIBS
="$LIBS"
6781 lt_save_CFLAGS
="$CFLAGS"
6782 LIBS
="conftstm.$ac_objext"
6783 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6785 (eval $ac_link) 2>&5
6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6791 LIBS
="$lt_save_LIBS"
6792 CFLAGS
="$lt_save_CFLAGS"
6794 echo "cannot find nm_test_func in $nlist" >&5
6797 echo "cannot find nm_test_var in $nlist" >&5
6800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6803 echo "$progname: failed program was:" >&5
6804 cat conftest.
$ac_ext >&5
6806 rm -rf conftest
* conftst
*
6808 # Do not use the global_symbol_pipe unless it works.
6809 if test "$pipe_works" = yes; then
6812 lt_cv_sys_global_symbol_pipe
=
6818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6819 lt_cv_sys_global_symbol_to_cdecl
=
6821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6823 $as_echo "failed" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6826 $as_echo "ok" >&6; }
6851 # Check whether --enable-libtool-lock was given.
6852 if test "${enable_libtool_lock+set}" = set; then :
6853 enableval
=$enable_libtool_lock;
6856 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6858 # Some flags need to be propagated to the compiler or linker for good
6862 # Find out which ABI we are using.
6863 echo 'int i;' > conftest.
$ac_ext
6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865 (eval $ac_compile) 2>&5
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; }; then
6869 case `/usr/bin/file conftest.$ac_objext` in
6881 # Find out which ABI we are using.
6882 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6884 (eval $ac_compile) 2>&5
6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6887 test $ac_status = 0; }; then
6888 if test "$lt_cv_prog_gnu_ld" = yes; then
6889 case `/usr/bin/file conftest.$ac_objext` in
6891 LD
="${LD-ld} -melf32bsmip"
6894 LD
="${LD-ld} -melf32bmipn32"
6897 LD
="${LD-ld} -melf64bmip"
6901 case `/usr/bin/file conftest.$ac_objext` in
6917 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6918 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6919 # Find out which ABI we are using.
6920 echo 'int i;' > conftest.
$ac_ext
6921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6922 (eval $ac_compile) 2>&5
6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925 test $ac_status = 0; }; then
6926 case `/usr/bin/file conftest.o` in
6929 x86_64-
*kfreebsd
*-gnu)
6930 LD
="${LD-ld} -m elf_i386_fbsd"
6933 case `/usr/bin/file conftest.o` in
6935 LD
="${LD-ld} -m elf32_x86_64"
6938 LD
="${LD-ld} -m elf_i386"
6942 powerpc64le-
*linux
*)
6943 LD
="${LD-ld} -m elf32lppclinux"
6946 LD
="${LD-ld} -m elf32ppclinux"
6949 LD
="${LD-ld} -m elf_s390"
6952 LD
="${LD-ld} -m elf32_sparc"
6958 x86_64-
*kfreebsd
*-gnu)
6959 LD
="${LD-ld} -m elf_x86_64_fbsd"
6962 LD
="${LD-ld} -m elf_x86_64"
6965 LD
="${LD-ld} -m elf64lppc"
6968 LD
="${LD-ld} -m elf64ppc"
6970 s390
*-*linux
*|s390
*-*tpf
*)
6971 LD
="${LD-ld} -m elf64_s390"
6974 LD
="${LD-ld} -m elf64_sparc"
6984 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6985 SAVE_CFLAGS
="$CFLAGS"
6986 CFLAGS
="$CFLAGS -belf"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6988 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6989 if ${lt_cv_cc_needs_belf+:} false
; then :
6990 $as_echo_n "(cached) " >&6
6993 ac_cpp
='$CPP $CPPFLAGS'
6994 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7009 if ac_fn_c_try_link
"$LINENO"; then :
7010 lt_cv_cc_needs_belf
=yes
7012 lt_cv_cc_needs_belf
=no
7014 rm -f core conftest.err conftest.
$ac_objext \
7015 conftest
$ac_exeext conftest.
$ac_ext
7017 ac_cpp
='$CPP $CPPFLAGS'
7018 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7024 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7025 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7026 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7027 CFLAGS
="$SAVE_CFLAGS"
7031 # Find out which ABI we are using.
7032 echo 'int i;' > conftest.
$ac_ext
7033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7034 (eval $ac_compile) 2>&5
7036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7037 test $ac_status = 0; }; then
7038 case `/usr/bin/file conftest.o` in
7040 case $lt_cv_prog_gnu_ld in
7041 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7043 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7055 need_locks
="$enable_libtool_lock"
7059 rhapsody
* | darwin
*)
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7062 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7066 $as_echo_n "(cached) " >&6
7068 if test -n "$DSYMUTIL"; then
7069 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir
=.
7076 for ac_exec_ext
in '' $ac_executable_extensions; do
7077 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7078 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7089 if test -n "$DSYMUTIL"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7091 $as_echo "$DSYMUTIL" >&6; }
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7099 if test -z "$ac_cv_prog_DSYMUTIL"; then
7100 ac_ct_DSYMUTIL
=$DSYMUTIL
7101 # Extract the first word of "dsymutil", so it can be a program name with args.
7102 set dummy dsymutil
; ac_word
=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7106 $as_echo_n "(cached) " >&6
7108 if test -n "$ac_ct_DSYMUTIL"; then
7109 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir
=.
7116 for ac_exec_ext
in '' $ac_executable_extensions; do
7117 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7118 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7129 if test -n "$ac_ct_DSYMUTIL"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7131 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7137 if test "x$ac_ct_DSYMUTIL" = x
; then
7140 case $cross_compiling:$ac_tool_warned in
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7144 ac_tool_warned
=yes ;;
7146 DSYMUTIL
=$ac_ct_DSYMUTIL
7149 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7152 if test -n "$ac_tool_prefix"; then
7153 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7154 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_NMEDIT+:} false
; then :
7158 $as_echo_n "(cached) " >&6
7160 if test -n "$NMEDIT"; then
7161 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir
=.
7168 for ac_exec_ext
in '' $ac_executable_extensions; do
7169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 NMEDIT
=$ac_cv_prog_NMEDIT
7181 if test -n "$NMEDIT"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7183 $as_echo "$NMEDIT" >&6; }
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7191 if test -z "$ac_cv_prog_NMEDIT"; then
7192 ac_ct_NMEDIT
=$NMEDIT
7193 # Extract the first word of "nmedit", so it can be a program name with args.
7194 set dummy nmedit
; ac_word
=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7198 $as_echo_n "(cached) " >&6
7200 if test -n "$ac_ct_NMEDIT"; then
7201 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7207 test -z "$as_dir" && as_dir
=.
7208 for ac_exec_ext
in '' $ac_executable_extensions; do
7209 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7210 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7221 if test -n "$ac_ct_NMEDIT"; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7223 $as_echo "$ac_ct_NMEDIT" >&6; }
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7229 if test "x$ac_ct_NMEDIT" = x
; then
7232 case $cross_compiling:$ac_tool_warned in
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236 ac_tool_warned
=yes ;;
7238 NMEDIT
=$ac_ct_NMEDIT
7241 NMEDIT
="$ac_cv_prog_NMEDIT"
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7246 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_LIPO+:} false
; then :
7250 $as_echo_n "(cached) " >&6
7252 if test -n "$LIPO"; then
7253 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir
=.
7260 for ac_exec_ext
in '' $ac_executable_extensions; do
7261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 LIPO
=$ac_cv_prog_LIPO
7273 if test -n "$LIPO"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7275 $as_echo "$LIPO" >&6; }
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7283 if test -z "$ac_cv_prog_LIPO"; then
7285 # Extract the first word of "lipo", so it can be a program name with args.
7286 set dummy lipo
; ac_word
=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7290 $as_echo_n "(cached) " >&6
7292 if test -n "$ac_ct_LIPO"; then
7293 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir
=.
7300 for ac_exec_ext
in '' $ac_executable_extensions; do
7301 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_ac_ct_LIPO
="lipo"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7313 if test -n "$ac_ct_LIPO"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7315 $as_echo "$ac_ct_LIPO" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7321 if test "x$ac_ct_LIPO" = x
; then
7324 case $cross_compiling:$ac_tool_warned in
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned
=yes ;;
7333 LIPO
="$ac_cv_prog_LIPO"
7336 if test -n "$ac_tool_prefix"; then
7337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7338 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_prog_OTOOL+:} false
; then :
7342 $as_echo_n "(cached) " >&6
7344 if test -n "$OTOOL"; then
7345 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir
=.
7352 for ac_exec_ext
in '' $ac_executable_extensions; do
7353 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 OTOOL
=$ac_cv_prog_OTOOL
7365 if test -n "$OTOOL"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7367 $as_echo "$OTOOL" >&6; }
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7375 if test -z "$ac_cv_prog_OTOOL"; then
7377 # Extract the first word of "otool", so it can be a program name with args.
7378 set dummy otool
; ac_word
=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7382 $as_echo_n "(cached) " >&6
7384 if test -n "$ac_ct_OTOOL"; then
7385 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir
=.
7392 for ac_exec_ext
in '' $ac_executable_extensions; do
7393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_ac_ct_OTOOL
="otool"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7405 if test -n "$ac_ct_OTOOL"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7407 $as_echo "$ac_ct_OTOOL" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7413 if test "x$ac_ct_OTOOL" = x
; then
7416 case $cross_compiling:$ac_tool_warned in
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420 ac_tool_warned
=yes ;;
7425 OTOOL
="$ac_cv_prog_OTOOL"
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7430 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_OTOOL64+:} false
; then :
7434 $as_echo_n "(cached) " >&6
7436 if test -n "$OTOOL64"; then
7437 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir
=.
7444 for ac_exec_ext
in '' $ac_executable_extensions; do
7445 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 OTOOL64
=$ac_cv_prog_OTOOL64
7457 if test -n "$OTOOL64"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7459 $as_echo "$OTOOL64" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7467 if test -z "$ac_cv_prog_OTOOL64"; then
7468 ac_ct_OTOOL64
=$OTOOL64
7469 # Extract the first word of "otool64", so it can be a program name with args.
7470 set dummy otool64
; ac_word
=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7474 $as_echo_n "(cached) " >&6
7476 if test -n "$ac_ct_OTOOL64"; then
7477 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7483 test -z "$as_dir" && as_dir
=.
7484 for ac_exec_ext
in '' $ac_executable_extensions; do
7485 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7497 if test -n "$ac_ct_OTOOL64"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7499 $as_echo "$ac_ct_OTOOL64" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7505 if test "x$ac_ct_OTOOL64" = x
; then
7508 case $cross_compiling:$ac_tool_warned in
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned
=yes ;;
7514 OTOOL64
=$ac_ct_OTOOL64
7517 OTOOL64
="$ac_cv_prog_OTOOL64"
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7547 $as_echo_n "checking for -single_module linker flag... " >&6; }
7548 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7549 $as_echo_n "(cached) " >&6
7551 lt_cv_apple_cc_single_mod
=no
7552 if test -z "${LT_MULTI_MODULE}"; then
7553 # By default we will add the -single_module flag. You can override
7554 # by either setting the environment variable LT_MULTI_MODULE
7555 # non-empty at configure time, or by adding -multi_module to the
7557 rm -rf libconftest.dylib
*
7558 echo "int foo(void){return 1;}" > conftest.c
7559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7560 -dynamiclib -Wl,-single_module conftest.c" >&5
7561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7562 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7564 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7565 lt_cv_apple_cc_single_mod
=yes
7567 cat conftest.err
>&5
7569 rm -rf libconftest.dylib
*
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7574 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7576 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7577 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7578 $as_echo_n "(cached) " >&6
7580 lt_cv_ld_exported_symbols_list
=no
7581 save_LDFLAGS
=$LDFLAGS
7582 echo "_main" > conftest.sym
7583 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7595 if ac_fn_c_try_link
"$LINENO"; then :
7596 lt_cv_ld_exported_symbols_list
=yes
7598 lt_cv_ld_exported_symbols_list
=no
7600 rm -f core conftest.err conftest.
$ac_objext \
7601 conftest
$ac_exeext conftest.
$ac_ext
7602 LDFLAGS
="$save_LDFLAGS"
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7606 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7608 $as_echo_n "checking for -force_load linker flag... " >&6; }
7609 if ${lt_cv_ld_force_load+:} false
; then :
7610 $as_echo_n "(cached) " >&6
7612 lt_cv_ld_force_load
=no
7613 cat > conftest.c
<< _LT_EOF
7614 int forced_loaded() { return 2;}
7616 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7617 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7618 echo "$AR cru libconftest.a conftest.o" >&5
7619 $AR cru libconftest.a conftest.o
2>&5
7620 cat > conftest.c
<< _LT_EOF
7621 int main() { return 0;}
7623 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7624 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7626 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7627 lt_cv_ld_force_load
=yes
7629 cat conftest.err
>&5
7631 rm -f conftest.err libconftest.a conftest conftest.c
7632 rm -rf conftest.dSYM
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7636 $as_echo "$lt_cv_ld_force_load" >&6; }
7638 rhapsody
* | darwin1.
[012])
7639 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7641 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7642 darwin
*) # darwin 5.x on
7643 # if running on 10.5 or later, the deployment target defaults
7644 # to the OS version, if on x86, and 10.4, the deployment
7645 # target defaults to 10.4. Don't you love it?
7646 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7647 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7648 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7650 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7652 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7656 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7657 _lt_dar_single_mod
='$single_module'
7659 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7660 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7662 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7664 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7665 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7673 ac_cpp
='$CPP $CPPFLAGS'
7674 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7675 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7676 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7678 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7679 # On Suns, sometimes $CPP names a directory.
7680 if test -n "$CPP" && test -d "$CPP"; then
7683 if test -z "$CPP"; then
7684 if ${ac_cv_prog_CPP+:} false
; then :
7685 $as_echo_n "(cached) " >&6
7687 # Double quotes because CPP needs to be expanded
7688 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7691 for ac_c_preproc_warn_flag
in '' yes
7693 # Use a header file that comes with gcc, so configuring glibc
7694 # with a fresh cross-compiler works.
7695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7696 # <limits.h> exists even on freestanding compilers.
7697 # On the NeXT, cc -E runs the code through the compiler's parser,
7698 # not just through cpp. "Syntax error" is here to catch this case.
7699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7702 # include <limits.h>
7704 # include <assert.h>
7708 if ac_fn_c_try_cpp
"$LINENO"; then :
7711 # Broken: fails on valid input.
7714 rm -f conftest.err conftest.i conftest.
$ac_ext
7716 # OK, works on sane cases. Now check whether nonexistent headers
7717 # can be detected and how.
7718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 #include <ac_nonexistent.h>
7722 if ac_fn_c_try_cpp
"$LINENO"; then :
7723 # Broken: success on invalid input.
7726 # Passes both tests.
7730 rm -f conftest.err conftest.i conftest.
$ac_ext
7733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7734 rm -f conftest.i conftest.err conftest.
$ac_ext
7735 if $ac_preproc_ok; then :
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7748 $as_echo "$CPP" >&6; }
7750 for ac_c_preproc_warn_flag
in '' yes
7752 # Use a header file that comes with gcc, so configuring glibc
7753 # with a fresh cross-compiler works.
7754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755 # <limits.h> exists even on freestanding compilers.
7756 # On the NeXT, cc -E runs the code through the compiler's parser,
7757 # not just through cpp. "Syntax error" is here to catch this case.
7758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7761 # include <limits.h>
7763 # include <assert.h>
7767 if ac_fn_c_try_cpp
"$LINENO"; then :
7770 # Broken: fails on valid input.
7773 rm -f conftest.err conftest.i conftest.
$ac_ext
7775 # OK, works on sane cases. Now check whether nonexistent headers
7776 # can be detected and how.
7777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 #include <ac_nonexistent.h>
7781 if ac_fn_c_try_cpp
"$LINENO"; then :
7782 # Broken: success on invalid input.
7785 # Passes both tests.
7789 rm -f conftest.err conftest.i conftest.
$ac_ext
7792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7793 rm -f conftest.i conftest.err conftest.
$ac_ext
7794 if $ac_preproc_ok; then :
7797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7799 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7800 See \`config.log' for more details" "$LINENO" 5; }
7804 ac_cpp
='$CPP $CPPFLAGS'
7805 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7811 $as_echo_n "checking for ANSI C header files... " >&6; }
7812 if ${ac_cv_header_stdc+:} false
; then :
7813 $as_echo_n "(cached) " >&6
7815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7830 if ac_fn_c_try_compile
"$LINENO"; then :
7831 ac_cv_header_stdc
=yes
7833 ac_cv_header_stdc
=no
7835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7837 if test $ac_cv_header_stdc = yes; then
7838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7845 $EGREP "memchr" >/dev
/null
2>&1; then :
7848 ac_cv_header_stdc
=no
7854 if test $ac_cv_header_stdc = yes; then
7855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7862 $EGREP "free" >/dev
/null
2>&1; then :
7865 ac_cv_header_stdc
=no
7871 if test $ac_cv_header_stdc = yes; then
7872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7873 if test "$cross_compiling" = yes; then :
7876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7880 #if ((' ' & 0x0FF) == 0x020)
7881 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7882 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7884 # define ISLOWER(c) \
7885 (('a' <= (c) && (c) <= 'i') \
7886 || ('j' <= (c) && (c) <= 'r') \
7887 || ('s' <= (c) && (c) <= 'z'))
7888 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7891 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7896 for (i = 0; i < 256; i++)
7897 if (XOR (islower (i), ISLOWER (i))
7898 || toupper (i) != TOUPPER (i))
7903 if ac_fn_c_try_run
"$LINENO"; then :
7906 ac_cv_header_stdc
=no
7908 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7909 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7915 $as_echo "$ac_cv_header_stdc" >&6; }
7916 if test $ac_cv_header_stdc = yes; then
7918 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7922 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7923 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7924 inttypes.h stdint.h unistd.h
7926 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7929 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7930 cat >>confdefs.h
<<_ACEOF
7931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7939 for ac_header
in dlfcn.h
7941 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7943 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7944 cat >>confdefs.h
<<_ACEOF
7945 #define HAVE_DLFCN_H 1
7966 # Check whether --enable-shared was given.
7967 if test "${enable_shared+set}" = set; then :
7968 enableval
=$enable_shared; p
=${PACKAGE-default}
7970 yes) enable_shared
=yes ;;
7971 no
) enable_shared
=no
;;
7974 # Look at the argument we got. We use all the common list separators.
7975 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7976 for pkg
in $enableval; do
7978 if test "X$pkg" = "X$p"; then
7997 # Check whether --enable-static was given.
7998 if test "${enable_static+set}" = set; then :
7999 enableval
=$enable_static; p
=${PACKAGE-default}
8001 yes) enable_static
=yes ;;
8002 no
) enable_static
=no
;;
8005 # Look at the argument we got. We use all the common list separators.
8006 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8007 for pkg
in $enableval; do
8009 if test "X$pkg" = "X$p"; then
8029 # Check whether --with-pic was given.
8030 if test "${with_pic+set}" = set; then :
8031 withval
=$with_pic; pic_mode
="$withval"
8037 test -z "$pic_mode" && pic_mode
=default
8045 # Check whether --enable-fast-install was given.
8046 if test "${enable_fast_install+set}" = set; then :
8047 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8049 yes) enable_fast_install
=yes ;;
8050 no
) enable_fast_install
=no
;;
8052 enable_fast_install
=no
8053 # Look at the argument we got. We use all the common list separators.
8054 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8055 for pkg
in $enableval; do
8057 if test "X$pkg" = "X$p"; then
8058 enable_fast_install
=yes
8065 enable_fast_install
=yes
8078 # This can be used to rebuild libtool when needed
8079 LIBTOOL_DEPS
="$ltmain"
8081 # Always use our own libtool.
8082 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8109 test -z "$LN_S" && LN_S
="ln -s"
8124 if test -n "${ZSH_VERSION+set}" ; then
8125 setopt NO_GLOB_SUBST
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8129 $as_echo_n "checking for objdir... " >&6; }
8130 if ${lt_cv_objdir+:} false
; then :
8131 $as_echo_n "(cached) " >&6
8133 rm -f .libs
2>/dev
/null
8134 mkdir .libs
2>/dev
/null
8135 if test -d .libs
; then
8138 # MS-DOS does not allow filenames that begin with a dot.
8141 rmdir .libs
2>/dev
/null
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8144 $as_echo "$lt_cv_objdir" >&6; }
8145 objdir
=$lt_cv_objdir
8151 cat >>confdefs.h
<<_ACEOF
8152 #define LT_OBJDIR "$lt_cv_objdir/"
8160 # AIX sometimes has problems with the GCC collect2 program. For some
8161 # reason, if we set the COLLECT_NAMES environment variable, the problems
8162 # vanish in a puff of smoke.
8163 if test "X${COLLECT_NAMES+set}" != Xset
; then
8165 export COLLECT_NAMES
8172 can_build_shared
=yes
8174 # All known linkers require a `.a' archive for static linking (except MSVC,
8175 # which needs '.lib').
8178 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8181 old_CFLAGS
="$CFLAGS"
8183 # Set sane defaults for various variables
8184 test -z "$CC" && CC
=cc
8185 test -z "$LTCC" && LTCC
=$CC
8186 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8187 test -z "$LD" && LD
=ld
8188 test -z "$ac_objext" && ac_objext
=o
8190 for cc_temp
in $compiler""; do
8192 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8193 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8198 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8201 # Only perform the check for file, if the check method requires it
8202 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8203 case $deplibs_check_method in
8205 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8207 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8208 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8209 $as_echo_n "(cached) " >&6
8213 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8216 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8217 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8218 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8219 for ac_dir
in $ac_dummy; do
8221 test -z "$ac_dir" && ac_dir
=.
8222 if test -f $ac_dir/${ac_tool_prefix}file; then
8223 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8224 if test -n "$file_magic_test_file"; then
8225 case $deplibs_check_method in
8227 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8228 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8229 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8230 $EGREP "$file_magic_regex" > /dev
/null
; then
8235 *** Warning: the command libtool uses to detect shared libraries,
8236 *** $file_magic_cmd, produces output that libtool cannot recognize.
8237 *** The result is that libtool may fail to recognize shared libraries
8238 *** as such. This will affect the creation of libtool libraries that
8239 *** depend on shared libraries, but programs linked with such libtool
8240 *** libraries will work regardless of this problem. Nevertheless, you
8241 *** may want to report the problem to your system manager and/or to
8242 *** bug-libtool@gnu.org
8252 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8257 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8258 if test -n "$MAGIC_CMD"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8260 $as_echo "$MAGIC_CMD" >&6; }
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8270 if test -z "$lt_cv_path_MAGIC_CMD"; then
8271 if test -n "$ac_tool_prefix"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8273 $as_echo_n "checking for file... " >&6; }
8274 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8275 $as_echo_n "(cached) " >&6
8279 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8282 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8283 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8284 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8285 for ac_dir
in $ac_dummy; do
8287 test -z "$ac_dir" && ac_dir
=.
8288 if test -f $ac_dir/file; then
8289 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8290 if test -n "$file_magic_test_file"; then
8291 case $deplibs_check_method in
8293 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8294 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8295 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8296 $EGREP "$file_magic_regex" > /dev
/null
; then
8301 *** Warning: the command libtool uses to detect shared libraries,
8302 *** $file_magic_cmd, produces output that libtool cannot recognize.
8303 *** The result is that libtool may fail to recognize shared libraries
8304 *** as such. This will affect the creation of libtool libraries that
8305 *** depend on shared libraries, but programs linked with such libtool
8306 *** libraries will work regardless of this problem. Nevertheless, you
8307 *** may want to report the problem to your system manager and/or to
8308 *** bug-libtool@gnu.org
8318 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8323 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8324 if test -n "$MAGIC_CMD"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8326 $as_echo "$MAGIC_CMD" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8342 # Use C for the default configuration in the libtool script
8346 ac_cpp
='$CPP $CPPFLAGS'
8347 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8352 # Source file extension for C test sources.
8355 # Object file extension for compiled C test sources.
8359 # Code to be used in simple compile tests
8360 lt_simple_compile_test_code
="int some_variable = 0;"
8362 # Code to be used in simple link tests
8363 lt_simple_link_test_code
='int main(){return(0);}'
8371 # If no C compiler was specified, use CC.
8374 # If no C compiler flags were specified, use CFLAGS.
8375 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8377 # Allow CC to be a program name with arguments.
8380 # Save the default compiler, since it gets overwritten when the other
8381 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8382 compiler_DEFAULT
=$CC
8384 # save warnings/boilerplate of simple test code
8385 ac_outfile
=conftest.
$ac_objext
8386 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8387 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8388 _lt_compiler_boilerplate
=`cat conftest.err`
8391 ac_outfile
=conftest.
$ac_objext
8392 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8393 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8394 _lt_linker_boilerplate
=`cat conftest.err`
8399 ## There is no encapsulation within the following macros, do not change
8400 ## the running order or otherwise move them around unless you know exactly
8401 ## what you are doing...
8402 if test -n "$compiler"; then
8404 lt_prog_compiler_no_builtin_flag
=
8406 if test "$GCC" = yes; then
8407 case $cc_basename in
8409 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8411 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8415 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8416 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8417 $as_echo_n "(cached) " >&6
8419 lt_cv_prog_compiler_rtti_exceptions
=no
8420 ac_outfile
=conftest.
$ac_objext
8421 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8422 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8423 # Insert the option either (1) after the last *FLAGS variable, or
8424 # (2) before a word containing "conftest.", or (3) at the end.
8425 # Note that $ac_compile itself does not contain backslashes and begins
8426 # with a dollar sign (not a hyphen), so the echo should work correctly.
8427 # The option is referenced via a variable to avoid confusing sed.
8428 lt_compile
=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>conftest.err
)
8435 cat conftest.err
>&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s "$ac_outfile"; then
8438 # The compiler can only warn and ignore the option if not recognized
8439 # So say no if there are warnings other than the usual output.
8440 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8441 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8442 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8443 lt_cv_prog_compiler_rtti_exceptions
=yes
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8450 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8452 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8453 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8465 lt_prog_compiler_wl
=
8466 lt_prog_compiler_pic
=
8467 lt_prog_compiler_static
=
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8470 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8472 if test "$GCC" = yes; then
8473 lt_prog_compiler_wl
='-Wl,'
8474 lt_prog_compiler_static
='-static'
8478 # All AIX code is PIC.
8479 if test "$host_cpu" = ia64
; then
8480 # AIX 5 now supports IA64 processor
8481 lt_prog_compiler_static
='-Bstatic'
8483 lt_prog_compiler_pic
='-fPIC'
8489 # see comment about AmigaOS4 .so support
8490 lt_prog_compiler_pic
='-fPIC'
8493 # FIXME: we need at least 68020 code to build shared libraries, but
8494 # adding the `-m68020' flag to GCC prevents building anything better,
8496 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8501 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8502 # PIC is the default for these OSes.
8505 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8506 # This hack is so that the source file can tell whether it is being
8507 # built for inclusion in a dll (and should export symbols for example).
8508 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8509 # (--disable-auto-import) libraries
8510 lt_prog_compiler_pic
='-DDLL_EXPORT'
8513 darwin
* | rhapsody
*)
8514 # PIC is the default on this platform
8515 # Common symbols not allowed in MH_DYLIB files
8516 lt_prog_compiler_pic
='-fno-common'
8520 # PIC is the default for Haiku.
8521 # The "-static" flag exists, but is broken.
8522 lt_prog_compiler_static
=
8526 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8527 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8528 # sets the default TLS model and affects inlining.
8534 lt_prog_compiler_pic
='-fPIC'
8540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8541 # Instead, we relocate shared libraries at runtime.
8545 # Just because we use GCC doesn't mean we suddenly get shared libraries
8546 # on systems that don't support them.
8547 lt_prog_compiler_can_build_shared
=no
8552 # QNX uses GNU C++, but need to define -shared option too, otherwise
8554 lt_prog_compiler_pic
='-fPIC -shared'
8558 if test -d /usr
/nec
; then
8559 lt_prog_compiler_pic
=-Kconform_pic
8564 lt_prog_compiler_pic
='-fPIC'
8568 case $cc_basename in
8569 nvcc
*) # Cuda Compiler Driver 2.2
8570 lt_prog_compiler_wl
='-Xlinker '
8571 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8575 # PORTME Check for flag to pass linker flags through the system compiler.
8578 lt_prog_compiler_wl
='-Wl,'
8579 if test "$host_cpu" = ia64
; then
8580 # AIX 5 now supports IA64 processor
8581 lt_prog_compiler_static
='-Bstatic'
8583 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8587 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8588 # This hack is so that the source file can tell whether it is being
8589 # built for inclusion in a dll (and should export symbols for example).
8590 lt_prog_compiler_pic
='-DDLL_EXPORT'
8593 hpux9
* | hpux10
* | hpux11
*)
8594 lt_prog_compiler_wl
='-Wl,'
8595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8602 lt_prog_compiler_pic
='+Z'
8605 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8606 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8609 irix5
* | irix6
* | nonstopux
*)
8610 lt_prog_compiler_wl
='-Wl,'
8611 # PIC (with -KPIC) is the default.
8612 lt_prog_compiler_static
='-non_shared'
8615 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8616 case $cc_basename in
8617 # old Intel for x86_64 which still supported -KPIC.
8619 lt_prog_compiler_wl
='-Wl,'
8620 lt_prog_compiler_pic
='-KPIC'
8621 lt_prog_compiler_static
='-static'
8623 # icc used to be incompatible with GCC.
8624 # ICC 10 doesn't accept -KPIC any more.
8626 lt_prog_compiler_wl
='-Wl,'
8627 lt_prog_compiler_pic
='-fPIC'
8628 lt_prog_compiler_static
='-static'
8630 # Lahey Fortran 8.1.
8632 lt_prog_compiler_wl
='-Wl,'
8633 lt_prog_compiler_pic
='--shared'
8634 lt_prog_compiler_static
='--static'
8636 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8637 # Portland Group compilers (*not* the Pentium gcc compiler,
8638 # which looks to be a dead project)
8639 lt_prog_compiler_wl
='-Wl,'
8640 lt_prog_compiler_pic
='-fpic'
8641 lt_prog_compiler_static
='-Bstatic'
8644 lt_prog_compiler_wl
='-Wl,'
8645 # All Alpha code is PIC.
8646 lt_prog_compiler_static
='-non_shared'
8648 xl
* | bgxl
* | bgf
* | mpixl
*)
8649 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8650 lt_prog_compiler_wl
='-Wl,'
8651 lt_prog_compiler_pic
='-qpic'
8652 lt_prog_compiler_static
='-qstaticlink'
8655 case `$CC -V 2>&1 | sed 5q` in
8656 *Sun\ F
* |
*Sun
*Fortran
*)
8657 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8658 lt_prog_compiler_pic
='-KPIC'
8659 lt_prog_compiler_static
='-Bstatic'
8660 lt_prog_compiler_wl
=''
8664 lt_prog_compiler_pic
='-KPIC'
8665 lt_prog_compiler_static
='-Bstatic'
8666 lt_prog_compiler_wl
='-Wl,'
8674 lt_prog_compiler_pic
='-KPIC'
8675 lt_prog_compiler_static
='-Bstatic'
8679 # QNX uses GNU C++, but need to define -shared option too, otherwise
8681 lt_prog_compiler_pic
='-fPIC -shared'
8684 osf3
* | osf4
* | osf5
*)
8685 lt_prog_compiler_wl
='-Wl,'
8686 # All OSF/1 code is PIC.
8687 lt_prog_compiler_static
='-non_shared'
8691 lt_prog_compiler_static
='-non_shared'
8695 lt_prog_compiler_pic
='-KPIC'
8696 lt_prog_compiler_static
='-Bstatic'
8697 case $cc_basename in
8699 lt_prog_compiler_wl
='-Qoption ld ';;
8701 lt_prog_compiler_wl
='-Wl,';;
8706 lt_prog_compiler_wl
='-Qoption ld '
8707 lt_prog_compiler_pic
='-PIC'
8708 lt_prog_compiler_static
='-Bstatic'
8711 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8712 lt_prog_compiler_wl
='-Wl,'
8713 lt_prog_compiler_pic
='-KPIC'
8714 lt_prog_compiler_static
='-Bstatic'
8718 if test -d /usr
/nec
;then
8719 lt_prog_compiler_pic
='-Kconform_pic'
8720 lt_prog_compiler_static
='-Bstatic'
8724 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8725 lt_prog_compiler_wl
='-Wl,'
8726 lt_prog_compiler_pic
='-KPIC'
8727 lt_prog_compiler_static
='-Bstatic'
8731 lt_prog_compiler_wl
='-Wl,'
8732 lt_prog_compiler_can_build_shared
=no
8736 lt_prog_compiler_pic
='-pic'
8737 lt_prog_compiler_static
='-Bstatic'
8741 lt_prog_compiler_can_build_shared
=no
8747 # For platforms which do not support PIC, -DPIC is meaningless:
8749 lt_prog_compiler_pic
=
8752 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8756 $as_echo "$lt_prog_compiler_pic" >&6; }
8764 # Check to make sure the PIC flag actually works.
8766 if test -n "$lt_prog_compiler_pic"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8768 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8769 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8770 $as_echo_n "(cached) " >&6
8772 lt_cv_prog_compiler_pic_works
=no
8773 ac_outfile
=conftest.
$ac_objext
8774 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8775 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8776 # Insert the option either (1) after the last *FLAGS variable, or
8777 # (2) before a word containing "conftest.", or (3) at the end.
8778 # Note that $ac_compile itself does not contain backslashes and begins
8779 # with a dollar sign (not a hyphen), so the echo should work correctly.
8780 # The option is referenced via a variable to avoid confusing sed.
8781 lt_compile
=`echo "$ac_compile" | $SED \
8782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784 -e 's:$: $lt_compiler_flag:'`
8785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8786 (eval "$lt_compile" 2>conftest.err
)
8788 cat conftest.err
>&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 if (exit $ac_status) && test -s "$ac_outfile"; then
8791 # The compiler can only warn and ignore the option if not recognized
8792 # So say no if there are warnings other than the usual output.
8793 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8794 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8795 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8796 lt_cv_prog_compiler_pic_works
=yes
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8803 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8805 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8806 case $lt_prog_compiler_pic in
8808 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8811 lt_prog_compiler_pic
=
8812 lt_prog_compiler_can_build_shared
=no
8823 # Check to make sure the static flag actually works.
8825 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8827 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8828 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8829 $as_echo_n "(cached) " >&6
8831 lt_cv_prog_compiler_static_works
=no
8832 save_LDFLAGS
="$LDFLAGS"
8833 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8834 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8835 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8836 # The linker can only warn and ignore the option if not recognized
8837 # So say no if there are warnings
8838 if test -s conftest.err
; then
8839 # Append any errors to the config.log.
8840 cat conftest.err
1>&5
8841 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8842 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8843 if diff conftest.exp conftest.er2
>/dev
/null
; then
8844 lt_cv_prog_compiler_static_works
=yes
8847 lt_cv_prog_compiler_static_works
=yes
8851 LDFLAGS
="$save_LDFLAGS"
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8855 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8857 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8860 lt_prog_compiler_static
=
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8870 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8871 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8872 $as_echo_n "(cached) " >&6
8874 lt_cv_prog_compiler_c_o
=no
8875 $RM -r conftest
2>/dev
/null
8879 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8881 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8882 # Insert the option either (1) after the last *FLAGS variable, or
8883 # (2) before a word containing "conftest.", or (3) at the end.
8884 # Note that $ac_compile itself does not contain backslashes and begins
8885 # with a dollar sign (not a hyphen), so the echo should work correctly.
8886 lt_compile
=`echo "$ac_compile" | $SED \
8887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8889 -e 's:$: $lt_compiler_flag:'`
8890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8891 (eval "$lt_compile" 2>out
/conftest.err
)
8893 cat out
/conftest.err
>&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8897 # The compiler can only warn and ignore the option if not recognized
8898 # So say no if there are warnings
8899 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8900 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8901 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8902 lt_cv_prog_compiler_c_o
=yes
8907 # SGI C++ compiler will create directory out/ii_files/ for
8908 # template instantiation
8909 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8910 $RM out
/* && rmdir out
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8917 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8926 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8927 $as_echo_n "(cached) " >&6
8929 lt_cv_prog_compiler_c_o
=no
8930 $RM -r conftest
2>/dev
/null
8934 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8936 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8937 # Insert the option either (1) after the last *FLAGS variable, or
8938 # (2) before a word containing "conftest.", or (3) at the end.
8939 # Note that $ac_compile itself does not contain backslashes and begins
8940 # with a dollar sign (not a hyphen), so the echo should work correctly.
8941 lt_compile
=`echo "$ac_compile" | $SED \
8942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8944 -e 's:$: $lt_compiler_flag:'`
8945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8946 (eval "$lt_compile" 2>out
/conftest.err
)
8948 cat out
/conftest.err
>&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8952 # The compiler can only warn and ignore the option if not recognized
8953 # So say no if there are warnings
8954 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8955 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8956 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8957 lt_cv_prog_compiler_c_o
=yes
8962 # SGI C++ compiler will create directory out/ii_files/ for
8963 # template instantiation
8964 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8965 $RM out
/* && rmdir out
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8972 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8977 hard_links
="nottested"
8978 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8979 # do not overwrite the value of need_locks provided by the user
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8981 $as_echo_n "checking if we can lock with hard links... " >&6; }
8984 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8986 ln conftest.a conftest.b
2>&5 || hard_links
=no
8987 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8989 $as_echo "$hard_links" >&6; }
8990 if test "$hard_links" = no
; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8992 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9005 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9008 allow_undefined_flag
=
9009 always_export_symbols
=no
9011 archive_expsym_cmds
=
9012 compiler_needs_object
=no
9013 enable_shared_with_static_runtimes
=no
9014 export_dynamic_flag_spec
=
9015 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9016 hardcode_automatic
=no
9018 hardcode_direct_absolute
=no
9019 hardcode_libdir_flag_spec
=
9020 hardcode_libdir_flag_spec_ld
=
9021 hardcode_libdir_separator
=
9023 hardcode_shlibpath_var
=unsupported
9025 link_all_deplibs
=unknown
9028 old_archive_from_new_cmds
=
9029 old_archive_from_expsyms_cmds
=
9030 thread_safe_flag_spec
=
9031 whole_archive_flag_spec
=
9032 # include_expsyms should be a list of space-separated symbols to be *always*
9033 # included in the symbol list
9035 # exclude_expsyms can be an extended regexp of symbols to exclude
9036 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9038 # as well as any symbol that contains `d'.
9039 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9041 # platforms (ab)use it in PIC code, but their linkers get confused if
9042 # the symbol is explicitly referenced. Since portable code cannot
9043 # rely on this symbol name, it's probably fine to never include it in
9044 # preloaded symbol tables.
9045 # Exclude shared library initialization/finalization symbols.
9046 extract_expsyms_cmds
=
9049 cygwin
* | mingw
* | pw32
* | cegcc
*)
9050 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9051 # When not using gcc, we currently assume that we are using
9052 # Microsoft Visual C++.
9053 if test "$GCC" != yes; then
9058 # we just hope/assume this is gcc and not c89 (= MSVC++)
9068 # On some targets, GNU ld is compatible enough with the native linker
9069 # that we're better off using the native interface for both.
9070 lt_use_gnu_ld_interface
=no
9071 if test "$with_gnu_ld" = yes; then
9074 # The AIX port of GNU ld has always aspired to compatibility
9075 # with the native linker. However, as the warning in the GNU ld
9076 # block says, versions before 2.19.5* couldn't really create working
9077 # shared libraries, regardless of the interface used.
9078 case `$LD -v 2>&1` in
9079 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9080 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9081 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9083 lt_use_gnu_ld_interface
=yes
9088 lt_use_gnu_ld_interface
=yes
9093 if test "$lt_use_gnu_ld_interface" = yes; then
9094 # If archive_cmds runs LD, not CC, wlarc should be empty
9097 # Set some defaults for GNU ld with shared library support. These
9098 # are reset later if shared libraries are not supported. Putting them
9099 # here allows them to be overridden if necessary.
9100 runpath_var
=LD_RUN_PATH
9101 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9102 export_dynamic_flag_spec
='${wl}--export-dynamic'
9103 # ancient GNU ld didn't support --whole-archive et. al.
9104 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9105 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9107 whole_archive_flag_spec
=
9109 supports_anon_versioning
=no
9110 case `$LD -v 2>&1` in
9111 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9112 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9113 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9114 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9115 *\
2.11.
*) ;; # other 2.11 versions
9116 *) supports_anon_versioning
=yes ;;
9119 # See if GNU ld supports shared libraries.
9122 # On AIX/PPC, the GNU linker is very broken
9123 if test "$host_cpu" != ia64
; then
9127 *** Warning: the GNU linker, at least up to release 2.19, is reported
9128 *** to be unable to reliably create shared libraries on AIX.
9129 *** Therefore, libtool is disabling shared libraries support. If you
9130 *** really care for shared libraries, you may want to install binutils
9131 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9132 *** You will then need to restart the configuration process.
9141 # see comment about AmigaOS4 .so support
9142 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9143 archive_expsym_cmds
=''
9146 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)'
9147 hardcode_libdir_flag_spec
='-L$libdir'
9148 hardcode_minus_L
=yes
9154 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9155 allow_undefined_flag
=unsupported
9156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9157 # support --undefined. This deserves some investigation. FIXME
9158 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9164 cygwin
* | mingw
* | pw32
* | cegcc
*)
9165 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9166 # as there is no search path for DLLs.
9167 hardcode_libdir_flag_spec
='-L$libdir'
9168 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9169 allow_undefined_flag
=unsupported
9170 always_export_symbols
=no
9171 enable_shared_with_static_runtimes
=yes
9172 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9174 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9175 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9176 # If the export-symbols file already is a .def file (1st line
9177 # is EXPORTS), use it as is; otherwise, prepend...
9178 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9179 cp $export_symbols $output_objdir/$soname.def;
9181 echo EXPORTS > $output_objdir/$soname.def;
9182 cat $export_symbols >> $output_objdir/$soname.def;
9184 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9191 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192 link_all_deplibs
=yes
9197 hardcode_shlibpath_var
=no
9198 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9199 export_dynamic_flag_spec
='${wl}-E'
9200 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9201 # Instead, shared libraries are loaded at an image base (0x10000000 by
9202 # default) and relocated if they conflict, which is a slow very memory
9203 # consuming and fragmenting process. To avoid this, we pick a random,
9204 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9205 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9206 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9207 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'
9210 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9212 if test "$host_os" = linux-dietlibc
; then
9213 case $cc_basename in
9214 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9217 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9218 && test "$tmp_diet" = no
9220 tmp_addflag
=' $pic_flag'
9221 tmp_sharedflag
='-shared'
9222 case $cc_basename,$host_cpu in
9223 pgcc
*) # Portland Group C compiler
9224 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'
9225 tmp_addflag
=' $pic_flag'
9227 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9228 # Portland Group f77 and f90 compilers
9229 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'
9230 tmp_addflag
=' $pic_flag -Mnomain' ;;
9231 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9232 tmp_addflag
=' -i_dynamic' ;;
9233 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9234 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9235 ifc
* | ifort
*) # Intel Fortran compiler
9236 tmp_addflag
=' -nofor_main' ;;
9237 lf95
*) # Lahey Fortran 8.1
9238 whole_archive_flag_spec
=
9239 tmp_sharedflag
='--shared' ;;
9240 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9241 tmp_sharedflag
='-qmkshrobj'
9243 nvcc
*) # Cuda Compiler Driver 2.2
9244 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'
9245 compiler_needs_object
=yes
9248 case `$CC -V 2>&1 | sed 5q` in
9249 *Sun\ C
*) # Sun C 5.9
9250 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'
9251 compiler_needs_object
=yes
9252 tmp_sharedflag
='-G' ;;
9253 *Sun\ F
*) # Sun Fortran 8.3
9254 tmp_sharedflag
='-G' ;;
9256 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 if test "x$supports_anon_versioning" = xyes
; then
9259 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9261 echo "local: *; };" >> $output_objdir/$libname.ver~
9262 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9265 case $cc_basename in
9266 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9267 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9268 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9269 hardcode_libdir_flag_spec
=
9270 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9271 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9272 if test "x$supports_anon_versioning" = xyes
; then
9273 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9274 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9275 echo "local: *; };" >> $output_objdir/$libname.ver~
9276 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9286 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9287 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9290 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9296 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9301 *** create shared libraries on Solaris systems. Therefore, libtool
9302 *** is disabling shared libraries support. We urge you to upgrade GNU
9303 *** binutils to release 2.9.1 or newer. Another option is to modify
9304 *** your PATH or compiler configuration so that the native linker is
9305 *** used, and then restart.
9308 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9309 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9310 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9316 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9317 case `$LD -v 2>&1` in
9318 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9322 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9323 *** reliably create shared libraries on SCO systems. Therefore, libtool
9324 *** is disabling shared libraries support. We urge you to upgrade GNU
9325 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9326 *** your PATH or compiler configuration so that the native linker is
9327 *** used, and then restart.
9332 # For security reasons, it is highly recommended that you always
9333 # use absolute paths for naming shared libraries, and exclude the
9334 # DT_RUNPATH tag from executables and libraries. But doing so
9335 # requires that you compile everything twice, which is a pain.
9336 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9337 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9338 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9348 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_shlibpath_var
=no
9355 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9356 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9357 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9364 if test "$ld_shlibs" = no
; then
9366 hardcode_libdir_flag_spec
=
9367 export_dynamic_flag_spec
=
9368 whole_archive_flag_spec
=
9371 # PORTME fill in a description of your system's linker (not GNU ld)
9374 allow_undefined_flag
=unsupported
9375 always_export_symbols
=yes
9376 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'
9377 # Note: this linker hardcodes the directories in LIBPATH if there
9378 # are no directories specified by -L.
9379 hardcode_minus_L
=yes
9380 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9381 # Neither direct hardcoding nor static linking is supported with a
9383 hardcode_direct
=unsupported
9388 if test "$host_cpu" = ia64
; then
9389 # On IA64, the linker does run time linking by default, so we don't
9390 # have to do anything special.
9391 aix_use_runtimelinking
=no
9392 exp_sym_flag
='-Bexport'
9395 # If we're using GNU nm, then we don't want the "-C" option.
9396 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9397 # Also, AIX nm treats weak defined symbols like other global
9398 # defined symbols, whereas GNU nm marks them as "W".
9399 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9400 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'
9402 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'
9404 aix_use_runtimelinking
=no
9406 # Test if we are trying to use run time linking or normal
9407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9408 # need to do runtime linking.
9409 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9410 for ld_flag
in $LDFLAGS; do
9411 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9412 aix_use_runtimelinking
=yes
9419 exp_sym_flag
='-bexport'
9420 no_entry_flag
='-bnoentry'
9423 # When large executables or shared objects are built, AIX ld can
9424 # have problems creating the table of contents. If linking a library
9425 # or program results in "error TOC overflow" add -mminimal-toc to
9426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9431 hardcode_direct_absolute
=yes
9432 hardcode_libdir_separator
=':'
9433 link_all_deplibs
=yes
9434 file_list_spec
='${wl}-f,'
9436 if test "$GCC" = yes; then
9437 case $host_os in aix4.
[012]|aix4.
[012].
*)
9438 # We only want to do this on AIX 4.2 and lower, the check
9439 # below for broken collect2 doesn't work under 4.3+
9440 collect2name
=`${CC} -print-prog-name=collect2`
9441 if test -f "$collect2name" &&
9442 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9444 # We have reworked collect2
9447 # We have old collect2
9448 hardcode_direct
=unsupported
9449 # It fails to find uninstalled libraries when the uninstalled
9450 # path is not listed in the libpath. Setting hardcode_minus_L
9451 # to unsupported forces relinking
9452 hardcode_minus_L
=yes
9453 hardcode_libdir_flag_spec
='-L$libdir'
9454 hardcode_libdir_separator
=
9458 shared_flag
='-shared'
9459 if test "$aix_use_runtimelinking" = yes; then
9460 shared_flag
="$shared_flag "'${wl}-G'
9464 if test "$host_cpu" = ia64
; then
9465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9466 # chokes on -Wl,-G. The following line is correct:
9469 if test "$aix_use_runtimelinking" = yes; then
9470 shared_flag
='${wl}-G'
9472 shared_flag
='${wl}-bM:SRE'
9477 export_dynamic_flag_spec
='${wl}-bexpall'
9478 # It seems that -bexpall does not export symbols beginning with
9479 # underscore (_), so it is better to generate a list of symbols to export.
9480 always_export_symbols
=yes
9481 if test "$aix_use_runtimelinking" = yes; then
9482 # Warning - without using the other runtime loading flags (-brtl),
9483 # -berok will link without error, but may produce a broken library.
9484 allow_undefined_flag
='-berok'
9485 # Determine the default libpath from the value encoded in an
9487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9498 if ac_fn_c_try_link
"$LINENO"; then :
9500 lt_aix_libpath_sed
='
9501 /Import File Strings/,/^$/ {
9507 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9508 # Check for a 64-bit object if we didn't find anything.
9509 if test -z "$aix_libpath"; then
9510 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9513 rm -f core conftest.err conftest.
$ac_objext \
9514 conftest
$ac_exeext conftest.
$ac_ext
9515 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9517 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9518 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"
9520 if test "$host_cpu" = ia64
; then
9521 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9522 allow_undefined_flag
="-z nodefs"
9523 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"
9525 # Determine the default libpath from the value encoded in an
9527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9538 if ac_fn_c_try_link
"$LINENO"; then :
9540 lt_aix_libpath_sed
='
9541 /Import File Strings/,/^$/ {
9547 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9548 # Check for a 64-bit object if we didn't find anything.
9549 if test -z "$aix_libpath"; then
9550 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553 rm -f core conftest.err conftest.
$ac_objext \
9554 conftest
$ac_exeext conftest.
$ac_ext
9555 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9557 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9558 # Warning - without using the other run time loading flags,
9559 # -berok will link without error, but may produce a broken library.
9560 no_undefined_flag
=' ${wl}-bernotok'
9561 allow_undefined_flag
=' ${wl}-berok'
9562 if test "$with_gnu_ld" = yes; then
9563 # We only use this code for GNU lds that support --whole-archive.
9564 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9566 # Exported symbols can be pulled into shared objects from archives
9567 whole_archive_flag_spec
='$convenience'
9569 archive_cmds_need_lc
=yes
9570 # This is similar to how AIX traditionally builds its shared libraries.
9571 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'
9579 # see comment about AmigaOS4 .so support
9580 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581 archive_expsym_cmds
=''
9584 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)'
9585 hardcode_libdir_flag_spec
='-L$libdir'
9586 hardcode_minus_L
=yes
9592 export_dynamic_flag_spec
=-rdynamic
9595 cygwin
* | mingw
* | pw32
* | cegcc
*)
9596 # When not using gcc, we currently assume that we are using
9597 # Microsoft Visual C++.
9598 # hardcode_libdir_flag_spec is actually meaningless, as there is
9599 # no search path for DLLs.
9600 hardcode_libdir_flag_spec
=' '
9601 allow_undefined_flag
=unsupported
9602 # Tell ltmain to make .lib files, not .a files.
9604 # Tell ltmain to make .dll files, not .so files.
9606 # FIXME: Setting linknames here is a bad hack.
9607 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9608 # The linker will automatically build a .lib file if we build a DLL.
9609 old_archive_from_new_cmds
='true'
9610 # FIXME: Should let the user specify the lib program.
9611 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9612 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9613 enable_shared_with_static_runtimes
=yes
9616 darwin
* | rhapsody
*)
9619 archive_cmds_need_lc
=no
9621 hardcode_automatic
=yes
9622 hardcode_shlibpath_var
=unsupported
9623 if test "$lt_cv_ld_force_load" = "yes"; then
9624 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\"`'
9626 whole_archive_flag_spec
=''
9628 link_all_deplibs
=yes
9629 allow_undefined_flag
="$_lt_dar_allow_undefined"
9630 case $cc_basename in
9631 ifort
*) _lt_dar_can_shared
=yes ;;
9632 *) _lt_dar_can_shared
=$GCC ;;
9634 if test "$_lt_dar_can_shared" = "yes"; then
9635 output_verbose_link_cmd
=func_echo_all
9636 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9637 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9638 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}"
9639 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}"
9648 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_libdir_flag_spec
='-L$libdir'
9650 hardcode_shlibpath_var
=no
9653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9654 # support. Future versions do this automatically, but an explicit c++rt0.o
9655 # does not break anything, and helps significantly (at the cost of a little
9658 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9659 hardcode_libdir_flag_spec
='-R$libdir'
9661 hardcode_shlibpath_var
=no
9664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9666 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_minus_L
=yes
9669 hardcode_shlibpath_var
=no
9672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9673 freebsd
* | dragonfly
*)
9674 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9675 hardcode_libdir_flag_spec
='-R$libdir'
9677 hardcode_shlibpath_var
=no
9681 if test "$GCC" = yes; then
9682 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'
9684 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'
9686 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9687 hardcode_libdir_separator
=:
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L
=yes
9693 export_dynamic_flag_spec
='${wl}-E'
9697 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9698 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9702 if test "$with_gnu_ld" = no
; then
9703 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9704 hardcode_libdir_flag_spec_ld
='+b $libdir'
9705 hardcode_libdir_separator
=:
9707 hardcode_direct_absolute
=yes
9708 export_dynamic_flag_spec
='${wl}-E'
9709 # hardcode_minus_L: Not really in the search PATH,
9710 # but as the default location of the library.
9711 hardcode_minus_L
=yes
9716 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9719 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9731 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9738 # Older versions of the 11.00 compiler do not understand -b yet
9739 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9741 $as_echo_n "checking if $CC understands -b... " >&6; }
9742 if ${lt_cv_prog_compiler__b+:} false
; then :
9743 $as_echo_n "(cached) " >&6
9745 lt_cv_prog_compiler__b
=no
9746 save_LDFLAGS
="$LDFLAGS"
9747 LDFLAGS
="$LDFLAGS -b"
9748 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9749 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9750 # The linker can only warn and ignore the option if not recognized
9751 # So say no if there are warnings
9752 if test -s conftest.err
; then
9753 # Append any errors to the config.log.
9754 cat conftest.err
1>&5
9755 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9756 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9757 if diff conftest.exp conftest.er2
>/dev
/null
; then
9758 lt_cv_prog_compiler__b
=yes
9761 lt_cv_prog_compiler__b
=yes
9765 LDFLAGS
="$save_LDFLAGS"
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9769 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9771 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9772 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9780 if test "$with_gnu_ld" = no
; then
9781 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9782 hardcode_libdir_separator
=:
9787 hardcode_shlibpath_var
=no
9791 hardcode_direct_absolute
=yes
9792 export_dynamic_flag_spec
='${wl}-E'
9794 # hardcode_minus_L: Not really in the search PATH,
9795 # but as the default location of the library.
9796 hardcode_minus_L
=yes
9802 irix5
* | irix6
* | nonstopux
*)
9803 if test "$GCC" = yes; then
9804 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'
9805 # Try to use the -exported_symbol ld option, if it does not
9806 # work, assume that -exports_file does not work either and
9807 # implicitly export all symbols.
9808 save_LDFLAGS
="$LDFLAGS"
9809 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9814 if ac_fn_c_try_link
"$LINENO"; then :
9815 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'
9818 rm -f core conftest.err conftest.
$ac_objext \
9819 conftest
$ac_exeext conftest.
$ac_ext
9820 LDFLAGS
="$save_LDFLAGS"
9822 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'
9823 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'
9825 archive_cmds_need_lc
='no'
9826 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9827 hardcode_libdir_separator
=:
9829 link_all_deplibs
=yes
9833 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9834 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9836 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9838 hardcode_libdir_flag_spec
='-R$libdir'
9840 hardcode_shlibpath_var
=no
9844 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9846 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9847 hardcode_libdir_separator
=:
9848 hardcode_shlibpath_var
=no
9855 if test -f /usr
/libexec
/ld.so
; then
9857 hardcode_shlibpath_var
=no
9858 hardcode_direct_absolute
=yes
9859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9860 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9861 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9862 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9863 export_dynamic_flag_spec
='${wl}-E'
9866 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9867 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9868 hardcode_libdir_flag_spec
='-R$libdir'
9871 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9872 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9882 hardcode_libdir_flag_spec
='-L$libdir'
9883 hardcode_minus_L
=yes
9884 allow_undefined_flag
=unsupported
9885 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'
9886 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9890 if test "$GCC" = yes; then
9891 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9892 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'
9894 allow_undefined_flag
=' -expect_unresolved \*'
9895 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'
9897 archive_cmds_need_lc
='no'
9898 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9899 hardcode_libdir_separator
=:
9902 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9903 if test "$GCC" = yes; then
9904 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9905 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'
9906 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9908 allow_undefined_flag
=' -expect_unresolved \*'
9909 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'
9910 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~
9911 $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'
9913 # Both c and cxx compiler support -rpath directly
9914 hardcode_libdir_flag_spec
='-rpath $libdir'
9916 archive_cmds_need_lc
='no'
9917 hardcode_libdir_separator
=:
9921 no_undefined_flag
=' -z defs'
9922 if test "$GCC" = yes; then
9924 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9925 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9926 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9928 case `$CC -V 2>&1` in
9931 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9932 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9937 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9939 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9943 hardcode_libdir_flag_spec
='-R$libdir'
9944 hardcode_shlibpath_var
=no
9946 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9948 # The compiler driver will combine and reorder linker options,
9949 # but understands `-z linker_flag'. GCC discards it without `$wl',
9950 # but is careful enough not to reorder.
9951 # Supported since Solaris 2.6 (maybe 2.5.1?)
9952 if test "$GCC" = yes; then
9953 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9955 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9959 link_all_deplibs
=yes
9963 if test "x$host_vendor" = xsequent
; then
9964 # Use $CC to link under sequent, because it throws in some extra .o
9965 # files that make .init and .fini sections work.
9966 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9968 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_libdir_flag_spec
='-L$libdir'
9972 hardcode_minus_L
=yes
9973 hardcode_shlibpath_var
=no
9977 case $host_vendor in
9979 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980 hardcode_direct
=yes # is this really true???
9983 ## LD is ld it makes a PLAMLIB
9984 ## CC just makes a GrossModule.
9985 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9986 reload_cmds
='$CC -r -o $output$reload_objs'
9990 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9994 runpath_var
='LD_RUN_PATH'
9995 hardcode_shlibpath_var
=no
9999 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_shlibpath_var
=no
10001 export_dynamic_flag_spec
='-Bexport'
10005 if test -d /usr
/nec
; then
10006 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007 hardcode_shlibpath_var
=no
10008 runpath_var
=LD_RUN_PATH
10009 hardcode_runpath_var
=yes
10014 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10015 no_undefined_flag
='${wl}-z,text'
10016 archive_cmds_need_lc
=no
10017 hardcode_shlibpath_var
=no
10018 runpath_var
='LD_RUN_PATH'
10020 if test "$GCC" = yes; then
10021 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029 sysv5
* | sco3.2v5
* | sco5v6
*)
10030 # Note: We can NOT use -z defs as we might desire, because we do not
10031 # link with -lc, and that would cause any symbols used from libc to
10032 # always be unresolved, which means just about no library would
10033 # ever link correctly. If we're not using GNU ld we use -z text
10034 # though, which does catch some bad symbols but isn't as heavy-handed
10036 no_undefined_flag
='${wl}-z,text'
10037 allow_undefined_flag
='${wl}-z,nodefs'
10038 archive_cmds_need_lc
=no
10039 hardcode_shlibpath_var
=no
10040 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10041 hardcode_libdir_separator
=':'
10042 link_all_deplibs
=yes
10043 export_dynamic_flag_spec
='${wl}-Bexport'
10044 runpath_var
='LD_RUN_PATH'
10046 if test "$GCC" = yes; then
10047 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_libdir_flag_spec
='-L$libdir'
10058 hardcode_shlibpath_var
=no
10066 if test x
$host_vendor = xsni
; then
10068 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10069 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10076 $as_echo "$ld_shlibs" >&6; }
10077 test "$ld_shlibs" = no
&& can_build_shared
=no
10079 with_gnu_ld
=$with_gnu_ld
10096 # Do we need to explicitly link libc?
10098 case "x$archive_cmds_need_lc" in
10100 # Assume -lc should be added
10101 archive_cmds_need_lc
=yes
10103 if test "$enable_shared" = yes && test "$GCC" = yes; then
10104 case $archive_cmds in
10106 # FIXME: we may have to deal with multi-command sequences.
10109 # Test whether the compiler implicitly links with -lc since on some
10110 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10111 # to ld, don't add -lc before -lgcc.
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10113 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10114 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10115 $as_echo_n "(cached) " >&6
10118 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10121 (eval $ac_compile) 2>&5
10123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124 test $ac_status = 0; } 2>conftest.err
; then
10127 libobjs
=conftest.
$ac_objext
10129 wl
=$lt_prog_compiler_wl
10130 pic_flag
=$lt_prog_compiler_pic
10136 lt_save_allow_undefined_flag
=$allow_undefined_flag
10137 allow_undefined_flag
=
10138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10139 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10142 test $ac_status = 0; }
10144 lt_cv_archive_cmds_need_lc
=no
10146 lt_cv_archive_cmds_need_lc
=yes
10148 allow_undefined_flag
=$lt_save_allow_undefined_flag
10150 cat conftest.err
1>&5
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10156 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10157 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10321 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10323 if test "$GCC" = yes; then
10325 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10326 *) lt_awk_arg
="/^libraries:/" ;;
10329 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10330 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10332 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10333 case $lt_search_path_spec in
10335 # if the path contains ";" then we assume it to be the separator
10336 # otherwise default to the standard path separator (i.e. ":") - it is
10337 # assumed that no part of a normal pathname contains ";" but that should
10338 # okay in the real world where ";" in dirpaths is itself problematic.
10339 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10342 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10345 # Ok, now we have the path, separated by spaces, we can step through it
10346 # and add multilib dir if necessary.
10347 lt_tmp_lt_search_path_spec
=
10348 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10349 for lt_sys_path
in $lt_search_path_spec; do
10350 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10351 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10353 test -d "$lt_sys_path" && \
10354 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10357 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10358 BEGIN {RS=" "; FS="/|\n";} {
10361 for (lt_i = NF; lt_i > 0; lt_i--) {
10362 if ($lt_i != "" && $lt_i != ".") {
10363 if ($lt_i == "..") {
10366 if (lt_count == 0) {
10367 lt_foo="/" $lt_i lt_foo;
10374 if (lt_foo != "") { lt_freq[lt_foo]++; }
10375 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10377 # AWK program above erroneously prepends '/' to C:/dos/paths
10380 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10381 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10383 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10385 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10387 library_names_spec
=
10388 libname_spec
='lib$name'
10392 postuninstall_cmds
=
10396 shlibpath_overrides_runpath
=unknown
10398 dynamic_linker
="$host_os ld.so"
10399 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10400 need_lib_prefix
=unknown
10401 hardcode_into_libs
=no
10403 # when you set need_version to no, make sure it does not cause -set_version
10404 # flags to be left without arguments
10405 need_version
=unknown
10410 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10411 shlibpath_var
=LIBPATH
10413 # AIX 3 has no versioning support, so we append a major version to the name.
10414 soname_spec
='${libname}${release}${shared_ext}$major'
10421 hardcode_into_libs
=yes
10422 if test "$host_cpu" = ia64
; then
10423 # AIX 5 supports IA64
10424 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10425 shlibpath_var
=LD_LIBRARY_PATH
10427 # With GCC up to 2.95.x, collect2 would create an import file
10428 # for dependence libraries. The import file would start with
10429 # the line `#! .'. This would cause the generated library to
10430 # depend on `.', always an invalid library. This was fixed in
10431 # development snapshots of GCC prior to 3.0.
10433 aix4 | aix4.
[01] | aix4.
[01].
*)
10434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10436 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10439 can_build_shared
=no
10443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10444 # soname into executable. Probably we can add versioning support to
10445 # collect2, so additional links can be useful in future.
10446 if test "$aix_use_runtimelinking" = yes; then
10447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10448 # instead of lib<name>.a to let people know that these are not
10449 # typical AIX shared libraries.
10450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 # We preserve .a as extension for shared libraries through AIX4.2
10453 # and later when we are not doing run time linking.
10454 library_names_spec
='${libname}${release}.a $libname.a'
10455 soname_spec
='${libname}${release}${shared_ext}$major'
10457 shlibpath_var
=LIBPATH
10464 # Since July 2007 AmigaOS4 officially supports .so libraries.
10465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10466 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469 library_names_spec
='$libname.ixlibrary $libname.a'
10470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10471 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'
10477 library_names_spec
='${libname}${shared_ext}'
10478 dynamic_linker
="$host_os ld.so"
10479 shlibpath_var
=LIBRARY_PATH
10485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec
='${libname}${release}${shared_ext}$major'
10487 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10488 shlibpath_var
=LD_LIBRARY_PATH
10489 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10490 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10491 # the default ld.so.conf also contains /usr/contrib/lib and
10492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10493 # libtool to hard-code these into programs
10496 cygwin
* | mingw
* | pw32
* | cegcc
*)
10497 version_type
=windows
10502 case $GCC,$host_os in
10503 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10504 library_names_spec
='$libname.dll.a'
10505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10506 postinstall_cmds
='base_file=`basename \${file}`~
10507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10508 dldir=$destdir/`dirname \$dlpath`~
10509 test -d \$dldir || mkdir -p \$dldir~
10510 $install_prog $dir/$dlname \$dldir/$dlname~
10511 chmod a+x \$dldir/$dlname~
10512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10515 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10516 dlpath=$dir/\$dldll~
10518 shlibpath_overrides_runpath
=yes
10522 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10523 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10525 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10528 # MinGW DLLs use traditional 'lib' prefix
10529 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10532 # pw32 DLLs use 'pw' prefix rather than 'lib'
10533 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10539 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10542 dynamic_linker
='Win32 ld.exe'
10543 # FIXME: first we should search . and the directory the executable is in
10547 darwin
* | rhapsody
*)
10548 dynamic_linker
="$host_os dyld"
10549 version_type
=darwin
10552 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10553 soname_spec
='${libname}${release}${major}$shared_ext'
10554 shlibpath_overrides_runpath
=yes
10555 shlibpath_var
=DYLD_LIBRARY_PATH
10556 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10558 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10559 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10567 soname_spec
='${libname}${release}${shared_ext}$major'
10568 shlibpath_var
=LD_LIBRARY_PATH
10571 freebsd
* | dragonfly
*)
10572 # DragonFly does not have aout. When/if they implement a new
10573 # versioning mechanism, adjust this.
10574 if test -x /usr
/bin
/objformat
; then
10575 objformat
=`/usr/bin/objformat`
10578 freebsd
[23].
*) objformat
=aout
;;
10579 *) objformat
=elf
;;
10582 version_type
=freebsd-
$objformat
10583 case $version_type in
10585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10590 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10594 shlibpath_var
=LD_LIBRARY_PATH
10597 shlibpath_overrides_runpath
=yes
10599 freebsd3.
[01]* | freebsdelf3.
[01]*)
10600 shlibpath_overrides_runpath
=yes
10601 hardcode_into_libs
=yes
10603 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10604 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10605 shlibpath_overrides_runpath
=no
10606 hardcode_into_libs
=yes
10608 *) # from 4.6 on, and DragonFly
10609 shlibpath_overrides_runpath
=yes
10610 hardcode_into_libs
=yes
10619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10620 soname_spec
='${libname}${release}${shared_ext}$major'
10621 shlibpath_var
=LD_LIBRARY_PATH
10622 hardcode_into_libs
=yes
10629 dynamic_linker
="$host_os runtime_loader"
10630 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10631 soname_spec
='${libname}${release}${shared_ext}$major'
10632 shlibpath_var
=LIBRARY_PATH
10633 shlibpath_overrides_runpath
=yes
10634 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10635 hardcode_into_libs
=yes
10638 hpux9
* | hpux10
* | hpux11
*)
10639 # Give a soname corresponding to the major version so that dld.sl refuses to
10640 # link against other versions.
10647 hardcode_into_libs
=yes
10648 dynamic_linker
="$host_os dld.so"
10649 shlibpath_var
=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 soname_spec
='${libname}${release}${shared_ext}$major'
10653 if test "X$HPUX_IA64_MODE" = X32
; then
10654 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10656 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10658 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10662 hardcode_into_libs
=yes
10663 dynamic_linker
="$host_os dld.sl"
10664 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10665 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667 soname_spec
='${libname}${release}${shared_ext}$major'
10668 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10669 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10673 dynamic_linker
="$host_os dld.sl"
10674 shlibpath_var
=SHLIB_PATH
10675 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10676 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 soname_spec
='${libname}${release}${shared_ext}$major'
10680 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10681 postinstall_cmds
='chmod 555 $lib'
10682 # or fails outright, so override atomically:
10683 install_override_mode
=555
10690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10691 soname_spec
='${libname}${release}${shared_ext}$major'
10692 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10693 shlibpath_var
=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath
=no
10695 hardcode_into_libs
=yes
10698 irix5
* | irix6
* | nonstopux
*)
10700 nonstopux
*) version_type
=nonstopux
;;
10702 if test "$lt_cv_prog_gnu_ld" = yes; then
10710 soname_spec
='${libname}${release}${shared_ext}$major'
10711 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10713 irix5
* | nonstopux
*)
10714 libsuff
= shlibsuff
=
10717 case $LD in # libtool.m4 will add one of these switches to LD
10718 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10719 libsuff
= shlibsuff
= libmagic
=32-bit;;
10720 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10721 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10722 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10723 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10724 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10728 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10729 shlibpath_overrides_runpath
=no
10730 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10731 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10732 hardcode_into_libs
=yes
10735 # No shared lib support for Linux oldld, aout, or coff.
10736 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10740 # This must be Linux ELF.
10742 # uclinux* changes (here and below) have been submitted to the libtool
10743 # project, but have not yet been accepted: they are GCC-local changes
10744 # for the time being. (See
10745 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10746 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
10750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 soname_spec
='${libname}${release}${shared_ext}$major'
10752 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10753 shlibpath_var
=LD_LIBRARY_PATH
10754 shlibpath_overrides_runpath
=no
10756 # Some binutils ld are patched to set DT_RUNPATH
10757 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10758 $as_echo_n "(cached) " >&6
10760 lt_cv_shlibpath_overrides_runpath
=no
10761 save_LDFLAGS
=$LDFLAGS
10762 save_libdir
=$libdir
10763 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10764 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10776 if ac_fn_c_try_link
"$LINENO"; then :
10777 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10778 lt_cv_shlibpath_overrides_runpath
=yes
10781 rm -f core conftest.err conftest.
$ac_objext \
10782 conftest
$ac_exeext conftest.
$ac_ext
10783 LDFLAGS
=$save_LDFLAGS
10784 libdir
=$save_libdir
10788 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10790 # This implies no fast_install, which is unacceptable.
10791 # Some rework will be needed to allow for fast_install
10792 # before this can be enabled.
10793 hardcode_into_libs
=yes
10795 # Append ld.so.conf contents to the search path
10796 if test -f /etc
/ld.so.conf
; then
10797 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' ' '`
10798 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10801 # We used to test for /lib/ld.so.1 and disable shared libraries on
10802 # powerpc, because MkLinux only supported shared libraries with the
10803 # GNU dynamic linker. Since this was broken with cross compilers,
10804 # most powerpc-linux boxes support dynamic linking these days and
10805 # people can always --disable-shared, the test was removed, and we
10806 # assume the GNU/Linux dynamic linker is in use.
10807 dynamic_linker
='GNU/Linux ld.so'
10814 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10816 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10817 dynamic_linker
='NetBSD (a.out) ld.so'
10819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10820 soname_spec
='${libname}${release}${shared_ext}$major'
10821 dynamic_linker
='NetBSD ld.elf_so'
10823 shlibpath_var
=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath
=yes
10825 hardcode_into_libs
=yes
10830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 shlibpath_var
=LD_LIBRARY_PATH
10832 shlibpath_overrides_runpath
=yes
10839 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840 soname_spec
='${libname}${release}${shared_ext}$major'
10841 shlibpath_var
=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath
=no
10843 hardcode_into_libs
=yes
10844 dynamic_linker
='ldqnx.so'
10849 sys_lib_dlsearch_path_spec
="/usr/lib"
10851 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10853 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10854 *) need_version
=no
;;
10856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10857 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10858 shlibpath_var
=LD_LIBRARY_PATH
10859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10861 openbsd2.
[89] | openbsd2.
[89].
*)
10862 shlibpath_overrides_runpath
=no
10865 shlibpath_overrides_runpath
=yes
10869 shlibpath_overrides_runpath
=yes
10874 libname_spec
='$name'
10877 library_names_spec
='$libname${shared_ext} $libname.a'
10878 dynamic_linker
='OS/2 ld.exe'
10879 shlibpath_var
=LIBPATH
10882 osf3
* | osf4
* | osf5
*)
10886 soname_spec
='${libname}${release}${shared_ext}$major'
10887 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 shlibpath_var
=LD_LIBRARY_PATH
10889 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10890 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 soname_spec
='${libname}${release}${shared_ext}$major'
10903 shlibpath_var
=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath
=yes
10905 hardcode_into_libs
=yes
10906 # ldd complains unless libraries are executable
10907 postinstall_cmds
='chmod +x $lib'
10912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10913 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10914 shlibpath_var
=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath
=yes
10916 if test "$with_gnu_ld" = yes; then
10924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925 soname_spec
='${libname}${release}${shared_ext}$major'
10926 shlibpath_var
=LD_LIBRARY_PATH
10927 case $host_vendor in
10929 shlibpath_overrides_runpath
=no
10931 runpath_var
=LD_RUN_PATH
10939 shlibpath_overrides_runpath
=no
10940 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10946 if test -d /usr
/nec
;then
10948 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10949 soname_spec
='$libname${shared_ext}.$major'
10950 shlibpath_var
=LD_LIBRARY_PATH
10954 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10955 version_type
=freebsd-elf
10958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10959 soname_spec
='${libname}${release}${shared_ext}$major'
10960 shlibpath_var
=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath
=yes
10962 hardcode_into_libs
=yes
10963 if test "$with_gnu_ld" = yes; then
10964 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10966 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10969 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10973 sys_lib_dlsearch_path_spec
='/usr/lib'
10977 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 shlibpath_var
=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath
=no
10984 hardcode_into_libs
=yes
10989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec
='${libname}${release}${shared_ext}$major'
10991 shlibpath_var
=LD_LIBRARY_PATH
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10999 $as_echo "$dynamic_linker" >&6; }
11000 test "$dynamic_linker" = no
&& can_build_shared
=no
11002 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11003 if test "$GCC" = yes; then
11004 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11007 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11008 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11010 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11011 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11106 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11108 if test -n "$hardcode_libdir_flag_spec" ||
11109 test -n "$runpath_var" ||
11110 test "X$hardcode_automatic" = "Xyes" ; then
11112 # We can hardcode non-existent directories.
11113 if test "$hardcode_direct" != no
&&
11114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11115 # have to relink, otherwise we might link with an installed library
11116 # when we should be linking with a yet-to-be-installed one
11117 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11118 test "$hardcode_minus_L" != no
; then
11119 # Linking always hardcodes the temporary library directory.
11120 hardcode_action
=relink
11122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11123 hardcode_action
=immediate
11126 # We cannot hardcode anything, or else we can only hardcode existing
11128 hardcode_action
=unsupported
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11131 $as_echo "$hardcode_action" >&6; }
11133 if test "$hardcode_action" = relink ||
11134 test "$inherit_rpath" = yes; then
11135 # Fast installation is not supported
11136 enable_fast_install
=no
11137 elif test "$shlibpath_overrides_runpath" = yes ||
11138 test "$enable_shared" = no
; then
11139 # Fast installation is not necessary
11140 enable_fast_install
=needless
11148 if test "x$enable_dlopen" != xyes
; then
11149 enable_dlopen
=unknown
11150 enable_dlopen_self
=unknown
11151 enable_dlopen_self_static
=unknown
11158 lt_cv_dlopen
="load_add_on"
11160 lt_cv_dlopen_self
=yes
11163 mingw
* | pw32
* | cegcc
*)
11164 lt_cv_dlopen
="LoadLibrary"
11169 lt_cv_dlopen
="dlopen"
11174 # if libdl is installed we need to link against it
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11176 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11177 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11178 $as_echo_n "(cached) " >&6
11180 ac_check_lib_save_LIBS
=$LIBS
11182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11200 if ac_fn_c_try_link
"$LINENO"; then :
11201 ac_cv_lib_dl_dlopen
=yes
11203 ac_cv_lib_dl_dlopen
=no
11205 rm -f core conftest.err conftest.
$ac_objext \
11206 conftest
$ac_exeext conftest.
$ac_ext
11207 LIBS
=$ac_check_lib_save_LIBS
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11210 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11211 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11212 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11215 lt_cv_dlopen
="dyld"
11217 lt_cv_dlopen_self
=yes
11224 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11225 if test "x$ac_cv_func_shl_load" = xyes
; then :
11226 lt_cv_dlopen
="shl_load"
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11229 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11230 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11231 $as_echo_n "(cached) " >&6
11233 ac_check_lib_save_LIBS
=$LIBS
11235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11248 return shl_load ();
11253 if ac_fn_c_try_link
"$LINENO"; then :
11254 ac_cv_lib_dld_shl_load
=yes
11256 ac_cv_lib_dld_shl_load
=no
11258 rm -f core conftest.err conftest.
$ac_objext \
11259 conftest
$ac_exeext conftest.
$ac_ext
11260 LIBS
=$ac_check_lib_save_LIBS
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11263 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11264 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11265 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11267 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11268 if test "x$ac_cv_func_dlopen" = xyes
; then :
11269 lt_cv_dlopen
="dlopen"
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11272 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11273 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11274 $as_echo_n "(cached) " >&6
11276 ac_check_lib_save_LIBS
=$LIBS
11278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11296 if ac_fn_c_try_link
"$LINENO"; then :
11297 ac_cv_lib_dl_dlopen
=yes
11299 ac_cv_lib_dl_dlopen
=no
11301 rm -f core conftest.err conftest.
$ac_objext \
11302 conftest
$ac_exeext conftest.
$ac_ext
11303 LIBS
=$ac_check_lib_save_LIBS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11306 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11307 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11308 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11311 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11312 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11313 $as_echo_n "(cached) " >&6
11315 ac_check_lib_save_LIBS
=$LIBS
11316 LIBS
="-lsvld $LIBS"
11317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11335 if ac_fn_c_try_link
"$LINENO"; then :
11336 ac_cv_lib_svld_dlopen
=yes
11338 ac_cv_lib_svld_dlopen
=no
11340 rm -f core conftest.err conftest.
$ac_objext \
11341 conftest
$ac_exeext conftest.
$ac_ext
11342 LIBS
=$ac_check_lib_save_LIBS
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11345 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11346 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11347 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11350 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11351 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11352 $as_echo_n "(cached) " >&6
11354 ac_check_lib_save_LIBS
=$LIBS
11356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11359 /* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply. */
11369 return dld_link ();
11374 if ac_fn_c_try_link
"$LINENO"; then :
11375 ac_cv_lib_dld_dld_link
=yes
11377 ac_cv_lib_dld_dld_link
=no
11379 rm -f core conftest.err conftest.
$ac_objext \
11380 conftest
$ac_exeext conftest.
$ac_ext
11381 LIBS
=$ac_check_lib_save_LIBS
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11384 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11385 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11386 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11407 if test "x$lt_cv_dlopen" != xno
; then
11413 case $lt_cv_dlopen in
11415 save_CPPFLAGS
="$CPPFLAGS"
11416 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11418 save_LDFLAGS
="$LDFLAGS"
11419 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11422 LIBS
="$lt_cv_dlopen_libs $LIBS"
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11425 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11426 if ${lt_cv_dlopen_self+:} false
; then :
11427 $as_echo_n "(cached) " >&6
11429 if test "$cross_compiling" = yes; then :
11430 lt_cv_dlopen_self
=cross
11432 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11433 lt_status
=$lt_dlunknown
11434 cat > conftest.
$ac_ext <<_LT_EOF
11435 #line 11435 "configure"
11436 #include "confdefs.h"
11445 # define LT_DLGLOBAL RTLD_GLOBAL
11448 # define LT_DLGLOBAL DL_GLOBAL
11450 # define LT_DLGLOBAL 0
11454 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11455 find out it does not work in some platform. */
11456 #ifndef LT_DLLAZY_OR_NOW
11458 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11461 # define LT_DLLAZY_OR_NOW DL_LAZY
11464 # define LT_DLLAZY_OR_NOW RTLD_NOW
11467 # define LT_DLLAZY_OR_NOW DL_NOW
11469 # define LT_DLLAZY_OR_NOW 0
11476 /* When -fvisbility=hidden is used, assume the code has been annotated
11477 correspondingly for the symbols needed. */
11478 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11479 void fnord () __attribute__((visibility("default")));
11482 void fnord () { int i=42; }
11485 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11486 int status = $lt_dlunknown;
11490 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11493 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11494 else puts (dlerror ());
11496 /* dlclose (self); */
11504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11505 (eval $ac_link) 2>&5
11507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11509 (.
/conftest
; exit; ) >&5 2>/dev
/null
11511 case x
$lt_status in
11512 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11513 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11514 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11517 # compilation failed
11518 lt_cv_dlopen_self
=no
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11526 $as_echo "$lt_cv_dlopen_self" >&6; }
11528 if test "x$lt_cv_dlopen_self" = xyes
; then
11529 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11531 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11532 if ${lt_cv_dlopen_self_static+:} false
; then :
11533 $as_echo_n "(cached) " >&6
11535 if test "$cross_compiling" = yes; then :
11536 lt_cv_dlopen_self_static
=cross
11538 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11539 lt_status
=$lt_dlunknown
11540 cat > conftest.
$ac_ext <<_LT_EOF
11541 #line 11541 "configure"
11542 #include "confdefs.h"
11551 # define LT_DLGLOBAL RTLD_GLOBAL
11554 # define LT_DLGLOBAL DL_GLOBAL
11556 # define LT_DLGLOBAL 0
11560 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11561 find out it does not work in some platform. */
11562 #ifndef LT_DLLAZY_OR_NOW
11564 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11567 # define LT_DLLAZY_OR_NOW DL_LAZY
11570 # define LT_DLLAZY_OR_NOW RTLD_NOW
11573 # define LT_DLLAZY_OR_NOW DL_NOW
11575 # define LT_DLLAZY_OR_NOW 0
11582 /* When -fvisbility=hidden is used, assume the code has been annotated
11583 correspondingly for the symbols needed. */
11584 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11585 void fnord () __attribute__((visibility("default")));
11588 void fnord () { int i=42; }
11591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11592 int status = $lt_dlunknown;
11596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11599 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11600 else puts (dlerror ());
11602 /* dlclose (self); */
11610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11611 (eval $ac_link) 2>&5
11613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11615 (.
/conftest
; exit; ) >&5 2>/dev
/null
11617 case x
$lt_status in
11618 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11619 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11620 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11623 # compilation failed
11624 lt_cv_dlopen_self_static
=no
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11632 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11635 CPPFLAGS
="$save_CPPFLAGS"
11636 LDFLAGS
="$save_LDFLAGS"
11641 case $lt_cv_dlopen_self in
11642 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11643 *) enable_dlopen_self
=unknown
;;
11646 case $lt_cv_dlopen_self_static in
11647 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11648 *) enable_dlopen_self_static
=unknown
;;
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11671 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11672 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11673 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11674 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676 $as_echo "yes" >&6; }
11678 # FIXME - insert some real tests, host_os isn't really good enough
11681 if test -n "$STRIP" ; then
11682 striplib
="$STRIP -x"
11683 old_striplib
="$STRIP -S"
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11685 $as_echo "yes" >&6; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693 $as_echo "no" >&6; }
11709 # Report which library types will actually be built
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11711 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11713 $as_echo "$can_build_shared" >&6; }
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11716 $as_echo_n "checking whether to build shared libraries... " >&6; }
11717 test "$can_build_shared" = "no" && enable_shared
=no
11719 # On AIX, shared libraries and static libraries use the same namespace, and
11720 # are all built from PIC.
11723 test "$enable_shared" = yes && enable_static
=no
11724 if test -n "$RANLIB"; then
11725 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11726 postinstall_cmds
='$RANLIB $lib'
11731 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11732 test "$enable_shared" = yes && enable_static
=no
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11737 $as_echo "$enable_shared" >&6; }
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11740 $as_echo_n "checking whether to build static libraries... " >&6; }
11741 # Make sure either enable_shared or enable_static is yes.
11742 test "$enable_shared" = yes || enable_static
=yes
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11744 $as_echo "$enable_static" >&6; }
11751 ac_cpp
='$CPP $CPPFLAGS'
11752 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11753 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11754 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11770 ac_config_commands
="$ac_config_commands libtool"
11775 # Only expand once:
11782 *-cygwin* |
*-mingw*)
11783 # 'host' will be top-level target in the case of a target lib,
11784 # we must compare to with_cross_host to decide if this is a native
11785 # or cross-compiler and select where to install dlls appropriately.
11786 if test -n "$with_cross_host" &&
11787 test x
"$with_cross_host" != x
"no"; then
11788 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11790 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11805 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11806 # Check whether --enable-maintainer-mode was given.
11807 if test "${enable_maintainer_mode+set}" = set; then :
11808 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11810 USE_MAINTAINER_MODE
=no
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11814 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11815 if test $USE_MAINTAINER_MODE = yes; then
11816 MAINTAINER_MODE_TRUE
=
11817 MAINTAINER_MODE_FALSE
='#'
11819 MAINTAINER_MODE_TRUE
='#'
11820 MAINTAINER_MODE_FALSE
=
11823 MAINT
=$MAINTAINER_MODE_TRUE
11827 # Create a spec file, so that compile/link tests don't fail
11828 test -f libgfortran.spec ||
touch libgfortran.spec
11829 FCFLAGS
="$FCFLAGS -L."
11831 # We need gfortran to compile parts of the library
11832 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11833 #AC_PROG_FC(gfortran)
11834 case `echo $GFORTRAN` in
11838 set dummy
$GFORTRAN; ac_word
=$2
11839 if test -x "$ac_word"; then
11845 ac_ext
=${ac_fc_srcext-f}
11846 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11847 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11848 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11849 if test -n "$ac_tool_prefix"; then
11850 for ac_prog
in gfortran
11852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11853 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_prog_FC+:} false
; then :
11857 $as_echo_n "(cached) " >&6
11859 if test -n "$FC"; then
11860 ac_cv_prog_FC
="$FC" # Let the user override the test.
11862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11863 for as_dir
in $PATH
11866 test -z "$as_dir" && as_dir
=.
11867 for ac_exec_ext
in '' $ac_executable_extensions; do
11868 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11869 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880 if test -n "$FC"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11882 $as_echo "$FC" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11889 test -n "$FC" && break
11892 if test -z "$FC"; then
11894 for ac_prog
in gfortran
11896 # Extract the first word of "$ac_prog", so it can be a program name with args.
11897 set dummy
$ac_prog; ac_word
=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if ${ac_cv_prog_ac_ct_FC+:} false
; then :
11901 $as_echo_n "(cached) " >&6
11903 if test -n "$ac_ct_FC"; then
11904 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11907 for as_dir
in $PATH
11910 test -z "$as_dir" && as_dir
=.
11911 for ac_exec_ext
in '' $ac_executable_extensions; do
11912 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11913 ac_cv_prog_ac_ct_FC
="$ac_prog"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11924 if test -n "$ac_ct_FC"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11926 $as_echo "$ac_ct_FC" >&6; }
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11933 test -n "$ac_ct_FC" && break
11936 if test "x$ac_ct_FC" = x
; then
11939 case $cross_compiling:$ac_tool_warned in
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11943 ac_tool_warned
=yes ;;
11950 # Provide some information about the compiler.
11951 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11954 for ac_option
in --version -v -V -qversion; do
11955 { { ac_try
="$ac_compiler $ac_option >&5"
11956 case "(($ac_try" in
11957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11961 $as_echo "$ac_try_echo"; } >&5
11962 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11964 if test -s conftest.err; then
11966 ... rest of stderr output deleted ...
11967 10q' conftest.err >conftest.er1
11968 cat conftest.er1 >&5
11970 rm -f conftest.er1 conftest.err
11971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11972 test $ac_status = 0; }
11976 # If we don't use `.F
' as extension, the preprocessor is not run on the
11977 # input file. (Note that this only needs to work for GNU compilers.)
11978 ac_save_ext=$ac_ext
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11981 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11982 if ${ac_cv_fc_compiler_gnu+:} false; then :
11983 $as_echo_n "(cached) " >&6
11985 cat > conftest.$ac_ext <<_ACEOF
11993 if ac_fn_fc_try_compile "$LINENO"; then :
11994 ac_compiler_gnu=yes
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12003 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12004 ac_ext=$ac_save_ext
12005 ac_test_FCFLAGS=${FCFLAGS+set}
12006 ac_save_FCFLAGS=$FCFLAGS
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12009 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12010 if ${ac_cv_prog_fc_g+:} false; then :
12011 $as_echo_n "(cached) " >&6
12014 cat > conftest.$ac_ext <<_ACEOF
12019 if ac_fn_fc_try_compile "$LINENO"; then :
12020 ac_cv_prog_fc_g=yes
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12028 $as_echo "$ac_cv_prog_fc_g" >&6; }
12029 if test "$ac_test_FCFLAGS" = set; then
12030 FCFLAGS=$ac_save_FCFLAGS
12031 elif test $ac_cv_prog_fc_g = yes; then
12032 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12038 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12045 if test $ac_compiler_gnu = yes; then
12051 ac_cpp='$CPP $CPPFLAGS'
12052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12053 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12056 ac_ext=${ac_fc_srcext-f}
12057 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
12058 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
12059 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12062 if test -z "$FC" || test "X$FC" = "Xno"; then
12066 archive_cmds_need_lc_FC=no
12067 allow_undefined_flag_FC=
12068 always_export_symbols_FC=no
12069 archive_expsym_cmds_FC=
12070 export_dynamic_flag_spec_FC=
12071 hardcode_direct_FC=no
12072 hardcode_direct_absolute_FC=no
12073 hardcode_libdir_flag_spec_FC=
12074 hardcode_libdir_flag_spec_ld_FC=
12075 hardcode_libdir_separator_FC=
12076 hardcode_minus_L_FC=no
12077 hardcode_automatic_FC=no
12078 inherit_rpath_FC=no
12080 module_expsym_cmds_FC=
12081 link_all_deplibs_FC=unknown
12082 old_archive_cmds_FC=$old_archive_cmds
12083 reload_flag_FC=$reload_flag
12084 reload_cmds_FC=$reload_cmds
12085 no_undefined_flag_FC=
12086 whole_archive_flag_spec_FC=
12087 enable_shared_with_static_runtimes_FC=no
12089 # Source file extension for fc test sources.
12090 ac_ext=${ac_fc_srcext-f}
12092 # Object file extension for compiled fc test sources.
12096 # No sense in running all these tests if we already determined that
12097 # the FC compiler isn't working. Some variables
(like enable_shared
)
12098 # are currently assumed to apply to all compilers on this platform,
12099 # and will be corrupted by setting them based on a non-working compiler.
12100 if test "$_lt_disable_FC" != yes; then
12101 # Code to be used in simple compile tests
12102 lt_simple_compile_test_code
="\
12108 # Code to be used in simple link tests
12109 lt_simple_link_test_code
="\
12114 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12121 # If no C compiler was specified, use CC.
12124 # If no C compiler flags were specified, use CFLAGS.
12125 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12127 # Allow CC to be a program name with arguments.
12131 # save warnings/boilerplate of simple test code
12132 ac_outfile
=conftest.
$ac_objext
12133 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12134 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12135 _lt_compiler_boilerplate
=`cat conftest.err`
12138 ac_outfile
=conftest.
$ac_objext
12139 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12140 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12141 _lt_linker_boilerplate
=`cat conftest.err`
12145 # Allow CC to be a program name with arguments.
12150 GCC
=$ac_cv_fc_compiler_gnu
12153 for cc_temp
in $compiler""; do
12155 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12156 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12161 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12164 if test -n "$compiler"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12166 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12168 $as_echo "$can_build_shared" >&6; }
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12171 $as_echo_n "checking whether to build shared libraries... " >&6; }
12172 test "$can_build_shared" = "no" && enable_shared
=no
12174 # On AIX, shared libraries and static libraries use the same namespace, and
12175 # are all built from PIC.
12178 test "$enable_shared" = yes && enable_static
=no
12179 if test -n "$RANLIB"; then
12180 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12181 postinstall_cmds
='$RANLIB $lib'
12185 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12186 test "$enable_shared" = yes && enable_static
=no
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12191 $as_echo "$enable_shared" >&6; }
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12194 $as_echo_n "checking whether to build static libraries... " >&6; }
12195 # Make sure either enable_shared or enable_static is yes.
12196 test "$enable_shared" = yes || enable_static
=yes
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12198 $as_echo "$enable_static" >&6; }
12200 GCC_FC
="$ac_cv_fc_compiler_gnu"
12204 ## There is no encapsulation within the following macros, do not change
12205 ## the running order or otherwise move them around unless you know exactly
12206 ## what you are doing...
12207 # Dependencies to place before and after the object being linked:
12209 postdep_objects_FC
=
12212 compiler_lib_search_path_FC
=
12214 cat > conftest.
$ac_ext <<_LT_EOF
12223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12224 (eval $ac_compile) 2>&5
12226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12227 test $ac_status = 0; }; then
12228 # Parse the compiler output and extract the necessary
12229 # objects, libraries and library flags.
12231 # Sentinel used to keep track of whether or not we are before
12232 # the conftest object file.
12233 pre_test_object_deps_done
=no
12235 for p
in `eval "$output_verbose_link_cmd"`; do
12239 # Some compilers place space between "-{L,R}" and the path.
12240 # Remove the space.
12241 if test $p = "-L" ||
12242 test $p = "-R"; then
12249 if test "$pre_test_object_deps_done" = no
; then
12252 # Internal compiler library paths should come after those
12253 # provided the user. The postdeps already come after the
12254 # user supplied libs so there is no need to process them.
12255 if test -z "$compiler_lib_search_path_FC"; then
12256 compiler_lib_search_path_FC
="${prev}${p}"
12258 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
12261 # The "-l" case would never come before the object being
12262 # linked, so don't bother handling this case.
12265 if test -z "$postdeps_FC"; then
12266 postdeps_FC
="${prev}${p}"
12268 postdeps_FC
="${postdeps_FC} ${prev}${p}"
12274 # This assumes that the test object file only shows up
12275 # once in the compiler output.
12276 if test "$p" = "conftest.$objext"; then
12277 pre_test_object_deps_done
=yes
12281 if test "$pre_test_object_deps_done" = no
; then
12282 if test -z "$predep_objects_FC"; then
12283 predep_objects_FC
="$p"
12285 predep_objects_FC
="$predep_objects_FC $p"
12288 if test -z "$postdep_objects_FC"; then
12289 postdep_objects_FC
="$p"
12291 postdep_objects_FC
="$postdep_objects_FC $p"
12296 *) ;; # Ignore the rest.
12304 echo "libtool.m4: error: problem compiling FC test program"
12307 $RM -f confest.
$objext
12309 # PORTME: override above test on systems where it is broken
12312 case " $postdeps_FC " in
12313 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12315 compiler_lib_search_dirs_FC
=
12316 if test -n "${compiler_lib_search_path_FC}"; then
12317 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12350 lt_prog_compiler_wl_FC
=
12351 lt_prog_compiler_pic_FC
=
12352 lt_prog_compiler_static_FC
=
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12355 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12357 if test "$GCC" = yes; then
12358 lt_prog_compiler_wl_FC
='-Wl,'
12359 lt_prog_compiler_static_FC
='-static'
12363 # All AIX code is PIC.
12364 if test "$host_cpu" = ia64
; then
12365 # AIX 5 now supports IA64 processor
12366 lt_prog_compiler_static_FC
='-Bstatic'
12368 lt_prog_compiler_pic_FC
='-fPIC'
12374 # see comment about AmigaOS4 .so support
12375 lt_prog_compiler_pic_FC
='-fPIC'
12378 # FIXME: we need at least 68020 code to build shared libraries, but
12379 # adding the `-m68020' flag to GCC prevents building anything better,
12381 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12386 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12387 # PIC is the default for these OSes.
12390 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12391 # This hack is so that the source file can tell whether it is being
12392 # built for inclusion in a dll (and should export symbols for example).
12393 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12394 # (--disable-auto-import) libraries
12395 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12398 darwin
* | rhapsody
*)
12399 # PIC is the default on this platform
12400 # Common symbols not allowed in MH_DYLIB files
12401 lt_prog_compiler_pic_FC
='-fno-common'
12405 # PIC is the default for Haiku.
12406 # The "-static" flag exists, but is broken.
12407 lt_prog_compiler_static_FC
=
12411 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12412 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12413 # sets the default TLS model and affects inlining.
12419 lt_prog_compiler_pic_FC
='-fPIC'
12425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12426 # Instead, we relocate shared libraries at runtime.
12430 # Just because we use GCC doesn't mean we suddenly get shared libraries
12431 # on systems that don't support them.
12432 lt_prog_compiler_can_build_shared_FC
=no
12437 # QNX uses GNU C++, but need to define -shared option too, otherwise
12438 # it will coredump.
12439 lt_prog_compiler_pic_FC
='-fPIC -shared'
12443 if test -d /usr
/nec
; then
12444 lt_prog_compiler_pic_FC
=-Kconform_pic
12449 lt_prog_compiler_pic_FC
='-fPIC'
12453 case $cc_basename in
12454 nvcc
*) # Cuda Compiler Driver 2.2
12455 lt_prog_compiler_wl_FC
='-Xlinker '
12456 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12460 # PORTME Check for flag to pass linker flags through the system compiler.
12463 lt_prog_compiler_wl_FC
='-Wl,'
12464 if test "$host_cpu" = ia64
; then
12465 # AIX 5 now supports IA64 processor
12466 lt_prog_compiler_static_FC
='-Bstatic'
12468 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12472 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12473 # This hack is so that the source file can tell whether it is being
12474 # built for inclusion in a dll (and should export symbols for example).
12475 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12478 hpux9
* | hpux10
* | hpux11
*)
12479 lt_prog_compiler_wl_FC
='-Wl,'
12480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12481 # not for PA HP-UX.
12487 lt_prog_compiler_pic_FC
='+Z'
12490 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12491 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12494 irix5
* | irix6
* | nonstopux
*)
12495 lt_prog_compiler_wl_FC
='-Wl,'
12496 # PIC (with -KPIC) is the default.
12497 lt_prog_compiler_static_FC
='-non_shared'
12500 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12501 case $cc_basename in
12502 # old Intel for x86_64 which still supported -KPIC.
12504 lt_prog_compiler_wl_FC
='-Wl,'
12505 lt_prog_compiler_pic_FC
='-KPIC'
12506 lt_prog_compiler_static_FC
='-static'
12508 # icc used to be incompatible with GCC.
12509 # ICC 10 doesn't accept -KPIC any more.
12511 lt_prog_compiler_wl_FC
='-Wl,'
12512 lt_prog_compiler_pic_FC
='-fPIC'
12513 lt_prog_compiler_static_FC
='-static'
12515 # Lahey Fortran 8.1.
12517 lt_prog_compiler_wl_FC
='-Wl,'
12518 lt_prog_compiler_pic_FC
='--shared'
12519 lt_prog_compiler_static_FC
='--static'
12521 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12522 # Portland Group compilers (*not* the Pentium gcc compiler,
12523 # which looks to be a dead project)
12524 lt_prog_compiler_wl_FC
='-Wl,'
12525 lt_prog_compiler_pic_FC
='-fpic'
12526 lt_prog_compiler_static_FC
='-Bstatic'
12529 lt_prog_compiler_wl_FC
='-Wl,'
12530 # All Alpha code is PIC.
12531 lt_prog_compiler_static_FC
='-non_shared'
12533 xl
* | bgxl
* | bgf
* | mpixl
*)
12534 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12535 lt_prog_compiler_wl_FC
='-Wl,'
12536 lt_prog_compiler_pic_FC
='-qpic'
12537 lt_prog_compiler_static_FC
='-qstaticlink'
12540 case `$CC -V 2>&1 | sed 5q` in
12541 *Sun\ F
* |
*Sun
*Fortran
*)
12542 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12543 lt_prog_compiler_pic_FC
='-KPIC'
12544 lt_prog_compiler_static_FC
='-Bstatic'
12545 lt_prog_compiler_wl_FC
=''
12549 lt_prog_compiler_pic_FC
='-KPIC'
12550 lt_prog_compiler_static_FC
='-Bstatic'
12551 lt_prog_compiler_wl_FC
='-Wl,'
12559 lt_prog_compiler_pic_FC
='-KPIC'
12560 lt_prog_compiler_static_FC
='-Bstatic'
12564 # QNX uses GNU C++, but need to define -shared option too, otherwise
12565 # it will coredump.
12566 lt_prog_compiler_pic_FC
='-fPIC -shared'
12569 osf3
* | osf4
* | osf5
*)
12570 lt_prog_compiler_wl_FC
='-Wl,'
12571 # All OSF/1 code is PIC.
12572 lt_prog_compiler_static_FC
='-non_shared'
12576 lt_prog_compiler_static_FC
='-non_shared'
12580 lt_prog_compiler_pic_FC
='-KPIC'
12581 lt_prog_compiler_static_FC
='-Bstatic'
12582 case $cc_basename in
12583 f77
* | f90
* | f95
*)
12584 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12586 lt_prog_compiler_wl_FC
='-Wl,';;
12591 lt_prog_compiler_wl_FC
='-Qoption ld '
12592 lt_prog_compiler_pic_FC
='-PIC'
12593 lt_prog_compiler_static_FC
='-Bstatic'
12596 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12597 lt_prog_compiler_wl_FC
='-Wl,'
12598 lt_prog_compiler_pic_FC
='-KPIC'
12599 lt_prog_compiler_static_FC
='-Bstatic'
12603 if test -d /usr
/nec
;then
12604 lt_prog_compiler_pic_FC
='-Kconform_pic'
12605 lt_prog_compiler_static_FC
='-Bstatic'
12609 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12610 lt_prog_compiler_wl_FC
='-Wl,'
12611 lt_prog_compiler_pic_FC
='-KPIC'
12612 lt_prog_compiler_static_FC
='-Bstatic'
12616 lt_prog_compiler_wl_FC
='-Wl,'
12617 lt_prog_compiler_can_build_shared_FC
=no
12621 lt_prog_compiler_pic_FC
='-pic'
12622 lt_prog_compiler_static_FC
='-Bstatic'
12626 lt_prog_compiler_can_build_shared_FC
=no
12632 # For platforms which do not support PIC, -DPIC is meaningless:
12634 lt_prog_compiler_pic_FC
=
12637 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12641 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12646 # Check to make sure the PIC flag actually works.
12648 if test -n "$lt_prog_compiler_pic_FC"; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12650 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12651 if ${lt_cv_prog_compiler_pic_works_FC+:} false
; then :
12652 $as_echo_n "(cached) " >&6
12654 lt_cv_prog_compiler_pic_works_FC
=no
12655 ac_outfile
=conftest.
$ac_objext
12656 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12657 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12658 # Insert the option either (1) after the last *FLAGS variable, or
12659 # (2) before a word containing "conftest.", or (3) at the end.
12660 # Note that $ac_compile itself does not contain backslashes and begins
12661 # with a dollar sign (not a hyphen), so the echo should work correctly.
12662 # The option is referenced via a variable to avoid confusing sed.
12663 lt_compile
=`echo "$ac_compile" | $SED \
12664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12666 -e 's:$: $lt_compiler_flag:'`
12667 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12668 (eval "$lt_compile" 2>conftest.err
)
12670 cat conftest.err
>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 if (exit $ac_status) && test -s "$ac_outfile"; then
12673 # The compiler can only warn and ignore the option if not recognized
12674 # So say no if there are warnings other than the usual output.
12675 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12676 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12677 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12678 lt_cv_prog_compiler_pic_works_FC
=yes
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12685 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12687 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12688 case $lt_prog_compiler_pic_FC in
12690 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12693 lt_prog_compiler_pic_FC
=
12694 lt_prog_compiler_can_build_shared_FC
=no
12702 # Check to make sure the static flag actually works.
12704 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12706 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12707 if ${lt_cv_prog_compiler_static_works_FC+:} false
; then :
12708 $as_echo_n "(cached) " >&6
12710 lt_cv_prog_compiler_static_works_FC
=no
12711 save_LDFLAGS
="$LDFLAGS"
12712 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12713 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12714 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12715 # The linker can only warn and ignore the option if not recognized
12716 # So say no if there are warnings
12717 if test -s conftest.err
; then
12718 # Append any errors to the config.log.
12719 cat conftest.err
1>&5
12720 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12721 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12722 if diff conftest.exp conftest.er2
>/dev
/null
; then
12723 lt_cv_prog_compiler_static_works_FC
=yes
12726 lt_cv_prog_compiler_static_works_FC
=yes
12730 LDFLAGS
="$save_LDFLAGS"
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12734 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12736 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12739 lt_prog_compiler_static_FC
=
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12747 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12748 $as_echo_n "(cached) " >&6
12750 lt_cv_prog_compiler_c_o_FC
=no
12751 $RM -r conftest
2>/dev
/null
12755 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12757 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12758 # Insert the option either (1) after the last *FLAGS variable, or
12759 # (2) before a word containing "conftest.", or (3) at the end.
12760 # Note that $ac_compile itself does not contain backslashes and begins
12761 # with a dollar sign (not a hyphen), so the echo should work correctly.
12762 lt_compile
=`echo "$ac_compile" | $SED \
12763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12765 -e 's:$: $lt_compiler_flag:'`
12766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12767 (eval "$lt_compile" 2>out
/conftest.err
)
12769 cat out
/conftest.err
>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12773 # The compiler can only warn and ignore the option if not recognized
12774 # So say no if there are warnings
12775 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12776 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12777 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12778 lt_cv_prog_compiler_c_o_FC
=yes
12783 # SGI C++ compiler will create directory out/ii_files/ for
12784 # template instantiation
12785 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12786 $RM out
/* && rmdir out
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12793 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12799 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12800 $as_echo_n "(cached) " >&6
12802 lt_cv_prog_compiler_c_o_FC
=no
12803 $RM -r conftest
2>/dev
/null
12807 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12809 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12810 # Insert the option either (1) after the last *FLAGS variable, or
12811 # (2) before a word containing "conftest.", or (3) at the end.
12812 # Note that $ac_compile itself does not contain backslashes and begins
12813 # with a dollar sign (not a hyphen), so the echo should work correctly.
12814 lt_compile
=`echo "$ac_compile" | $SED \
12815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12817 -e 's:$: $lt_compiler_flag:'`
12818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12819 (eval "$lt_compile" 2>out
/conftest.err
)
12821 cat out
/conftest.err
>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12825 # The compiler can only warn and ignore the option if not recognized
12826 # So say no if there are warnings
12827 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12828 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12829 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12830 lt_cv_prog_compiler_c_o_FC
=yes
12835 # SGI C++ compiler will create directory out/ii_files/ for
12836 # template instantiation
12837 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12838 $RM out
/* && rmdir out
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12845 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12850 hard_links
="nottested"
12851 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12852 # do not overwrite the value of need_locks provided by the user
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12854 $as_echo_n "checking if we can lock with hard links... " >&6; }
12857 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12859 ln conftest.a conftest.b
2>&5 || hard_links
=no
12860 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12862 $as_echo "$hard_links" >&6; }
12863 if test "$hard_links" = no
; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12865 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12875 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12878 allow_undefined_flag_FC
=
12879 always_export_symbols_FC
=no
12881 archive_expsym_cmds_FC
=
12882 compiler_needs_object_FC
=no
12883 enable_shared_with_static_runtimes_FC
=no
12884 export_dynamic_flag_spec_FC
=
12885 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12886 hardcode_automatic_FC
=no
12887 hardcode_direct_FC
=no
12888 hardcode_direct_absolute_FC
=no
12889 hardcode_libdir_flag_spec_FC
=
12890 hardcode_libdir_flag_spec_ld_FC
=
12891 hardcode_libdir_separator_FC
=
12892 hardcode_minus_L_FC
=no
12893 hardcode_shlibpath_var_FC
=unsupported
12894 inherit_rpath_FC
=no
12895 link_all_deplibs_FC
=unknown
12897 module_expsym_cmds_FC
=
12898 old_archive_from_new_cmds_FC
=
12899 old_archive_from_expsyms_cmds_FC
=
12900 thread_safe_flag_spec_FC
=
12901 whole_archive_flag_spec_FC
=
12902 # include_expsyms should be a list of space-separated symbols to be *always*
12903 # included in the symbol list
12904 include_expsyms_FC
=
12905 # exclude_expsyms can be an extended regexp of symbols to exclude
12906 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12907 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12908 # as well as any symbol that contains `d'.
12909 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12910 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12911 # platforms (ab)use it in PIC code, but their linkers get confused if
12912 # the symbol is explicitly referenced. Since portable code cannot
12913 # rely on this symbol name, it's probably fine to never include it in
12914 # preloaded symbol tables.
12915 # Exclude shared library initialization/finalization symbols.
12916 extract_expsyms_cmds
=
12919 cygwin
* | mingw
* | pw32
* | cegcc
*)
12920 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12921 # When not using gcc, we currently assume that we are using
12922 # Microsoft Visual C++.
12923 if test "$GCC" != yes; then
12928 # we just hope/assume this is gcc and not c89 (= MSVC++)
12938 # On some targets, GNU ld is compatible enough with the native linker
12939 # that we're better off using the native interface for both.
12940 lt_use_gnu_ld_interface
=no
12941 if test "$with_gnu_ld" = yes; then
12944 # The AIX port of GNU ld has always aspired to compatibility
12945 # with the native linker. However, as the warning in the GNU ld
12946 # block says, versions before 2.19.5* couldn't really create working
12947 # shared libraries, regardless of the interface used.
12948 case `$LD -v 2>&1` in
12949 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12950 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12951 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12953 lt_use_gnu_ld_interface
=yes
12958 lt_use_gnu_ld_interface
=yes
12963 if test "$lt_use_gnu_ld_interface" = yes; then
12964 # If archive_cmds runs LD, not CC, wlarc should be empty
12967 # Set some defaults for GNU ld with shared library support. These
12968 # are reset later if shared libraries are not supported. Putting them
12969 # here allows them to be overridden if necessary.
12970 runpath_var
=LD_RUN_PATH
12971 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12972 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12973 # ancient GNU ld didn't support --whole-archive et. al.
12974 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12975 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12977 whole_archive_flag_spec_FC
=
12979 supports_anon_versioning
=no
12980 case `$LD -v 2>&1` in
12981 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12982 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12983 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12984 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12985 *\
2.11.
*) ;; # other 2.11 versions
12986 *) supports_anon_versioning
=yes ;;
12989 # See if GNU ld supports shared libraries.
12992 # On AIX/PPC, the GNU linker is very broken
12993 if test "$host_cpu" != ia64
; then
12997 *** Warning: the GNU linker, at least up to release 2.19, is reported
12998 *** to be unable to reliably create shared libraries on AIX.
12999 *** Therefore, libtool is disabling shared libraries support. If you
13000 *** really care for shared libraries, you may want to install binutils
13001 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13002 *** You will then need to restart the configuration process.
13011 # see comment about AmigaOS4 .so support
13012 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13013 archive_expsym_cmds_FC
=''
13016 archive_cmds_FC
='$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)'
13017 hardcode_libdir_flag_spec_FC
='-L$libdir'
13018 hardcode_minus_L_FC
=yes
13024 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13025 allow_undefined_flag_FC
=unsupported
13026 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13027 # support --undefined. This deserves some investigation. FIXME
13028 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13034 cygwin
* | mingw
* | pw32
* | cegcc
*)
13035 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13036 # as there is no search path for DLLs.
13037 hardcode_libdir_flag_spec_FC
='-L$libdir'
13038 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
13039 allow_undefined_flag_FC
=unsupported
13040 always_export_symbols_FC
=no
13041 enable_shared_with_static_runtimes_FC
=yes
13042 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13044 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13045 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13046 # If the export-symbols file already is a .def file (1st line
13047 # is EXPORTS), use it as is; otherwise, prepend...
13048 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13049 cp $export_symbols $output_objdir/$soname.def;
13051 echo EXPORTS > $output_objdir/$soname.def;
13052 cat $export_symbols >> $output_objdir/$soname.def;
13054 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13061 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13062 link_all_deplibs_FC
=yes
13066 hardcode_direct_FC
=no
13067 hardcode_shlibpath_var_FC
=no
13068 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13069 export_dynamic_flag_spec_FC
='${wl}-E'
13070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13071 # Instead, shared libraries are loaded at an image base (0x10000000 by
13072 # default) and relocated if they conflict, which is a slow very memory
13073 # consuming and fragmenting process. To avoid this, we pick a random,
13074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13075 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13076 archive_cmds_FC
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13077 archive_expsym_cmds_FC
='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'
13080 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
13082 if test "$host_os" = linux-dietlibc
; then
13083 case $cc_basename in
13084 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13087 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13088 && test "$tmp_diet" = no
13090 tmp_addflag
=' $pic_flag'
13091 tmp_sharedflag
='-shared'
13092 case $cc_basename,$host_cpu in
13093 pgcc
*) # Portland Group C compiler
13094 whole_archive_flag_spec_FC
='${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'
13095 tmp_addflag
=' $pic_flag'
13097 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13098 # Portland Group f77 and f90 compilers
13099 whole_archive_flag_spec_FC
='${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'
13100 tmp_addflag
=' $pic_flag -Mnomain' ;;
13101 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13102 tmp_addflag
=' -i_dynamic' ;;
13103 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13104 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13105 ifc
* | ifort
*) # Intel Fortran compiler
13106 tmp_addflag
=' -nofor_main' ;;
13107 lf95
*) # Lahey Fortran 8.1
13108 whole_archive_flag_spec_FC
=
13109 tmp_sharedflag
='--shared' ;;
13110 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13111 tmp_sharedflag
='-qmkshrobj'
13113 nvcc
*) # Cuda Compiler Driver 2.2
13114 whole_archive_flag_spec_FC
='${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'
13115 compiler_needs_object_FC
=yes
13118 case `$CC -V 2>&1 | sed 5q` in
13119 *Sun\ C
*) # Sun C 5.9
13120 whole_archive_flag_spec_FC
='${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'
13121 compiler_needs_object_FC
=yes
13122 tmp_sharedflag
='-G' ;;
13123 *Sun\ F
*) # Sun Fortran 8.3
13124 tmp_sharedflag
='-G' ;;
13126 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128 if test "x$supports_anon_versioning" = xyes
; then
13129 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13131 echo "local: *; };" >> $output_objdir/$libname.ver~
13132 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13135 case $cc_basename in
13136 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13137 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13138 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
13139 hardcode_libdir_flag_spec_FC
=
13140 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
13141 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13142 if test "x$supports_anon_versioning" = xyes
; then
13143 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13144 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13145 echo "local: *; };" >> $output_objdir/$libname.ver~
13146 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13156 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13157 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13160 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13161 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13166 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13170 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13171 *** create shared libraries on Solaris systems. Therefore, libtool
13172 *** is disabling shared libraries support. We urge you to upgrade GNU
13173 *** binutils to release 2.9.1 or newer. Another option is to modify
13174 *** your PATH or compiler configuration so that the native linker is
13175 *** used, and then restart.
13178 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13179 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13180 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13186 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13187 case `$LD -v 2>&1` in
13188 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13192 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13193 *** reliably create shared libraries on SCO systems. Therefore, libtool
13194 *** is disabling shared libraries support. We urge you to upgrade GNU
13195 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13196 *** your PATH or compiler configuration so that the native linker is
13197 *** used, and then restart.
13202 # For security reasons, it is highly recommended that you always
13203 # use absolute paths for naming shared libraries, and exclude the
13204 # DT_RUNPATH tag from executables and libraries. But doing so
13205 # requires that you compile everything twice, which is a pain.
13206 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13207 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13208 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13209 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13218 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13220 hardcode_direct_FC
=yes
13221 hardcode_shlibpath_var_FC
=no
13225 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13226 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13234 if test "$ld_shlibs_FC" = no
; then
13236 hardcode_libdir_flag_spec_FC
=
13237 export_dynamic_flag_spec_FC
=
13238 whole_archive_flag_spec_FC
=
13241 # PORTME fill in a description of your system's linker (not GNU ld)
13244 allow_undefined_flag_FC
=unsupported
13245 always_export_symbols_FC
=yes
13246 archive_expsym_cmds_FC
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13247 # Note: this linker hardcodes the directories in LIBPATH if there
13248 # are no directories specified by -L.
13249 hardcode_minus_L_FC
=yes
13250 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13251 # Neither direct hardcoding nor static linking is supported with a
13253 hardcode_direct_FC
=unsupported
13258 if test "$host_cpu" = ia64
; then
13259 # On IA64, the linker does run time linking by default, so we don't
13260 # have to do anything special.
13261 aix_use_runtimelinking
=no
13262 exp_sym_flag
='-Bexport'
13265 # If we're using GNU nm, then we don't want the "-C" option.
13266 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13267 # Also, AIX nm treats weak defined symbols like other global
13268 # defined symbols, whereas GNU nm marks them as "W".
13269 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13270 export_symbols_cmds_FC
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13272 export_symbols_cmds_FC
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13274 aix_use_runtimelinking
=no
13276 # Test if we are trying to use run time linking or normal
13277 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13278 # need to do runtime linking.
13279 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13280 for ld_flag
in $LDFLAGS; do
13281 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13282 aix_use_runtimelinking
=yes
13289 exp_sym_flag
='-bexport'
13290 no_entry_flag
='-bnoentry'
13293 # When large executables or shared objects are built, AIX ld can
13294 # have problems creating the table of contents. If linking a library
13295 # or program results in "error TOC overflow" add -mminimal-toc to
13296 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13297 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13300 hardcode_direct_FC
=yes
13301 hardcode_direct_absolute_FC
=yes
13302 hardcode_libdir_separator_FC
=':'
13303 link_all_deplibs_FC
=yes
13304 file_list_spec_FC
='${wl}-f,'
13306 if test "$GCC" = yes; then
13307 case $host_os in aix4.
[012]|aix4.
[012].
*)
13308 # We only want to do this on AIX 4.2 and lower, the check
13309 # below for broken collect2 doesn't work under 4.3+
13310 collect2name
=`${CC} -print-prog-name=collect2`
13311 if test -f "$collect2name" &&
13312 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13314 # We have reworked collect2
13317 # We have old collect2
13318 hardcode_direct_FC
=unsupported
13319 # It fails to find uninstalled libraries when the uninstalled
13320 # path is not listed in the libpath. Setting hardcode_minus_L
13321 # to unsupported forces relinking
13322 hardcode_minus_L_FC
=yes
13323 hardcode_libdir_flag_spec_FC
='-L$libdir'
13324 hardcode_libdir_separator_FC
=
13328 shared_flag
='-shared'
13329 if test "$aix_use_runtimelinking" = yes; then
13330 shared_flag
="$shared_flag "'${wl}-G'
13334 if test "$host_cpu" = ia64
; then
13335 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13336 # chokes on -Wl,-G. The following line is correct:
13339 if test "$aix_use_runtimelinking" = yes; then
13340 shared_flag
='${wl}-G'
13342 shared_flag
='${wl}-bM:SRE'
13347 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13348 # It seems that -bexpall does not export symbols beginning with
13349 # underscore (_), so it is better to generate a list of symbols to export.
13350 always_export_symbols_FC
=yes
13351 if test "$aix_use_runtimelinking" = yes; then
13352 # Warning - without using the other runtime loading flags (-brtl),
13353 # -berok will link without error, but may produce a broken library.
13354 allow_undefined_flag_FC
='-berok'
13355 # Determine the default libpath from the value encoded in an
13356 # empty executable.
13357 cat > conftest.
$ac_ext <<_ACEOF
13362 if ac_fn_fc_try_link
"$LINENO"; then :
13364 lt_aix_libpath_sed
='
13365 /Import File Strings/,/^$/ {
13371 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13372 # Check for a 64-bit object if we didn't find anything.
13373 if test -z "$aix_libpath"; then
13374 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13377 rm -f core conftest.err conftest.
$ac_objext \
13378 conftest
$ac_exeext conftest.
$ac_ext
13379 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13381 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13382 archive_expsym_cmds_FC
='$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"
13384 if test "$host_cpu" = ia64
; then
13385 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13386 allow_undefined_flag_FC
="-z nodefs"
13387 archive_expsym_cmds_FC
="\$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"
13389 # Determine the default libpath from the value encoded in an
13390 # empty executable.
13391 cat > conftest.
$ac_ext <<_ACEOF
13396 if ac_fn_fc_try_link
"$LINENO"; then :
13398 lt_aix_libpath_sed
='
13399 /Import File Strings/,/^$/ {
13405 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13406 # Check for a 64-bit object if we didn't find anything.
13407 if test -z "$aix_libpath"; then
13408 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13411 rm -f core conftest.err conftest.
$ac_objext \
13412 conftest
$ac_exeext conftest.
$ac_ext
13413 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13415 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13416 # Warning - without using the other run time loading flags,
13417 # -berok will link without error, but may produce a broken library.
13418 no_undefined_flag_FC
=' ${wl}-bernotok'
13419 allow_undefined_flag_FC
=' ${wl}-berok'
13420 if test "$with_gnu_ld" = yes; then
13421 # We only use this code for GNU lds that support --whole-archive.
13422 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13424 # Exported symbols can be pulled into shared objects from archives
13425 whole_archive_flag_spec_FC
='$convenience'
13427 archive_cmds_need_lc_FC
=yes
13428 # This is similar to how AIX traditionally builds its shared libraries.
13429 archive_expsym_cmds_FC
="\$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'
13437 # see comment about AmigaOS4 .so support
13438 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13439 archive_expsym_cmds_FC
=''
13442 archive_cmds_FC
='$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)'
13443 hardcode_libdir_flag_spec_FC
='-L$libdir'
13444 hardcode_minus_L_FC
=yes
13450 export_dynamic_flag_spec_FC
=-rdynamic
13453 cygwin
* | mingw
* | pw32
* | cegcc
*)
13454 # When not using gcc, we currently assume that we are using
13455 # Microsoft Visual C++.
13456 # hardcode_libdir_flag_spec is actually meaningless, as there is
13457 # no search path for DLLs.
13458 hardcode_libdir_flag_spec_FC
=' '
13459 allow_undefined_flag_FC
=unsupported
13460 # Tell ltmain to make .lib files, not .a files.
13462 # Tell ltmain to make .dll files, not .so files.
13464 # FIXME: Setting linknames here is a bad hack.
13465 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13466 # The linker will automatically build a .lib file if we build a DLL.
13467 old_archive_from_new_cmds_FC
='true'
13468 # FIXME: Should let the user specify the lib program.
13469 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13470 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13471 enable_shared_with_static_runtimes_FC
=yes
13474 darwin
* | rhapsody
*)
13477 archive_cmds_need_lc_FC
=no
13478 hardcode_direct_FC
=no
13479 hardcode_automatic_FC
=yes
13480 hardcode_shlibpath_var_FC
=unsupported
13481 if test "$lt_cv_ld_force_load" = "yes"; then
13482 whole_archive_flag_spec_FC
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13484 whole_archive_flag_spec_FC
=''
13486 link_all_deplibs_FC
=yes
13487 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13488 case $cc_basename in
13489 ifort
*) _lt_dar_can_shared
=yes ;;
13490 *) _lt_dar_can_shared
=$GCC ;;
13492 if test "$_lt_dar_can_shared" = "yes"; then
13493 output_verbose_link_cmd
=func_echo_all
13494 archive_cmds_FC
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13495 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13496 archive_expsym_cmds_FC
="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}"
13497 module_expsym_cmds_FC
="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}"
13506 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13507 hardcode_libdir_flag_spec_FC
='-L$libdir'
13508 hardcode_shlibpath_var_FC
=no
13511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13512 # support. Future versions do this automatically, but an explicit c++rt0.o
13513 # does not break anything, and helps significantly (at the cost of a little
13516 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13517 hardcode_libdir_flag_spec_FC
='-R$libdir'
13518 hardcode_direct_FC
=yes
13519 hardcode_shlibpath_var_FC
=no
13522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13524 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13525 hardcode_direct_FC
=yes
13526 hardcode_minus_L_FC
=yes
13527 hardcode_shlibpath_var_FC
=no
13530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13531 freebsd
* | dragonfly
*)
13532 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13533 hardcode_libdir_flag_spec_FC
='-R$libdir'
13534 hardcode_direct_FC
=yes
13535 hardcode_shlibpath_var_FC
=no
13539 if test "$GCC" = yes; then
13540 archive_cmds_FC
='$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'
13542 archive_cmds_FC
='$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'
13544 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13545 hardcode_libdir_separator_FC
=:
13546 hardcode_direct_FC
=yes
13548 # hardcode_minus_L: Not really in the search PATH,
13549 # but as the default location of the library.
13550 hardcode_minus_L_FC
=yes
13551 export_dynamic_flag_spec_FC
='${wl}-E'
13555 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13556 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13558 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13560 if test "$with_gnu_ld" = no
; then
13561 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13562 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13563 hardcode_libdir_separator_FC
=:
13564 hardcode_direct_FC
=yes
13565 hardcode_direct_absolute_FC
=yes
13566 export_dynamic_flag_spec_FC
='${wl}-E'
13567 # hardcode_minus_L: Not really in the search PATH,
13568 # but as the default location of the library.
13569 hardcode_minus_L_FC
=yes
13574 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13577 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13580 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13583 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13592 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13595 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13599 if test "$with_gnu_ld" = no
; then
13600 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13601 hardcode_libdir_separator_FC
=:
13605 hardcode_direct_FC
=no
13606 hardcode_shlibpath_var_FC
=no
13609 hardcode_direct_FC
=yes
13610 hardcode_direct_absolute_FC
=yes
13611 export_dynamic_flag_spec_FC
='${wl}-E'
13613 # hardcode_minus_L: Not really in the search PATH,
13614 # but as the default location of the library.
13615 hardcode_minus_L_FC
=yes
13621 irix5
* | irix6
* | nonstopux
*)
13622 if test "$GCC" = yes; then
13623 archive_cmds_FC
='$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'
13624 # Try to use the -exported_symbol ld option, if it does not
13625 # work, assume that -exports_file does not work either and
13626 # implicitly export all symbols.
13627 save_LDFLAGS
="$LDFLAGS"
13628 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13629 cat > conftest.
$ac_ext <<_ACEOF
13632 if ac_fn_fc_try_link
"$LINENO"; then :
13633 archive_expsym_cmds_FC
='$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'
13636 rm -f core conftest.err conftest.
$ac_objext \
13637 conftest
$ac_exeext conftest.
$ac_ext
13638 LDFLAGS
="$save_LDFLAGS"
13640 archive_cmds_FC
='$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'
13641 archive_expsym_cmds_FC
='$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'
13643 archive_cmds_need_lc_FC
='no'
13644 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13645 hardcode_libdir_separator_FC
=:
13646 inherit_rpath_FC
=yes
13647 link_all_deplibs_FC
=yes
13651 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13652 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13654 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13656 hardcode_libdir_flag_spec_FC
='-R$libdir'
13657 hardcode_direct_FC
=yes
13658 hardcode_shlibpath_var_FC
=no
13662 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13663 hardcode_direct_FC
=yes
13664 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13665 hardcode_libdir_separator_FC
=:
13666 hardcode_shlibpath_var_FC
=no
13673 if test -f /usr
/libexec
/ld.so
; then
13674 hardcode_direct_FC
=yes
13675 hardcode_shlibpath_var_FC
=no
13676 hardcode_direct_absolute_FC
=yes
13677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13678 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13679 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13680 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13681 export_dynamic_flag_spec_FC
='${wl}-E'
13684 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13685 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13686 hardcode_libdir_flag_spec_FC
='-R$libdir'
13689 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13690 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13700 hardcode_libdir_flag_spec_FC
='-L$libdir'
13701 hardcode_minus_L_FC
=yes
13702 allow_undefined_flag_FC
=unsupported
13703 archive_cmds_FC
='$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'
13704 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13708 if test "$GCC" = yes; then
13709 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13710 archive_cmds_FC
='$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'
13712 allow_undefined_flag_FC
=' -expect_unresolved \*'
13713 archive_cmds_FC
='$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'
13715 archive_cmds_need_lc_FC
='no'
13716 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13717 hardcode_libdir_separator_FC
=:
13720 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13721 if test "$GCC" = yes; then
13722 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13723 archive_cmds_FC
='$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'
13724 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13726 allow_undefined_flag_FC
=' -expect_unresolved \*'
13727 archive_cmds_FC
='$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'
13728 archive_expsym_cmds_FC
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13729 $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'
13731 # Both c and cxx compiler support -rpath directly
13732 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13734 archive_cmds_need_lc_FC
='no'
13735 hardcode_libdir_separator_FC
=:
13739 no_undefined_flag_FC
=' -z defs'
13740 if test "$GCC" = yes; then
13742 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13744 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13746 case `$CC -V 2>&1` in
13749 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13750 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13755 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13756 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13757 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13761 hardcode_libdir_flag_spec_FC
='-R$libdir'
13762 hardcode_shlibpath_var_FC
=no
13764 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13766 # The compiler driver will combine and reorder linker options,
13767 # but understands `-z linker_flag'. GCC discards it without `$wl',
13768 # but is careful enough not to reorder.
13769 # Supported since Solaris 2.6 (maybe 2.5.1?)
13770 if test "$GCC" = yes; then
13771 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13773 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13777 link_all_deplibs_FC
=yes
13781 if test "x$host_vendor" = xsequent
; then
13782 # Use $CC to link under sequent, because it throws in some extra .o
13783 # files that make .init and .fini sections work.
13784 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13786 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13788 hardcode_libdir_flag_spec_FC
='-L$libdir'
13789 hardcode_direct_FC
=yes
13790 hardcode_minus_L_FC
=yes
13791 hardcode_shlibpath_var_FC
=no
13795 case $host_vendor in
13797 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798 hardcode_direct_FC
=yes # is this really true???
13801 ## LD is ld it makes a PLAMLIB
13802 ## CC just makes a GrossModule.
13803 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13804 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13805 hardcode_direct_FC
=no
13808 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13809 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13812 runpath_var
='LD_RUN_PATH'
13813 hardcode_shlibpath_var_FC
=no
13817 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13818 hardcode_shlibpath_var_FC
=no
13819 export_dynamic_flag_spec_FC
='-Bexport'
13823 if test -d /usr
/nec
; then
13824 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13825 hardcode_shlibpath_var_FC
=no
13826 runpath_var
=LD_RUN_PATH
13827 hardcode_runpath_var
=yes
13832 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13833 no_undefined_flag_FC
='${wl}-z,text'
13834 archive_cmds_need_lc_FC
=no
13835 hardcode_shlibpath_var_FC
=no
13836 runpath_var
='LD_RUN_PATH'
13838 if test "$GCC" = yes; then
13839 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13847 sysv5
* | sco3.2v5
* | sco5v6
*)
13848 # Note: We can NOT use -z defs as we might desire, because we do not
13849 # link with -lc, and that would cause any symbols used from libc to
13850 # always be unresolved, which means just about no library would
13851 # ever link correctly. If we're not using GNU ld we use -z text
13852 # though, which does catch some bad symbols but isn't as heavy-handed
13854 no_undefined_flag_FC
='${wl}-z,text'
13855 allow_undefined_flag_FC
='${wl}-z,nodefs'
13856 archive_cmds_need_lc_FC
=no
13857 hardcode_shlibpath_var_FC
=no
13858 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13859 hardcode_libdir_separator_FC
=':'
13860 link_all_deplibs_FC
=yes
13861 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13862 runpath_var
='LD_RUN_PATH'
13864 if test "$GCC" = yes; then
13865 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13866 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13874 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13875 hardcode_libdir_flag_spec_FC
='-L$libdir'
13876 hardcode_shlibpath_var_FC
=no
13884 if test x
$host_vendor = xsni
; then
13886 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13887 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13894 $as_echo "$ld_shlibs_FC" >&6; }
13895 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13897 with_gnu_ld_FC
=$with_gnu_ld
13905 # Do we need to explicitly link libc?
13907 case "x$archive_cmds_need_lc_FC" in
13909 # Assume -lc should be added
13910 archive_cmds_need_lc_FC
=yes
13912 if test "$enable_shared" = yes && test "$GCC" = yes; then
13913 case $archive_cmds_FC in
13915 # FIXME: we may have to deal with multi-command sequences.
13918 # Test whether the compiler implicitly links with -lc since on some
13919 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13920 # to ld, don't add -lc before -lgcc.
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13922 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13923 if ${lt_cv_archive_cmds_need_lc_FC+:} false
; then :
13924 $as_echo_n "(cached) " >&6
13927 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13930 (eval $ac_compile) 2>&5
13932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13933 test $ac_status = 0; } 2>conftest.err
; then
13936 libobjs
=conftest.
$ac_objext
13938 wl
=$lt_prog_compiler_wl_FC
13939 pic_flag
=$lt_prog_compiler_pic_FC
13945 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13946 allow_undefined_flag_FC
=
13947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13948 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13951 test $ac_status = 0; }
13953 lt_cv_archive_cmds_need_lc_FC
=no
13955 lt_cv_archive_cmds_need_lc_FC
=yes
13957 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13959 cat conftest.err
1>&5
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13965 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13966 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14037 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14039 library_names_spec
=
14040 libname_spec
='lib$name'
14044 postuninstall_cmds
=
14048 shlibpath_overrides_runpath
=unknown
14050 dynamic_linker
="$host_os ld.so"
14051 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14052 need_lib_prefix
=unknown
14053 hardcode_into_libs
=no
14055 # when you set need_version to no, make sure it does not cause -set_version
14056 # flags to be left without arguments
14057 need_version
=unknown
14062 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14063 shlibpath_var
=LIBPATH
14065 # AIX 3 has no versioning support, so we append a major version to the name.
14066 soname_spec
='${libname}${release}${shared_ext}$major'
14073 hardcode_into_libs
=yes
14074 if test "$host_cpu" = ia64
; then
14075 # AIX 5 supports IA64
14076 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14077 shlibpath_var
=LD_LIBRARY_PATH
14079 # With GCC up to 2.95.x, collect2 would create an import file
14080 # for dependence libraries. The import file would start with
14081 # the line `#! .'. This would cause the generated library to
14082 # depend on `.', always an invalid library. This was fixed in
14083 # development snapshots of GCC prior to 3.0.
14085 aix4 | aix4.
[01] | aix4.
[01].
*)
14086 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14088 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14091 can_build_shared
=no
14095 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14096 # soname into executable. Probably we can add versioning support to
14097 # collect2, so additional links can be useful in future.
14098 if test "$aix_use_runtimelinking" = yes; then
14099 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14100 # instead of lib<name>.a to let people know that these are not
14101 # typical AIX shared libraries.
14102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14104 # We preserve .a as extension for shared libraries through AIX4.2
14105 # and later when we are not doing run time linking.
14106 library_names_spec
='${libname}${release}.a $libname.a'
14107 soname_spec
='${libname}${release}${shared_ext}$major'
14109 shlibpath_var
=LIBPATH
14116 # Since July 2007 AmigaOS4 officially supports .so libraries.
14117 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 library_names_spec
='$libname.ixlibrary $libname.a'
14122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14123 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'
14129 library_names_spec
='${libname}${shared_ext}'
14130 dynamic_linker
="$host_os ld.so"
14131 shlibpath_var
=LIBRARY_PATH
14137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 soname_spec
='${libname}${release}${shared_ext}$major'
14139 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14140 shlibpath_var
=LD_LIBRARY_PATH
14141 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14142 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14143 # the default ld.so.conf also contains /usr/contrib/lib and
14144 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14145 # libtool to hard-code these into programs
14148 cygwin
* | mingw
* | pw32
* | cegcc
*)
14149 version_type
=windows
14154 case $GCC,$host_os in
14155 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14156 library_names_spec
='$libname.dll.a'
14157 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14158 postinstall_cmds
='base_file=`basename \${file}`~
14159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14160 dldir=$destdir/`dirname \$dlpath`~
14161 test -d \$dldir || mkdir -p \$dldir~
14162 $install_prog $dir/$dlname \$dldir/$dlname~
14163 chmod a+x \$dldir/$dlname~
14164 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14165 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14167 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14168 dlpath=$dir/\$dldll~
14170 shlibpath_overrides_runpath
=yes
14174 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14175 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14179 # MinGW DLLs use traditional 'lib' prefix
14180 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14183 # pw32 DLLs use 'pw' prefix rather than 'lib'
14184 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14190 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14193 dynamic_linker
='Win32 ld.exe'
14194 # FIXME: first we should search . and the directory the executable is in
14198 darwin
* | rhapsody
*)
14199 dynamic_linker
="$host_os dyld"
14200 version_type
=darwin
14203 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14204 soname_spec
='${libname}${release}${major}$shared_ext'
14205 shlibpath_overrides_runpath
=yes
14206 shlibpath_var
=DYLD_LIBRARY_PATH
14207 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14209 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14217 soname_spec
='${libname}${release}${shared_ext}$major'
14218 shlibpath_var
=LD_LIBRARY_PATH
14221 freebsd
* | dragonfly
*)
14222 # DragonFly does not have aout. When/if they implement a new
14223 # versioning mechanism, adjust this.
14224 if test -x /usr
/bin
/objformat
; then
14225 objformat
=`/usr/bin/objformat`
14228 freebsd
[23].
*) objformat
=aout
;;
14229 *) objformat
=elf
;;
14232 version_type
=freebsd-
$objformat
14233 case $version_type in
14235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14240 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14244 shlibpath_var
=LD_LIBRARY_PATH
14247 shlibpath_overrides_runpath
=yes
14249 freebsd3.
[01]* | freebsdelf3.
[01]*)
14250 shlibpath_overrides_runpath
=yes
14251 hardcode_into_libs
=yes
14253 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14254 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14255 shlibpath_overrides_runpath
=no
14256 hardcode_into_libs
=yes
14258 *) # from 4.6 on, and DragonFly
14259 shlibpath_overrides_runpath
=yes
14260 hardcode_into_libs
=yes
14269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14270 soname_spec
='${libname}${release}${shared_ext}$major'
14271 shlibpath_var
=LD_LIBRARY_PATH
14272 hardcode_into_libs
=yes
14279 dynamic_linker
="$host_os runtime_loader"
14280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14281 soname_spec
='${libname}${release}${shared_ext}$major'
14282 shlibpath_var
=LIBRARY_PATH
14283 shlibpath_overrides_runpath
=yes
14284 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14285 hardcode_into_libs
=yes
14288 hpux9
* | hpux10
* | hpux11
*)
14289 # Give a soname corresponding to the major version so that dld.sl refuses to
14290 # link against other versions.
14297 hardcode_into_libs
=yes
14298 dynamic_linker
="$host_os dld.so"
14299 shlibpath_var
=LD_LIBRARY_PATH
14300 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302 soname_spec
='${libname}${release}${shared_ext}$major'
14303 if test "X$HPUX_IA64_MODE" = X32
; then
14304 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14306 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14308 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14312 hardcode_into_libs
=yes
14313 dynamic_linker
="$host_os dld.sl"
14314 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14315 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317 soname_spec
='${libname}${release}${shared_ext}$major'
14318 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14319 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14323 dynamic_linker
="$host_os dld.sl"
14324 shlibpath_var
=SHLIB_PATH
14325 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14326 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14327 soname_spec
='${libname}${release}${shared_ext}$major'
14330 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14331 postinstall_cmds
='chmod 555 $lib'
14332 # or fails outright, so override atomically:
14333 install_override_mode
=555
14340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14341 soname_spec
='${libname}${release}${shared_ext}$major'
14342 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14343 shlibpath_var
=LD_LIBRARY_PATH
14344 shlibpath_overrides_runpath
=no
14345 hardcode_into_libs
=yes
14348 irix5
* | irix6
* | nonstopux
*)
14350 nonstopux
*) version_type
=nonstopux
;;
14352 if test "$lt_cv_prog_gnu_ld" = yes; then
14360 soname_spec
='${libname}${release}${shared_ext}$major'
14361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14363 irix5
* | nonstopux
*)
14364 libsuff
= shlibsuff
=
14367 case $LD in # libtool.m4 will add one of these switches to LD
14368 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14369 libsuff
= shlibsuff
= libmagic
=32-bit;;
14370 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14371 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14372 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14373 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14374 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14378 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14379 shlibpath_overrides_runpath
=no
14380 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14381 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14382 hardcode_into_libs
=yes
14385 # No shared lib support for Linux oldld, aout, or coff.
14386 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14390 # This must be Linux ELF.
14392 # uclinux* changes (here and below) have been submitted to the libtool
14393 # project, but have not yet been accepted: they are GCC-local changes
14394 # for the time being. (See
14395 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14396 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
14400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401 soname_spec
='${libname}${release}${shared_ext}$major'
14402 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14403 shlibpath_var
=LD_LIBRARY_PATH
14404 shlibpath_overrides_runpath
=no
14406 # Some binutils ld are patched to set DT_RUNPATH
14407 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14408 $as_echo_n "(cached) " >&6
14410 lt_cv_shlibpath_overrides_runpath
=no
14411 save_LDFLAGS
=$LDFLAGS
14412 save_libdir
=$libdir
14413 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14414 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14415 cat > conftest.
$ac_ext <<_ACEOF
14420 if ac_fn_fc_try_link
"$LINENO"; then :
14421 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14422 lt_cv_shlibpath_overrides_runpath
=yes
14425 rm -f core conftest.err conftest.
$ac_objext \
14426 conftest
$ac_exeext conftest.
$ac_ext
14427 LDFLAGS
=$save_LDFLAGS
14428 libdir
=$save_libdir
14432 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14434 # This implies no fast_install, which is unacceptable.
14435 # Some rework will be needed to allow for fast_install
14436 # before this can be enabled.
14437 hardcode_into_libs
=yes
14439 # Append ld.so.conf contents to the search path
14440 if test -f /etc
/ld.so.conf
; then
14441 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' ' '`
14442 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14445 # We used to test for /lib/ld.so.1 and disable shared libraries on
14446 # powerpc, because MkLinux only supported shared libraries with the
14447 # GNU dynamic linker. Since this was broken with cross compilers,
14448 # most powerpc-linux boxes support dynamic linking these days and
14449 # people can always --disable-shared, the test was removed, and we
14450 # assume the GNU/Linux dynamic linker is in use.
14451 dynamic_linker
='GNU/Linux ld.so'
14458 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14460 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14461 dynamic_linker
='NetBSD (a.out) ld.so'
14463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14464 soname_spec
='${libname}${release}${shared_ext}$major'
14465 dynamic_linker
='NetBSD ld.elf_so'
14467 shlibpath_var
=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath
=yes
14469 hardcode_into_libs
=yes
14474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475 shlibpath_var
=LD_LIBRARY_PATH
14476 shlibpath_overrides_runpath
=yes
14483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484 soname_spec
='${libname}${release}${shared_ext}$major'
14485 shlibpath_var
=LD_LIBRARY_PATH
14486 shlibpath_overrides_runpath
=no
14487 hardcode_into_libs
=yes
14488 dynamic_linker
='ldqnx.so'
14493 sys_lib_dlsearch_path_spec
="/usr/lib"
14495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14497 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14498 *) need_version
=no
;;
14500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14501 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14502 shlibpath_var
=LD_LIBRARY_PATH
14503 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14505 openbsd2.
[89] | openbsd2.
[89].
*)
14506 shlibpath_overrides_runpath
=no
14509 shlibpath_overrides_runpath
=yes
14513 shlibpath_overrides_runpath
=yes
14518 libname_spec
='$name'
14521 library_names_spec
='$libname${shared_ext} $libname.a'
14522 dynamic_linker
='OS/2 ld.exe'
14523 shlibpath_var
=LIBPATH
14526 osf3
* | osf4
* | osf5
*)
14530 soname_spec
='${libname}${release}${shared_ext}$major'
14531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532 shlibpath_var
=LD_LIBRARY_PATH
14533 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14534 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546 soname_spec
='${libname}${release}${shared_ext}$major'
14547 shlibpath_var
=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath
=yes
14549 hardcode_into_libs
=yes
14550 # ldd complains unless libraries are executable
14551 postinstall_cmds
='chmod +x $lib'
14556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14557 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14558 shlibpath_var
=LD_LIBRARY_PATH
14559 shlibpath_overrides_runpath
=yes
14560 if test "$with_gnu_ld" = yes; then
14568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14569 soname_spec
='${libname}${release}${shared_ext}$major'
14570 shlibpath_var
=LD_LIBRARY_PATH
14571 case $host_vendor in
14573 shlibpath_overrides_runpath
=no
14575 runpath_var
=LD_RUN_PATH
14583 shlibpath_overrides_runpath
=no
14584 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14590 if test -d /usr
/nec
;then
14592 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14593 soname_spec
='$libname${shared_ext}.$major'
14594 shlibpath_var
=LD_LIBRARY_PATH
14598 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14599 version_type
=freebsd-elf
14602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14603 soname_spec
='${libname}${release}${shared_ext}$major'
14604 shlibpath_var
=LD_LIBRARY_PATH
14605 shlibpath_overrides_runpath
=yes
14606 hardcode_into_libs
=yes
14607 if test "$with_gnu_ld" = yes; then
14608 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14610 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14613 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14617 sys_lib_dlsearch_path_spec
='/usr/lib'
14621 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 shlibpath_var
=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath
=no
14628 hardcode_into_libs
=yes
14633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec
='${libname}${release}${shared_ext}$major'
14635 shlibpath_var
=LD_LIBRARY_PATH
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14643 $as_echo "$dynamic_linker" >&6; }
14644 test "$dynamic_linker" = no
&& can_build_shared
=no
14646 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14647 if test "$GCC" = yes; then
14648 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14651 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14652 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14654 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14655 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14696 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14697 hardcode_action_FC
=
14698 if test -n "$hardcode_libdir_flag_spec_FC" ||
14699 test -n "$runpath_var_FC" ||
14700 test "X$hardcode_automatic_FC" = "Xyes" ; then
14702 # We can hardcode non-existent directories.
14703 if test "$hardcode_direct_FC" != no
&&
14704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14705 # have to relink, otherwise we might link with an installed library
14706 # when we should be linking with a yet-to-be-installed one
14707 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14708 test "$hardcode_minus_L_FC" != no
; then
14709 # Linking always hardcodes the temporary library directory.
14710 hardcode_action_FC
=relink
14712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14713 hardcode_action_FC
=immediate
14716 # We cannot hardcode anything, or else we can only hardcode existing
14718 hardcode_action_FC
=unsupported
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14721 $as_echo "$hardcode_action_FC" >&6; }
14723 if test "$hardcode_action_FC" = relink ||
14724 test "$inherit_rpath_FC" = yes; then
14725 # Fast installation is not supported
14726 enable_fast_install
=no
14727 elif test "$shlibpath_overrides_runpath" = yes ||
14728 test "$enable_shared" = no
; then
14729 # Fast installation is not necessary
14730 enable_fast_install
=needless
14739 fi # test -n "$compiler"
14743 fi # test "$_lt_disable_FC" != yes
14746 ac_cpp
='$CPP $CPPFLAGS'
14747 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14748 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14749 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14752 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14754 # For libtool versioning info, format is CURRENT:REVISION:AGE
14755 libtool_VERSION
=1:0:0
14758 # Check header files.
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14760 $as_echo_n "checking for ANSI C header files... " >&6; }
14761 if ${ac_cv_header_stdc+:} false
; then :
14762 $as_echo_n "(cached) " >&6
14764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14765 /* end confdefs.h. */
14766 #include <stdlib.h>
14767 #include <stdarg.h>
14768 #include <string.h>
14779 if ac_fn_c_try_compile
"$LINENO"; then :
14780 ac_cv_header_stdc
=yes
14782 ac_cv_header_stdc
=no
14784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14786 if test $ac_cv_header_stdc = yes; then
14787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790 #include <string.h>
14793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14794 $EGREP "memchr" >/dev
/null
2>&1; then :
14797 ac_cv_header_stdc
=no
14803 if test $ac_cv_header_stdc = yes; then
14804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h. */
14807 #include <stdlib.h>
14810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14811 $EGREP "free" >/dev
/null
2>&1; then :
14814 ac_cv_header_stdc
=no
14820 if test $ac_cv_header_stdc = yes; then
14821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14822 if test "$cross_compiling" = yes; then :
14825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14826 /* end confdefs.h. */
14828 #include <stdlib.h>
14829 #if ((' ' & 0x0FF) == 0x020)
14830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14833 # define ISLOWER(c) \
14834 (('a' <= (c) && (c) <= 'i') \
14835 || ('j' <= (c) && (c) <= 'r') \
14836 || ('s' <= (c) && (c) <= 'z'))
14837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14845 for (i = 0; i < 256; i++)
14846 if (XOR (islower (i), ISLOWER (i))
14847 || toupper (i) != TOUPPER (i))
14852 if ac_fn_c_try_run
"$LINENO"; then :
14855 ac_cv_header_stdc
=no
14857 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14858 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14864 $as_echo "$ac_cv_header_stdc" >&6; }
14865 if test $ac_cv_header_stdc = yes; then
14867 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14872 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14873 if ${ac_cv_header_time+:} false
; then :
14874 $as_echo_n "(cached) " >&6
14876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14878 #include <sys/types.h>
14879 #include <sys/time.h>
14885 if ((struct tm *) 0)
14891 if ac_fn_c_try_compile
"$LINENO"; then :
14892 ac_cv_header_time
=yes
14894 ac_cv_header_time
=no
14896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14899 $as_echo "$ac_cv_header_time" >&6; }
14900 if test $ac_cv_header_time = yes; then
14902 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14907 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14908 if ${gcc_cv_header_string+:} false
; then :
14909 $as_echo_n "(cached) " >&6
14911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913 #include <string.h>
14914 #include <strings.h>
14923 if ac_fn_c_try_compile
"$LINENO"; then :
14924 gcc_cv_header_string
=yes
14926 gcc_cv_header_string
=no
14928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14931 $as_echo "$gcc_cv_header_string" >&6; }
14932 if test $gcc_cv_header_string = yes; then
14934 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14938 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14940 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14941 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14942 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14943 cat >>confdefs.h
<<_ACEOF
14944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14955 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14957 nvptx
*-*-* | amdgcn
*-*-*)
14958 # NVPTX does not support Pthreads, has its own code replacement.
14959 libgomp_use_pthreads
=no
14960 # NVPTX is an accelerator-only target
14961 libgomp_offloaded_only
=yes
14964 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14965 # In case the pthread.h system header is not found, this test will fail.
14966 CFLAGS
="$CFLAGS -pthread"
14967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 #include <pthread.h>
14970 void *g(void *d) { return NULL; }
14974 pthread_t t; pthread_create(&t,NULL,g,NULL);
14979 if ac_fn_c_try_link
"$LINENO"; then :
14980 XPCFLAGS
=" -Wc,-pthread"
14982 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
14983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14985 #include <pthread.h>
14986 void *g(void *d) { return NULL; }
14990 pthread_t t; pthread_create(&t,NULL,g,NULL);
14995 if ac_fn_c_try_link
"$LINENO"; then :
14998 as_fn_error $?
"Pthreads are required to build libgomp" "$LINENO" 5
15000 rm -f core conftest.err conftest.
$ac_objext \
15001 conftest
$ac_exeext conftest.
$ac_ext
15003 rm -f core conftest.err conftest.
$ac_objext \
15004 conftest
$ac_exeext conftest.
$ac_ext
15007 if test x
$libgomp_use_pthreads != xno
; then
15009 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15013 if test x
$libgomp_offloaded_only = xyes
; then
15015 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15019 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15021 # Copyright (C) 2014-2020 Free Software Foundation, Inc.
15023 # Contributed by Mentor Embedded.
15025 # This file is part of the GNU Offloading and Multi Processing Library
15028 # Libgomp is free software; you can redistribute it and/or modify it
15029 # under the terms of the GNU General Public License as published by
15030 # the Free Software Foundation; either version 3, or (at your option)
15031 # any later version.
15033 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15034 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15035 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15038 # Under Section 7 of GPL version 3, you are granted additional
15039 # permissions described in the GCC Runtime Library Exception, version
15040 # 3.1, as published by the Free Software Foundation.
15042 # You should have received a copy of the GNU General Public License and
15043 # a copy of the GCC Runtime Library Exception along with this program;
15044 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15045 # <http://www.gnu.org/licenses/>.
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15049 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15050 if ${ac_cv_lib_dl_dlsym+:} false
; then :
15051 $as_echo_n "(cached) " >&6
15053 ac_check_lib_save_LIBS
=$LIBS
15055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15058 /* Override any GCC internal prototype to avoid an error.
15059 Use char because int might match the return type of a GCC
15060 builtin and then its argument prototype would still apply. */
15073 if ac_fn_c_try_link
"$LINENO"; then :
15074 ac_cv_lib_dl_dlsym
=yes
15076 ac_cv_lib_dl_dlsym
=no
15078 rm -f core conftest.err conftest.
$ac_objext \
15079 conftest
$ac_exeext conftest.
$ac_ext
15080 LIBS
=$ac_check_lib_save_LIBS
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15083 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15084 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
15085 cat >>confdefs.h
<<_ACEOF
15086 #define HAVE_LIBDL 1
15095 if test x
"$plugin_support" = xyes
; then
15097 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15099 elif test "x${enable_offload_targets-no}" != xno
; then
15100 as_fn_error $?
"Can't support offloading without support for plugins" "$LINENO" 5
15105 for ac_header
in $ac_header_list
15107 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15110 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15111 cat >>confdefs.h
<<_ACEOF
15112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15125 for ac_func
in $ac_func_list
15127 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15128 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15129 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15130 cat >>confdefs.h
<<_ACEOF
15131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15152 # Look for the CUDA driver package.
15153 CUDA_DRIVER_INCLUDE
=
15157 CUDA_DRIVER_CPPFLAGS
=
15158 CUDA_DRIVER_LDFLAGS
=
15160 # Check whether --with-cuda-driver was given.
15161 if test "${with_cuda_driver+set}" = set; then :
15162 withval
=$with_cuda_driver;
15166 # Check whether --with-cuda-driver-include was given.
15167 if test "${with_cuda_driver_include+set}" = set; then :
15168 withval
=$with_cuda_driver_include;
15172 # Check whether --with-cuda-driver-lib was given.
15173 if test "${with_cuda_driver_lib+set}" = set; then :
15174 withval
=$with_cuda_driver_lib;
15177 case "x$with_cuda_driver" in
15180 CUDA_DRIVER_INCLUDE
=no
15183 *) CUDA_DRIVER_INCLUDE
=$with_cuda_driver/include
15184 CUDA_DRIVER_LIB
=$with_cuda_driver/lib
15187 if test "x$with_cuda_driver_include" != x
; then
15188 CUDA_DRIVER_INCLUDE
=$with_cuda_driver_include
15190 if test "x$with_cuda_driver_lib" != x
; then
15191 CUDA_DRIVER_LIB
=$with_cuda_driver_lib
15193 if test "x$CUDA_DRIVER_INCLUDE" != x \
15194 && test "x$CUDA_DRIVER_INCLUDE" != xno
; then
15195 CUDA_DRIVER_CPPFLAGS
=-I$CUDA_DRIVER_INCLUDE
15197 if test "x$CUDA_DRIVER_LIB" != x \
15198 && test "x$CUDA_DRIVER_LIB" != xno
; then
15199 CUDA_DRIVER_LDFLAGS
=-L$CUDA_DRIVER_LIB
15203 PLUGIN_NVPTX_CPPFLAGS
=
15204 PLUGIN_NVPTX_LDFLAGS
=
15206 PLUGIN_NVPTX_DYNAMIC
=0
15212 # Look for HSA run-time, its includes and libraries
15214 HSA_RUNTIME_INCLUDE
=
15218 HSA_RUNTIME_CPPFLAGS
=
15219 HSA_RUNTIME_LDFLAGS
=
15222 # Check whether --with-hsa-runtime was given.
15223 if test "${with_hsa_runtime+set}" = set; then :
15224 withval
=$with_hsa_runtime;
15228 # Check whether --with-hsa-runtime-include was given.
15229 if test "${with_hsa_runtime_include+set}" = set; then :
15230 withval
=$with_hsa_runtime_include;
15234 # Check whether --with-hsa-runtime-lib was given.
15235 if test "${with_hsa_runtime_lib+set}" = set; then :
15236 withval
=$with_hsa_runtime_lib;
15239 if test "x$with_hsa_runtime" != x
; then
15240 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime/include
15241 HSA_RUNTIME_LIB
=$with_hsa_runtime/lib
15243 if test "x$with_hsa_runtime_include" != x
; then
15244 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime_include
15246 if test "x$with_hsa_runtime_lib" != x
; then
15247 HSA_RUNTIME_LIB
=$with_hsa_runtime_lib
15249 if test "x$HSA_RUNTIME_INCLUDE" != x
; then
15250 HSA_RUNTIME_CPPFLAGS
=-I$HSA_RUNTIME_INCLUDE
15252 if test "x$HSA_RUNTIME_LIB" != x
; then
15253 HSA_RUNTIME_LDFLAGS
=-L$HSA_RUNTIME_LIB
15257 PLUGIN_HSA_CPPFLAGS
=
15258 PLUGIN_HSA_LDFLAGS
=
15266 PLUGIN_GCN_CPPFLAGS
=
15267 PLUGIN_GCN_LDFLAGS
=
15274 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15275 # plugins, and configure to find the corresponding offload compilers.
15276 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15281 offload_additional_options
=
15282 offload_additional_lib_paths
=
15285 if test x
"$enable_offload_targets" != x
; then
15286 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15287 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15288 tgt
=`echo $tgt | sed 's/=.*//'`
15291 *-intelmic-* |
*-intelmicemul-*)
15292 tgt_plugin
=intelmic
15297 if test "x$CUDA_DRIVER_LIB" != xno \
15298 && test "x$CUDA_DRIVER_LIB" != xno
; then
15299 PLUGIN_NVPTX_CPPFLAGS
=$CUDA_DRIVER_CPPFLAGS
15300 PLUGIN_NVPTX_LDFLAGS
=$CUDA_DRIVER_LDFLAGS
15301 PLUGIN_NVPTX_LIBS
='-lcuda'
15303 PLUGIN_NVPTX_save_CPPFLAGS
=$CPPFLAGS
15304 CPPFLAGS
="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15305 PLUGIN_NVPTX_save_LDFLAGS
=$LDFLAGS
15306 LDFLAGS
="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15307 PLUGIN_NVPTX_save_LIBS
=$LIBS
15308 LIBS
="$PLUGIN_NVPTX_LIBS $LIBS"
15309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15315 CUresult r = cuCtxPushCurrent (NULL);
15320 if ac_fn_c_try_link
"$LINENO"; then :
15323 rm -f core conftest.err conftest.
$ac_objext \
15324 conftest
$ac_exeext conftest.
$ac_ext
15325 CPPFLAGS
=$PLUGIN_NVPTX_save_CPPFLAGS
15326 LDFLAGS
=$PLUGIN_NVPTX_save_LDFLAGS
15327 LIBS
=$PLUGIN_NVPTX_save_LIBS
15329 case $PLUGIN_NVPTX in
15331 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15332 ||
test "x$CUDA_DRIVER_INCLUDE" = xno
) \
15333 && (test "x$CUDA_DRIVER_LIB" = x \
15334 ||
test "x$CUDA_DRIVER_LIB" = xno
); then
15336 PLUGIN_NVPTX_CPPFLAGS
='-I$(srcdir)/plugin/cuda'
15337 PLUGIN_NVPTX_LIBS
='-ldl'
15338 PLUGIN_NVPTX_DYNAMIC
=1
15341 as_fn_error $?
"CUDA driver package required for nvptx support" "$LINENO" 5
15347 case "${target}" in
15349 case " ${CC} ${CFLAGS} " in
15350 *" -m32 "*|
*" -mx32 "*)
15356 PLUGIN_HSA_CPPFLAGS
=$HSA_RUNTIME_CPPFLAGS
15357 PLUGIN_HSA_LDFLAGS
="$HSA_RUNTIME_LDFLAGS"
15358 PLUGIN_HSA_LIBS
="-ldl"
15360 PLUGIN_HSA_save_CPPFLAGS
=$CPPFLAGS
15361 CPPFLAGS
="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15362 PLUGIN_HSA_save_LDFLAGS
=$LDFLAGS
15363 LDFLAGS
="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15364 PLUGIN_HSA_save_LIBS
=$LIBS
15365 LIBS
="$PLUGIN_HSA_LIBS $LIBS"
15368 CPPFLAGS
=$PLUGIN_HSA_save_CPPFLAGS
15369 LDFLAGS
=$PLUGIN_HSA_save_LDFLAGS
15370 LIBS
=$PLUGIN_HSA_save_LIBS
15371 case $PLUGIN_HSA in
15374 as_fn_error $?
"HSA run-time package required for HSA support" "$LINENO" 5
15387 case "${target}" in
15389 case " ${CC} ${CFLAGS} " in
15390 *" -m32 "*|
*" -mx32 "*)
15396 PLUGIN_GCN_CPPFLAGS
=$HSA_RUNTIME_CPPFLAGS
15397 PLUGIN_GCN_LDFLAGS
="$HSA_RUNTIME_LDFLAGS"
15398 PLUGIN_GCN_LIBS
="-ldl"
15409 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
15412 if test x
"$tgt_plugin" = x
; then
15413 # Not configuring libgomp for this offload target if we're not building
15414 # the corresponding offload plugin.
15416 elif test x
"$offload_plugins" = x
; then
15417 offload_plugins
=$tgt_plugin
15418 offload_targets
=$tgt
15420 offload_plugins
=$offload_plugins,$tgt_plugin
15421 offload_targets
=$offload_targets,$tgt
15423 # Configure additional search paths.
15424 if test "$tgt_plugin" = hsa
; then
15425 # Offloading compilation is all handled by the target compiler.
15427 elif test x
"$tgt_dir" != x
; then
15428 offload_additional_options
="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15429 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15431 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15432 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15437 cat >>confdefs.h
<<_ACEOF
15438 #define OFFLOAD_PLUGINS "$offload_plugins"
15441 if test $PLUGIN_NVPTX = 1; then
15443 PLUGIN_NVPTX_FALSE
='#'
15445 PLUGIN_NVPTX_TRUE
='#'
15446 PLUGIN_NVPTX_FALSE
=
15450 cat >>confdefs.h
<<_ACEOF
15451 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15455 cat >>confdefs.h
<<_ACEOF
15456 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15459 if test $PLUGIN_HSA = 1; then
15461 PLUGIN_HSA_FALSE
='#'
15463 PLUGIN_HSA_TRUE
='#'
15468 cat >>confdefs.h
<<_ACEOF
15469 #define PLUGIN_HSA $PLUGIN_HSA
15472 if test $PLUGIN_GCN = 1; then
15474 PLUGIN_GCN_FALSE
='#'
15476 PLUGIN_GCN_TRUE
='#'
15481 cat >>confdefs.h
<<_ACEOF
15482 #define PLUGIN_GCN $PLUGIN_GCN
15486 if test "$HSA_RUNTIME_LIB" != ""; then
15487 HSA_RUNTIME_LIB
="$HSA_RUNTIME_LIB/"
15491 cat >>confdefs.h
<<_ACEOF
15492 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15497 # Check for functions needed.
15498 for ac_func
in getloadavg clock_gettime strtoull
15500 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15501 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15502 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15503 cat >>confdefs.h
<<_ACEOF
15504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15510 for ac_func
in aligned_alloc posix_memalign memalign _aligned_malloc
15512 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15513 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15514 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15515 cat >>confdefs.h
<<_ACEOF
15516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15523 # Check for broken semaphore implementation on darwin.
15524 # sem_init returns: sem_init error: Function not implemented.
15528 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15533 # RTEMS specific checks
15536 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15538 if test "x$ac_cv_type_struct__Mutex_Control" = xyes
; then :
15540 cat >>confdefs.h
<<_ACEOF
15541 #define HAVE_STRUCT__MUTEX_CONTROL 1
15550 # Check whether --enable-linux-futex was given.
15551 if test "${enable_linux_futex+set}" = set; then :
15552 enableval
=$enable_linux_futex;
15553 case "$enableval" in
15555 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15559 enable_linux_futex
=default
15564 *-linux* |
*-uclinux*)
15565 case "$enable_linux_futex" in
15567 # If headers don't have gettid/futex syscalls definition, then
15568 # default to no, otherwise there will be compile time failures.
15569 # Otherwise, default to yes. If we don't detect we are
15570 # compiled/linked against NPTL and not cross-compiling, check
15571 # if programs are run by default against NPTL and if not, issue
15573 enable_linux_futex
=no
15574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15576 #include <sys/syscall.h>
15577 #include <unistd.h>
15582 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15587 if ac_fn_c_try_link
"$LINENO"; then :
15589 LIBS
="-lpthread $LIBS"
15590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h. */
15592 #ifndef _GNU_SOURCE
15593 #define _GNU_SOURCE 1
15595 #include <pthread.h>
15596 pthread_t th; void *status;
15600 pthread_tryjoin_np (th, &status);
15605 if ac_fn_c_try_link
"$LINENO"; then :
15606 enable_linux_futex
=yes
15608 if test x
$cross_compiling = xno
; then
15609 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15610 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15612 If so, please configure with --disable-linux-futex" >&5
15613 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15614 If so, please configure with --disable-linux-futex" >&2;}
15617 enable_linux_futex
=yes
15619 rm -f core conftest.err conftest.
$ac_objext \
15620 conftest
$ac_exeext conftest.
$ac_ext
15623 rm -f core conftest.err conftest.
$ac_objext \
15624 conftest
$ac_exeext conftest.
$ac_ext
15627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15629 #include <sys/syscall.h>
15630 #include <unistd.h>
15635 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15640 if ac_fn_c_try_link
"$LINENO"; then :
15643 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15645 rm -f core conftest.err conftest.
$ac_objext \
15646 conftest
$ac_exeext conftest.
$ac_ext
15651 enable_linux_futex
=no
15654 if test x
$enable_linux_futex = xyes
; then
15659 # Check for pthread_{,attr_}[sg]etaffinity_np.
15660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662 #define _GNU_SOURCE
15663 #include <pthread.h>
15668 pthread_attr_t attr;
15669 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15670 if (CPU_ISSET (0, &cpuset))
15671 CPU_SET (1, &cpuset);
15673 CPU_ZERO (&cpuset);
15674 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15675 pthread_attr_init (&attr);
15676 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15677 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15682 if ac_fn_c_try_link
"$LINENO"; then :
15684 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15687 rm -f core conftest.err conftest.
$ac_objext \
15688 conftest
$ac_exeext conftest.
$ac_ext
15690 # At least for glibc, clock_gettime is in librt. But don't pull that
15691 # in if it still doesn't give us the function we want.
15692 if test $ac_cv_func_clock_gettime = no
; then
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15694 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15695 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
15696 $as_echo_n "(cached) " >&6
15698 ac_check_lib_save_LIBS
=$LIBS
15700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15703 /* Override any GCC internal prototype to avoid an error.
15704 Use char because int might match the return type of a GCC
15705 builtin and then its argument prototype would still apply. */
15709 char clock_gettime ();
15713 return clock_gettime ();
15718 if ac_fn_c_try_link
"$LINENO"; then :
15719 ac_cv_lib_rt_clock_gettime
=yes
15721 ac_cv_lib_rt_clock_gettime
=no
15723 rm -f core conftest.err conftest.
$ac_objext \
15724 conftest
$ac_exeext conftest.
$ac_ext
15725 LIBS
=$ac_check_lib_save_LIBS
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15728 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15729 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
15732 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 #include <string.h>
15742 #include <stdlib.h>
15743 #include <sys/utsname.h>
15747 struct utsname buf;
15748 volatile size_t len = 0;
15750 len = strlen (buf.nodename);
15755 if ac_fn_c_try_compile
"$LINENO"; then :
15757 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15762 # Check for gethostname.
15763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765 #include <unistd.h>
15771 if (gethostname (buf, sizeof (buf) - 1) == 0)
15778 if ac_fn_c_try_compile
"$LINENO"; then :
15780 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15785 # Check for getpid.
15786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h. */
15788 #include <unistd.h>
15792 int pid = getpid ();
15797 if ac_fn_c_try_compile
"$LINENO"; then :
15799 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15804 # See if we support thread-local storage.
15807 # Check whether --enable-tls was given.
15808 if test "${enable_tls+set}" = set; then :
15809 enableval
=$enable_tls;
15810 case "$enableval" in
15812 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15821 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15822 if ${gcc_cv_have_tls+:} false
; then :
15823 $as_echo_n "(cached) " >&6
15826 if test "$cross_compiling" = yes; then :
15827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15829 __thread int a; int b; int main() { return a = b; }
15831 if ac_fn_c_try_link
"$LINENO"; then :
15832 chktls_save_LDFLAGS
="$LDFLAGS"
15834 *-*-linux* |
-*-uclinuxfdpic*)
15835 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15838 chktls_save_CFLAGS
="$CFLAGS"
15839 CFLAGS
="-fPIC $CFLAGS"
15840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842 int f() { return 0; }
15844 if ac_fn_c_try_link
"$LINENO"; then :
15845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15847 __thread int a; int b; int f() { return a = b; }
15849 if ac_fn_c_try_link
"$LINENO"; then :
15850 gcc_cv_have_tls
=yes
15854 rm -f core conftest.err conftest.
$ac_objext \
15855 conftest
$ac_exeext conftest.
$ac_ext
15857 gcc_cv_have_tls
=yes
15859 rm -f core conftest.err conftest.
$ac_objext \
15860 conftest
$ac_exeext conftest.
$ac_ext
15861 CFLAGS
="$chktls_save_CFLAGS"
15862 LDFLAGS
="$chktls_save_LDFLAGS"
15866 rm -f core conftest.err conftest.
$ac_objext \
15867 conftest
$ac_exeext conftest.
$ac_ext
15871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h. */
15873 __thread int a; int b; int main() { return a = b; }
15875 if ac_fn_c_try_run
"$LINENO"; then :
15876 chktls_save_LDFLAGS
="$LDFLAGS"
15877 LDFLAGS
="-static $LDFLAGS"
15878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 int main() { return 0; }
15882 if ac_fn_c_try_link
"$LINENO"; then :
15883 if test "$cross_compiling" = yes; then :
15884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15886 as_fn_error $?
"cannot run test program while cross compiling
15887 See \`config.log' for more details" "$LINENO" 5; }
15889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h. */
15891 __thread int a; int b; int main() { return a = b; }
15893 if ac_fn_c_try_run
"$LINENO"; then :
15894 gcc_cv_have_tls
=yes
15898 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15899 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15903 gcc_cv_have_tls
=yes
15905 rm -f core conftest.err conftest.
$ac_objext \
15906 conftest
$ac_exeext conftest.
$ac_ext
15907 LDFLAGS
="$chktls_save_LDFLAGS"
15908 if test $gcc_cv_have_tls = yes; then
15909 chktls_save_CFLAGS
="$CFLAGS"
15910 thread_CFLAGS
=failed
15911 for flag
in '' '-pthread' '-lpthread'; do
15912 CFLAGS
="$flag $chktls_save_CFLAGS"
15913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 #include <pthread.h>
15916 void *g(void *d) { return NULL; }
15920 pthread_t t; pthread_create(&t,NULL,g,NULL);
15925 if ac_fn_c_try_link
"$LINENO"; then :
15926 thread_CFLAGS
="$flag"
15928 rm -f core conftest.err conftest.
$ac_objext \
15929 conftest
$ac_exeext conftest.
$ac_ext
15930 if test "X$thread_CFLAGS" != Xfailed
; then
15934 CFLAGS
="$chktls_save_CFLAGS"
15935 if test "X$thread_CFLAGS" != Xfailed
; then
15936 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15937 if test "$cross_compiling" = yes; then :
15938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15940 as_fn_error $?
"cannot run test program while cross compiling
15941 See \`config.log' for more details" "$LINENO" 5; }
15943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945 #include <pthread.h>
15947 static int *volatile a_in_other_thread;
15949 thread_func (void *arg)
15951 a_in_other_thread = &a;
15958 void *thread_retval;
15959 int *volatile a_in_main_thread;
15960 a_in_main_thread = &a;
15961 if (pthread_create (&thread, (pthread_attr_t *)0,
15962 thread_func, (void *)0))
15964 if (pthread_join (thread, &thread_retval))
15966 return (a_in_other_thread == a_in_main_thread);
15971 if ac_fn_c_try_run
"$LINENO"; then :
15972 gcc_cv_have_tls
=yes
15976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15980 CFLAGS
="$chktls_save_CFLAGS"
15986 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15987 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15992 $as_echo "$gcc_cv_have_tls" >&6; }
15993 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15995 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15999 # See if we have emulated thread-local storage.
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
16002 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
16003 if ${gcc_cv_use_emutls+:} false
; then :
16004 $as_echo_n "(cached) " >&6
16007 gcc_cv_use_emutls
=no
16008 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16009 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16011 (eval $ac_try) 2>&5
16013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16014 test $ac_status = 0; }; }; then
16015 if grep __emutls_get_address conftest.s
> /dev
/null
; then
16016 gcc_cv_use_emutls
=yes
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16023 $as_echo "$gcc_cv_use_emutls" >&6; }
16024 if test "$gcc_cv_use_emutls" = "yes" ; then
16026 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16030 # See what sort of export controls are available.
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16033 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16034 if ${libgomp_cv_have_attribute_visibility+:} false
; then :
16035 $as_echo_n "(cached) " >&6
16038 save_CFLAGS
="$CFLAGS"
16039 CFLAGS
="$CFLAGS -Werror"
16040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 void __attribute__((visibility("hidden"))) foo(void) { }
16051 if ac_fn_c_try_compile
"$LINENO"; then :
16052 libgomp_cv_have_attribute_visibility
=yes
16054 libgomp_cv_have_attribute_visibility
=no
16056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16057 CFLAGS
="$save_CFLAGS"
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16060 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16061 if test $libgomp_cv_have_attribute_visibility = yes; then
16063 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16068 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16069 if ${libgomp_cv_have_attribute_dllexport+:} false
; then :
16070 $as_echo_n "(cached) " >&6
16073 save_CFLAGS
="$CFLAGS"
16074 CFLAGS
="$CFLAGS -Werror"
16075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077 void __attribute__((dllexport)) foo(void) { }
16086 if ac_fn_c_try_compile
"$LINENO"; then :
16087 libgomp_cv_have_attribute_dllexport
=yes
16089 libgomp_cv_have_attribute_dllexport
=no
16091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16092 CFLAGS
="$save_CFLAGS"
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16095 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16096 if test $libgomp_cv_have_attribute_dllexport = yes; then
16098 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16103 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16104 if ${libgomp_cv_have_attribute_alias+:} false
; then :
16105 $as_echo_n "(cached) " >&6
16108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16112 extern void bar(void) __attribute__((alias("foo")));
16121 if ac_fn_c_try_link
"$LINENO"; then :
16122 libgomp_cv_have_attribute_alias
=yes
16124 libgomp_cv_have_attribute_alias
=no
16126 rm -f core conftest.err conftest.
$ac_objext \
16127 conftest
$ac_exeext conftest.
$ac_ext
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16130 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16131 if test $libgomp_cv_have_attribute_alias = yes; then
16133 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16138 # Check whether --with-gnu-ld was given.
16139 if test "${with_gnu_ld+set}" = set; then :
16140 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16146 if test "$GCC" = yes; then
16147 # Check if gcc -print-prog-name=ld gives a path.
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16149 $as_echo_n "checking for ld used by $CC... " >&6; }
16152 # gcc leaves a trailing carriage return which upsets mingw
16153 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16155 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16158 # Accept absolute paths.
16160 re_direlt
='/[^/][^/]*/\.\./'
16161 # Canonicalize the pathname of ld
16162 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16163 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16164 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16166 test -z "$LD" && LD
="$ac_prog"
16169 # If it fails, then pretend we aren't using GCC.
16173 # If it is relative, then search for the first ld in PATH.
16174 with_gnu_ld
=unknown
16177 elif test "$with_gnu_ld" = yes; then
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16179 $as_echo_n "checking for GNU ld... " >&6; }
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16182 $as_echo_n "checking for non-GNU ld... " >&6; }
16184 if ${lt_cv_path_LD+:} false
; then :
16185 $as_echo_n "(cached) " >&6
16187 if test -z "$LD"; then
16188 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16189 for ac_dir
in $PATH; do
16191 test -z "$ac_dir" && ac_dir
=.
16192 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16193 lt_cv_path_LD
="$ac_dir/$ac_prog"
16194 # Check to see if the program is GNU ld. I'd rather use --version,
16195 # but apparently some variants of GNU ld only accept -v.
16196 # Break only if it was the GNU/non-GNU ld that we prefer.
16197 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16198 *GNU
* |
*'with BFD'*)
16199 test "$with_gnu_ld" != no
&& break
16202 test "$with_gnu_ld" != yes && break
16209 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16213 LD
="$lt_cv_path_LD"
16214 if test -n "$LD"; then
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16216 $as_echo "$LD" >&6; }
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16219 $as_echo "no" >&6; }
16221 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16223 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16224 if ${lt_cv_prog_gnu_ld+:} false
; then :
16225 $as_echo_n "(cached) " >&6
16227 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16228 case `$LD -v 2>&1 </dev/null` in
16229 *GNU
* |
*'with BFD'*)
16230 lt_cv_prog_gnu_ld
=yes
16233 lt_cv_prog_gnu_ld
=no
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16238 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16239 with_gnu_ld
=$lt_cv_prog_gnu_ld
16247 # If we're not using GNU ld, then there's no point in even trying these
16248 # tests. Check for that first. We should have already tested for gld
16249 # by now (in libtool), but require it now just to be safe...
16250 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16251 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16255 # The name set by libtool depends on the version of libtool. Shame on us
16256 # for depending on an impl detail, but c'est la vie. Older versions used
16257 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16258 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16259 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16260 # set (hence we're using an older libtool), then set it.
16261 if test x
${with_gnu_ld+set} != xset
; then
16262 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16263 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16266 with_gnu_ld
=$ac_cv_prog_gnu_ld
16270 # Start by getting the version number. I think the libtool test already
16271 # does some of this, but throws away the result.
16272 libgomp_ld_is_gold
=no
16273 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16274 libgomp_ld_is_gold
=yes
16277 ldver
=`$LD --version 2>/dev/null |
16278 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16280 libgomp_gnu_ld_version
=`echo $ldver | \
16281 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16283 # Set --gc-sections.
16284 if test "$with_gnu_ld" = "notbroken"; then
16285 # GNU ld it is! Joy and bunny rabbits!
16287 # All these tests are for C++; save the language and the compiler flags.
16288 # Need to do this so that g++ won't try to link in libstdc++
16289 ac_test_CFLAGS
="${CFLAGS+set}"
16290 ac_save_CFLAGS
="$CFLAGS"
16291 CFLAGS
='-x c++ -Wl,--gc-sections'
16293 # Check for -Wl,--gc-sections
16294 # XXX This test is broken at the moment, as symbols required for linking
16295 # are now in libsupc++ (not built yet). In addition, this test has
16296 # cored on solaris in the past. In addition, --gc-sections doesn't
16297 # really work at the moment (keeps on discarding used sections, first
16298 # .eh_frame and now some of the glibc sections for iconv).
16299 # Bzzzzt. Thanks for playing, maybe next time.
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16301 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16302 if test "$cross_compiling" = yes; then :
16303 ac_sectionLDflags
=yes
16305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16316 if ac_fn_c_try_run
"$LINENO"; then :
16317 ac_sectionLDflags
=yes
16319 ac_sectionLDflags
=no
16321 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16322 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16325 if test "$ac_test_CFLAGS" = set; then
16326 CFLAGS
="$ac_save_CFLAGS"
16328 # this is the suspicious part
16331 if test "$ac_sectionLDflags" = "yes"; then
16332 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16335 $as_echo "$ac_sectionLDflags" >&6; }
16338 # Set linker optimization flags.
16339 if test x
"$with_gnu_ld" = x
"yes"; then
16340 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16348 # Check whether --enable-symvers was given.
16349 if test "${enable_symvers+set}" = set; then :
16350 enableval
=$enable_symvers;
16351 case "$enableval" in
16352 yes|no|gnu
*|sun
) ;;
16353 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16362 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16363 # don't know enough about $LD to do tricks...
16366 # Turn a 'yes' into a suitable default.
16367 if test x
$enable_symvers = xyes
; then
16368 # FIXME The following test is too strict, in theory.
16369 if test $enable_shared = no ||
test "x$LD" = x
; then
16372 if test $with_gnu_ld = yes ; then
16375 case ${target_os} in
16376 # Sun symbol versioning exists since Solaris 2.5.
16377 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16378 enable_symvers
=sun
;;
16380 enable_symvers
=no
;;
16386 # Check if 'sun' was requested on non-Solaris 2 platforms.
16387 if test x
$enable_symvers = xsun
; then
16388 case ${target_os} in
16393 # Unlikely to work.
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16395 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16397 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16399 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16405 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16406 if test $enable_symvers != no
; then
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16408 $as_echo_n "checking for shared libgcc... " >&6; }
16409 ac_save_CFLAGS
="$CFLAGS"
16411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16422 if ac_fn_c_try_link
"$LINENO"; then :
16423 libgomp_shared_libgcc
=yes
16425 libgomp_shared_libgcc
=no
16427 rm -f core conftest.err conftest.
$ac_objext \
16428 conftest
$ac_exeext conftest.
$ac_ext
16429 CFLAGS
="$ac_save_CFLAGS"
16430 if test $libgomp_shared_libgcc = no
; then
16431 cat > conftest.c
<<EOF
16432 int main (void) { return 0; }
16434 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16435 -shared -shared-libgcc -o conftest.so \
16436 conftest.c -v 2>&1 >/dev/null \
16437 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16438 rm -f conftest.c conftest.so
16439 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16440 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16452 if ac_fn_c_try_link
"$LINENO"; then :
16453 libgomp_shared_libgcc
=yes
16455 rm -f core conftest.err conftest.
$ac_objext \
16456 conftest
$ac_exeext conftest.
$ac_ext
16457 CFLAGS
="$ac_save_CFLAGS"
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16461 $as_echo "$libgomp_shared_libgcc" >&6; }
16464 # For GNU ld, we need at least this version. The format is described in
16465 # LIBGOMP_CHECK_LINKER_FEATURES above.
16466 libgomp_min_gnu_ld_version
=21400
16467 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16469 # Check to see if unspecified "yes" value can win, given results above.
16470 # Change "yes" into either "no" or a style name.
16471 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16472 if test $with_gnu_ld = yes; then
16473 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16475 elif test $libgomp_ld_is_gold = yes ; then
16478 # The right tools, the right setup, but too old. Fallbacks?
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16480 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16482 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16484 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16486 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16487 if test $libgomp_gnu_ld_version -ge 21200 ; then
16488 # Globbing fix is present, proper block support is not.
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16490 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16495 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16499 elif test $enable_symvers = sun
; then
16500 : All interesting versions of Sun ld support sun style symbol versioning.
16502 # just fail for now
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16504 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16506 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16508 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16510 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16516 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16517 if ${libgomp_cv_have_as_symver_directive+:} false
; then :
16518 $as_echo_n "(cached) " >&6
16521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16523 void foo (void); __asm (".symver foo, bar@SYMVER");
16532 if ac_fn_c_try_compile
"$LINENO"; then :
16533 libgomp_cv_have_as_symver_directive
=yes
16535 libgomp_cv_have_as_symver_directive
=no
16537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16540 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16541 if test $libgomp_cv_have_as_symver_directive = yes; then
16543 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16547 if test $enable_symvers != no
; then
16548 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16549 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16551 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16552 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16555 if test $enable_symvers = gnu
; then
16556 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16557 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16559 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16560 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16563 if test $enable_symvers = sun
; then
16564 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16565 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16567 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16568 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16572 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16574 if test $enable_symvers != no
; then
16575 case ${target_os} in
16576 # The Solaris 2 runtime linker doesn't support the GNU extension of
16577 # binding the same symbol to different versions
16580 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16583 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16590 if test $enable_symvers = gnu
; then
16592 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16596 # Determine cpu count to limit testsuite parallelism.
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16598 $as_echo_n "checking the number of available CPUs... " >&6; }
16601 # Try generic methods
16603 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16604 # 'NPROCESSORS_ONLN' are platform-specific
16605 command -v getconf
>/dev
/null
2>&1 && \
16606 CPU_COUNT
=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT
="0"
16607 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v nproc
>/dev
/null
2>&1; then :
16610 # 'nproc' is part of GNU Coreutils and is widely available
16611 CPU_COUNT
=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT
=`nproc 2>/dev/null` || CPU_COUNT
="0"
16614 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16617 # Try platform-specific preferred methods
16618 case $host_os in #(
16620 CPU_COUNT
=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT
="0" ;; #(
16622 CPU_COUNT
=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT
="0" ;; #(
16624 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT
="0" ;; #(
16626 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT
="0" ;; #(
16628 command -v psrinfo
>/dev
/null
2>&1 && CPU_COUNT
=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT
="0" ;; #(
16630 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16632 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16634 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16639 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v sysctl
>/dev
/null
2>&1; then :
16642 # Try less preferred generic method
16643 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16644 CPU_COUNT
=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT
="0"
16647 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16650 # Try platform-specific fallback methods
16651 # They can be less accurate and slower then preferred methods
16652 case $host_os in #(
16654 CPU_COUNT
=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT
="0" ;; #(
16656 CPU_COUNT
=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT
="0" ;; #(
16658 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16660 CPU_COUNT
=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16661 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16663 command -v kstat
>/dev
/null
2>&1 && CPU_COUNT
=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16664 CPU_COUNT
=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT
="0" ;; #(
16666 if CPU_COUNT
=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16669 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS"
16672 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16674 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16679 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev
/null
; then :
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16681 $as_echo "$CPU_COUNT" >&6; }
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16686 $as_echo "unable to detect (assuming 1)" >&6; }
16691 # Get target configury.
16692 .
${srcdir}/configure.tgt
16693 CFLAGS
="$save_CFLAGS $XCFLAGS"
16695 # Check for __sync_val_compare_and_swap, but only after the target has
16696 # had a chance to set XCFLAGS.
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16699 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16700 if ${libgomp_cv_have_sync_builtins+:} false
; then :
16701 $as_echo_n "(cached) " >&6
16704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16710 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16715 if ac_fn_c_try_link
"$LINENO"; then :
16716 libgomp_cv_have_sync_builtins
=yes
16718 libgomp_cv_have_sync_builtins
=no
16720 rm -f core conftest.err conftest.
$ac_objext \
16721 conftest
$ac_exeext conftest.
$ac_ext
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16724 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16725 if test $libgomp_cv_have_sync_builtins = yes; then
16727 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16731 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16733 # Add CET specific flags if CET is enabled
16734 # Check whether --enable-cet was given.
16735 if test "${enable_cet+set}" = set; then :
16736 enableval
=$enable_cet;
16737 case "$enableval" in
16739 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16748 $as_echo_n "checking for CET support... " >&6; }
16751 i
[34567]86-*-linux* | x86_64-
*-linux*)
16752 case "$enable_cet" in
16754 # Check if target supports multi-byte NOPs
16755 # and if assembler supports CET insn.
16756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16763 #if !defined(__SSE2__)
16764 #error target does not support multi-byte NOPs
16773 if ac_fn_c_try_compile
"$LINENO"; then :
16778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16781 # Check if assembler supports CET.
16782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16783 /* end confdefs.h. */
16793 if ac_fn_c_try_compile
"$LINENO"; then :
16796 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
16798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16806 if test x
$enable_cet = xyes
; then
16807 CET_FLAGS
="-fcf-protection -mshstk"
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16809 $as_echo "yes" >&6; }
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16812 $as_echo "no" >&6; }
16815 XCFLAGS
="$XCFLAGS $CET_FLAGS"
16816 FCFLAGS
="$FCFLAGS $CET_FLAGS"
16822 # Cleanup and exit.
16823 CFLAGS
="$save_CFLAGS"
16824 cat >confcache
<<\_ACEOF
16825 # This file is a shell script that caches the results of configure
16826 # tests run on this system so they can be shared between configure
16827 # scripts and configure runs, see configure's option --config-cache.
16828 # It is not useful on other systems. If it contains results you don't
16829 # want to keep, you may remove or edit it.
16831 # config.status only pays attention to the cache file if you give it
16832 # the --recheck option to rerun configure.
16834 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16835 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16836 # following values.
16840 # The following way of writing the cache mishandles newlines in values,
16841 # but we know of no workaround that is simple, portable, and efficient.
16842 # So, we kill variables containing newlines.
16843 # Ultrix sh set writes to stderr and can't be redirected directly,
16844 # and sets the high bit in the cache file unless we assign to the vars.
16846 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16847 eval ac_val
=\$
$ac_var
16851 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16852 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16855 _ | IFS | as_nl
) ;; #(
16856 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16857 *) { eval $ac_var=; unset $ac_var;} ;;
16863 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16864 *${as_nl}ac_space
=\
*)
16865 # `set' does not quote correctly, so add quotes: double-quote
16866 # substitution turns \\\\ into \\, and sed turns \\ into \.
16869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16872 # `set' quotes correctly as required by POSIX, so do not add quotes.
16873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16884 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16886 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16887 if test -w "$cache_file"; then
16888 if test "x$cache_file" != "x/dev/null"; then
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16890 $as_echo "$as_me: updating cache $cache_file" >&6;}
16891 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16892 cat confcache
>"$cache_file"
16894 case $cache_file in #(
16896 mv -f confcache
"$cache_file"$$
&&
16897 mv -f "$cache_file"$$
"$cache_file" ;; #(
16899 mv -f confcache
"$cache_file" ;;
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16905 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16910 if test ${multilib} = yes; then
16911 multilib_arg
="--enable-multilib"
16916 # Set up the set of libraries that we need to link against for libgomp.
16917 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16918 # which will force linkage against -lpthread (or equivalent for the system).
16919 # That's not 100% ideal, but about the best we can do easily.
16920 if test $enable_shared = yes; then
16921 link_gomp
="-lgomp %{static: $LIBS}"
16923 link_gomp
="-lgomp $LIBS"
16927 if test "$ac_cv_fc_compiler_gnu" = yes; then
16929 USE_FORTRAN_FALSE
='#'
16931 USE_FORTRAN_TRUE
='#'
16936 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16937 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16938 # the underscore here and update the PREREQ. If it doesn't, then we'll
16939 # need to copy this macro to our acinclude.m4.
16940 save_CFLAGS
="$CFLAGS"
16941 for i
in $config_path; do
16942 if test -f $srcdir/config
/$i/omp-lock.h
; then
16943 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16948 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16951 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16955 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16960 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16965 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16970 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16973 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16977 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16982 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16987 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16993 # If the lock fits in an integer, then arrange for Fortran to use that
16994 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16995 # Except that we don't have a way at present to multi-lib the installed
16996 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16998 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16999 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
17000 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17003 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17004 OMP_NEST_LOCK_KIND
=8
17006 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
17007 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
17008 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17011 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17012 OMP_NEST_LOCK_25_KIND
=8
17027 CFLAGS
="$save_CFLAGS"
17029 # Determine what GCC version number to use in filesystem paths.
17031 get_gcc_base_ver
="cat"
17033 # Check whether --with-gcc-major-version-only was given.
17034 if test "${with_gcc_major_version_only+set}" = set; then :
17035 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
17036 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
17044 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17046 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17048 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17050 ac_config_files
="$ac_config_files testsuite/libgomp-site-extra.exp"
17052 cat >confcache
<<\_ACEOF
17053 # This file is a shell script that caches the results of configure
17054 # tests run on this system so they can be shared between configure
17055 # scripts and configure runs, see configure's option --config-cache.
17056 # It is not useful on other systems. If it contains results you don't
17057 # want to keep, you may remove or edit it.
17059 # config.status only pays attention to the cache file if you give it
17060 # the --recheck option to rerun configure.
17062 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17063 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17064 # following values.
17068 # The following way of writing the cache mishandles newlines in values,
17069 # but we know of no workaround that is simple, portable, and efficient.
17070 # So, we kill variables containing newlines.
17071 # Ultrix sh set writes to stderr and can't be redirected directly,
17072 # and sets the high bit in the cache file unless we assign to the vars.
17074 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17075 eval ac_val
=\$
$ac_var
17079 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17083 _ | IFS | as_nl
) ;; #(
17084 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17085 *) { eval $ac_var=; unset $ac_var;} ;;
17091 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17092 *${as_nl}ac_space
=\
*)
17093 # `set' does not quote correctly, so add quotes: double-quote
17094 # substitution turns \\\\ into \\, and sed turns \\ into \.
17097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17100 # `set' quotes correctly as required by POSIX, so do not add quotes.
17101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17110 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17114 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17115 if test -w "$cache_file"; then
17116 if test "x$cache_file" != "x/dev/null"; then
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17118 $as_echo "$as_me: updating cache $cache_file" >&6;}
17119 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17120 cat confcache
>"$cache_file"
17122 case $cache_file in #(
17124 mv -f confcache
"$cache_file"$$
&&
17125 mv -f "$cache_file"$$
"$cache_file" ;; #(
17127 mv -f confcache
"$cache_file" ;;
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17133 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17138 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17139 # Let make expand exec_prefix.
17140 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17142 DEFS
=-DHAVE_CONFIG_H
17147 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17148 # 1. Remove the extension, and $U if already installed.
17149 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17150 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17152 # will be set to the directory where LIBOBJS objects are built.
17153 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17154 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17156 LIBOBJS
=$ac_libobjs
17158 LTLIBOBJS
=$ac_ltlibobjs
17161 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17162 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
17163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17166 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17167 if test -n "$am_sleep_pid"; then
17168 # Hide warnings about reused PIDs.
17169 wait $am_sleep_pid 2>/dev
/null
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17172 $as_echo "done" >&6; }
17173 if test -n "$EXEEXT"; then
17175 am__EXEEXT_FALSE
='#'
17177 am__EXEEXT_TRUE
='#'
17181 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17182 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17185 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17186 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17189 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17190 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
17191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17193 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17194 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17197 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17198 as_fn_error $?
"conditional \"PLUGIN_NVPTX\" was never defined.
17199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17201 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17202 as_fn_error $?
"conditional \"PLUGIN_HSA\" was never defined.
17203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17205 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17206 as_fn_error $?
"conditional \"PLUGIN_GCN\" was never defined.
17207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17209 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17210 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17213 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17214 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17217 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17218 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17221 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17222 as_fn_error $?
"conditional \"USE_FORTRAN\" was never defined.
17223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17226 : "${CONFIG_STATUS=./config.status}"
17228 ac_clean_files_save
=$ac_clean_files
17229 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17231 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17233 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17235 # Generated by $as_me.
17236 # Run this file to recreate the current configuration.
17237 # Compiler output produced by configure, useful for debugging
17238 # configure, is in config.log if it exists.
17241 ac_cs_recheck=false
17244 SHELL=\${CONFIG_SHELL-$SHELL}
17247 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17248 ## -------------------- ##
17249 ## M4sh Initialization. ##
17250 ## -------------------- ##
17252 # Be more Bourne compatible
17253 DUALCASE
=1; export DUALCASE
# for MKS sh
17254 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17257 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17258 # is contrary to our usage. Disable this feature.
17259 alias -g '${1+"$@"}'='"$@"'
17260 setopt NO_GLOB_SUBST
17262 case `(set -o) 2>/dev/null` in #(
17274 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17275 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17276 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17277 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17278 # Prefer a ksh shell builtin over an external printf program on Solaris,
17279 # but without wasting forks for bash or zsh.
17280 if test -z "$BASH_VERSION$ZSH_VERSION" \
17281 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17282 as_echo='print
-r --'
17283 as_echo_n='print
-rn --'
17284 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17285 as_echo='printf %s
\n'
17286 as_echo_n='printf %s
'
17288 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17289 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17290 as_echo_n='/usr
/ucb
/echo -n'
17292 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17293 as_echo_n_body='eval
17297 expr "X$arg" : "X\\(.*\\)$as_nl";
17298 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17300 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17302 export as_echo_n_body
17303 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17305 export as_echo_body
17306 as_echo='sh
-c $as_echo_body as_echo
'
17309 # The user is always right.
17310 if test "${PATH_SEPARATOR+set}" != set; then
17312 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17313 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17320 # We need space, tab and new line, in precisely that order. Quoting is
17321 # there to prevent editors from complaining about space-tab.
17322 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17323 # splitting by setting IFS to empty value.)
17326 # Find who we are. Look in the path if we contain no directory separator.
17329 *[\\/]* ) as_myself=$0 ;;
17330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17331 for as_dir in $PATH
17334 test -z "$as_dir" && as_dir=.
17335 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17341 # We did not find ourselves, most probably we were run as `sh COMMAND'
17342 # in which case we are not to be found in the path.
17343 if test "x$as_myself" = x
; then
17346 if test ! -f "$as_myself"; then
17347 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17351 # Unset variables that we do not need and which cause bugs (e.g. in
17352 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17353 # suppresses any "Segmentation fault" message there. '((' could
17354 # trigger a bug in pdksh 5.2.14.
17355 for as_var
in BASH_ENV ENV MAIL MAILPATH
17356 do eval test x\
${$as_var+set} = xset \
17357 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17370 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17373 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17374 # ----------------------------------------
17375 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17376 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17377 # script with STATUS, using 1 if that was 0.
17380 as_status
=$1; test $as_status -eq 0 && as_status
=1
17382 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17383 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17385 $as_echo "$as_me: error: $2" >&2
17386 as_fn_exit
$as_status
17390 # as_fn_set_status STATUS
17391 # -----------------------
17392 # Set $? to STATUS, without forking.
17393 as_fn_set_status
()
17396 } # as_fn_set_status
17398 # as_fn_exit STATUS
17399 # -----------------
17400 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17404 as_fn_set_status
$1
17410 # Portably unset VAR.
17413 { eval $1=; unset $1;}
17415 as_unset
=as_fn_unset
17416 # as_fn_append VAR VALUE
17417 # ----------------------
17418 # Append the text in VALUE to the end of the definition contained in VAR. Take
17419 # advantage of any shell optimizations that allow amortized linear growth over
17420 # repeated appends, instead of the typical quadratic growth present in naive
17422 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17423 eval 'as_fn_append ()
17434 # as_fn_arith ARG...
17435 # ------------------
17436 # Perform arithmetic evaluation on the ARGs, and store the result in the
17437 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17438 # must be portable across $(()) and expr.
17439 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17440 eval 'as_fn_arith ()
17447 as_val
=`expr "$@" || test $? -eq 1`
17452 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17453 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17459 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17460 as_basename
=basename
17465 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17471 as_me
=`$as_basename -- "$0" ||
17472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17473 X"$0" : 'X\(//\)$' \| \
17474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17476 sed '/^.*\/\([^/][^/]*\)\/*$/{
17490 # Avoid depending upon Character Ranges.
17491 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17492 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17493 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17494 as_cr_digits
='0123456789'
17495 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17497 ECHO_C
= ECHO_N
= ECHO_T
=
17498 case `echo -n x` in #(((((
17500 case `echo 'xy\c'` in
17501 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17503 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17510 rm -f conf$$ conf$$.exe conf$$.
file
17511 if test -d conf$$.dir
; then
17512 rm -f conf$$.dir
/conf$$.
file
17515 mkdir conf$$.dir
2>/dev
/null
17517 if (echo >conf$$.
file) 2>/dev
/null
; then
17518 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17520 # ... but there are two gotchas:
17521 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17522 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17523 # In both cases, we have to default to `cp -pR'.
17524 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17526 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17534 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17535 rmdir conf$$.dir
2>/dev
/null
17540 # Create "$as_dir" as a directory, including parents if necessary.
17545 -*) as_dir
=.
/$as_dir;;
17547 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17551 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17552 *) as_qdir
=$as_dir;;
17554 as_dirs
="'$as_qdir' $as_dirs"
17555 as_dir
=`$as_dirname -- "$as_dir" ||
17556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17557 X"$as_dir" : 'X\(//\)[^/]' \| \
17558 X"$as_dir" : 'X\(//\)$' \| \
17559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17560 $as_echo X"$as_dir" |
17561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17565 /^X\(\/\/\)[^/].*/{
17578 test -d "$as_dir" && break
17580 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17581 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17585 if mkdir
-p .
2>/dev
/null
; then
17586 as_mkdir_p
='mkdir -p "$as_dir"'
17588 test -d .
/-p && rmdir .
/-p
17593 # as_fn_executable_p FILE
17594 # -----------------------
17595 # Test if FILE is an executable regular file.
17596 as_fn_executable_p
()
17598 test -f "$1" && test -x "$1"
17599 } # as_fn_executable_p
17600 as_test_x
='test -x'
17601 as_executable_p
=as_fn_executable_p
17603 # Sed expression to map a string onto a valid CPP name.
17604 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17606 # Sed expression to map a string onto a valid variable name.
17607 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17611 ## ----------------------------------- ##
17612 ## Main body of $CONFIG_STATUS script. ##
17613 ## ----------------------------------- ##
17615 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17618 # Save the log message, to keep $0 and so on meaningful, and to
17619 # report actual input values of CONFIG_FILES etc. instead of their
17620 # values after options handling.
17622 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17623 generated by GNU Autoconf 2.69. Invocation command line was
17625 CONFIG_FILES = $CONFIG_FILES
17626 CONFIG_HEADERS = $CONFIG_HEADERS
17627 CONFIG_LINKS = $CONFIG_LINKS
17628 CONFIG_COMMANDS = $CONFIG_COMMANDS
17631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17636 case $ac_config_files in *"
17637 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17640 case $ac_config_headers in *"
17641 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17646 # Files that config.status was made for.
17647 config_files="$ac_config_files"
17648 config_headers="$ac_config_headers"
17649 config_commands="$ac_config_commands"
17653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17655 \`$as_me' instantiates files and other configuration actions
17656 from templates according to the current configuration. Unless the files
17657 and actions are specified as TAGs, all are instantiated by default.
17659 Usage: $0 [OPTION]... [TAG]...
17661 -h, --help print this help, then exit
17662 -V, --version print version number and configuration settings, then exit
17663 --config print configuration, then exit
17664 -q, --quiet, --silent
17665 do not print progress messages
17666 -d, --debug don't remove temporary files
17667 --recheck update $as_me by reconfiguring in the same conditions
17668 --file=FILE[:TEMPLATE]
17669 instantiate the configuration file FILE
17670 --header=FILE[:TEMPLATE]
17671 instantiate the configuration header FILE
17673 Configuration files:
17676 Configuration headers:
17679 Configuration commands:
17682 Report bugs to the package provider.
17683 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17684 General help using GNU software: <http://www.gnu.org/gethelp/>."
17687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17688 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17690 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17691 configured by $0, generated by GNU Autoconf 2.69,
17692 with options \\"\$ac_cs_config\\"
17694 Copyright (C) 2012 Free Software Foundation, Inc.
17695 This config.status script is free software; the Free Software Foundation
17696 gives unlimited permission to copy, distribute and modify it."
17703 test -n "\$AWK" || AWK=awk
17706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17707 # The default lists apply if the user does not specify any file.
17713 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17714 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17718 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17730 # Handling of the options.
17731 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17733 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17734 $as_echo "$ac_cs_version"; exit ;;
17735 --config |
--confi |
--conf |
--con |
--co |
--c )
17736 $as_echo "$ac_cs_config"; exit ;;
17737 --debug |
--debu |
--deb |
--de |
--d |
-d )
17739 --file |
--fil |
--fi |
--f )
17742 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17743 '') as_fn_error $?
"missing file argument" ;;
17745 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17746 ac_need_defaults
=false
;;
17747 --header |
--heade |
--head |
--hea )
17750 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17752 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17753 ac_need_defaults
=false
;;
17755 # Conflict between --help and --header
17756 as_fn_error $?
"ambiguous option: \`$1'
17757 Try \`$0 --help' for more information.";;
17758 --help |
--hel |
-h )
17759 $as_echo "$ac_cs_usage"; exit ;;
17760 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17761 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17764 # This is an error.
17765 -*) as_fn_error $?
"unrecognized option: \`$1'
17766 Try \`$0 --help' for more information." ;;
17768 *) as_fn_append ac_config_targets
" $1"
17769 ac_need_defaults
=false
;;
17775 ac_configure_extra_args
=
17777 if $ac_cs_silent; then
17779 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17784 if \$ac_cs_recheck; then
17785 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17787 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17788 CONFIG_SHELL='$SHELL'
17789 export CONFIG_SHELL
17794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17798 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17799 ## Running $as_me. ##
17805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17813 with_multisubdir="$with_multisubdir"
17814 with_multisrctop="$with_multisrctop"
17815 with_target_subdir="$with_target_subdir"
17816 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17817 multi_basedir="$multi_basedir"
17818 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17821 GFORTRAN="$GFORTRAN"
17823 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17826 # The HP-UX ksh and POSIX shell print the target directory to stdout
17827 # if CDPATH is set.
17828 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17830 sed_quote_subst='$sed_quote_subst'
17831 double_quote_subst='$double_quote_subst'
17832 delay_variable_subst='$delay_variable_subst'
17833 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17834 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17835 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17836 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17837 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17838 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17839 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17840 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17841 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17842 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17843 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17844 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17845 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17846 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17847 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17848 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17849 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17850 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17851 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17852 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17853 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17854 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17855 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17856 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17857 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17858 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17859 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17860 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17861 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17862 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17863 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17864 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17865 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17866 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17867 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17868 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17869 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17870 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17871 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17872 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17873 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17874 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17875 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17876 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17877 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17878 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17879 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17880 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17881 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"`'
17882 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17883 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17884 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17885 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17886 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17887 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17888 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17889 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17890 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17891 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17892 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17893 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17894 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17895 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17896 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17897 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17898 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17899 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17900 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17901 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17902 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17903 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17904 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17905 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17906 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17907 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17908 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17909 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17910 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17911 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17912 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17913 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17914 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17915 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17916 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17917 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17918 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17919 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17920 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17921 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17922 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17923 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17924 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17925 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17926 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17927 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17928 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17929 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17930 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17931 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17932 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17933 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17934 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17935 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17936 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17937 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17938 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17939 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17940 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17941 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17942 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17943 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17944 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17945 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17946 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17947 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17948 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17949 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17950 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17951 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17952 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17953 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17954 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17955 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17956 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17957 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17958 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17959 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17960 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17961 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17962 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17963 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17964 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17965 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17966 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17967 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17968 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17969 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17970 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17971 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17972 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17973 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17974 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17975 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17976 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17977 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17978 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17979 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17980 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17981 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17982 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17983 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17984 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17985 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17986 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17987 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17988 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17989 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17990 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17991 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17992 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17993 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17994 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17995 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17996 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17997 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17998 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17999 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18000 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18001 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18002 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18003 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18004 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18005 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18006 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18007 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18010 LTCFLAGS='$LTCFLAGS'
18011 compiler='$compiler_DEFAULT'
18013 # A function that is used when there is no print builtin or printf.
18014 func_fallback_echo ()
18016 eval 'cat <<_LTECHO_EOF
18021 # Quote evaled strings.
18035 deplibs_check_method \
18044 lt_cv_sys_global_symbol_pipe \
18045 lt_cv_sys_global_symbol_to_cdecl \
18046 lt_cv_sys_global_symbol_to_c_name_address \
18047 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18048 lt_prog_compiler_no_builtin_flag \
18049 lt_prog_compiler_wl \
18050 lt_prog_compiler_pic \
18051 lt_prog_compiler_static \
18052 lt_cv_prog_compiler_c_o \
18060 export_dynamic_flag_spec \
18061 whole_archive_flag_spec \
18062 compiler_needs_object \
18064 allow_undefined_flag \
18065 no_undefined_flag \
18066 hardcode_libdir_flag_spec \
18067 hardcode_libdir_flag_spec_ld \
18068 hardcode_libdir_separator \
18073 variables_saved_for_relink \
18075 library_names_spec \
18077 install_override_mode \
18081 compiler_lib_search_dirs \
18086 compiler_lib_search_path \
18090 lt_prog_compiler_no_builtin_flag_FC \
18091 lt_prog_compiler_wl_FC \
18092 lt_prog_compiler_pic_FC \
18093 lt_prog_compiler_static_FC \
18094 lt_cv_prog_compiler_c_o_FC \
18095 export_dynamic_flag_spec_FC \
18096 whole_archive_flag_spec_FC \
18097 compiler_needs_object_FC \
18099 allow_undefined_flag_FC \
18100 no_undefined_flag_FC \
18101 hardcode_libdir_flag_spec_FC \
18102 hardcode_libdir_flag_spec_ld_FC \
18103 hardcode_libdir_separator_FC \
18104 fix_srcfile_path_FC \
18105 exclude_expsyms_FC \
18106 include_expsyms_FC \
18107 file_list_spec_FC \
18108 compiler_lib_search_dirs_FC \
18109 predep_objects_FC \
18110 postdep_objects_FC \
18113 compiler_lib_search_path_FC; do
18114 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18115 *[\\\\\\\`\\"\\\$]*)
18116 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18119 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18124 # Double-quote double-evaled strings.
18125 for var in reload_cmds \
18126 old_postinstall_cmds \
18127 old_postuninstall_cmds \
18129 extract_expsyms_cmds \
18130 old_archive_from_new_cmds \
18131 old_archive_from_expsyms_cmds \
18133 archive_expsym_cmds \
18135 module_expsym_cmds \
18136 export_symbols_cmds \
18139 postuninstall_cmds \
18141 sys_lib_search_path_spec \
18142 sys_lib_dlsearch_path_spec \
18144 old_archive_cmds_FC \
18145 old_archive_from_new_cmds_FC \
18146 old_archive_from_expsyms_cmds_FC \
18148 archive_expsym_cmds_FC \
18150 module_expsym_cmds_FC \
18151 export_symbols_cmds_FC \
18152 prelink_cmds_FC; do
18153 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18154 *[\\\\\\\`\\"\\\$]*)
18155 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18158 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18163 ac_aux_dir='$ac_aux_dir'
18164 xsi_shell='$xsi_shell'
18165 lt_shell_append='$lt_shell_append'
18167 # See if we are running on zsh, and set the options which allow our
18168 # commands through without removal of \ escapes INIT.
18169 if test -n "\${ZSH_VERSION+set}" ; then
18170 setopt NO_GLOB_SUBST
18176 TIMESTAMP='$TIMESTAMP'
18187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18189 # Handling of arguments.
18190 for ac_config_target
in $ac_config_targets
18192 case $ac_config_target in
18193 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18194 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18195 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18196 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18197 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
18198 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
18199 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
18200 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
18201 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18202 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18203 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
18204 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18205 "testsuite/libgomp-site-extra.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18207 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18212 # If the user did not use the arguments to specify the items to instantiate,
18213 # then the envvar interface is used. Set only those that are not.
18214 # We use the long form for the default assignment because of an extremely
18215 # bizarre bug on SunOS 4.1.3.
18216 if $ac_need_defaults; then
18217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18218 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18219 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18222 # Have a temporary directory for convenience. Make it in the build tree
18223 # simply because there is no reason against having it here, and in addition,
18224 # creating and moving files from /tmp can sometimes cause problems.
18225 # Hook for its removal unless debugging.
18226 # Note that there is a small window in which the directory will not be cleaned:
18227 # after its creation but before its name has been assigned to `$tmp'.
18231 trap 'exit_status=$?
18232 : "${ac_tmp:=$tmp}"
18233 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18235 trap 'as_fn_exit 1' 1 2 13 15
18237 # Create a (secure) tmp directory for tmp files.
18240 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18244 tmp
=.
/conf$$
-$RANDOM
18245 (umask 077 && mkdir
"$tmp")
18246 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18249 # Set up the scripts for CONFIG_FILES section.
18250 # No need to generate them if there are no CONFIG_FILES.
18251 # This happens for instance with `./config.status config.h'.
18252 if test -n "$CONFIG_FILES"; then
18255 ac_cr
=`echo X | tr X '\015'`
18256 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18257 # But we know of no other shell where ac_cr would be empty at this
18258 # point, so we can use a bashism as a fallback.
18259 if test "x$ac_cr" = x
; then
18260 eval ac_cr
=\$
\'\\r
\'
18262 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18263 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18266 ac_cs_awk_cr
=$ac_cr
18269 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18274 echo "cat >conf$$subs.awk <<_ACEOF" &&
18275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18277 } >conf$$subs.sh ||
18278 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18279 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18281 for ac_last_try in false false false false false :; do
18282 . ./conf$$subs.sh ||
18283 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18285 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18286 if test $ac_delim_n = $ac_delim_num; then
18288 elif $ac_last_try; then
18289 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18291 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18294 rm -f conf$$subs.sh
18296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18297 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18301 s/^/S["/; s
/!.
*/"]=/
18311 s/\(.\{148\}\)..*/\1/
18313 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18318 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18325 s/\(.\{148\}\)..*/\1/
18327 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18331 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18336 ' <conf$$subs.awk | sed '
18341 ' >>$CONFIG_STATUS || ac_write_fail=1
18342 rm -f conf$$subs.awk
18343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18345 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18346 for (key in S) S_is_set[key] = 1
18352 nfields = split(line, field, "@
")
18354 len = length(field[1])
18355 for (i = 2; i < nfields; i++) {
18357 keylen = length(key)
18358 if (S_is_set[key]) {
18360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18361 len += length(value) + length(field[++i])
18372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18373 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18374 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18377 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18378 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18381 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18382 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18383 # trailing colons and then remove the whole line if VPATH becomes empty
18384 # (actually we leave an empty line to preserve line numbers).
18385 if test "x
$srcdir" = x.; then
18386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18405 fi # test -n "$CONFIG_FILES"
18407 # Set up the scripts for CONFIG_HEADERS section.
18408 # No need to generate them if there are no CONFIG_HEADERS.
18409 # This happens for instance with `./config.status Makefile'.
18410 if test -n "$CONFIG_HEADERS"; then
18411 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18415 # Transform confdefs.h into an awk script `defines.awk', embedded as
18416 # here-document in config.status, that substitutes the proper values into
18417 # config.h.in to produce config.h.
18419 # Create a delimiter string that does not exist in confdefs.h, to ease
18420 # handling of long lines.
18422 for ac_last_try in false false :; do
18423 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18424 if test -z "$ac_tt"; then
18426 elif $ac_last_try; then
18427 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18429 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18433 # For the awk script, D is an array of macro values keyed by name,
18434 # likewise P contains macro parameters if any. Preserve backslash
18435 # newline sequences.
18437 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18439 s/.\{148\}/&'"$ac_delim"'/g
18442 s/^[ ]*#[ ]*define[ ][ ]*/ /
18449 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18451 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18456 D["\
1"]=" \
3\\\\\\n
"\\/p
18458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18463 s/.\{148\}/&'"$ac_delim"'/g
18468 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18471 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18473 ' <confdefs.h | sed '
18474 s/'"$ac_delim"'/"\\\
18475 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18478 for (key in D) D_is_set[key] = 1
18481 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18483 split(line, arg, " ")
18484 if (arg[1] == "#") {
18488 defundef
= substr
(arg
[1], 2)
18491 split(mac1
, mac2
, "(") #)
18493 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18494 if (D_is_set
[macro
]) {
18495 # Preserve the white space surrounding the "#".
18496 print prefix
"define", macro P
[macro
] D
[macro
]
18499 # Replace #undef with comments. This is necessary, for example,
18500 # in the case of _POSIX_SOURCE, which is predefined and required
18501 # on some systems where configure will not decide to define it.
18502 if (defundef
== "undef") {
18503 print
"/*", prefix defundef
, macro
, "*/"
18511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18512 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18513 fi # test -n "$CONFIG_HEADERS"
18516 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18521 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18523 case $ac_mode$ac_tag in
18525 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18526 :[FH
]-) ac_tag
=-:-;;
18527 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18544 -) ac_f
="$ac_tmp/stdin";;
18545 *) # Look for the file first in the build tree, then in the source tree
18546 # (if the path is not absolute). The absolute path cannot be DOS-style,
18547 # because $ac_f cannot contain `:'.
18551 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18553 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18555 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18556 as_fn_append ac_file_inputs
" '$ac_f'"
18559 # Let's still pretend it is `configure' which instantiates (i.e., don't
18560 # use $as_me), people would be surprised to read:
18561 # /* config.h. Generated by config.status. */
18562 configure_input
='Generated from '`
18563 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18565 if test x
"$ac_file" != x-
; then
18566 configure_input
="$ac_file. $configure_input"
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18568 $as_echo "$as_me: creating $ac_file" >&6;}
18570 # Neutralize special characters interpreted by sed in replacement strings.
18571 case $configure_input in #(
18572 *\
&* |
*\|
* |
*\\* )
18573 ac_sed_conf_input
=`$as_echo "$configure_input" |
18574 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18575 *) ac_sed_conf_input
=$configure_input;;
18579 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18580 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18585 ac_dir
=`$as_dirname -- "$ac_file" ||
18586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18587 X"$ac_file" : 'X\(//\)[^/]' \| \
18588 X"$ac_file" : 'X\(//\)$' \| \
18589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18590 $as_echo X"$ac_file" |
18591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18595 /^X\(\/\/\)[^/].*/{
18608 as_dir
="$ac_dir"; as_fn_mkdir_p
18612 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18614 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18615 # A ".." for each directory in $ac_dir_suffix.
18616 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18617 case $ac_top_builddir_sub in
18618 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18619 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18622 ac_abs_top_builddir
=$ac_pwd
18623 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18624 # for backward compatibility:
18625 ac_top_builddir
=$ac_top_build_prefix
18628 .
) # We are building in place.
18630 ac_top_srcdir
=$ac_top_builddir_sub
18631 ac_abs_top_srcdir
=$ac_pwd ;;
18632 [\\/]* | ?
:[\\/]* ) # Absolute name.
18633 ac_srcdir
=$srcdir$ac_dir_suffix;
18634 ac_top_srcdir
=$srcdir
18635 ac_abs_top_srcdir
=$srcdir ;;
18636 *) # Relative name.
18637 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18638 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18639 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18641 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18651 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18652 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18654 ac_MKDIR_P
=$MKDIR_P
18656 [\\/$
]* | ?
:[\\/]* ) ;;
18657 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18662 # If the template does not know about datarootdir, expand it.
18663 # FIXME: This hack should be removed a few years after 2.60.
18664 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18675 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18676 *datarootdir
*) ac_datarootdir_seen
=yes;;
18677 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18679 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18682 ac_datarootdir_hack='
18683 s&@datadir@&$datadir&g
18684 s&@docdir@&$docdir&g
18685 s&@infodir@&$infodir&g
18686 s&@localedir@&$localedir&g
18687 s&@mandir@&$mandir&g
18688 s&\\\${datarootdir}&$datarootdir&g' ;;
18692 # Neutralize VPATH when `$srcdir' = `.'.
18693 # Shell code in configure.ac might set extrasub.
18694 # FIXME: do we really want to maintain this feature?
18695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18696 ac_sed_extra="$ac_vpsub
18699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18701 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18702 s|@configure_input@|
$ac_sed_conf_input|
;t t
18703 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18704 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18705 s
&@srcdir@
&$ac_srcdir&;t t
18706 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18707 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18708 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18709 s
&@builddir@
&$ac_builddir&;t t
18710 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18711 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18712 s
&@INSTALL@
&$ac_INSTALL&;t t
18713 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18714 $ac_datarootdir_hack
18716 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18717 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18720 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18722 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18724 which seems to be undefined. Please make sure it is defined" >&5
18725 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18726 which seems to be undefined. Please make sure it is defined" >&2;}
18728 rm -f "$ac_tmp/stdin"
18730 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18731 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18739 if test x"$ac_file" != x-; then
18741 $as_echo "/* $configure_input */" \
18742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18743 } >"$ac_tmp/config.h" \
18744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18745 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18747 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18750 mv "$ac_tmp/config.h" "$ac_file" \
18751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18754 $as_echo "/* $configure_input */" \
18755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18756 || as_fn_error $? "could not create -" "$LINENO" 5
18758 # Compute "$ac_file"'s index
in $config_headers.
18761 for _am_header
in $config_headers :; do
18762 case $_am_header in
18763 $_am_arg |
$_am_arg:* )
18766 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18769 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18770 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18771 X"$_am_arg" : 'X\(//\)[^/]' \| \
18772 X"$_am_arg" : 'X\(//\)$' \| \
18773 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18774 $as_echo X"$_am_arg" |
18775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18779 /^X\(\/\/\)[^/].*/{
18791 s/.*/./; q'`/stamp-h
$_am_stamp_count
18794 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18795 $as_echo "$as_me: executing $ac_file commands" >&6;}
18800 case $ac_file$ac_mode in
18802 # Only add multilib support code if we just rebuilt the top-level
18804 case " $CONFIG_FILES " in
18806 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18809 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18810 # Older Autoconf quotes --file arguments for eval, but not when files
18811 # are listed without --file. Let's play safe and only enable the eval
18812 # if we detect the quoting.
18813 case $CONFIG_FILES in
18814 *\'*) eval set x
"$CONFIG_FILES" ;;
18815 *) set x
$CONFIG_FILES ;;
18820 # Strip MF so we end up with the name of the file.
18821 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18822 # Check whether this is an Automake generated Makefile or not.
18823 # We used to match only the files named 'Makefile.in', but
18824 # some people rename them; so instead we look at the file content.
18825 # Grep'ing the first line is not enough: some people post-process
18826 # each Makefile.in and add a new line on top of each file to say so.
18827 # Grep'ing the whole file is not good either: AIX grep has a line
18828 # limit of 2048, but all sed's we know have understand at least 4000.
18829 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18830 dirpart
=`$as_dirname -- "$mf" ||
18831 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18832 X"$mf" : 'X\(//\)[^/]' \| \
18833 X"$mf" : 'X\(//\)$' \| \
18834 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18840 /^X\(\/\/\)[^/].*/{
18856 # Extract the definition of DEPDIR, am__include, and am__quote
18857 # from the Makefile without running 'make'.
18858 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18859 test -z "$DEPDIR" && continue
18860 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18861 test -z "$am__include" && continue
18862 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18863 # Find all dependency output files, they are included files with
18864 # $(DEPDIR) in their names. We invoke sed twice because it is the
18865 # simplest approach to changing $(DEPDIR) to its actual value in the
18867 for file in `sed -n "
18868 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18869 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18870 # Make sure the directory exists.
18871 test -f "$dirpart/$file" && continue
18872 fdir
=`$as_dirname -- "$file" ||
18873 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18874 X"$file" : 'X\(//\)[^/]' \| \
18875 X"$file" : 'X\(//\)$' \| \
18876 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18877 $as_echo X"$file" |
18878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18882 /^X\(\/\/\)[^/].*/{
18895 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18896 # echo "creating $dirpart/$file"
18897 echo '# dummy' > "$dirpart/$file"
18904 # See if we are running on zsh, and set the options which allow our
18905 # commands through without removal of \ escapes.
18906 if test -n "${ZSH_VERSION+set}" ; then
18907 setopt NO_GLOB_SUBST
18910 cfgfile
="${ofile}T"
18911 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18914 cat <<_LT_EOF >> "$cfgfile"
18917 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18918 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18919 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18920 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18922 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18923 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18924 # Written by Gordon Matzigkeit, 1996
18926 # This file is part of GNU Libtool.
18928 # GNU Libtool is free software; you can redistribute it and/or
18929 # modify it under the terms of the GNU General Public License as
18930 # published by the Free Software Foundation; either version 2 of
18931 # the License, or (at your option) any later version.
18933 # As a special exception to the GNU General Public License,
18934 # if you distribute this file as part of a program or library that
18935 # is built using GNU Libtool, you may include this file under the
18936 # same distribution terms that you use for the rest of that program.
18938 # GNU Libtool is distributed in the hope that it will be useful,
18939 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18941 # GNU General Public License for more details.
18943 # You should have received a copy of the GNU General Public License
18944 # along with GNU Libtool; see the file COPYING. If not, a copy
18945 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18946 # obtained by writing to the Free Software Foundation, Inc.,
18947 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18950 # The names of the tagged configurations supported by this script.
18951 available_tags="FC "
18953 # ### BEGIN LIBTOOL CONFIG
18955 # Which release of libtool.m4 was used?
18956 macro_version=$macro_version
18957 macro_revision=$macro_revision
18959 # Whether or not to build shared libraries.
18960 build_libtool_libs=$enable_shared
18962 # Whether or not to build static libraries.
18963 build_old_libs=$enable_static
18965 # What type of objects to build.
18968 # Whether or not to optimize for fast installation.
18969 fast_install=$enable_fast_install
18971 # Shell to use when invoking shell scripts.
18974 # An echo program that protects backslashes.
18978 host_alias=$host_alias
18982 # The build system.
18983 build_alias=$build_alias
18987 # A sed program that does not truncate output.
18990 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18991 Xsed="\$SED -e 1s/^X//"
18993 # A grep program that handles long lines.
18999 # A literal string matcher.
19002 # A BSD- or MS-compatible name lister.
19005 # Whether we need soft or hard links.
19008 # What is the maximum length of a command?
19009 max_cmd_len=$max_cmd_len
19011 # Object file suffix (normally "o").
19014 # Executable file suffix (normally "").
19017 # whether the shell understands "unset".
19020 # turn spaces into newlines.
19023 # turn newlines into spaces.
19026 # An object symbol dumper.
19027 OBJDUMP=$lt_OBJDUMP
19029 # Method to check whether dependent libraries are shared objects.
19030 deplibs_check_method=$lt_deplibs_check_method
19032 # Command to use when deplibs_check_method == "file_magic".
19033 file_magic_cmd=$lt_file_magic_cmd
19037 AR_FLAGS=$lt_AR_FLAGS
19039 # A symbol stripping program.
19042 # Commands used to install an old-style archive.
19044 old_postinstall_cmds=$lt_old_postinstall_cmds
19045 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19047 # Whether to use a lock for old archive extraction.
19048 lock_old_archive_extraction=$lock_old_archive_extraction
19053 # LTCC compiler flags.
19054 LTCFLAGS=$lt_CFLAGS
19056 # Take the output of nm and produce a listing of raw symbols and C names.
19057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19059 # Transform the output of nm in a proper C declaration.
19060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19062 # Transform the output of nm in a C name address pair.
19063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19065 # Transform the output of nm in a C name address pair when lib prefix is needed.
19066 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19068 # The name of the directory that contains temporary libtool files.
19071 # Used to examine libraries when file_magic_cmd begins with "file".
19072 MAGIC_CMD=$MAGIC_CMD
19074 # Must we lock files when doing compilation?
19075 need_locks=$lt_need_locks
19077 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19078 DSYMUTIL=$lt_DSYMUTIL
19080 # Tool to change global to local symbols on Mac OS X.
19083 # Tool to manipulate fat objects and archives on Mac OS X.
19086 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19089 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19090 OTOOL64=$lt_OTOOL64
19092 # Old archive suffix (normally "a").
19095 # Shared library suffix (normally ".so").
19096 shrext_cmds=$lt_shrext_cmds
19098 # The commands to extract the exported symbol list from a shared archive.
19099 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19101 # Variables whose values should be saved in libtool wrapper scripts and
19102 # restored at link time.
19103 variables_saved_for_relink=$lt_variables_saved_for_relink
19105 # Do we need the "lib" prefix for modules?
19106 need_lib_prefix=$need_lib_prefix
19108 # Do we need a version for libraries?
19109 need_version=$need_version
19111 # Library versioning type.
19112 version_type=$version_type
19114 # Shared library runtime path variable.
19115 runpath_var=$runpath_var
19117 # Shared library path variable.
19118 shlibpath_var=$shlibpath_var
19120 # Is shlibpath searched before the hard-coded library search path?
19121 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19123 # Format of library name prefix.
19124 libname_spec=$lt_libname_spec
19126 # List of archive names. First name is the real one, the rest are links.
19127 # The last name is the one that the linker finds with -lNAME
19128 library_names_spec=$lt_library_names_spec
19130 # The coded name of the library, if different from the real name.
19131 soname_spec=$lt_soname_spec
19133 # Permission mode override for installation of shared libraries.
19134 install_override_mode=$lt_install_override_mode
19136 # Command to use after installation of a shared archive.
19137 postinstall_cmds=$lt_postinstall_cmds
19139 # Command to use after uninstallation of a shared archive.
19140 postuninstall_cmds=$lt_postuninstall_cmds
19142 # Commands used to finish a libtool library installation in a directory.
19143 finish_cmds=$lt_finish_cmds
19145 # As "finish_cmds", except a single script fragment to be evaled but
19147 finish_eval=$lt_finish_eval
19149 # Whether we should hardcode library paths into libraries.
19150 hardcode_into_libs=$hardcode_into_libs
19152 # Compile-time system search path for libraries.
19153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19155 # Run-time system search path for libraries.
19156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19158 # Whether dlopen is supported.
19159 dlopen_support=$enable_dlopen
19161 # Whether dlopen of programs is supported.
19162 dlopen_self=$enable_dlopen_self
19164 # Whether dlopen of statically linked programs is supported.
19165 dlopen_self_static=$enable_dlopen_self_static
19167 # Commands to strip libraries.
19168 old_striplib=$lt_old_striplib
19169 striplib=$lt_striplib
19172 # The linker used to build libraries.
19175 # How to create reloadable object files.
19176 reload_flag=$lt_reload_flag
19177 reload_cmds=$lt_reload_cmds
19179 # Commands used to build an old-style archive.
19180 old_archive_cmds=$lt_old_archive_cmds
19182 # A language specific compiler.
19185 # Is the compiler the GNU compiler?
19188 # Compiler flag to turn off builtin functions.
19189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19191 # How to pass a linker flag through the compiler.
19192 wl=$lt_lt_prog_compiler_wl
19194 # Additional compiler flags for building library objects.
19195 pic_flag=$lt_lt_prog_compiler_pic
19197 # Compiler flag to prevent dynamic linking.
19198 link_static_flag=$lt_lt_prog_compiler_static
19200 # Does compiler simultaneously support -c and -o options?
19201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19203 # Whether or not to add -lc for building shared libraries.
19204 build_libtool_need_lc=$archive_cmds_need_lc
19206 # Whether or not to disallow shared libs when runtime libs are static.
19207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19209 # Compiler flag to allow reflexive dlopens.
19210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19212 # Compiler flag to generate shared objects directly from archives.
19213 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19215 # Whether the compiler copes with passing no objects directly.
19216 compiler_needs_object=$lt_compiler_needs_object
19218 # Create an old-style archive from a shared archive.
19219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19221 # Create a temporary old-style archive to link instead of a shared archive.
19222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19224 # Commands used to build a shared archive.
19225 archive_cmds=$lt_archive_cmds
19226 archive_expsym_cmds=$lt_archive_expsym_cmds
19228 # Commands used to build a loadable module if different from building
19229 # a shared archive.
19230 module_cmds=$lt_module_cmds
19231 module_expsym_cmds=$lt_module_expsym_cmds
19233 # Whether we are building with GNU ld or not.
19234 with_gnu_ld=$lt_with_gnu_ld
19236 # Flag that allows shared libraries with undefined symbols to be built.
19237 allow_undefined_flag=$lt_allow_undefined_flag
19239 # Flag that enforces no undefined symbols.
19240 no_undefined_flag=$lt_no_undefined_flag
19242 # Flag to hardcode \$libdir into a binary during linking.
19243 # This must work even if \$libdir does not exist
19244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19246 # If ld is used when linking, flag to hardcode \$libdir into a binary
19247 # during linking. This must work even if \$libdir does not exist.
19248 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19250 # Whether we need a single "-rpath" flag with a separated argument.
19251 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19253 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19254 # DIR into the resulting binary.
19255 hardcode_direct=$hardcode_direct
19257 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19258 # DIR into the resulting binary and the resulting library dependency is
19259 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19260 # library is relocated.
19261 hardcode_direct_absolute=$hardcode_direct_absolute
19263 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19264 # into the resulting binary.
19265 hardcode_minus_L=$hardcode_minus_L
19267 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19268 # into the resulting binary.
19269 hardcode_shlibpath_var=$hardcode_shlibpath_var
19271 # Set to "yes" if building a shared library automatically hardcodes DIR
19272 # into the library and all subsequent libraries and executables linked
19274 hardcode_automatic=$hardcode_automatic
19276 # Set to yes if linker adds runtime paths of dependent libraries
19277 # to runtime path list.
19278 inherit_rpath=$inherit_rpath
19280 # Whether libtool must link a program against all its dependency libraries.
19281 link_all_deplibs=$link_all_deplibs
19283 # Fix the shell variable \$srcfile for the compiler.
19284 fix_srcfile_path=$lt_fix_srcfile_path
19286 # Set to "yes" if exported symbols are required.
19287 always_export_symbols=$always_export_symbols
19289 # The commands to list exported symbols.
19290 export_symbols_cmds=$lt_export_symbols_cmds
19292 # Symbols that should not be listed in the preloaded symbols.
19293 exclude_expsyms=$lt_exclude_expsyms
19295 # Symbols that must always be exported.
19296 include_expsyms=$lt_include_expsyms
19298 # Commands necessary for linking programs (against libraries) with templates.
19299 prelink_cmds=$lt_prelink_cmds
19301 # Specify filename containing input files.
19302 file_list_spec=$lt_file_list_spec
19304 # How to hardcode a shared library path into an executable.
19305 hardcode_action=$hardcode_action
19307 # The directories searched by this compiler when creating a shared library.
19308 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19310 # Dependencies to place before and after the objects being linked to
19311 # create a shared library.
19312 predep_objects=$lt_predep_objects
19313 postdep_objects=$lt_postdep_objects
19314 predeps=$lt_predeps
19315 postdeps=$lt_postdeps
19317 # The library search path used internally by the compiler when linking
19318 # a shared library.
19319 compiler_lib_search_path=$lt_compiler_lib_search_path
19321 # ### END LIBTOOL CONFIG
19327 cat <<\_LT_EOF
>> "$cfgfile"
19328 # AIX sometimes has problems with the GCC collect2 program. For some
19329 # reason, if we set the COLLECT_NAMES environment variable, the problems
19330 # vanish in a puff of smoke.
19331 if test "X${COLLECT_NAMES+set}" != Xset
; then
19333 export COLLECT_NAMES
19340 ltmain
="$ac_aux_dir/ltmain.sh"
19343 # We use sed instead of cat because bash on DJGPP gets confused if
19344 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19345 # text mode, it properly converts lines to CR/LF. This bash problem
19346 # is reportedly fixed, but why not run on old versions too?
19347 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19348 ||
(rm -f "$cfgfile"; exit 1)
19352 cat << \_LT_EOF
>> "$cfgfile"
19354 # func_dirname file append nondir_replacement
19355 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19356 # otherwise set result to NONDIR_REPLACEMENT.
19360 */*) func_dirname_result
="${1%/*}${2}" ;;
19361 * ) func_dirname_result
="${3}" ;;
19365 # func_basename file
19368 func_basename_result
="${1##*/}"
19371 # func_dirname_and_basename file append nondir_replacement
19372 # perform func_basename and func_dirname in a single function
19374 # dirname: Compute the dirname of FILE. If nonempty,
19375 # add APPEND to the result, otherwise set result
19376 # to NONDIR_REPLACEMENT.
19377 # value returned in "$func_dirname_result"
19378 # basename: Compute filename of FILE.
19379 # value retuned in "$func_basename_result"
19380 # Implementation must be kept synchronized with func_dirname
19381 # and func_basename. For efficiency, we do not delegate to
19382 # those functions but instead duplicate the functionality here.
19383 func_dirname_and_basename
()
19386 */*) func_dirname_result
="${1%/*}${2}" ;;
19387 * ) func_dirname_result
="${3}" ;;
19389 func_basename_result
="${1##*/}"
19392 # func_stripname prefix suffix name
19393 # strip PREFIX and SUFFIX off of NAME.
19394 # PREFIX and SUFFIX must not contain globbing or regex special
19395 # characters, hashes, percent signs, but SUFFIX may contain a leading
19396 # dot (in which case that matches only a dot).
19399 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19400 # positional parameters, so assign one to ordinary parameter first.
19401 func_stripname_result
=${3}
19402 func_stripname_result
=${func_stripname_result#"${1}"}
19403 func_stripname_result
=${func_stripname_result%"${2}"}
19409 func_opt_split_opt
=${1%%=*}
19410 func_opt_split_arg
=${1#*=}
19417 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19418 *) func_lo2o_result
=${1} ;;
19422 # func_xform libobj-or-source
19425 func_xform_result
=${1%.*}.lo
19428 # func_arith arithmetic-term...
19431 func_arith_result
=$
(( $
* ))
19435 # STRING may not start with a hyphen.
19438 func_len_result
=${#1}
19443 *) # Bourne compatible functions.
19444 cat << \_LT_EOF
>> "$cfgfile"
19446 # func_dirname file append nondir_replacement
19447 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19448 # otherwise set result to NONDIR_REPLACEMENT.
19451 # Extract subdirectory from the argument.
19452 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19453 if test "X$func_dirname_result" = "X${1}"; then
19454 func_dirname_result
="${3}"
19456 func_dirname_result
="$func_dirname_result${2}"
19460 # func_basename file
19463 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19467 # func_stripname prefix suffix name
19468 # strip PREFIX and SUFFIX off of NAME.
19469 # PREFIX and SUFFIX must not contain globbing or regex special
19470 # characters, hashes, percent signs, but SUFFIX may contain a leading
19471 # dot (in which case that matches only a dot).
19472 # func_strip_suffix prefix name
19476 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19477 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19482 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19483 my_sed_long_arg
='1s/^-[^=]*=//'
19488 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19489 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19495 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19498 # func_xform libobj-or-source
19501 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19504 # func_arith arithmetic-term...
19507 func_arith_result
=`expr "$@"`
19511 # STRING may not start with a hyphen.
19514 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19520 case $lt_shell_append in
19522 cat << \_LT_EOF
>> "$cfgfile"
19524 # func_append var value
19525 # Append VALUE to the end of shell variable VAR.
19533 cat << \_LT_EOF
>> "$cfgfile"
19535 # func_append var value
19536 # Append VALUE to the end of shell variable VAR.
19547 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19548 ||
(rm -f "$cfgfile"; exit 1)
19550 mv -f "$cfgfile" "$ofile" ||
19551 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19555 cat <<_LT_EOF >> "$ofile"
19557 # ### BEGIN LIBTOOL TAG CONFIG: FC
19559 # The linker used to build libraries.
19562 # How to create reloadable object files.
19563 reload_flag=$lt_reload_flag_FC
19564 reload_cmds=$lt_reload_cmds_FC
19566 # Commands used to build an old-style archive.
19567 old_archive_cmds=$lt_old_archive_cmds_FC
19569 # A language specific compiler.
19572 # Is the compiler the GNU compiler?
19575 # Compiler flag to turn off builtin functions.
19576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19578 # How to pass a linker flag through the compiler.
19579 wl=$lt_lt_prog_compiler_wl_FC
19581 # Additional compiler flags for building library objects.
19582 pic_flag=$lt_lt_prog_compiler_pic_FC
19584 # Compiler flag to prevent dynamic linking.
19585 link_static_flag=$lt_lt_prog_compiler_static_FC
19587 # Does compiler simultaneously support -c and -o options?
19588 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19590 # Whether or not to add -lc for building shared libraries.
19591 build_libtool_need_lc=$archive_cmds_need_lc_FC
19593 # Whether or not to disallow shared libs when runtime libs are static.
19594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19596 # Compiler flag to allow reflexive dlopens.
19597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19599 # Compiler flag to generate shared objects directly from archives.
19600 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19602 # Whether the compiler copes with passing no objects directly.
19603 compiler_needs_object=$lt_compiler_needs_object_FC
19605 # Create an old-style archive from a shared archive.
19606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19608 # Create a temporary old-style archive to link instead of a shared archive.
19609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19611 # Commands used to build a shared archive.
19612 archive_cmds=$lt_archive_cmds_FC
19613 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19615 # Commands used to build a loadable module if different from building
19616 # a shared archive.
19617 module_cmds=$lt_module_cmds_FC
19618 module_expsym_cmds=$lt_module_expsym_cmds_FC
19620 # Whether we are building with GNU ld or not.
19621 with_gnu_ld=$lt_with_gnu_ld_FC
19623 # Flag that allows shared libraries with undefined symbols to be built.
19624 allow_undefined_flag=$lt_allow_undefined_flag_FC
19626 # Flag that enforces no undefined symbols.
19627 no_undefined_flag=$lt_no_undefined_flag_FC
19629 # Flag to hardcode \$libdir into a binary during linking.
19630 # This must work even if \$libdir does not exist
19631 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19633 # If ld is used when linking, flag to hardcode \$libdir into a binary
19634 # during linking. This must work even if \$libdir does not exist.
19635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19637 # Whether we need a single "-rpath" flag with a separated argument.
19638 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19640 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19641 # DIR into the resulting binary.
19642 hardcode_direct=$hardcode_direct_FC
19644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19645 # DIR into the resulting binary and the resulting library dependency is
19646 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19647 # library is relocated.
19648 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19650 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19651 # into the resulting binary.
19652 hardcode_minus_L=$hardcode_minus_L_FC
19654 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19655 # into the resulting binary.
19656 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19658 # Set to "yes" if building a shared library automatically hardcodes DIR
19659 # into the library and all subsequent libraries and executables linked
19661 hardcode_automatic=$hardcode_automatic_FC
19663 # Set to yes if linker adds runtime paths of dependent libraries
19664 # to runtime path list.
19665 inherit_rpath=$inherit_rpath_FC
19667 # Whether libtool must link a program against all its dependency libraries.
19668 link_all_deplibs=$link_all_deplibs_FC
19670 # Fix the shell variable \$srcfile for the compiler.
19671 fix_srcfile_path=$lt_fix_srcfile_path_FC
19673 # Set to "yes" if exported symbols are required.
19674 always_export_symbols=$always_export_symbols_FC
19676 # The commands to list exported symbols.
19677 export_symbols_cmds=$lt_export_symbols_cmds_FC
19679 # Symbols that should not be listed in the preloaded symbols.
19680 exclude_expsyms=$lt_exclude_expsyms_FC
19682 # Symbols that must always be exported.
19683 include_expsyms=$lt_include_expsyms_FC
19685 # Commands necessary for linking programs (against libraries) with templates.
19686 prelink_cmds=$lt_prelink_cmds_FC
19688 # Specify filename containing input files.
19689 file_list_spec=$lt_file_list_spec_FC
19691 # How to hardcode a shared library path into an executable.
19692 hardcode_action=$hardcode_action_FC
19694 # The directories searched by this compiler when creating a shared library.
19695 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19697 # Dependencies to place before and after the objects being linked to
19698 # create a shared library.
19699 predep_objects=$lt_predep_objects_FC
19700 postdep_objects=$lt_postdep_objects_FC
19701 predeps=$lt_predeps_FC
19702 postdeps=$lt_postdeps_FC
19704 # The library search path used internally by the compiler when linking
19705 # a shared library.
19706 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19708 # ### END LIBTOOL TAG CONFIG: FC
19719 ac_clean_files
=$ac_clean_files_save
19721 test $ac_write_fail = 0 ||
19722 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19725 # configure is writing to config.log, and then calls config.status.
19726 # config.status does its own redirection, appending to config.log.
19727 # Unfortunately, on DOS this fails, as config.log is still kept open
19728 # by configure, so config.status won't be able to write to it; its
19729 # output is simply discarded. So we exec the FD to /dev/null,
19730 # effectively closing config.log, so it can be properly (re)opened and
19731 # appended to by config.status. When coming back to configure, we
19732 # need to make the FD available again.
19733 if test "$no_create" != yes; then
19735 ac_config_status_args
=
19736 test "$silent" = yes &&
19737 ac_config_status_args
="$ac_config_status_args --quiet"
19739 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19741 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19742 # would make configure fail if this is the last instruction.
19743 $ac_cs_success || as_fn_exit
1
19745 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19747 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}