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
639 OMP_NEST_LOCK_25_KIND
641 OMP_NEST_LOCK_25_ALIGN
642 OMP_NEST_LOCK_25_SIZE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
663 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
664 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
665 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
672 offload_additional_lib_paths
673 offload_additional_options
684 PLUGIN_NVPTX_CPPFLAGS
693 MAINTAINER_MODE_FALSE
752 INSTALL_STRIP_PROGRAM
808 program_transform_name
821 enable_option_checking
822 enable_version_specific_runtime_libs
823 enable_generated_files_in_srcdir
827 enable_dependency_tracking
834 enable_maintainer_mode
836 with_cuda_driver_include
839 with_hsa_runtime_include
845 with_gcc_major_version_only
847 ac_precious_vars
='build_alias
858 # Initialize some variables set by options.
860 ac_init_version
=false
861 ac_unrecognized_opts
=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
872 program_transform_name
=s
,x
,x
,
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir
='${exec_prefix}/bin'
887 sbindir
='${exec_prefix}/sbin'
888 libexecdir
='${exec_prefix}/libexec'
889 datarootdir
='${prefix}/share'
890 datadir
='${datarootdir}'
891 sysconfdir
='${prefix}/etc'
892 sharedstatedir
='${prefix}/com'
893 localstatedir
='${prefix}/var'
894 includedir
='${prefix}/include'
895 oldincludedir
='/usr/include'
896 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir
='${datarootdir}/info'
902 libdir
='${exec_prefix}/lib'
903 localedir
='${datarootdir}/locale'
904 mandir
='${datarootdir}/man'
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\
$ac_option
918 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 # Accept the important Cygnus configure options, so we can diagnose typos.
925 case $ac_dashdash$ac_option in
929 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
931 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
934 -build |
--build |
--buil |
--bui |
--bu)
935 ac_prev
=build_alias
;;
936 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
937 build_alias
=$ac_optarg ;;
939 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
940 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
941 ac_prev
=cache_file
;;
942 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
943 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
944 cache_file
=$ac_optarg ;;
947 cache_file
=config.cache
;;
949 -datadir |
--datadir |
--datadi |
--datad)
951 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
952 datadir
=$ac_optarg ;;
954 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
955 |
--dataroo |
--dataro |
--datar)
956 ac_prev
=datarootdir
;;
957 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
958 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
959 datarootdir
=$ac_optarg ;;
961 -disable-* |
--disable-*)
962 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
965 as_fn_error $?
"invalid feature name: $ac_useropt"
966 ac_useropt_orig
=$ac_useropt
967 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
972 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep
=', ';;
975 eval enable_
$ac_useropt=no
;;
977 -docdir |
--docdir |
--docdi |
--doc |
--do)
979 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
982 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
984 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
987 -enable-* |
--enable-*)
988 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
991 as_fn_error $?
"invalid feature name: $ac_useropt"
992 ac_useropt_orig
=$ac_useropt
993 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
998 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep
=', ';;
1001 eval enable_
$ac_useropt=\
$ac_optarg ;;
1003 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1004 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1005 |
--exec |
--exe |
--ex)
1006 ac_prev
=exec_prefix
;;
1007 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1008 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1009 |
--exec=* |
--exe=* |
--ex=*)
1010 exec_prefix
=$ac_optarg ;;
1012 -gas |
--gas |
--ga |
--g)
1013 # Obsolete; use --with-gas.
1016 -help |
--help |
--hel |
--he |
-h)
1017 ac_init_help
=long
;;
1018 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1019 ac_init_help
=recursive
;;
1020 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1021 ac_init_help
=short
;;
1023 -host |
--host |
--hos |
--ho)
1024 ac_prev
=host_alias
;;
1025 -host=* |
--host=* |
--hos=* |
--ho=*)
1026 host_alias
=$ac_optarg ;;
1028 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1030 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1032 htmldir
=$ac_optarg ;;
1034 -includedir |
--includedir |
--includedi |
--included |
--include \
1035 |
--includ |
--inclu |
--incl |
--inc)
1036 ac_prev
=includedir
;;
1037 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1038 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1039 includedir
=$ac_optarg ;;
1041 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1043 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1044 infodir
=$ac_optarg ;;
1046 -libdir |
--libdir |
--libdi |
--libd)
1048 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1049 libdir
=$ac_optarg ;;
1051 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1052 |
--libexe |
--libex |
--libe)
1053 ac_prev
=libexecdir
;;
1054 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1055 |
--libexe=* |
--libex=* |
--libe=*)
1056 libexecdir
=$ac_optarg ;;
1058 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1059 ac_prev
=localedir
;;
1060 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1061 localedir
=$ac_optarg ;;
1063 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1064 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1065 ac_prev
=localstatedir
;;
1066 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1067 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1068 localstatedir
=$ac_optarg ;;
1070 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1072 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1073 mandir
=$ac_optarg ;;
1075 -nfp |
--nfp |
--nf)
1076 # Obsolete; use --without-fp.
1079 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1080 |
--no-cr |
--no-c |
-n)
1083 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1084 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1087 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1088 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1089 |
--oldin |
--oldi |
--old |
--ol |
--o)
1090 ac_prev
=oldincludedir
;;
1091 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1092 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1093 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1094 oldincludedir
=$ac_optarg ;;
1096 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1098 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1099 prefix
=$ac_optarg ;;
1101 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1102 |
--program-pre |
--program-pr |
--program-p)
1103 ac_prev
=program_prefix
;;
1104 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1105 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1106 program_prefix
=$ac_optarg ;;
1108 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1109 |
--program-suf |
--program-su |
--program-s)
1110 ac_prev
=program_suffix
;;
1111 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1112 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1113 program_suffix
=$ac_optarg ;;
1115 -program-transform-name |
--program-transform-name \
1116 |
--program-transform-nam |
--program-transform-na \
1117 |
--program-transform-n |
--program-transform- \
1118 |
--program-transform |
--program-transfor \
1119 |
--program-transfo |
--program-transf \
1120 |
--program-trans |
--program-tran \
1121 |
--progr-tra |
--program-tr |
--program-t)
1122 ac_prev
=program_transform_name
;;
1123 -program-transform-name=* |
--program-transform-name=* \
1124 |
--program-transform-nam=* |
--program-transform-na=* \
1125 |
--program-transform-n=* |
--program-transform-=* \
1126 |
--program-transform=* |
--program-transfor=* \
1127 |
--program-transfo=* |
--program-transf=* \
1128 |
--program-trans=* |
--program-tran=* \
1129 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1130 program_transform_name
=$ac_optarg ;;
1132 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1134 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1135 pdfdir
=$ac_optarg ;;
1137 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1139 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1142 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1143 |
-silent |
--silent |
--silen |
--sile |
--sil)
1146 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1148 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1150 sbindir
=$ac_optarg ;;
1152 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1153 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1154 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1156 ac_prev
=sharedstatedir
;;
1157 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1158 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1159 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1161 sharedstatedir
=$ac_optarg ;;
1163 -site |
--site |
--sit)
1165 -site=* |
--site=* |
--sit=*)
1168 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1170 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1171 srcdir
=$ac_optarg ;;
1173 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1174 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1175 ac_prev
=sysconfdir
;;
1176 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1177 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1178 sysconfdir
=$ac_optarg ;;
1180 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1181 ac_prev
=target_alias
;;
1182 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1183 target_alias
=$ac_optarg ;;
1185 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1188 -version |
--version |
--versio |
--versi |
--vers |
-V)
1189 ac_init_version
=: ;;
1192 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1195 as_fn_error $?
"invalid package name: $ac_useropt"
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=\
$ac_optarg ;;
1207 -without-* |
--without-*)
1208 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1211 as_fn_error $?
"invalid package name: $ac_useropt"
1212 ac_useropt_orig
=$ac_useropt
1213 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep
=', ';;
1221 eval with_
$ac_useropt=no
;;
1224 # Obsolete; use --with-x.
1227 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1228 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1229 ac_prev
=x_includes
;;
1230 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1231 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1232 x_includes
=$ac_optarg ;;
1234 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1235 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1236 ac_prev
=x_libraries
;;
1237 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1238 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1239 x_libraries
=$ac_optarg ;;
1241 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1246 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1250 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1252 eval $ac_envvar=\
$ac_optarg
1253 export $ac_envvar ;;
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266 if test -n "$ac_prev"; then
1267 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $?
"missing argument to $ac_option"
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1274 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 # Check all directory arguments for consistency.
1280 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1285 eval ac_val
=\$
$ac_var
1286 # Remove trailing slashes.
1289 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\
$ac_val;;
1292 # Be sure to have absolute directory names.
1294 [\\/$
]* | ?
:[\\/]* ) continue;;
1295 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1297 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1305 target
=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x
; then
1309 if test "x$build_alias" = x
; then
1310 cross_compiling
=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1317 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1319 test "$silent" = yes && exec 6>/dev
/null
1322 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di
=`ls -di .` &&
1324 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $?
"working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $?
"pwd does not report name of working directory"
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted
=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir
=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted
=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1366 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1368 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1380 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 for ac_var
in $ac_precious_vars; do
1383 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1385 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1459 --build=BUILD configure
for building on BUILD
[guessed
]
1460 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1461 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1472 --disable-option-checking ignore unrecognized
--enable/--with options
1473 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1474 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1475 --enable-version-specific-runtime-libs
1476 Specify that runtime libraries should be installed
1477 in a compiler-specific directory
[default
=no
]
1478 --enable-generated-files-in-srcdir
1479 put copies of generated files
in source dir intended
1480 for creating
source tarballs
for users without
1481 texinfo bison or flex.
[default
=no
]
1482 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1483 --disable-silent-rules verbose build output
(undo
: "make V=0")
1484 --enable-multilib build many library versions
(default
)
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
1489 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1490 --enable-static[=PKGS
] build static libraries
[default
=yes]
1491 --enable-fast-install[=PKGS
]
1492 optimize
for fast installation
[default
=yes]
1493 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful
(and
1496 sometimes confusing
) to the casual installer
1497 --enable-linux-futex use the Linux futex system call
[default
=default
]
1498 --enable-tls Use thread-local storage
[default
=yes]
1499 --enable-symvers=STYLE enables symbol versioning of the shared library
1501 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1504 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1505 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1506 --with-toolexeclibdir=DIR
1507 install libraries built with a cross compiler within
1509 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1511 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1512 --with-cuda-driver=PATH specify prefix directory
for installed CUDA driver
1513 package. Equivalent to
1514 --with-cuda-driver-include=PATH
/include plus
1515 --with-cuda-driver-lib=PATH
/lib
1516 --with-cuda-driver-include=PATH
1517 specify directory
for installed CUDA driver include
1519 --with-cuda-driver-lib=PATH
1520 specify directory
for the installed CUDA driver
1522 --with-hsa-runtime=PATH specify prefix directory
for installed HSA run-time
1523 package. Equivalent to
1524 --with-hsa-runtime-include=PATH
/include plus
1525 --with-hsa-runtime-lib=PATH
/lib
1526 --with-hsa-runtime-include=PATH
1527 specify directory
for installed HSA run-time include
1529 --with-hsa-runtime-lib=PATH
1530 specify directory
for the installed HSA run-time
1532 --with-gcc-major-version-only
1533 use only GCC major number
in filesystem paths
1535 Some influential environment variables
:
1536 CC C compiler
command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1539 nonstandard directory
<lib dir
>
1540 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1541 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1542 you have headers
in a nonstandard directory
<include dir
>
1544 FC Fortran compiler
command
1545 FCFLAGS Fortran compiler flags
1547 Use these variables to override the choices made by
`configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to the package provider.
1551 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1552 General help using GNU software: <http://www.gnu.org/gethelp/>.
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1582 .) # We are building in place.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1615 GNU Offloading and Multi Processing Runtime Library configure 1.0
1616 generated by GNU Autoconf 2.69
1618 Copyright (C) 2012 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1639 *) ac_try_echo
=$ac_try;;
1641 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1645 if test -s conftest.err
; then
1646 grep -v '^ *+' conftest.err
>conftest.er1
1647 cat conftest.er1
>&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.
$ac_objext; then :
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.
$ac_ext >&5
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status
$ac_retval
1665 } # ac_fn_c_try_compile
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1673 rm -f conftest.
$ac_objext conftest
$ac_exeext
1674 if { { ac_try
="$ac_link"
1676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 test -x conftest$ac_exeext
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_link
1713 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1714 # -------------------------------------------------------
1715 # Tests whether HEADER exists and can be compiled using the include files in
1716 # INCLUDES, setting the cache variable VAR accordingly.
1717 ac_fn_c_check_header_compile ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1730 if ac_fn_c_try_compile "$LINENO"; then :
1735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 } # ac_fn_c_check_header_compile
1744 # ac_fn_c_try_cpp LINENO
1745 # ----------------------
1746 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_cpp conftest.$ac_ext"
1752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1753 *) ac_try_echo
=$ac_try;;
1755 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759 if test -s conftest.err
; then
1760 grep -v '^ *+' conftest.err
>conftest.er1
1761 cat conftest.er1
>&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } > conftest.i
&& {
1766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.
$ac_ext >&5
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status
$ac_retval
1781 # ac_fn_c_try_run LINENO
1782 # ----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1784 # that executables *can* be run.
1787 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1788 if { { ac_try
="$ac_link"
1790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>&5
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1799 { { case "(($ac_try" in
1800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1801 *) ac_try_echo
=$ac_try;;
1803 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_try") 2>&5
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; }; }; then :
1811 $as_echo "$as_me: program exited with status $ac_status" >&5
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.
$ac_ext >&5
1815 ac_retval
=$ac_status
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status
$ac_retval
1823 # ac_fn_c_check_func LINENO FUNC VAR
1824 # ----------------------------------
1825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1826 ac_fn_c_check_func
()
1828 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \
${$3+:} false
; then :
1832 $as_echo_n "(cached) " >&6
1834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838 #define $2 innocuous_$2
1840 /* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1846 # include <limits.h>
1848 # include <assert.h>
1853 /* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined __stub_$2 || defined __stub___$2
1875 if ac_fn_c_try_link
"$LINENO"; then :
1880 rm -f core conftest.err conftest.
$ac_objext \
1881 conftest
$ac_exeext conftest.
$ac_ext
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 } # ac_fn_c_check_func
1890 # ac_fn_fc_try_compile LINENO
1891 # ---------------------------
1892 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_fc_try_compile
()
1895 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1896 rm -f conftest.
$ac_objext
1897 if { { ac_try
="$ac_compile"
1899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_compile") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_fc_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest.$ac_objext; then :
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1926 } # ac_fn_fc_try_compile
1928 # ac_fn_fc_try_link LINENO
1929 # ------------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_fc_try_link ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1938 *) ac_try_echo
=$ac_try;;
1940 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1944 if test -s conftest.err
; then
1945 grep -v '^ *+' conftest.err
>conftest.er1
1946 cat conftest.er1
>&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_fc_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest
$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 test -x conftest
$ac_exeext
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.
$ac_ext >&5
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status
$ac_retval
1972 } # ac_fn_fc_try_link
1974 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1975 # -------------------------------------------------------
1976 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1977 # the include files in INCLUDES and setting the cache variable VAR
1979 ac_fn_c_check_header_mongrel
()
1981 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1982 if eval \
${$3+:} false
; then :
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \
${$3+:} false
; then :
1986 $as_echo_n "(cached) " >&6
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1992 # Is the header compilable?
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1994 $as_echo_n "checking $2 usability... " >&6; }
1995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2000 if ac_fn_c_try_compile
"$LINENO"; then :
2001 ac_header_compiler
=yes
2003 ac_header_compiler
=no
2005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2007 $as_echo "$ac_header_compiler" >&6; }
2009 # Is the header present?
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2011 $as_echo_n "checking $2 presence... " >&6; }
2012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2016 if ac_fn_c_try_cpp
"$LINENO"; then :
2017 ac_header_preproc
=yes
2019 ac_header_preproc
=no
2021 rm -f conftest.err conftest.i conftest.
$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2023 $as_echo "$ac_header_preproc" >&6; }
2025 # So? What about this header?
2026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2029 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2035 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2037 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2039 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2041 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if eval \
${$3+:} false
; then :
2049 $as_echo_n "(cached) " >&6
2051 eval "$3=\$ac_header_compiler"
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_header_mongrel
2061 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2062 # -------------------------------------------
2063 # Tests whether TYPE exists after having included INCLUDES, setting cache
2064 # variable VAR accordingly.
2065 ac_fn_c_check_type
()
2067 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \
${$3+:} false
; then :
2071 $as_echo_n "(cached) " >&6
2074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2086 if ac_fn_c_try_compile
"$LINENO"; then :
2087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2099 if ac_fn_c_try_compile
"$LINENO"; then :
2104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_type
2115 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116 # --------------------------------------------
2117 # Tries to find the compile-time value of EXPR in a program that includes
2118 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2120 ac_fn_c_compute_int
()
2122 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2123 if test "$cross_compiling" = yes; then
2124 # Depending upon the size, compute the lo and hi bounds.
2125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) >= 0)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile
"$LINENO"; then :
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile
"$LINENO"; then :
2157 ac_hi
=$ac_mid; break
2159 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2160 if test $ac_lo -le $ac_mid; then
2164 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2175 static int test_array [1 - 2 * !(($2) < 0)];
2177 return test_array [0];
2183 if ac_fn_c_try_compile
"$LINENO"; then :
2186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2194 return test_array [0];
2200 if ac_fn_c_try_compile
"$LINENO"; then :
2201 ac_lo
=$ac_mid; break
2203 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2204 if test $ac_mid -le $ac_hi; then
2208 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2218 # Binary search between lo and hi bounds.
2219 while test "x$ac_lo" != "x$ac_hi"; do
2220 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2229 return test_array [0];
2235 if ac_fn_c_try_compile
"$LINENO"; then :
2238 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2243 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2250 static long int longval () { return $2; }
2251 static unsigned long int ulongval () { return $2; }
2258 FILE *f = fopen ("conftest.val", "w");
2263 long int i = longval ();
2266 fprintf (f, "%ld", i);
2270 unsigned long int i = ulongval ();
2273 fprintf (f, "%lu", i);
2275 /* Do not output a trailing newline, as this causes \r\n confusion
2276 on some platforms. */
2277 return ferror (f) || fclose (f) != 0;
2283 if ac_fn_c_try_run
"$LINENO"; then :
2284 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2288 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2289 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status
$ac_retval
2296 } # ac_fn_c_compute_int
2297 cat >config.log
<<_ACEOF
2298 This file contains any messages produced by compilers while
2299 running configure, to aid debugging if configure makes a mistake.
2301 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2302 generated by GNU Autoconf 2.69. Invocation command line was
2314 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2315 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2316 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2317 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2318 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2320 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2321 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2323 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2324 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2325 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2326 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2327 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2328 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2329 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir
=.
2338 $as_echo "PATH: $as_dir"
2354 # Keep a trace of the command line.
2355 # Strip out --no-create and --no-recursion so they do not pile up.
2356 # Strip out --silent because we don't want to record it for future runs.
2357 # Also quote any args containing shell meta-characters.
2358 # Make two passes to allow for proper duplicate-argument suppression.
2362 ac_must_keep_next
=false
2368 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2369 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2370 |
-silent |
--silent |
--silen |
--sile |
--sil)
2373 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2376 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2378 as_fn_append ac_configure_args1
" '$ac_arg'"
2379 if test $ac_must_keep_next = true
; then
2380 ac_must_keep_next
=false
# Got value, back to normal.
2383 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2384 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2385 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2386 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2387 case "$ac_configure_args0 " in
2388 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2391 -* ) ac_must_keep_next
=true
;;
2394 as_fn_append ac_configure_args
" '$ac_arg'"
2399 { ac_configure_args0
=; unset ac_configure_args0
;}
2400 { ac_configure_args1
=; unset ac_configure_args1
;}
2402 # When interrupted or exit'd, cleanup temporary files, and complete
2403 # config.log. We remove comments because anyway the quotes in there
2404 # would cause problems or look ugly.
2405 # WARNING: Use '\'' to represent an apostrophe within the trap.
2406 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2407 trap 'exit_status=$?
2408 # Save into config.log some information that might help in debugging.
2412 $as_echo "## ---------------- ##
2413 ## Cache variables. ##
2414 ## ---------------- ##"
2416 # The following way of writing the cache mishandles newlines in values,
2418 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2419 eval ac_val=\$$ac_var
2423 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2424 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2427 _ | IFS | as_nl) ;; #(
2428 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2429 *) { eval $ac_var=; unset $ac_var;} ;;
2434 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2435 *${as_nl}ac_space=\ *)
2437 "s/'\''/'\''\\\\'\'''\''/g;
2438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448 $as_echo "## ----------------- ##
2449 ## Output variables. ##
2450 ## ----------------- ##"
2452 for ac_var in $ac_subst_vars
2454 eval ac_val=\$$ac_var
2456 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458 $as_echo "$ac_var='\''$ac_val'\''"
2462 if test -n "$ac_subst_files"; then
2463 $as_echo "## ------------------- ##
2464 ## File substitutions. ##
2465 ## ------------------- ##"
2467 for ac_var
in $ac_subst_files
2469 eval ac_val
=\$
$ac_var
2471 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473 $as_echo "$ac_var='\''$ac_val'\''"
2478 if test -s confdefs.h; then
2479 $as_echo "## ----------- ##
2486 test "$ac_signal" != 0 &&
2487 $as_echo "$as_me: caught signal $ac_signal"
2488 $as_echo "$as_me: exit $exit_status"
2490 rm -f core *.core core.conftest.* &&
2491 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2494 for ac_signal
in 1 2 13 15; do
2495 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2500 rm -f -r conftest
* confdefs.h
2502 $as_echo "/* confdefs.h */" > confdefs.h
2504 # Predefined preprocessor variables.
2506 cat >>confdefs.h
<<_ACEOF
2507 #define PACKAGE_NAME "$PACKAGE_NAME"
2510 cat >>confdefs.h
<<_ACEOF
2511 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2514 cat >>confdefs.h
<<_ACEOF
2515 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2518 cat >>confdefs.h
<<_ACEOF
2519 #define PACKAGE_STRING "$PACKAGE_STRING"
2522 cat >>confdefs.h
<<_ACEOF
2523 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2526 cat >>confdefs.h
<<_ACEOF
2527 #define PACKAGE_URL "$PACKAGE_URL"
2531 # Let the site file select an alternate cache file if it wants to.
2532 # Prefer an explicitly selected file to automatically selected ones.
2535 if test -n "$CONFIG_SITE"; then
2536 # We do not want a PATH search for config.site.
2537 case $CONFIG_SITE in #((
2538 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2539 */*) ac_site_file1
=$CONFIG_SITE;;
2540 *) ac_site_file1
=.
/$CONFIG_SITE;;
2542 elif test "x$prefix" != xNONE
; then
2543 ac_site_file1
=$prefix/share
/config.site
2544 ac_site_file2
=$prefix/etc
/config.site
2546 ac_site_file1
=$ac_default_prefix/share
/config.site
2547 ac_site_file2
=$ac_default_prefix/etc
/config.site
2549 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2551 test "x$ac_site_file" = xNONE
&& continue
2552 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2554 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2555 sed 's/^/| /' "$ac_site_file" >&5
2557 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 as_fn_error $?
"failed to load site script $ac_site_file
2560 See \`config.log' for more details" "$LINENO" 5; }
2564 if test -r "$cache_file"; then
2565 # Some versions of bash will fail to source /dev/null (special files
2566 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2567 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2569 $as_echo "$as_me: loading cache $cache_file" >&6;}
2571 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2572 *) .
"./$cache_file";;
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2577 $as_echo "$as_me: creating cache $cache_file" >&6;}
2581 as_fn_append ac_header_list
" unistd.h"
2582 as_fn_append ac_func_list
" secure_getenv"
2583 as_fn_append ac_func_list
" __secure_getenv"
2584 as_fn_append ac_func_list
" getuid"
2585 as_fn_append ac_func_list
" geteuid"
2586 as_fn_append ac_func_list
" getgid"
2587 as_fn_append ac_func_list
" getegid"
2588 # Check that the precious variables saved in the cache have kept the same
2590 ac_cache_corrupted
=false
2591 for ac_var
in $ac_precious_vars; do
2592 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2593 eval ac_new_set
=\
$ac_env_${ac_var}_set
2594 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2595 eval ac_new_val
=\
$ac_env_${ac_var}_value
2596 case $ac_old_set,$ac_new_set in
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2599 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2600 ac_cache_corrupted
=: ;;
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2603 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2604 ac_cache_corrupted
=: ;;
2607 if test "x$ac_old_val" != "x$ac_new_val"; then
2608 # differences in whitespace do not lead to failure.
2609 ac_old_val_w
=`echo x $ac_old_val`
2610 ac_new_val_w
=`echo x $ac_new_val`
2611 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2613 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2614 ac_cache_corrupted
=:
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2617 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2618 eval $ac_var=\
$ac_old_val
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2621 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2623 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2626 # Pass precious variables to config.status.
2627 if test "$ac_new_set" = set; then
2629 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2630 *) ac_arg
=$ac_var=$ac_new_val ;;
2632 case " $ac_configure_args " in
2633 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2634 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2638 if $ac_cache_corrupted; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2642 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2643 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2645 ## -------------------- ##
2646 ## Main body of script. ##
2647 ## -------------------- ##
2650 ac_cpp
='$CPP $CPPFLAGS'
2651 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2659 ac_config_headers
="$ac_config_headers config.h"
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2667 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2668 # Check whether --enable-version-specific-runtime-libs was given.
2669 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2670 enableval
=$enable_version_specific_runtime_libs;
2671 case "$enableval" in
2673 *) as_fn_error $?
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2677 enable_version_specific_runtime_libs
=no
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2682 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2684 # We would like our source tree to be readonly. However when releases or
2685 # pre-releases are generated, the flex/bison generated files as well as the
2686 # various formats of manuals need to be included along with the rest of the
2687 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2690 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2691 # Check whether --enable-generated-files-in-srcdir was given.
2692 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2693 enableval
=$enable_generated_files_in_srcdir;
2694 case "$enableval" in
2696 *) as_fn_error $?
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2700 enable_generated_files_in_srcdir
=no
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2705 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2706 if test "$enable_generated_files_in_srcdir" = yes; then
2719 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2721 # You will slowly go insane if you do not grok the following fact: when
2722 # building this library, the top-level /target/ becomes the library's /host/.
2724 # configure then causes --target to default to --host, exactly like any
2725 # other package using autoconf. Therefore, 'target' and 'host' will
2726 # always be the same. This makes sense both for native and cross compilers
2727 # just think about it for a little while. :-)
2729 # Also, if this library is being configured as part of a cross compiler, the
2730 # top-level configure script will pass the "real" host as $with_cross_host.
2732 # Do not delete or change the following two lines. For why, see
2733 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2735 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736 if test -f "$ac_dir/install-sh"; then
2738 ac_install_sh
="$ac_aux_dir/install-sh -c"
2740 elif test -f "$ac_dir/install.sh"; then
2742 ac_install_sh
="$ac_aux_dir/install.sh -c"
2744 elif test -f "$ac_dir/shtool"; then
2746 ac_install_sh
="$ac_aux_dir/shtool install -c"
2750 if test -z "$ac_aux_dir"; then
2751 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2754 # These three variables are undocumented and unsupported,
2755 # and are intended to be withdrawn in a future Autoconf release.
2756 # They can cause serious problems if a builder's source tree is in a directory
2757 # whose full name contains unusual characters.
2758 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2759 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2760 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763 # Make sure we can run config.sub.
2764 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2765 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2768 $as_echo_n "checking build system type... " >&6; }
2769 if ${ac_cv_build+:} false
; then :
2770 $as_echo_n "(cached) " >&6
2772 ac_build_alias
=$build_alias
2773 test "x$ac_build_alias" = x
&&
2774 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2775 test "x$ac_build_alias" = x
&&
2776 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2777 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2778 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2782 $as_echo "$ac_cv_build" >&6; }
2783 case $ac_cv_build in
2785 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2788 ac_save_IFS
=$IFS; IFS
='-'
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2798 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2802 $as_echo_n "checking host system type... " >&6; }
2803 if ${ac_cv_host+:} false
; then :
2804 $as_echo_n "(cached) " >&6
2806 if test "x$host_alias" = x
; then
2807 ac_cv_host
=$ac_cv_build
2809 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2810 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2815 $as_echo "$ac_cv_host" >&6; }
2818 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2821 ac_save_IFS
=$IFS; IFS
='-'
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2831 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2835 $as_echo_n "checking target system type... " >&6; }
2836 if ${ac_cv_target+:} false
; then :
2837 $as_echo_n "(cached) " >&6
2839 if test "x$target_alias" = x
; then
2840 ac_cv_target
=$ac_cv_host
2842 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2843 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2848 $as_echo "$ac_cv_target" >&6; }
2849 case $ac_cv_target in
2851 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2853 target
=$ac_cv_target
2854 ac_save_IFS
=$IFS; IFS
='-'
2860 # Remember, the first character of IFS is used to create $*,
2861 # except with old shells:
2864 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2867 # The aliases save the names the user supplied, while $host etc.
2868 # will get canonicalized.
2869 test -n "$target_alias" &&
2870 test "$program_prefix$program_suffix$program_transform_name" = \
2872 program_prefix
=${target_alias}-
2874 target_alias
=${target_alias-$host_alias}
2876 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2877 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2878 # 1.9.0: minimum required version
2879 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2880 # of other PACKAGE_* variables will, however, and there's nothing
2881 # we can do about that; they come from AC_INIT).
2882 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2883 # file in the top srcdir, etc, etc), so stop complaining.
2884 # no-dist: we don't want 'dist' and related rules.
2885 # -Wall: turns on all automake warnings...
2886 # -Wno-portability: ...except this one, since GNU make is required.
2887 # -Wno-override: ... and this one, since we do want this in testsuite.
2888 am__api_version
='1.15'
2890 # Find a good install program. We prefer a C program (faster),
2891 # so one script is as good as another. But avoid the broken or
2892 # incompatible versions:
2893 # SysV /etc/install, /usr/sbin/install
2894 # SunOS /usr/etc/install
2895 # IRIX /sbin/install
2897 # AmigaOS /C/install, which installs bootblocks on floppy discs
2898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2901 # OS/2's system install, which has a completely different semantic
2902 # ./install, which can be erroneously created by make from ./install.sh.
2903 # Reject install programs that cannot install multiple files.
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2905 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2906 if test -z "$INSTALL"; then
2907 if ${ac_cv_path_install+:} false
; then :
2908 $as_echo_n "(cached) " >&6
2910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir
=.
2915 # Account for people who put trailing slashes in PATH elements.
2916 case $as_dir/ in #((
2917 .
/ | .
// |
/[cC
]/* | \
2918 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2919 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2922 # OSF1 and SCO ODT 3.0 have their own names for install.
2923 # Don't use installbsd from OSF since it installs stuff as root
2925 for ac_prog
in ginstall scoinst
install; do
2926 for ac_exec_ext
in '' $ac_executable_extensions; do
2927 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2928 if test $ac_prog = install &&
2929 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2930 # AIX install. It has an incompatible calling convention.
2932 elif test $ac_prog = install &&
2933 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2934 # program-specific install script used by HP pwplus--don't use.
2937 rm -rf conftest.one conftest.two conftest.dir
2938 echo one
> conftest.one
2939 echo two
> conftest.two
2941 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2942 test -s conftest.one
&& test -s conftest.two
&&
2943 test -s conftest.dir
/conftest.one
&&
2944 test -s conftest.dir
/conftest.two
2946 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2959 rm -rf conftest.one conftest.two conftest.dir
2962 if test "${ac_cv_path_install+set}" = set; then
2963 INSTALL
=$ac_cv_path_install
2965 # As a last resort, use the slow shell script. Don't cache a
2966 # value for INSTALL within a source directory, because that will
2967 # break other packages using the cache if that directory is
2968 # removed, or if the value is a relative name.
2969 INSTALL
=$ac_install_sh
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2973 $as_echo "$INSTALL" >&6; }
2975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2976 # It thinks the first close brace ends the variable substitution.
2977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2981 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2984 $as_echo_n "checking whether build environment is sane... " >&6; }
2985 # Reject unsafe characters in $srcdir or the absolute working directory
2986 # name. Accept space and tab only in the latter.
2990 *[\\\"\
#\$\&\'\`$am_lf]*)
2991 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2994 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2995 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2998 # Do 'set' in a subshell so we don't clobber the current shell's
2999 # arguments. Must try -L first in case configure is actually a
3000 # symlink; some systems play weird games with the mod time of symlinks
3001 # (eg FreeBSD returns the mod time of the symlink's containing
3005 for am_try
in 1 2; do
3006 echo "timestamp, slept: $am_has_slept" > conftest.
file
3007 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3008 if test "$*" = "X"; then
3010 set X
`ls -t "$srcdir/configure" conftest.file`
3012 if test "$*" != "X $srcdir/configure conftest.file" \
3013 && test "$*" != "X conftest.file $srcdir/configure"; then
3015 # If neither matched, then we have a broken ls. This can happen
3016 # if, for instance, CONFIG_SHELL is bash and it inherits a
3017 # broken ls alias from the environment. This has actually
3018 # happened. Such a system could not be considered "sane".
3019 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3020 alias in your environment" "$LINENO" 5
3022 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3029 test "$2" = conftest.
file
3035 as_fn_error $?
"newly created file is older than distributed files!
3036 Check your system clock" "$LINENO" 5
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039 $as_echo "yes" >&6; }
3040 # If we didn't sleep, we still need to ensure time stamps of config.status and
3041 # generated files are strictly newer.
3043 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3050 test "$program_prefix" != NONE
&&
3051 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3052 # Use a double $ so make ignores it.
3053 test "$program_suffix" != NONE
&&
3054 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3055 # Double any \ or $.
3056 # By default was `s,x,x', remove it if useless.
3057 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3058 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3060 # Expand $ac_aux_dir to an absolute path.
3061 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3063 if test x
"${MISSING+set}" != xset
; then
3066 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3068 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3071 # Use eval to expand $SHELL
3072 if eval "$MISSING --is-lightweight"; then
3073 am_missing_run
="$MISSING "
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3077 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3080 if test x
"${install_sh+set}" != xset
; then
3083 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3085 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3089 # Installed binaries are usually stripped using 'strip' when the user
3090 # run "make install-strip". However 'strip' might not be the right
3091 # tool to use in cross-compilation environments, therefore Automake
3092 # will honor the 'STRIP' environment variable to overrule this program.
3093 if test "$cross_compiling" != no
; then
3094 if test -n "$ac_tool_prefix"; then
3095 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3096 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_STRIP+:} false
; then :
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$STRIP"; then
3103 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir
=.
3110 for ac_exec_ext
in '' $ac_executable_extensions; do
3111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 STRIP
=$ac_cv_prog_STRIP
3123 if test -n "$STRIP"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3125 $as_echo "$STRIP" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3133 if test -z "$ac_cv_prog_STRIP"; then
3135 # Extract the first word of "strip", so it can be a program name with args.
3136 set dummy strip
; ac_word
=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3140 $as_echo_n "(cached) " >&6
3142 if test -n "$ac_ct_STRIP"; then
3143 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir
=.
3150 for ac_exec_ext
in '' $ac_executable_extensions; do
3151 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_ac_ct_STRIP
="strip"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3163 if test -n "$ac_ct_STRIP"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3165 $as_echo "$ac_ct_STRIP" >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3171 if test "x$ac_ct_STRIP" = x
; then
3174 case $cross_compiling:$ac_tool_warned in
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178 ac_tool_warned
=yes ;;
3183 STRIP
="$ac_cv_prog_STRIP"
3187 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3190 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3191 if test -z "$MKDIR_P"; then
3192 if ${ac_cv_path_mkdir+:} false
; then :
3193 $as_echo_n "(cached) " >&6
3195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3196 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3199 test -z "$as_dir" && as_dir
=.
3200 for ac_prog
in mkdir gmkdir
; do
3201 for ac_exec_ext
in '' $ac_executable_extensions; do
3202 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3203 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3204 'mkdir (GNU coreutils) '* | \
3205 'mkdir (coreutils) '* | \
3206 'mkdir (fileutils) '4.1*)
3207 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3217 test -d .
/--version && rmdir .
/--version
3218 if test "${ac_cv_path_mkdir+set}" = set; then
3219 MKDIR_P
="$ac_cv_path_mkdir -p"
3221 # As a last resort, use the slow shell script. Don't cache a
3222 # value for MKDIR_P within a source directory, because that will
3223 # break other packages using the cache if that directory is
3224 # removed, or if the value is a relative name.
3225 MKDIR_P
="$ac_install_sh -d"
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3229 $as_echo "$MKDIR_P" >&6; }
3231 for ac_prog
in gawk mawk nawk
awk
3233 # Extract the first word of "$ac_prog", so it can be a program name with args.
3234 set dummy
$ac_prog; ac_word
=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_AWK+:} false
; then :
3238 $as_echo_n "(cached) " >&6
3240 if test -n "$AWK"; then
3241 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir
=.
3248 for ac_exec_ext
in '' $ac_executable_extensions; do
3249 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_AWK
="$ac_prog"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 if test -n "$AWK"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3263 $as_echo "$AWK" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3270 test -n "$AWK" && break
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3274 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3276 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3277 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3278 $as_echo_n "(cached) " >&6
3280 cat >conftest.
make <<\_ACEOF
3283 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3285 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3288 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3290 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3294 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 SET_MAKE
="MAKE=${MAKE-make}"
3304 rm -rf .tst
2>/dev
/null
3305 mkdir .tst
2>/dev
/null
3306 if test -d .tst
; then
3311 rmdir .tst
2>/dev
/null
3313 # Check whether --enable-silent-rules was given.
3314 if test "${enable_silent_rules+set}" = set; then :
3315 enableval
=$enable_silent_rules;
3318 case $enable_silent_rules in # (((
3319 yes) AM_DEFAULT_VERBOSITY
=0;;
3320 no
) AM_DEFAULT_VERBOSITY
=1;;
3321 *) AM_DEFAULT_VERBOSITY
=1;;
3323 am_make
=${MAKE-make}
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3325 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3326 if ${am_cv_make_support_nested_variables+:} false
; then :
3327 $as_echo_n "(cached) " >&6
3329 if $as_echo 'TRUE=$(BAR$(V))
3335 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3336 am_cv_make_support_nested_variables
=yes
3338 am_cv_make_support_nested_variables
=no
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3342 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3343 if test $am_cv_make_support_nested_variables = yes; then
3345 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3347 AM_V
=$AM_DEFAULT_VERBOSITY
3348 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3352 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3353 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3354 # is not polluted with repeated "-I."
3355 am__isrc
=' -I$(srcdir)'
3356 # test to see if srcdir already configured
3357 if test -f $srcdir/config.status
; then
3358 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3362 # test whether we have cygpath
3363 if test -z "$CYGPATH_W"; then
3364 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3365 CYGPATH_W
='cygpath -w'
3372 # Define the identity of the package.
3377 cat >>confdefs.h
<<_ACEOF
3378 #define PACKAGE "$PACKAGE"
3382 cat >>confdefs.h
<<_ACEOF
3383 #define VERSION "$VERSION"
3386 # Some tools Automake needs.
3388 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3391 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3394 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3397 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3400 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3402 # For better backward compatibility. To be removed once Automake 1.9.x
3403 # dies out for good. For more background, see:
3404 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3405 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3406 mkdir_p
='$(MKDIR_P)'
3408 # We need awk for the "check" target (and possibly the TAP driver). The
3409 # system "awk" is bad on some platforms.
3410 # Always define AMTAR for backward compatibility. Yes, it's still used
3411 # in the wild :-( We should find a proper way to deprecate it ...
3415 # We'll loop over all known methods to create a tar archive until one works.
3416 _am_tools
='gnutar pax cpio none'
3418 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3425 # POSIX will say in a future version that running "rm -f" with no argument
3426 # is OK; and we want to be able to make that assumption in our Makefile
3427 # recipes. So use an aggressive probe to check that the usage we want is
3428 # actually supported "in the wild" to an acceptable degree.
3429 # See automake bug#10828.
3430 # To make any issue more visible, cause the running configure to be aborted
3431 # by default if the 'rm' program in use doesn't match our expectations; the
3432 # user can still override this though.
3433 if rm -f && rm -fr && rm -rf; then : OK
; else
3437 Your 'rm' program seems unable to run without file operands specified
3438 on the command line, even when the '-f' option is present. This is contrary
3439 to the behaviour of most rm programs out there, and not conforming with
3440 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3442 Please tell bug-automake@gnu.org about your system, including the value
3443 of your $PATH and any error possibly output before this message. This
3444 can help us improve future automake versions.
3447 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3448 echo 'Configuration will proceed anyway, since you have set the' >&2
3449 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3453 Aborting the configuration process, to ensure you take notice of the issue.
3455 You can download and install GNU coreutils to get an 'rm' implementation
3456 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3458 If you want to complete the configuration process using your problematic
3459 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3460 to "yes", and re-run configure.
3463 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3467 # Default to --enable-multilib
3468 # Check whether --enable-multilib was given.
3469 if test "${enable_multilib+set}" = set; then :
3470 enableval
=$enable_multilib; case "$enableval" in
3471 yes) multilib
=yes ;;
3473 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3480 # We may get other options which we leave undocumented:
3481 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3482 # See config-ml.in if you want the gory details.
3484 if test "$srcdir" = "."; then
3485 if test "$with_target_subdir" != "."; then
3486 multi_basedir
="$srcdir/$with_multisrctop../.."
3488 multi_basedir
="$srcdir/$with_multisrctop.."
3491 multi_basedir
="$srcdir/.."
3495 # Even if the default multilib is not a cross compilation,
3496 # it may be that some of the other multilibs are.
3497 if test $cross_compiling = no
&& test $multilib = yes \
3498 && test "x${with_multisubdir}" != x
; then
3499 cross_compiling
=maybe
3502 ac_config_commands
="$ac_config_commands default-1"
3506 # Check whether --with-toolexeclibdir was given.
3507 if test "${with_toolexeclibdir+set}" = set; then :
3508 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3512 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
3516 with_toolexeclibdir
=no
3521 # Calculate toolexeclibdir
3522 # Also toolexecdir, though it's only used in toolexeclibdir
3523 case ${enable_version_specific_runtime_libs} in
3525 # Need the gcc compiler version to know where to install libraries
3526 # and header files if --enable-version-specific-runtime-libs option
3528 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3529 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3532 if test -n "$with_cross_host" &&
3533 test x
"$with_cross_host" != x
"no"; then
3534 # Install a library built with a cross compiler in tooldir, not libdir.
3535 toolexecdir
='$(exec_prefix)/$(target_alias)'
3536 case ${with_toolexeclibdir} in
3538 toolexeclibdir
='$(toolexecdir)/lib'
3541 toolexeclibdir
=${with_toolexeclibdir}
3545 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3546 toolexeclibdir
='$(libdir)'
3548 multi_os_directory
=`$CC -print-multi-os-directory`
3549 case $multi_os_directory in
3550 .
) ;; # Avoid trailing /.
3551 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3558 # Check the compiler.
3559 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3560 # We must force CC to /not/ be precious variables; otherwise
3561 # the wrong, non-multilib-adjusted value will be used in multilibs.
3562 # As a side effect, we have to subst CFLAGS ourselves.
3567 ac_cpp
='$CPP $CPPFLAGS'
3568 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3571 if test -n "$ac_tool_prefix"; then
3572 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3573 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_CC+:} false
; then :
3577 $as_echo_n "(cached) " >&6
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC
="$CC" # Let the user override the test.
3582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir
=.
3587 for ac_exec_ext
in '' $ac_executable_extensions; do
3588 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3610 if test -z "$ac_cv_prog_CC"; then
3612 # Extract the first word of "gcc", so it can be a program name with args.
3613 set dummy gcc
; ac_word
=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3617 $as_echo_n "(cached) " >&6
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir
=.
3627 for ac_exec_ext
in '' $ac_executable_extensions; do
3628 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_ac_ct_CC
="gcc"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642 $as_echo "$ac_ct_CC" >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3648 if test "x$ac_ct_CC" = x
; then
3651 case $cross_compiling:$ac_tool_warned in
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655 ac_tool_warned
=yes ;;
3663 if test -z "$CC"; then
3664 if test -n "$ac_tool_prefix"; then
3665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3666 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if ${ac_cv_prog_CC+:} false
; then :
3670 $as_echo_n "(cached) " >&6
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC
="$CC" # Let the user override the test.
3675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir
=.
3680 for ac_exec_ext
in '' $ac_executable_extensions; do
3681 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3704 if test -z "$CC"; then
3705 # Extract the first word of "cc", so it can be a program name with args.
3706 set dummy cc
; ac_word
=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_CC+:} false
; then :
3710 $as_echo_n "(cached) " >&6
3712 if test -n "$CC"; then
3713 ac_cv_prog_CC
="$CC" # Let the user override the test.
3716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir
=.
3721 for ac_exec_ext
in '' $ac_executable_extensions; do
3722 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3724 ac_prog_rejected
=yes
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 if test $ac_prog_rejected = yes; then
3736 # We found a bogon in the path, so make sure we never use it.
3737 set dummy
$ac_cv_prog_CC
3739 if test $# != 0; then
3740 # We chose a different compiler from the bogus one.
3741 # However, it has the same basename, so the bogon will be chosen
3742 # first if we set CC to just the basename; use the full file name.
3744 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3750 if test -n "$CC"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 $as_echo "$CC" >&6; }
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3760 if test -z "$CC"; then
3761 if test -n "$ac_tool_prefix"; then
3762 for ac_prog
in cl.exe
3764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3765 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if ${ac_cv_prog_CC+:} false
; then :
3769 $as_echo_n "(cached) " >&6
3771 if test -n "$CC"; then
3772 ac_cv_prog_CC
="$CC" # Let the user override the test.
3774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3778 test -z "$as_dir" && as_dir
=.
3779 for ac_exec_ext
in '' $ac_executable_extensions; do
3780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 if test -n "$CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3794 $as_echo "$CC" >&6; }
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 $as_echo "no" >&6; }
3801 test -n "$CC" && break
3804 if test -z "$CC"; then
3806 for ac_prog
in cl.exe
3808 # Extract the first word of "$ac_prog", so it can be a program name with args.
3809 set dummy
$ac_prog; ac_word
=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3813 $as_echo_n "(cached) " >&6
3815 if test -n "$ac_ct_CC"; then
3816 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3822 test -z "$as_dir" && as_dir
=.
3823 for ac_exec_ext
in '' $ac_executable_extensions; do
3824 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_ac_ct_CC
="$ac_prog"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3836 if test -n "$ac_ct_CC"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3838 $as_echo "$ac_ct_CC" >&6; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3845 test -n "$ac_ct_CC" && break
3848 if test "x$ac_ct_CC" = x
; then
3851 case $cross_compiling:$ac_tool_warned in
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned
=yes ;;
3864 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $?
"no acceptable C compiler found in \$PATH
3867 See \`config.log' for more details" "$LINENO" 5; }
3869 # Provide some information about the compiler.
3870 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873 for ac_option
in --version -v -V -qversion; do
3874 { { ac_try
="$ac_compiler $ac_option >&5"
3876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3883 if test -s conftest.err; then
3885 ... rest of stderr output deleted ...
3886 10q' conftest.err >conftest.er1
3887 cat conftest.er1 >&5
3889 rm -f conftest.er1 conftest.err
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3905 ac_clean_files_save=$ac_clean_files
3906 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3907 # Try to create an executable without -o first, disregard a.out.
3908 # It will help us diagnose broken compilers, and finding out an intuition
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911 $as_echo_n "checking whether the C compiler works... " >&6; }
3912 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3914 # The possible output files:
3915 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3918 for ac_file in $ac_files
3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3922 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3927 if { { ac_try="$ac_link_default"
3929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3930 *) ac_try_echo
=$ac_try;;
3932 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934 (eval "$ac_link_default") 2>&5
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }; then :
3938 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3939 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3940 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3941 # so that the user can short-circuit this test for compilers unknown to
3943 for ac_file
in $ac_files ''
3945 test -f "$ac_file" ||
continue
3947 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3950 # We found the default executable, but exeext='' is most
3954 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3956 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958 # We set ac_cv_exeext here because the later test for it is not
3959 # safe: cross compilers may not add the suffix if given an `-o'
3960 # argument, so we may need to know it at that point already.
3961 # Even if this section looks crufty: it has the advantage of
3968 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3973 if test -z "$ac_file"; then :
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 $as_echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.
$ac_ext >&5
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error
77 "C compiler cannot create executables
3982 See \`config.log' for more details" "$LINENO" 5; }
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3985 $as_echo "yes" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3988 $as_echo_n "checking for C compiler default output file name... " >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3990 $as_echo "$ac_file" >&6; }
3991 ac_exeext
=$ac_cv_exeext
3993 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3994 ac_clean_files
=$ac_clean_files_save
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3996 $as_echo_n "checking for suffix of executables... " >&6; }
3997 if { { ac_try
="$ac_link"
3999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_link") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4009 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4010 # work properly (i.e., refer to `conftest.exe'), while it won't with
4012 for ac_file
in conftest.exe conftest conftest.
*; do
4013 test -f "$ac_file" ||
continue
4015 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4016 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4025 See \`config.log' for more details" "$LINENO" 5; }
4027 rm -f conftest conftest
$ac_cv_exeext
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4029 $as_echo "$ac_cv_exeext" >&6; }
4031 rm -f conftest.
$ac_ext
4032 EXEEXT
=$ac_cv_exeext
4034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4040 FILE *f = fopen ("conftest.out", "w");
4041 return ferror (f) || fclose (f) != 0;
4047 ac_clean_files
="$ac_clean_files conftest.out"
4048 # Check that the compiler produces executables we can run. If not, either
4049 # the compiler is broken, or we cross compile.
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4051 $as_echo_n "checking whether we are cross compiling... " >&6; }
4052 if test "$cross_compiling" != yes; then
4053 { { ac_try
="$ac_link"
4055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_link") 2>&5
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }
4064 if { ac_try='./conftest$ac_cv_exeext'
4065 { { case "(($ac_try" in
4066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4067 *) ac_try_echo
=$ac_try;;
4069 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 $as_echo "$ac_try_echo"; } >&5
4071 (eval "$ac_try") 2>&5
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }; }; then
4077 if test "$cross_compiling" = maybe
; then
4080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error $?
"cannot run C compiled programs.
4083 If you meant to cross compile, use \`--host'.
4084 See \`config.log' for more details" "$LINENO" 5; }
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4089 $as_echo "$cross_compiling" >&6; }
4091 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4092 ac_clean_files
=$ac_clean_files_save
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4094 $as_echo_n "checking for suffix of object files... " >&6; }
4095 if ${ac_cv_objext+:} false
; then :
4096 $as_echo_n "(cached) " >&6
4098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4109 rm -f conftest.o conftest.obj
4110 if { { ac_try
="$ac_compile"
4112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_compile") 2>&5
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; then :
4121 for ac_file in conftest.o conftest.obj conftest.*; do
4122 test -f "$ac_file" || continue;
4124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4130 $as_echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4135 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4136 See \
`config.log' for more details" "$LINENO" 5; }
4138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4141 $as_echo "$ac_cv_objext" >&6; }
4142 OBJEXT=$ac_cv_objext
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4145 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4146 if ${ac_cv_c_compiler_gnu+:} false; then :
4147 $as_echo_n "(cached) " >&6
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4163 if ac_fn_c_try_compile "$LINENO"; then :
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4173 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4174 if test $ac_compiler_gnu = yes; then
4179 ac_test_CFLAGS=${CFLAGS+set}
4180 ac_save_CFLAGS=$CFLAGS
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4182 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4183 if ${ac_cv_prog_cc_g+:} false; then :
4184 $as_echo_n "(cached) " >&6
4186 ac_save_c_werror_flag=$ac_c_werror_flag
4187 ac_c_werror_flag=yes
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4201 if ac_fn_c_try_compile "$LINENO"; then :
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4216 if ac_fn_c_try_compile "$LINENO"; then :
4219 ac_c_werror_flag=$ac_save_c_werror_flag
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4232 if ac_fn_c_try_compile "$LINENO"; then :
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 ac_c_werror_flag=$ac_save_c_werror_flag
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4243 $as_echo "$ac_cv_prog_cc_g" >&6; }
4244 if test "$ac_test_CFLAGS" = set; then
4245 CFLAGS=$ac_save_CFLAGS
4246 elif test $ac_cv_prog_cc_g = yes; then
4247 if test "$GCC" = yes; then
4253 if test "$GCC" = yes; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4260 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4261 if ${ac_cv_prog_cc_c89+:} false; then :
4262 $as_echo_n "(cached) " >&6
4264 ac_cv_prog_cc_c89=no
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4272 struct buf { int x; };
4273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4274 static char *e (p, i)
4280 static char *f (char * (*g) (char **, int), char **p, ...)
4285 s = g (p, va_arg (v,int));
4290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4291 function prototypes and stuff, but not '\xHH' hex character constants.
4292 These don't provoke an error unfortunately, instead are silently treated
4293 as 'x'. The following induces an error, until -std is added to get
4294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4295 array size at least. It's necessary to write '\x00'==0 to get something
4296 that's true only with -std. */
4297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4300 inside strings and character constants. */
4302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4304 int test (int i, double x);
4305 struct s1 {int (*f) (int a);};
4306 struct s2 {int (*f) (double a);};
4307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4321 CC="$ac_save_CC $ac_arg"
4322 if ac_fn_c_try_compile "$LINENO"; then :
4323 ac_cv_prog_cc_c89=$ac_arg
4325 rm -f core conftest.err conftest.$ac_objext
4326 test "x$ac_cv_prog_cc_c89" != "xno" && break
4328 rm -f conftest.$ac_ext
4333 case "x$ac_cv_prog_cc_c89" in
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4336 $as_echo "none needed" >&6; } ;;
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4339 $as_echo "unsupported" >&6; } ;;
4341 CC="$CC $ac_cv_prog_cc_c89"
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4343 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4345 if test "x$ac_cv_prog_cc_c89" != xno; then :
4350 ac_cpp='$CPP $CPPFLAGS'
4351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 ac_cpp='$CPP $CPPFLAGS'
4357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4361 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4362 if ${am_cv_prog_cc_c_o+:} false; then :
4363 $as_echo_n "(cached) " >&6
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4376 # Make sure it works both with $CC and with simple cc.
4377 # Following AC_PROG_CC_C_O, we do the test twice because some
4378 # compilers refuse to overwrite an existing .o file with -o,
4379 # though they will create one.
4380 am_cv_prog_cc_c_o=yes
4382 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4383 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } \
4387 && test -f conftest2.$ac_objext; then
4390 am_cv_prog_cc_c_o=no
4394 rm -f core conftest*
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4398 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4399 if test "$am_cv_prog_cc_c_o" != yes; then
4400 # Losing compiler, so override with the script.
4401 # FIXME: It is wrong to rewrite CC.
4402 # But if we don't then we get into trouble of one sort or another.
4403 # A longer-term fix would be to have automake use am__CC in this case,
4404 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4405 CC="$am_aux_dir/compile $CC"
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4413 DEPDIR="${am__leading_dot}deps"
4415 ac_config_commands="$ac_config_commands depfiles"
4418 am_make=${MAKE-make}
4419 cat > confinc << 'END'
4421 @echo this is the am__doit target
4424 # If we don't find an include directive, just comment out the code.
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4426 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4430 # First try GNU make style include.
4431 echo "include confinc" > confmf
4432 # Ignore all kinds of additional output from 'make'.
4433 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4434 *the\ am__doit\ target*)
4440 # Now try BSD make style include.
4441 if test "$am__include" = "#"; then
4442 echo '.include "confinc"' > confmf
4443 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4444 *the\ am__doit\ target*)
4445 am__include=.include
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4454 $as_echo "$_am_result" >&6; }
4455 rm -f confinc confmf
4457 # Check whether --enable-dependency-tracking was given.
4458 if test "${enable_dependency_tracking+set}" = set; then :
4459 enableval=$enable_dependency_tracking;
4462 if test "x$enable_dependency_tracking" != xno; then
4463 am_depcomp="$ac_aux_dir/depcomp"
4467 if test "x$enable_dependency_tracking" != xno; then
4477 depcc="$CC" am_compiler_list=
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4480 $as_echo_n "checking dependency style of $depcc... " >&6; }
4481 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4482 $as_echo_n "(cached) " >&6
4484 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4485 # We make a subdir and do the tests there. Otherwise we can end up
4486 # making bogus files that we don't know about and never remove. For
4487 # instance it was reported that on HP-UX the gcc test will end up
4488 # making a dummy file named 'D' -- because '-MD' means "put the output
4492 # Copy depcomp to subdir because otherwise we won't find it if we're
4493 # using a relative directory.
4494 cp "$am_depcomp" conftest.dir
4496 # We will build objects and dependencies in a subdirectory because
4497 # it helps to detect inapplicable dependency modes. For instance
4498 # both Tru64's cc and ICC support -MD to output dependencies as a
4499 # side effect of compilation, but ICC will put the dependencies in
4500 # the current directory while Tru64 will put them in the object
4504 am_cv_CC_dependencies_compiler_type=none
4505 if test "$am_compiler_list" = ""; then
4506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4509 case " $depcc " in #(
4510 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4513 for depmode in $am_compiler_list; do
4514 # Setup a source with many dependencies, because some compilers
4515 # like to wrap large dependency lists on column 80 (with \), and
4516 # we should not choose a depcomp mode which is confused by this.
4518 # We need to recreate these files for each test, as the compiler may
4519 # overwrite some of them when testing with obscure command lines.
4520 # This happens at least with the AIX C compiler.
4522 for i in 1 2 3 4 5 6; do
4523 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4524 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4525 # Solaris 10 /bin/sh.
4526 echo '/* dummy */' > sub/conftst$i.h
4528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4530 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4531 # mode. It turns out that the SunPro C++ compiler does not properly
4532 # handle '-M -o', and we need to detect this. Also, some Intel
4533 # versions had trouble with output in subdirs.
4534 am__obj=sub/conftest.${OBJEXT-o}
4535 am__minus_obj="-o $am__obj"
4538 # This depmode causes a compiler race in universal mode.
4539 test "$am__universal" = false || continue
4542 # After this tag, mechanisms are not by side-effect, so they'll
4543 # only be used when explicitly requested.
4544 if test "x$enable_dependency_tracking" = xyes; then
4550 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4551 # This compiler won't grok '-c -o', but also, the minuso test has
4552 # not run yet. These depmodes are late enough in the game, and
4553 # so weak that their functioning should not be impacted.
4554 am__obj=conftest.${OBJEXT-o}
4559 if depmode=$depmode \
4560 source=sub/conftest.c object=$am__obj \
4561 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4562 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4563 >/dev/null 2>conftest.err &&
4564 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4565 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4566 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4567 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4568 # icc doesn't choke on unknown options, it will just issue warnings
4569 # or remarks (even with -Werror). So we grep stderr for any message
4570 # that says an option was ignored or not supported.
4571 # When given -MP, icc 7.0 and 7.1 complain thusly:
4572 # icc: Command line warning: ignoring option '-M'; no argument required
4573 # The diagnosis changed in icc 8.0:
4574 # icc: Command line remark: option '-MP' not supported
4575 if (grep 'ignoring option' conftest.err ||
4576 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4577 am_cv_CC_dependencies_compiler_type=$depmode
4586 am_cv_CC_dependencies_compiler_type=none
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4591 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4592 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4595 test "x$enable_dependency_tracking" != xno \
4596 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4598 am__fastdepCC_FALSE='#'
4600 am__fastdepCC_TRUE='#'
4601 am__fastdepCC_FALSE=
4609 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4610 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4611 # in both places for now and restore CFLAGS at the end of config.
4612 save_CFLAGS="$CFLAGS"
4614 # Add -Wall -Werror if we are using GCC.
4615 if test "x$GCC" = "xyes"; then
4616 XCFLAGS="$XCFLAGS -Wall -Werror"
4619 # Find other programs we need.
4620 if test -n "$ac_tool_prefix"; then
4621 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4622 set dummy ${ac_tool_prefix}ar; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if ${ac_cv_prog_AR+:} false; then :
4626 $as_echo_n "(cached) " >&6
4628 if test -n "$AR"; then
4629 ac_cv_prog_AR="$AR" # Let the user override the test.
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638 ac_cv_prog_AR="${ac_tool_prefix}ar"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 if test -n "$AR"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4651 $as_echo "$AR" >&6; }
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4659 if test -z "$ac_cv_prog_AR"; then
4661 # Extract the first word of "ar", so it can be a program name with args.
4662 set dummy ar; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4666 $as_echo_n "(cached) " >&6
4668 if test -n "$ac_ct_AR"; then
4669 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_ac_ct_AR="ar"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4689 if test -n "$ac_ct_AR"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4691 $as_echo "$ac_ct_AR" >&6; }
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4697 if test "x$ac_ct_AR" = x; then
4700 case $cross_compiling:$ac_tool_warned in
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704 ac_tool_warned=yes ;;
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if ${ac_cv_prog_RANLIB+:} false; then :
4718 $as_echo_n "(cached) " >&6
4720 if test -n "$RANLIB"; then
4721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 RANLIB=$ac_cv_prog_RANLIB
4741 if test -n "$RANLIB"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4743 $as_echo "$RANLIB" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4751 if test -z "$ac_cv_prog_RANLIB"; then
4752 ac_ct_RANLIB=$RANLIB
4753 # Extract the first word of "ranlib", so it can be a program name with args.
4754 set dummy ranlib; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -n "$ac_ct_RANLIB"; then
4761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_ac_ct_RANLIB="ranlib"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4781 if test -n "$ac_ct_RANLIB"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4783 $as_echo "$ac_ct_RANLIB" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4789 if test "x$ac_ct_RANLIB" = x; then
4790 RANLIB="ranlib-not-found-in-path-error"
4792 case $cross_compiling:$ac_tool_warned in
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4796 ac_tool_warned=yes ;;
4798 RANLIB=$ac_ct_RANLIB
4801 RANLIB="$ac_cv_prog_RANLIB"
4804 # Extract the first word of "perl", so it can be a program name with args.
4805 set dummy perl; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_path_PERL+:} false; then :
4809 $as_echo_n "(cached) " >&6
4813 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4835 PERL=$ac_cv_path_PERL
4836 if test -n "$PERL"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4838 $as_echo "$PERL" >&6; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4848 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4849 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4850 $as_echo_n "(cached) " >&6
4852 cat >conftest.make <<\_ACEOF
4855 @echo '@@@%%%=$(MAKE)=@@@%%%'
4857 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4858 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4860 eval ac_cv_prog_make_${ac_make}_set=yes;;
4862 eval ac_cv_prog_make_${ac_make}_set=no;;
4866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4868 $as_echo "yes" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 SET_MAKE="MAKE=${MAKE-make}"
4878 # See if makeinfo has been installed and is modern enough
4879 # that we can use it.
4881 # Extract the first word of "makeinfo", so it can be a program name with args.
4882 set dummy makeinfo; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_prog_MAKEINFO+:} false; then :
4886 $as_echo_n "(cached) " >&6
4888 if test -n "$MAKEINFO"; then
4889 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_MAKEINFO="makeinfo"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 MAKEINFO=$ac_cv_prog_MAKEINFO
4909 if test -n "$MAKEINFO"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4911 $as_echo "$MAKEINFO" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4918 if test -n "$MAKEINFO"; then
4919 # Found it, now check the version.
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4921 $as_echo_n "checking for modern makeinfo... " >&6; }
4922 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4923 $as_echo_n "(cached) " >&6
4925 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4926 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4928 case $ac_prog_version in
4929 '') gcc_cv_prog_makeinfo_modern=no;;
4930 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4931 *) gcc_cv_prog_makeinfo_modern=no;;
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4936 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4938 gcc_cv_prog_makeinfo_modern=no
4940 if test $gcc_cv_prog_makeinfo_modern = no; then
4941 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4944 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4946 BUILD_INFO_FALSE='#'
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4958 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4963 macro_version='2.2.7a'
4964 macro_revision='1.3134'
4978 ltmain="$ac_aux_dir/ltmain.sh"
4980 # Backslashify metacharacters that are still active within
4981 # double-quoted strings.
4982 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4984 # Same as above, but do not quote variable references.
4985 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4987 # Sed substitution to delay expansion of an escaped shell variable in a
4988 # double_quote_subst'ed string.
4989 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4991 # Sed substitution to delay expansion of an escaped single quote.
4992 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4994 # Sed substitution to avoid accidental globbing in evaled expressions
4995 no_glob_subst='s/\*/\\\*/g'
4997 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
5002 $as_echo_n "checking how to print
strings...
" >&6; }
5003 # Test print first, because it will be a builtin if present.
5004 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
5005 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
5007 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
5010 # Use this function as a fallback that always works.
5011 func_fallback_echo ()
5013 eval 'cat <<_LTECHO_EOF
5017 ECHO='func_fallback_echo'
5020 # func_echo_all arg...
5021 # Invoke $ECHO with all args, space-separated.
5028 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
5029 $as_echo "printf" >&6; } ;;
5030 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5031 $as_echo "print
-r" >&6; } ;;
5032 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5033 $as_echo "cat" >&6; } ;;
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5050 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5051 if ${ac_cv_path_SED+:} false; then :
5052 $as_echo_n "(cached
) " >&6
5054 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5055 for ac_i in 1 2 3 4 5 6 7; do
5056 ac_script="$ac_script$as_nl$ac_script"
5058 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5059 { ac_script=; unset ac_script;}
5060 if test -z "$SED"; then
5061 ac_path_SED_found=false
5062 # Loop through the user's path and test for each of PROGNAME-LIST
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir=.
5068 for ac_prog in sed gsed; do
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5071 as_fn_executable_p "$ac_path_SED" || continue
5072 # Check for GNU ac_path_SED and select it if it is found.
5073 # Check for GNU $ac_path_SED
5074 case `"$ac_path_SED" --version 2>&1` in
5076 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5079 $as_echo_n 0123456789 >"conftest.
in"
5082 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5083 mv "conftest.tmp
" "conftest.
in"
5084 cp "conftest.
in" "conftest.
nl"
5085 $as_echo '' >> "conftest.
nl"
5086 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5087 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5088 as_fn_arith $ac_count + 1 && ac_count=$as_val
5089 if test $ac_count -gt ${ac_path_SED_max-0}; then
5090 # Best one so far, save it but keep looking for a better one
5091 ac_cv_path_SED="$ac_path_SED"
5092 ac_path_SED_max=$ac_count
5094 # 10*(2^10) chars as input seems more than enough
5095 test $ac_count -gt 10 && break
5097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5100 $ac_path_SED_found && break 3
5105 if test -z "$ac_cv_path_SED"; then
5106 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5114 $as_echo "$ac_cv_path_SED" >&6; }
5115 SED="$ac_cv_path_SED"
5118 test -z "$SED" && SED=sed
5119 Xsed="$SED -e 1s
/^X
//"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5132 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5133 if ${ac_cv_path_GREP+:} false; then :
5134 $as_echo_n "(cached
) " >&6
5136 if test -z "$GREP"; then
5137 ac_path_GREP_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in grep ggrep; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5147 as_fn_executable_p "$ac_path_GREP" || continue
5148 # Check for GNU ac_path_GREP and select it if it is found.
5149 # Check for GNU $ac_path_GREP
5150 case `"$ac_path_GREP" --version 2>&1` in
5152 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5155 $as_echo_n 0123456789 >"conftest.
in"
5158 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5159 mv "conftest.tmp
" "conftest.
in"
5160 cp "conftest.
in" "conftest.
nl"
5161 $as_echo 'GREP' >> "conftest.
nl"
5162 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5163 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5164 as_fn_arith $ac_count + 1 && ac_count=$as_val
5165 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_GREP="$ac_path_GREP"
5168 ac_path_GREP_max=$ac_count
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5176 $ac_path_GREP_found && break 3
5181 if test -z "$ac_cv_path_GREP"; then
5182 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5185 ac_cv_path_GREP=$GREP
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5190 $as_echo "$ac_cv_path_GREP" >&6; }
5191 GREP="$ac_cv_path_GREP"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5195 $as_echo_n "checking
for egrep...
" >&6; }
5196 if ${ac_cv_path_EGREP+:} false; then :
5197 $as_echo_n "(cached
) " >&6
5199 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5200 then ac_cv_path_EGREP="$GREP -E"
5202 if test -z "$EGREP"; then
5203 ac_path_EGREP_found=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5209 test -z "$as_dir" && as_dir=.
5210 for ac_prog in egrep; do
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5213 as_fn_executable_p "$ac_path_EGREP" || continue
5214 # Check for GNU ac_path_EGREP and select it if it is found.
5215 # Check for GNU $ac_path_EGREP
5216 case `"$ac_path_EGREP" --version 2>&1` in
5218 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5221 $as_echo_n 0123456789 >"conftest.
in"
5224 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5225 mv "conftest.tmp
" "conftest.
in"
5226 cp "conftest.
in" "conftest.
nl"
5227 $as_echo 'EGREP' >> "conftest.
nl"
5228 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5229 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5230 as_fn_arith $ac_count + 1 && ac_count=$as_val
5231 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5232 # Best one so far, save it but keep looking for a better one
5233 ac_cv_path_EGREP="$ac_path_EGREP"
5234 ac_path_EGREP_max=$ac_count
5236 # 10*(2^10) chars as input seems more than enough
5237 test $ac_count -gt 10 && break
5239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5242 $ac_path_EGREP_found && break 3
5247 if test -z "$ac_cv_path_EGREP"; then
5248 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5251 ac_cv_path_EGREP=$EGREP
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5257 $as_echo "$ac_cv_path_EGREP" >&6; }
5258 EGREP="$ac_cv_path_EGREP"
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5262 $as_echo_n "checking
for fgrep...
" >&6; }
5263 if ${ac_cv_path_FGREP+:} false; then :
5264 $as_echo_n "(cached
) " >&6
5266 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5267 then ac_cv_path_FGREP="$GREP -F"
5269 if test -z "$FGREP"; then
5270 ac_path_FGREP_found=false
5271 # Loop through the user's path and test for each of PROGNAME-LIST
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5276 test -z "$as_dir" && as_dir=.
5277 for ac_prog in fgrep; do
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5280 as_fn_executable_p "$ac_path_FGREP" || continue
5281 # Check for GNU ac_path_FGREP and select it if it is found.
5282 # Check for GNU $ac_path_FGREP
5283 case `"$ac_path_FGREP" --version 2>&1` in
5285 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5288 $as_echo_n 0123456789 >"conftest.
in"
5291 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5292 mv "conftest.tmp
" "conftest.
in"
5293 cp "conftest.
in" "conftest.
nl"
5294 $as_echo 'FGREP' >> "conftest.
nl"
5295 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5296 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5297 as_fn_arith $ac_count + 1 && ac_count=$as_val
5298 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5299 # Best one so far, save it but keep looking for a better one
5300 ac_cv_path_FGREP="$ac_path_FGREP"
5301 ac_path_FGREP_max=$ac_count
5303 # 10*(2^10) chars as input seems more than enough
5304 test $ac_count -gt 10 && break
5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5309 $ac_path_FGREP_found && break 3
5314 if test -z "$ac_cv_path_FGREP"; then
5315 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5318 ac_cv_path_FGREP=$FGREP
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5324 $as_echo "$ac_cv_path_FGREP" >&6; }
5325 FGREP="$ac_cv_path_FGREP"
5328 test -z "$GREP" && GREP=grep
5348 # Check whether --with-gnu-ld was given.
5349 if test "${with_gnu_ld+set}" = set; then :
5350 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5356 if test "$GCC" = yes; then
5357 # Check if gcc -print-prog-name=ld gives a path.
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5359 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5362 # gcc leaves a trailing carriage return which upsets mingw
5363 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5368 # Accept absolute paths.
5370 re_direlt='/[^/][^/]*/\.\./'
5371 # Canonicalize the pathname of ld
5372 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5373 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5374 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5376 test -z "$LD" && LD="$ac_prog"
5379 # If it fails, then pretend we aren't using GCC.
5383 # If it is relative, then search for the first ld in PATH.
5387 elif test "$with_gnu_ld" = yes; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5389 $as_echo_n "checking
for GNU ld...
" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5392 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5394 if ${lt_cv_path_LD+:} false; then :
5395 $as_echo_n "(cached
) " >&6
5397 if test -z "$LD"; then
5398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5399 for ac_dir in $PATH; do
5401 test -z "$ac_dir" && ac_dir=.
5402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5403 lt_cv_path_LD="$ac_dir/$ac_prog"
5404 # Check to see if the program is GNU ld. I'd rather use --version,
5405 # but apparently some variants of GNU ld only accept -v.
5406 # Break only if it was the GNU/non-GNU ld that we prefer.
5407 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5408 *GNU* | *'with BFD'*)
5409 test "$with_gnu_ld" != no && break
5412 test "$with_gnu_ld" != yes && break
5419 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5424 if test -n "$LD"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5426 $as_echo "$LD" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5429 $as_echo "no
" >&6; }
5431 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5433 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5434 if ${lt_cv_prog_gnu_ld+:} false; then :
5435 $as_echo_n "(cached
) " >&6
5437 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5438 case `$LD -v 2>&1 </dev/null` in
5439 *GNU* | *'with BFD'*)
5440 lt_cv_prog_gnu_ld=yes
5443 lt_cv_prog_gnu_ld=no
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5448 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5449 with_gnu_ld=$lt_cv_prog_gnu_ld
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5460 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5461 if ${lt_cv_path_NM+:} false; then :
5462 $as_echo_n "(cached
) " >&6
5464 if test -n "$NM"; then
5465 # Let the user override the test.
5468 lt_nm_to_check="${ac_tool_prefix}nm
"
5469 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5470 lt_nm_to_check="$lt_nm_to_check nm
"
5472 for lt_tmp_nm in $lt_nm_to_check; do
5473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5474 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5476 test -z "$ac_dir" && ac_dir=.
5477 tmp_nm="$ac_dir/$lt_tmp_nm"
5478 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5479 # Check to see if the nm accepts a BSD-compat flag.
5480 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5481 # nm: unknown option "B
" ignored
5482 # Tru64's nm complains that /dev/null is an invalid object file
5483 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5484 */dev/null* | *'Invalid file or object type'*)
5485 lt_cv_path_NM="$tmp_nm -B"
5489 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5491 lt_cv_path_NM="$tmp_nm -p"
5495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5496 continue # so that we can try to find one that supports BSD flags
5505 : ${lt_cv_path_NM=no}
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5509 $as_echo "$lt_cv_path_NM" >&6; }
5510 if test "$lt_cv_path_NM" != "no
"; then
5513 # Didn't find any BSD compatible name lister, look for dumpbin.
5514 if test -n "$DUMPBIN"; then :
5515 # Let the user override the test.
5517 if test -n "$ac_tool_prefix"; then
5518 for ac_prog in dumpbin "link
-dump"
5520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5523 $as_echo_n "checking
for $ac_word...
" >&6; }
5524 if ${ac_cv_prog_DUMPBIN+:} false; then :
5525 $as_echo_n "(cached
) " >&6
5527 if test -n "$DUMPBIN"; then
5528 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5547 DUMPBIN=$ac_cv_prog_DUMPBIN
5548 if test -n "$DUMPBIN"; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5550 $as_echo "$DUMPBIN" >&6; }
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5553 $as_echo "no
" >&6; }
5557 test -n "$DUMPBIN" && break
5560 if test -z "$DUMPBIN"; then
5561 ac_ct_DUMPBIN=$DUMPBIN
5562 for ac_prog in dumpbin "link
-dump"
5564 # Extract the first word of "$ac_prog", so it can be a program name with args.
5565 set dummy $ac_prog; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5567 $as_echo_n "checking
for $ac_word...
" >&6; }
5568 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5569 $as_echo_n "(cached
) " >&6
5571 if test -n "$ac_ct_DUMPBIN"; then
5572 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5591 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5592 if test -n "$ac_ct_DUMPBIN"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5594 $as_echo "$ac_ct_DUMPBIN" >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5597 $as_echo "no
" >&6; }
5601 test -n "$ac_ct_DUMPBIN" && break
5604 if test "x
$ac_ct_DUMPBIN" = x; then
5607 case $cross_compiling:$ac_tool_warned in
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5610 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5611 ac_tool_warned=yes ;;
5613 DUMPBIN=$ac_ct_DUMPBIN
5617 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5619 DUMPBIN="$DUMPBIN -symbols"
5627 if test "$DUMPBIN" != ":"; then
5631 test -z "$NM" && NM=nm
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5639 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5640 if ${lt_cv_nm_interface+:} false; then :
5641 $as_echo_n "(cached
) " >&6
5643 lt_cv_nm_interface="BSD nm
"
5644 echo "int some_variable
= 0;" > conftest.$ac_ext
5645 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5646 (eval "$ac_compile" 2>conftest.err)
5647 cat conftest.err >&5
5648 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5649 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5650 cat conftest.err >&5
5651 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5652 cat conftest.out >&5
5653 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5654 lt_cv_nm_interface="MS dumpbin
"
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5659 $as_echo "$lt_cv_nm_interface" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5662 $as_echo_n "checking whether
ln -s works...
" >&6; }
5664 if test "$LN_S" = "ln -s"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5666 $as_echo "yes" >&6; }
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5669 $as_echo "no
, using
$LN_S" >&6; }
5672 # find the maximum length of command line arguments
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5674 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5675 if ${lt_cv_sys_max_cmd_len+:} false; then :
5676 $as_echo_n "(cached
) " >&6
5683 # On DJGPP, this test can blow up pretty badly due to problems in libc
5684 # (any single argument exceeding 2000 bytes causes a buffer overrun
5685 # during glob expansion). Even if it were fixed, the result of this
5686 # check would be larger than it should be.
5687 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5691 # Under GNU Hurd, this test is not required because there is
5692 # no limit to the length of command line arguments.
5693 # Libtool will interpret -1 as no limit whatsoever
5694 lt_cv_sys_max_cmd_len=-1;
5697 cygwin* | mingw* | cegcc*)
5698 # On Win9x/ME, this test blows up -- it succeeds, but takes
5699 # about 5 minutes as the teststring grows exponentially.
5700 # Worse, since 9x/ME are not pre-emptively multitasking,
5701 # you end up with a "frozen
" computer, even though with patience
5702 # the test eventually succeeds (with a max line length of 256k).
5703 # Instead, let's just punt: use the minimum linelength reported by
5704 # all of the supported platforms: 8192 (on NT/2K/XP).
5705 lt_cv_sys_max_cmd_len=8192;
5709 # On MiNT this can take a long time and run out of memory.
5710 lt_cv_sys_max_cmd_len=8192;
5714 # On AmigaOS with pdksh, this test takes hours, literally.
5715 # So we just punt and use a minimum line length of 8192.
5716 lt_cv_sys_max_cmd_len=8192;
5719 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5720 # This has been around since 386BSD, at least. Likely further.
5721 if test -x /sbin/sysctl; then
5722 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5723 elif test -x /usr/sbin/sysctl; then
5724 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5726 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5728 # And add a safety zone
5729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5734 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5735 lt_cv_sys_max_cmd_len=196608
5739 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5740 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5741 # nice to cause kernel panics so lets avoid the loop below.
5742 # First set a reasonable default.
5743 lt_cv_sys_max_cmd_len=16384
5745 if test -x /sbin/sysconfig; then
5746 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5747 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5752 lt_cv_sys_max_cmd_len=102400
5754 sysv5* | sco5v6* | sysv4.2uw2*)
5755 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5756 if test -n "$kargmax"; then
5757 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5759 lt_cv_sys_max_cmd_len=32768
5763 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5764 if test -n "$lt_cv_sys_max_cmd_len"; then
5765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5768 # Make teststring a little bigger before we do anything with it.
5769 # a 1K string should be a reasonable start.
5770 for i in 1 2 3 4 5 6 7 8 ; do
5771 teststring=$teststring$teststring
5773 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5774 # If test is not a shell built-in, we'll probably end up computing a
5775 # maximum length that is only half of the actual maximum length, but
5777 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5778 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5779 test $i != 17 # 1/2 MB should be enough
5782 teststring=$teststring$teststring
5784 # Only check the string length outside the loop.
5785 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5787 # Add a significant safety factor because C++ compilers can tack on
5788 # massive amounts of additional arguments before passing them to the
5789 # linker. It appears as though 1/2 is a usable value.
5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5797 if test -n $lt_cv_sys_max_cmd_len ; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5799 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5802 $as_echo "none
" >&6; }
5804 max_cmd_len=$lt_cv_sys_max_cmd_len
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5816 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5817 # Try some XSI features
5820 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5822 && eval 'test $(( 1 + 1 )) -eq 2 \
5823 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5826 $as_echo "$xsi_shell" >&6; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5830 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5832 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5834 && lt_shell_append
=yes
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5836 $as_echo "$lt_shell_append" >&6; }
5839 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5849 # test EBCDIC or ASCII
5850 case `echo X|tr X '\101'` in
5851 A
) # ASCII based system
5852 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5853 lt_SP2NL
='tr \040 \012'
5854 lt_NL2SP
='tr \015\012 \040\040'
5856 *) # EBCDIC based system
5857 lt_SP2NL
='tr \100 \n'
5858 lt_NL2SP
='tr \r\n \100\100'
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5871 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5872 if ${lt_cv_ld_reload_flag+:} false
; then :
5873 $as_echo_n "(cached) " >&6
5875 lt_cv_ld_reload_flag
='-r'
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5878 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5879 reload_flag
=$lt_cv_ld_reload_flag
5880 case $reload_flag in
5882 *) reload_flag
=" $reload_flag" ;;
5884 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5887 if test "$GCC" = yes; then
5888 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5890 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5905 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5909 $as_echo_n "(cached) " >&6
5911 if test -n "$OBJDUMP"; then
5912 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir
=.
5919 for ac_exec_ext
in '' $ac_executable_extensions; do
5920 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 OBJDUMP
=$ac_cv_prog_OBJDUMP
5932 if test -n "$OBJDUMP"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5934 $as_echo "$OBJDUMP" >&6; }
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5942 if test -z "$ac_cv_prog_OBJDUMP"; then
5943 ac_ct_OBJDUMP
=$OBJDUMP
5944 # Extract the first word of "objdump", so it can be a program name with args.
5945 set dummy objdump
; ac_word
=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5949 $as_echo_n "(cached) " >&6
5951 if test -n "$ac_ct_OBJDUMP"; then
5952 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir
=.
5959 for ac_exec_ext
in '' $ac_executable_extensions; do
5960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5972 if test -n "$ac_ct_OBJDUMP"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5974 $as_echo "$ac_ct_OBJDUMP" >&6; }
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5980 if test "x$ac_ct_OBJDUMP" = x
; then
5983 case $cross_compiling:$ac_tool_warned in
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987 ac_tool_warned
=yes ;;
5989 OBJDUMP
=$ac_ct_OBJDUMP
5992 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5995 test -z "$OBJDUMP" && OBJDUMP
=objdump
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6006 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6007 if ${lt_cv_deplibs_check_method+:} false
; then :
6008 $as_echo_n "(cached) " >&6
6010 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6011 lt_cv_file_magic_test_file
=
6012 lt_cv_deplibs_check_method
='unknown'
6013 # Need to set the preceding variable on all platforms that support
6014 # interlibrary dependencies.
6015 # 'none' -- dependencies not supported.
6016 # `unknown' -- same as none, but documents that we really don't know.
6017 # 'pass_all' -- all dependencies passed with no checks.
6018 # 'test_compile' -- check by making test program.
6019 # 'file_magic [[regex]]' -- check by looking for files in library path
6020 # which responds to the $file_magic_cmd with a given extended regex.
6021 # If you have `file' or equivalent on your system and you're not sure
6022 # whether `pass_all' will *always* work, you probably want this one.
6026 lt_cv_deplibs_check_method
=pass_all
6030 lt_cv_deplibs_check_method
=pass_all
6034 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6035 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6036 lt_cv_file_magic_test_file
=/shlib
/libc.so
6040 # func_win32_libid is a shell function defined in ltmain.sh
6041 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6042 lt_cv_file_magic_cmd
='func_win32_libid'
6046 # Base MSYS/MinGW do not provide the 'file' command needed by
6047 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6048 # unless we find 'file', for example because we are cross-compiling.
6049 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6050 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6051 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6052 lt_cv_file_magic_cmd
='func_win32_libid'
6054 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6055 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6060 # use the weaker test based on 'objdump'. See mingw*.
6061 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6062 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6065 darwin
* | rhapsody
*)
6066 lt_cv_deplibs_check_method
=pass_all
6069 freebsd
* | dragonfly
*)
6070 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6073 # Not sure whether the presence of OpenBSD here was a mistake.
6074 # Let's accept both of them until this is cleared up.
6075 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6076 lt_cv_file_magic_cmd
=/usr
/bin
/file
6077 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6081 lt_cv_deplibs_check_method
=pass_all
6086 lt_cv_deplibs_check_method
=pass_all
6090 lt_cv_deplibs_check_method
=pass_all
6093 hpux10.20
* | hpux11
*)
6094 lt_cv_file_magic_cmd
=/usr
/bin
/file
6097 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6098 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6101 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]'
6102 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6105 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6106 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6112 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6113 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6116 irix5
* | irix6
* | nonstopux
*)
6118 *-32|
*"-32 ") libmagic
=32-bit;;
6119 *-n32|
*"-n32 ") libmagic
=N32
;;
6120 *-64|
*"-64 ") libmagic
=64-bit;;
6121 *) libmagic
=never-match
;;
6123 lt_cv_deplibs_check_method
=pass_all
6126 # This must be Linux ELF.
6127 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
6128 lt_cv_deplibs_check_method
=pass_all
6132 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6133 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6135 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6140 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6141 lt_cv_file_magic_cmd
=/usr
/bin
/file
6142 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6146 lt_cv_deplibs_check_method
=pass_all
6150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6151 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6153 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6157 osf3
* | osf4
* | osf5
*)
6158 lt_cv_deplibs_check_method
=pass_all
6162 lt_cv_deplibs_check_method
=pass_all
6166 lt_cv_deplibs_check_method
=pass_all
6169 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6170 lt_cv_deplibs_check_method
=pass_all
6174 case $host_vendor in
6176 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]'
6177 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6180 lt_cv_deplibs_check_method
=pass_all
6183 lt_cv_file_magic_cmd
='/bin/file'
6184 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6187 lt_cv_file_magic_cmd
='/bin/file'
6188 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6189 lt_cv_file_magic_test_file
=/lib
/libc.so
6192 lt_cv_deplibs_check_method
=pass_all
6195 lt_cv_deplibs_check_method
=pass_all
6201 lt_cv_deplibs_check_method
=pass_all
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6207 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6208 file_magic_cmd
=$lt_cv_file_magic_cmd
6209 deplibs_check_method
=$lt_cv_deplibs_check_method
6210 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6223 if test -n "$ac_tool_prefix"; then
6224 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6225 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_AR+:} false
; then :
6229 $as_echo_n "(cached) " >&6
6231 if test -n "$AR"; then
6232 ac_cv_prog_AR
="$AR" # Let the user override the test.
6234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6238 test -z "$as_dir" && as_dir
=.
6239 for ac_exec_ext
in '' $ac_executable_extensions; do
6240 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 if test -n "$AR"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6254 $as_echo "$AR" >&6; }
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6262 if test -z "$ac_cv_prog_AR"; then
6264 # Extract the first word of "ar", so it can be a program name with args.
6265 set dummy
ar; ac_word
=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6269 $as_echo_n "(cached) " >&6
6271 if test -n "$ac_ct_AR"; then
6272 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir
=.
6279 for ac_exec_ext
in '' $ac_executable_extensions; do
6280 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6281 ac_cv_prog_ac_ct_AR
="ar"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6292 if test -n "$ac_ct_AR"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6294 $as_echo "$ac_ct_AR" >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6300 if test "x$ac_ct_AR" = x
; then
6303 case $cross_compiling:$ac_tool_warned in
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307 ac_tool_warned
=yes ;;
6315 test -z "$AR" && AR
=ar
6316 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6330 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_STRIP+:} false
; then :
6334 $as_echo_n "(cached) " >&6
6336 if test -n "$STRIP"; then
6337 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir
=.
6344 for ac_exec_ext
in '' $ac_executable_extensions; do
6345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6346 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 STRIP
=$ac_cv_prog_STRIP
6357 if test -n "$STRIP"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6359 $as_echo "$STRIP" >&6; }
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6367 if test -z "$ac_cv_prog_STRIP"; then
6369 # Extract the first word of "strip", so it can be a program name with args.
6370 set dummy strip
; ac_word
=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6374 $as_echo_n "(cached) " >&6
6376 if test -n "$ac_ct_STRIP"; then
6377 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir
=.
6384 for ac_exec_ext
in '' $ac_executable_extensions; do
6385 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6386 ac_cv_prog_ac_ct_STRIP
="strip"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6397 if test -n "$ac_ct_STRIP"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6399 $as_echo "$ac_ct_STRIP" >&6; }
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6405 if test "x$ac_ct_STRIP" = x
; then
6408 case $cross_compiling:$ac_tool_warned in
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412 ac_tool_warned
=yes ;;
6417 STRIP
="$ac_cv_prog_STRIP"
6420 test -z "$STRIP" && STRIP
=:
6427 if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6429 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_RANLIB+:} false
; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$RANLIB"; then
6436 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir
=.
6443 for ac_exec_ext
in '' $ac_executable_extensions; do
6444 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 RANLIB
=$ac_cv_prog_RANLIB
6456 if test -n "$RANLIB"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6458 $as_echo "$RANLIB" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6466 if test -z "$ac_cv_prog_RANLIB"; then
6467 ac_ct_RANLIB
=$RANLIB
6468 # Extract the first word of "ranlib", so it can be a program name with args.
6469 set dummy ranlib
; ac_word
=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$ac_ct_RANLIB"; then
6476 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir
=.
6483 for ac_exec_ext
in '' $ac_executable_extensions; do
6484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6496 if test -n "$ac_ct_RANLIB"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6498 $as_echo "$ac_ct_RANLIB" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6504 if test "x$ac_ct_RANLIB" = x
; then
6507 case $cross_compiling:$ac_tool_warned in
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6511 ac_tool_warned
=yes ;;
6513 RANLIB
=$ac_ct_RANLIB
6516 RANLIB
="$ac_cv_prog_RANLIB"
6519 test -z "$RANLIB" && RANLIB
=:
6526 # Determine commands to create old-style static archives.
6527 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6528 old_postinstall_cmds
='chmod 644 $oldlib'
6529 old_postuninstall_cmds
=
6531 if test -n "$RANLIB"; then
6534 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6537 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6540 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6545 lock_old_archive_extraction
=yes ;;
6547 lock_old_archive_extraction
=no
;;
6588 # If no C compiler was specified, use CC.
6591 # If no C compiler flags were specified, use CFLAGS.
6592 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6594 # Allow CC to be a program name with arguments.
6598 # Check for command to grab the raw symbol name followed by C symbol from nm.
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6600 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6601 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6602 $as_echo_n "(cached) " >&6
6605 # These are sane defaults that work on at least a few old systems.
6606 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6608 # Character class describing NM global symbol codes.
6609 symcode
='[BCDEGRST]'
6611 # Regexp to match symbols that can be accessed directly from C.
6612 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6614 # Define system-specific variables.
6619 cygwin
* | mingw
* | pw32
* | cegcc
*)
6620 symcode
='[ABCDGISTW]'
6623 if test "$host_cpu" = ia64
; then
6624 symcode
='[ABCDEGRST]'
6628 symcode
='[BCDEGRST]'
6631 symcode
='[BCDEGQRST]'
6642 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6650 # If we're using GNU nm, then use its standard symbol codes.
6651 case `$NM -V 2>&1` in
6652 *GNU
* |
*'with BFD'*)
6653 symcode
='[ABCDGIRSTW]' ;;
6656 # Transform an extracted symbol line into a proper C declaration.
6657 # Some systems (esp. on ia64) link data and code symbols differently,
6658 # so use this general approach.
6659 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6661 # Transform an extracted symbol line into symbol name and symbol address
6662 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6663 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'"
6665 # Handle CRLF in mingw tool chain
6669 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6673 # Try without a prefix underscore, then with it.
6674 for ac_symprfx
in "" "_"; do
6676 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6677 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6679 # Write the raw and C identifiers.
6680 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6681 # Fake it for dumpbin and say T for any non-static function
6682 # and D for any global variable.
6683 # Also find C++ and __fastcall symbols from MSVC++,
6684 # which start with @ or ?.
6685 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6686 " {last_section=section; section=\$ 3};"\
6687 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6688 " \$ 0!~/External *\|/{next};"\
6689 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6690 " {if(hide[section]) next};"\
6691 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6692 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6693 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6694 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6695 " ' prfx=^$ac_symprfx"
6697 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6700 # Check to see that the pipe works correctly.
6704 cat > conftest.
$ac_ext <<_LT_EOF
6709 void nm_test_func(void);
6710 void nm_test_func(void){}
6714 int main(){nm_test_var='a';nm_test_func();return(0);}
6717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6718 (eval $ac_compile) 2>&5
6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; }; then
6722 # Now try to grab the symbols.
6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6725 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728 test $ac_status = 0; } && test -s "$nlist"; then
6729 # Try sorting and uniquifying the output.
6730 if sort "$nlist" |
uniq > "$nlist"T
; then
6731 mv -f "$nlist"T
"$nlist"
6736 # Make sure that we snagged all the symbols we need.
6737 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6738 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6739 cat <<_LT_EOF > conftest.$ac_ext
6745 # Now generate the symbol file.
6746 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6748 cat <<_LT_EOF >> conftest.$ac_ext
6750 /* The mapping between symbol names and symbols. */
6755 lt__PROGRAM__LTX_preloaded_symbols[] =
6757 { "@PROGRAM@", (void *) 0 },
6759 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6760 cat <<\_LT_EOF
>> conftest.
$ac_ext
6764 /* This works around a problem
in FreeBSD linker
*/
6765 #ifdef FREEBSD_WORKAROUND
6766 static const void
*lt_preloaded_setup
() {
6767 return lt__PROGRAM__LTX_preloaded_symbols
;
6775 # Now try linking the two files.
6776 mv conftest.
$ac_objext conftstm.
$ac_objext
6777 lt_save_LIBS
="$LIBS"
6778 lt_save_CFLAGS
="$CFLAGS"
6779 LIBS
="conftstm.$ac_objext"
6780 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6782 (eval $ac_link) 2>&5
6784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6785 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6788 LIBS
="$lt_save_LIBS"
6789 CFLAGS
="$lt_save_CFLAGS"
6791 echo "cannot find nm_test_func in $nlist" >&5
6794 echo "cannot find nm_test_var in $nlist" >&5
6797 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6800 echo "$progname: failed program was:" >&5
6801 cat conftest.
$ac_ext >&5
6803 rm -rf conftest
* conftst
*
6805 # Do not use the global_symbol_pipe unless it works.
6806 if test "$pipe_works" = yes; then
6809 lt_cv_sys_global_symbol_pipe
=
6815 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6816 lt_cv_sys_global_symbol_to_cdecl
=
6818 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6820 $as_echo "failed" >&6; }
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6823 $as_echo "ok" >&6; }
6848 # Check whether --enable-libtool-lock was given.
6849 if test "${enable_libtool_lock+set}" = set; then :
6850 enableval
=$enable_libtool_lock;
6853 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6855 # Some flags need to be propagated to the compiler or linker for good
6859 # Find out which ABI we are using.
6860 echo 'int i;' > conftest.
$ac_ext
6861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6862 (eval $ac_compile) 2>&5
6864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6865 test $ac_status = 0; }; then
6866 case `/usr/bin/file conftest.$ac_objext` in
6878 # Find out which ABI we are using.
6879 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6881 (eval $ac_compile) 2>&5
6883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6884 test $ac_status = 0; }; then
6885 if test "$lt_cv_prog_gnu_ld" = yes; then
6886 case `/usr/bin/file conftest.$ac_objext` in
6888 LD
="${LD-ld} -melf32bsmip"
6891 LD
="${LD-ld} -melf32bmipn32"
6894 LD
="${LD-ld} -melf64bmip"
6898 case `/usr/bin/file conftest.$ac_objext` in
6914 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6915 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6916 # Find out which ABI we are using.
6917 echo 'int i;' > conftest.
$ac_ext
6918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6919 (eval $ac_compile) 2>&5
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922 test $ac_status = 0; }; then
6923 case `/usr/bin/file conftest.o` in
6926 x86_64-
*kfreebsd
*-gnu)
6927 LD
="${LD-ld} -m elf_i386_fbsd"
6930 case `/usr/bin/file conftest.o` in
6932 LD
="${LD-ld} -m elf32_x86_64"
6935 LD
="${LD-ld} -m elf_i386"
6939 powerpc64le-
*linux
*)
6940 LD
="${LD-ld} -m elf32lppclinux"
6943 LD
="${LD-ld} -m elf32ppclinux"
6946 LD
="${LD-ld} -m elf_s390"
6949 LD
="${LD-ld} -m elf32_sparc"
6955 x86_64-
*kfreebsd
*-gnu)
6956 LD
="${LD-ld} -m elf_x86_64_fbsd"
6959 LD
="${LD-ld} -m elf_x86_64"
6962 LD
="${LD-ld} -m elf64lppc"
6965 LD
="${LD-ld} -m elf64ppc"
6967 s390
*-*linux
*|s390
*-*tpf
*)
6968 LD
="${LD-ld} -m elf64_s390"
6971 LD
="${LD-ld} -m elf64_sparc"
6981 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6982 SAVE_CFLAGS
="$CFLAGS"
6983 CFLAGS
="$CFLAGS -belf"
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6985 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6986 if ${lt_cv_cc_needs_belf+:} false
; then :
6987 $as_echo_n "(cached) " >&6
6990 ac_cpp
='$CPP $CPPFLAGS'
6991 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
7006 if ac_fn_c_try_link
"$LINENO"; then :
7007 lt_cv_cc_needs_belf
=yes
7009 lt_cv_cc_needs_belf
=no
7011 rm -f core conftest.err conftest.
$ac_objext \
7012 conftest
$ac_exeext conftest.
$ac_ext
7014 ac_cpp
='$CPP $CPPFLAGS'
7015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7021 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7022 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7023 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7024 CFLAGS
="$SAVE_CFLAGS"
7028 # Find out which ABI we are using.
7029 echo 'int i;' > conftest.
$ac_ext
7030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7031 (eval $ac_compile) 2>&5
7033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034 test $ac_status = 0; }; then
7035 case `/usr/bin/file conftest.o` in
7037 case $lt_cv_prog_gnu_ld in
7038 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7040 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7052 need_locks
="$enable_libtool_lock"
7056 rhapsody
* | darwin
*)
7057 if test -n "$ac_tool_prefix"; then
7058 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7059 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7063 $as_echo_n "(cached) " >&6
7065 if test -n "$DSYMUTIL"; then
7066 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir
=.
7073 for ac_exec_ext
in '' $ac_executable_extensions; do
7074 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7086 if test -n "$DSYMUTIL"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7088 $as_echo "$DSYMUTIL" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7096 if test -z "$ac_cv_prog_DSYMUTIL"; then
7097 ac_ct_DSYMUTIL
=$DSYMUTIL
7098 # Extract the first word of "dsymutil", so it can be a program name with args.
7099 set dummy dsymutil
; ac_word
=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7103 $as_echo_n "(cached) " >&6
7105 if test -n "$ac_ct_DSYMUTIL"; then
7106 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir
=.
7113 for ac_exec_ext
in '' $ac_executable_extensions; do
7114 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7126 if test -n "$ac_ct_DSYMUTIL"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7128 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7134 if test "x$ac_ct_DSYMUTIL" = x
; then
7137 case $cross_compiling:$ac_tool_warned in
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned
=yes ;;
7143 DSYMUTIL
=$ac_ct_DSYMUTIL
7146 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7149 if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7151 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_NMEDIT+:} false
; then :
7155 $as_echo_n "(cached) " >&6
7157 if test -n "$NMEDIT"; then
7158 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir
=.
7165 for ac_exec_ext
in '' $ac_executable_extensions; do
7166 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 NMEDIT
=$ac_cv_prog_NMEDIT
7178 if test -n "$NMEDIT"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7180 $as_echo "$NMEDIT" >&6; }
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7188 if test -z "$ac_cv_prog_NMEDIT"; then
7189 ac_ct_NMEDIT
=$NMEDIT
7190 # Extract the first word of "nmedit", so it can be a program name with args.
7191 set dummy nmedit
; ac_word
=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7195 $as_echo_n "(cached) " >&6
7197 if test -n "$ac_ct_NMEDIT"; then
7198 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir
=.
7205 for ac_exec_ext
in '' $ac_executable_extensions; do
7206 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7218 if test -n "$ac_ct_NMEDIT"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7220 $as_echo "$ac_ct_NMEDIT" >&6; }
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7226 if test "x$ac_ct_NMEDIT" = x
; then
7229 case $cross_compiling:$ac_tool_warned in
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7233 ac_tool_warned
=yes ;;
7235 NMEDIT
=$ac_ct_NMEDIT
7238 NMEDIT
="$ac_cv_prog_NMEDIT"
7241 if test -n "$ac_tool_prefix"; then
7242 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7243 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_LIPO+:} false
; then :
7247 $as_echo_n "(cached) " >&6
7249 if test -n "$LIPO"; then
7250 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir
=.
7257 for ac_exec_ext
in '' $ac_executable_extensions; do
7258 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 LIPO
=$ac_cv_prog_LIPO
7270 if test -n "$LIPO"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7272 $as_echo "$LIPO" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7280 if test -z "$ac_cv_prog_LIPO"; then
7282 # Extract the first word of "lipo", so it can be a program name with args.
7283 set dummy lipo
; ac_word
=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7287 $as_echo_n "(cached) " >&6
7289 if test -n "$ac_ct_LIPO"; then
7290 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir
=.
7297 for ac_exec_ext
in '' $ac_executable_extensions; do
7298 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_ac_ct_LIPO
="lipo"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7310 if test -n "$ac_ct_LIPO"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7312 $as_echo "$ac_ct_LIPO" >&6; }
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7318 if test "x$ac_ct_LIPO" = x
; then
7321 case $cross_compiling:$ac_tool_warned in
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned
=yes ;;
7330 LIPO
="$ac_cv_prog_LIPO"
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7335 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_OTOOL+:} false
; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$OTOOL"; then
7342 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir
=.
7349 for ac_exec_ext
in '' $ac_executable_extensions; do
7350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 OTOOL
=$ac_cv_prog_OTOOL
7362 if test -n "$OTOOL"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7364 $as_echo "$OTOOL" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7372 if test -z "$ac_cv_prog_OTOOL"; then
7374 # Extract the first word of "otool", so it can be a program name with args.
7375 set dummy otool
; ac_word
=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7379 $as_echo_n "(cached) " >&6
7381 if test -n "$ac_ct_OTOOL"; then
7382 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir
=.
7389 for ac_exec_ext
in '' $ac_executable_extensions; do
7390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_ac_ct_OTOOL
="otool"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7402 if test -n "$ac_ct_OTOOL"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7404 $as_echo "$ac_ct_OTOOL" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7410 if test "x$ac_ct_OTOOL" = x
; then
7413 case $cross_compiling:$ac_tool_warned in
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned
=yes ;;
7422 OTOOL
="$ac_cv_prog_OTOOL"
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7427 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_OTOOL64+:} false
; then :
7431 $as_echo_n "(cached) " >&6
7433 if test -n "$OTOOL64"; then
7434 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir
=.
7441 for ac_exec_ext
in '' $ac_executable_extensions; do
7442 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 OTOOL64
=$ac_cv_prog_OTOOL64
7454 if test -n "$OTOOL64"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7456 $as_echo "$OTOOL64" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test -z "$ac_cv_prog_OTOOL64"; then
7465 ac_ct_OTOOL64
=$OTOOL64
7466 # Extract the first word of "otool64", so it can be a program name with args.
7467 set dummy otool64
; ac_word
=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7471 $as_echo_n "(cached) " >&6
7473 if test -n "$ac_ct_OTOOL64"; then
7474 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir
=.
7481 for ac_exec_ext
in '' $ac_executable_extensions; do
7482 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7494 if test -n "$ac_ct_OTOOL64"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7496 $as_echo "$ac_ct_OTOOL64" >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7502 if test "x$ac_ct_OTOOL64" = x
; then
7505 case $cross_compiling:$ac_tool_warned in
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned
=yes ;;
7511 OTOOL64
=$ac_ct_OTOOL64
7514 OTOOL64
="$ac_cv_prog_OTOOL64"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7544 $as_echo_n "checking for -single_module linker flag... " >&6; }
7545 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7546 $as_echo_n "(cached) " >&6
7548 lt_cv_apple_cc_single_mod
=no
7549 if test -z "${LT_MULTI_MODULE}"; then
7550 # By default we will add the -single_module flag. You can override
7551 # by either setting the environment variable LT_MULTI_MODULE
7552 # non-empty at configure time, or by adding -multi_module to the
7554 rm -rf libconftest.dylib
*
7555 echo "int foo(void){return 1;}" > conftest.c
7556 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7557 -dynamiclib -Wl,-single_module conftest.c" >&5
7558 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7559 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7561 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7562 lt_cv_apple_cc_single_mod
=yes
7564 cat conftest.err
>&5
7566 rm -rf libconftest.dylib
*
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7571 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7573 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7574 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7575 $as_echo_n "(cached) " >&6
7577 lt_cv_ld_exported_symbols_list
=no
7578 save_LDFLAGS
=$LDFLAGS
7579 echo "_main" > conftest.sym
7580 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7592 if ac_fn_c_try_link
"$LINENO"; then :
7593 lt_cv_ld_exported_symbols_list
=yes
7595 lt_cv_ld_exported_symbols_list
=no
7597 rm -f core conftest.err conftest.
$ac_objext \
7598 conftest
$ac_exeext conftest.
$ac_ext
7599 LDFLAGS
="$save_LDFLAGS"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7603 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7605 $as_echo_n "checking for -force_load linker flag... " >&6; }
7606 if ${lt_cv_ld_force_load+:} false
; then :
7607 $as_echo_n "(cached) " >&6
7609 lt_cv_ld_force_load
=no
7610 cat > conftest.c
<< _LT_EOF
7611 int forced_loaded() { return 2;}
7613 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7614 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7615 echo "$AR cru libconftest.a conftest.o" >&5
7616 $AR cru libconftest.a conftest.o
2>&5
7617 cat > conftest.c
<< _LT_EOF
7618 int main() { return 0;}
7620 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7621 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7623 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7624 lt_cv_ld_force_load
=yes
7626 cat conftest.err
>&5
7628 rm -f conftest.err libconftest.a conftest conftest.c
7629 rm -rf conftest.dSYM
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7633 $as_echo "$lt_cv_ld_force_load" >&6; }
7634 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7635 # build without first building modern cctools / linker.
7636 case $host_cpu-$host_os in
7637 *-rhapsody* |
*-darwin1.
[012])
7638 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7640 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7642 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7643 # deployment target is forced to an earlier version.
7644 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7645 UNSET
,*-darwin[89]*|UNSET
,*-darwin[12][0123456789]*)
7648 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7655 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7656 _lt_dar_single_mod
='$single_module'
7658 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7659 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7661 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7663 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7664 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7672 ac_cpp
='$CPP $CPPFLAGS'
7673 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7674 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7675 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7677 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7678 # On Suns, sometimes $CPP names a directory.
7679 if test -n "$CPP" && test -d "$CPP"; then
7682 if test -z "$CPP"; then
7683 if ${ac_cv_prog_CPP+:} false
; then :
7684 $as_echo_n "(cached) " >&6
7686 # Double quotes because CPP needs to be expanded
7687 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7690 for ac_c_preproc_warn_flag
in '' yes
7692 # Use a header file that comes with gcc, so configuring glibc
7693 # with a fresh cross-compiler works.
7694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7695 # <limits.h> exists even on freestanding compilers.
7696 # On the NeXT, cc -E runs the code through the compiler's parser,
7697 # not just through cpp. "Syntax error" is here to catch this case.
7698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7701 # include <limits.h>
7703 # include <assert.h>
7707 if ac_fn_c_try_cpp
"$LINENO"; then :
7710 # Broken: fails on valid input.
7713 rm -f conftest.err conftest.i conftest.
$ac_ext
7715 # OK, works on sane cases. Now check whether nonexistent headers
7716 # can be detected and how.
7717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 #include <ac_nonexistent.h>
7721 if ac_fn_c_try_cpp
"$LINENO"; then :
7722 # Broken: success on invalid input.
7725 # Passes both tests.
7729 rm -f conftest.err conftest.i conftest.
$ac_ext
7732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7733 rm -f conftest.i conftest.err conftest.
$ac_ext
7734 if $ac_preproc_ok; then :
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7747 $as_echo "$CPP" >&6; }
7749 for ac_c_preproc_warn_flag
in '' yes
7751 # Use a header file that comes with gcc, so configuring glibc
7752 # with a fresh cross-compiler works.
7753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7754 # <limits.h> exists even on freestanding compilers.
7755 # On the NeXT, cc -E runs the code through the compiler's parser,
7756 # not just through cpp. "Syntax error" is here to catch this case.
7757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7760 # include <limits.h>
7762 # include <assert.h>
7766 if ac_fn_c_try_cpp
"$LINENO"; then :
7769 # Broken: fails on valid input.
7772 rm -f conftest.err conftest.i conftest.
$ac_ext
7774 # OK, works on sane cases. Now check whether nonexistent headers
7775 # can be detected and how.
7776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 #include <ac_nonexistent.h>
7780 if ac_fn_c_try_cpp
"$LINENO"; then :
7781 # Broken: success on invalid input.
7784 # Passes both tests.
7788 rm -f conftest.err conftest.i conftest.
$ac_ext
7791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7792 rm -f conftest.i conftest.err conftest.
$ac_ext
7793 if $ac_preproc_ok; then :
7796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7798 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7799 See \`config.log' for more details" "$LINENO" 5; }
7803 ac_cpp
='$CPP $CPPFLAGS'
7804 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7810 $as_echo_n "checking for ANSI C header files... " >&6; }
7811 if ${ac_cv_header_stdc+:} false
; then :
7812 $as_echo_n "(cached) " >&6
7814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7829 if ac_fn_c_try_compile
"$LINENO"; then :
7830 ac_cv_header_stdc
=yes
7832 ac_cv_header_stdc
=no
7834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7836 if test $ac_cv_header_stdc = yes; then
7837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7844 $EGREP "memchr" >/dev
/null
2>&1; then :
7847 ac_cv_header_stdc
=no
7853 if test $ac_cv_header_stdc = yes; then
7854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7861 $EGREP "free" >/dev
/null
2>&1; then :
7864 ac_cv_header_stdc
=no
7870 if test $ac_cv_header_stdc = yes; then
7871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7872 if test "$cross_compiling" = yes; then :
7875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7879 #if ((' ' & 0x0FF) == 0x020)
7880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7883 # define ISLOWER(c) \
7884 (('a' <= (c) && (c) <= 'i') \
7885 || ('j' <= (c) && (c) <= 'r') \
7886 || ('s' <= (c) && (c) <= 'z'))
7887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7895 for (i = 0; i < 256; i++)
7896 if (XOR (islower (i), ISLOWER (i))
7897 || toupper (i) != TOUPPER (i))
7902 if ac_fn_c_try_run
"$LINENO"; then :
7905 ac_cv_header_stdc
=no
7907 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7908 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7914 $as_echo "$ac_cv_header_stdc" >&6; }
7915 if test $ac_cv_header_stdc = yes; then
7917 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7921 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7922 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7923 inttypes.h stdint.h unistd.h
7925 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7926 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7928 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7929 cat >>confdefs.h
<<_ACEOF
7930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7938 for ac_header
in dlfcn.h
7940 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7942 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7943 cat >>confdefs.h
<<_ACEOF
7944 #define HAVE_DLFCN_H 1
7965 # Check whether --enable-shared was given.
7966 if test "${enable_shared+set}" = set; then :
7967 enableval
=$enable_shared; p
=${PACKAGE-default}
7969 yes) enable_shared
=yes ;;
7970 no
) enable_shared
=no
;;
7973 # Look at the argument we got. We use all the common list separators.
7974 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7975 for pkg
in $enableval; do
7977 if test "X$pkg" = "X$p"; then
7996 # Check whether --enable-static was given.
7997 if test "${enable_static+set}" = set; then :
7998 enableval
=$enable_static; p
=${PACKAGE-default}
8000 yes) enable_static
=yes ;;
8001 no
) enable_static
=no
;;
8004 # Look at the argument we got. We use all the common list separators.
8005 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8006 for pkg
in $enableval; do
8008 if test "X$pkg" = "X$p"; then
8028 # Check whether --with-pic was given.
8029 if test "${with_pic+set}" = set; then :
8030 withval
=$with_pic; pic_mode
="$withval"
8036 test -z "$pic_mode" && pic_mode
=default
8044 # Check whether --enable-fast-install was given.
8045 if test "${enable_fast_install+set}" = set; then :
8046 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8048 yes) enable_fast_install
=yes ;;
8049 no
) enable_fast_install
=no
;;
8051 enable_fast_install
=no
8052 # Look at the argument we got. We use all the common list separators.
8053 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8054 for pkg
in $enableval; do
8056 if test "X$pkg" = "X$p"; then
8057 enable_fast_install
=yes
8064 enable_fast_install
=yes
8077 # This can be used to rebuild libtool when needed
8078 LIBTOOL_DEPS
="$ltmain"
8080 # Always use our own libtool.
8081 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8108 test -z "$LN_S" && LN_S
="ln -s"
8123 if test -n "${ZSH_VERSION+set}" ; then
8124 setopt NO_GLOB_SUBST
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8128 $as_echo_n "checking for objdir... " >&6; }
8129 if ${lt_cv_objdir+:} false
; then :
8130 $as_echo_n "(cached) " >&6
8132 rm -f .libs
2>/dev
/null
8133 mkdir .libs
2>/dev
/null
8134 if test -d .libs
; then
8137 # MS-DOS does not allow filenames that begin with a dot.
8140 rmdir .libs
2>/dev
/null
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8143 $as_echo "$lt_cv_objdir" >&6; }
8144 objdir
=$lt_cv_objdir
8150 cat >>confdefs.h
<<_ACEOF
8151 #define LT_OBJDIR "$lt_cv_objdir/"
8159 # AIX sometimes has problems with the GCC collect2 program. For some
8160 # reason, if we set the COLLECT_NAMES environment variable, the problems
8161 # vanish in a puff of smoke.
8162 if test "X${COLLECT_NAMES+set}" != Xset
; then
8164 export COLLECT_NAMES
8171 can_build_shared
=yes
8173 # All known linkers require a `.a' archive for static linking (except MSVC,
8174 # which needs '.lib').
8177 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8180 old_CFLAGS
="$CFLAGS"
8182 # Set sane defaults for various variables
8183 test -z "$CC" && CC
=cc
8184 test -z "$LTCC" && LTCC
=$CC
8185 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8186 test -z "$LD" && LD
=ld
8187 test -z "$ac_objext" && ac_objext
=o
8189 for cc_temp
in $compiler""; do
8191 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8192 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8197 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8200 # Only perform the check for file, if the check method requires it
8201 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8202 case $deplibs_check_method in
8204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8206 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8207 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8208 $as_echo_n "(cached) " >&6
8212 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8215 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8216 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8217 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8218 for ac_dir
in $ac_dummy; do
8220 test -z "$ac_dir" && ac_dir
=.
8221 if test -f $ac_dir/${ac_tool_prefix}file; then
8222 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8223 if test -n "$file_magic_test_file"; then
8224 case $deplibs_check_method in
8226 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8227 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8228 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8229 $EGREP "$file_magic_regex" > /dev
/null
; then
8234 *** Warning: the command libtool uses to detect shared libraries,
8235 *** $file_magic_cmd, produces output that libtool cannot recognize.
8236 *** The result is that libtool may fail to recognize shared libraries
8237 *** as such. This will affect the creation of libtool libraries that
8238 *** depend on shared libraries, but programs linked with such libtool
8239 *** libraries will work regardless of this problem. Nevertheless, you
8240 *** may want to report the problem to your system manager and/or to
8241 *** bug-libtool@gnu.org
8251 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8256 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8257 if test -n "$MAGIC_CMD"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8259 $as_echo "$MAGIC_CMD" >&6; }
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8269 if test -z "$lt_cv_path_MAGIC_CMD"; then
8270 if test -n "$ac_tool_prefix"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8272 $as_echo_n "checking for file... " >&6; }
8273 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8274 $as_echo_n "(cached) " >&6
8278 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8281 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8282 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8283 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8284 for ac_dir
in $ac_dummy; do
8286 test -z "$ac_dir" && ac_dir
=.
8287 if test -f $ac_dir/file; then
8288 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8289 if test -n "$file_magic_test_file"; then
8290 case $deplibs_check_method in
8292 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8293 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8294 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8295 $EGREP "$file_magic_regex" > /dev
/null
; then
8300 *** Warning: the command libtool uses to detect shared libraries,
8301 *** $file_magic_cmd, produces output that libtool cannot recognize.
8302 *** The result is that libtool may fail to recognize shared libraries
8303 *** as such. This will affect the creation of libtool libraries that
8304 *** depend on shared libraries, but programs linked with such libtool
8305 *** libraries will work regardless of this problem. Nevertheless, you
8306 *** may want to report the problem to your system manager and/or to
8307 *** bug-libtool@gnu.org
8317 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8322 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8323 if test -n "$MAGIC_CMD"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8325 $as_echo "$MAGIC_CMD" >&6; }
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8341 # Use C for the default configuration in the libtool script
8345 ac_cpp
='$CPP $CPPFLAGS'
8346 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8351 # Source file extension for C test sources.
8354 # Object file extension for compiled C test sources.
8358 # Code to be used in simple compile tests
8359 lt_simple_compile_test_code
="int some_variable = 0;"
8361 # Code to be used in simple link tests
8362 lt_simple_link_test_code
='int main(){return(0);}'
8370 # If no C compiler was specified, use CC.
8373 # If no C compiler flags were specified, use CFLAGS.
8374 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8376 # Allow CC to be a program name with arguments.
8379 # Save the default compiler, since it gets overwritten when the other
8380 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8381 compiler_DEFAULT
=$CC
8383 # save warnings/boilerplate of simple test code
8384 ac_outfile
=conftest.
$ac_objext
8385 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8386 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8387 _lt_compiler_boilerplate
=`cat conftest.err`
8390 ac_outfile
=conftest.
$ac_objext
8391 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8392 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8393 _lt_linker_boilerplate
=`cat conftest.err`
8398 ## There is no encapsulation within the following macros, do not change
8399 ## the running order or otherwise move them around unless you know exactly
8400 ## what you are doing...
8401 if test -n "$compiler"; then
8403 lt_prog_compiler_no_builtin_flag
=
8405 if test "$GCC" = yes; then
8406 case $cc_basename in
8408 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8410 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8414 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8415 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8416 $as_echo_n "(cached) " >&6
8418 lt_cv_prog_compiler_rtti_exceptions
=no
8419 ac_outfile
=conftest.
$ac_objext
8420 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8421 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8422 # Insert the option either (1) after the last *FLAGS variable, or
8423 # (2) before a word containing "conftest.", or (3) at the end.
8424 # Note that $ac_compile itself does not contain backslashes and begins
8425 # with a dollar sign (not a hyphen), so the echo should work correctly.
8426 # The option is referenced via a variable to avoid confusing sed.
8427 lt_compile
=`echo "$ac_compile" | $SED \
8428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8430 -e 's:$: $lt_compiler_flag:'`
8431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8432 (eval "$lt_compile" 2>conftest.err
)
8434 cat conftest.err
>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 if (exit $ac_status) && test -s "$ac_outfile"; then
8437 # The compiler can only warn and ignore the option if not recognized
8438 # So say no if there are warnings other than the usual output.
8439 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8440 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8441 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8442 lt_cv_prog_compiler_rtti_exceptions
=yes
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8449 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8451 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8452 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8464 lt_prog_compiler_wl
=
8465 lt_prog_compiler_pic
=
8466 lt_prog_compiler_static
=
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8469 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8471 if test "$GCC" = yes; then
8472 lt_prog_compiler_wl
='-Wl,'
8473 lt_prog_compiler_static
='-static'
8477 # All AIX code is PIC.
8478 if test "$host_cpu" = ia64
; then
8479 # AIX 5 now supports IA64 processor
8480 lt_prog_compiler_static
='-Bstatic'
8482 lt_prog_compiler_pic
='-fPIC'
8488 # see comment about AmigaOS4 .so support
8489 lt_prog_compiler_pic
='-fPIC'
8492 # FIXME: we need at least 68020 code to build shared libraries, but
8493 # adding the `-m68020' flag to GCC prevents building anything better,
8495 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8500 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8501 # PIC is the default for these OSes.
8504 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8505 # This hack is so that the source file can tell whether it is being
8506 # built for inclusion in a dll (and should export symbols for example).
8507 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8508 # (--disable-auto-import) libraries
8509 lt_prog_compiler_pic
='-DDLL_EXPORT'
8512 darwin
* | rhapsody
*)
8513 # PIC is the default on this platform
8514 # Common symbols not allowed in MH_DYLIB files
8515 lt_prog_compiler_pic
='-fno-common'
8519 # PIC is the default for Haiku.
8520 # The "-static" flag exists, but is broken.
8521 lt_prog_compiler_static
=
8525 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8526 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8527 # sets the default TLS model and affects inlining.
8533 lt_prog_compiler_pic
='-fPIC'
8539 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8540 # Instead, we relocate shared libraries at runtime.
8544 # Just because we use GCC doesn't mean we suddenly get shared libraries
8545 # on systems that don't support them.
8546 lt_prog_compiler_can_build_shared
=no
8551 # QNX uses GNU C++, but need to define -shared option too, otherwise
8553 lt_prog_compiler_pic
='-fPIC -shared'
8557 if test -d /usr
/nec
; then
8558 lt_prog_compiler_pic
=-Kconform_pic
8563 lt_prog_compiler_pic
='-fPIC'
8567 case $cc_basename in
8568 nvcc
*) # Cuda Compiler Driver 2.2
8569 lt_prog_compiler_wl
='-Xlinker '
8570 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8574 # PORTME Check for flag to pass linker flags through the system compiler.
8577 lt_prog_compiler_wl
='-Wl,'
8578 if test "$host_cpu" = ia64
; then
8579 # AIX 5 now supports IA64 processor
8580 lt_prog_compiler_static
='-Bstatic'
8582 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8586 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8587 # This hack is so that the source file can tell whether it is being
8588 # built for inclusion in a dll (and should export symbols for example).
8589 lt_prog_compiler_pic
='-DDLL_EXPORT'
8592 hpux9
* | hpux10
* | hpux11
*)
8593 lt_prog_compiler_wl
='-Wl,'
8594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8601 lt_prog_compiler_pic
='+Z'
8604 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8605 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8608 irix5
* | irix6
* | nonstopux
*)
8609 lt_prog_compiler_wl
='-Wl,'
8610 # PIC (with -KPIC) is the default.
8611 lt_prog_compiler_static
='-non_shared'
8614 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8615 case $cc_basename in
8616 # old Intel for x86_64 which still supported -KPIC.
8618 lt_prog_compiler_wl
='-Wl,'
8619 lt_prog_compiler_pic
='-KPIC'
8620 lt_prog_compiler_static
='-static'
8622 # icc used to be incompatible with GCC.
8623 # ICC 10 doesn't accept -KPIC any more.
8625 lt_prog_compiler_wl
='-Wl,'
8626 lt_prog_compiler_pic
='-fPIC'
8627 lt_prog_compiler_static
='-static'
8629 # Lahey Fortran 8.1.
8631 lt_prog_compiler_wl
='-Wl,'
8632 lt_prog_compiler_pic
='--shared'
8633 lt_prog_compiler_static
='--static'
8635 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8636 # Portland Group compilers (*not* the Pentium gcc compiler,
8637 # which looks to be a dead project)
8638 lt_prog_compiler_wl
='-Wl,'
8639 lt_prog_compiler_pic
='-fpic'
8640 lt_prog_compiler_static
='-Bstatic'
8643 lt_prog_compiler_wl
='-Wl,'
8644 # All Alpha code is PIC.
8645 lt_prog_compiler_static
='-non_shared'
8647 xl
* | bgxl
* | bgf
* | mpixl
*)
8648 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8649 lt_prog_compiler_wl
='-Wl,'
8650 lt_prog_compiler_pic
='-qpic'
8651 lt_prog_compiler_static
='-qstaticlink'
8654 case `$CC -V 2>&1 | sed 5q` in
8655 *Sun\ F
* |
*Sun
*Fortran
*)
8656 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8657 lt_prog_compiler_pic
='-KPIC'
8658 lt_prog_compiler_static
='-Bstatic'
8659 lt_prog_compiler_wl
=''
8663 lt_prog_compiler_pic
='-KPIC'
8664 lt_prog_compiler_static
='-Bstatic'
8665 lt_prog_compiler_wl
='-Wl,'
8673 lt_prog_compiler_pic
='-KPIC'
8674 lt_prog_compiler_static
='-Bstatic'
8678 # QNX uses GNU C++, but need to define -shared option too, otherwise
8680 lt_prog_compiler_pic
='-fPIC -shared'
8683 osf3
* | osf4
* | osf5
*)
8684 lt_prog_compiler_wl
='-Wl,'
8685 # All OSF/1 code is PIC.
8686 lt_prog_compiler_static
='-non_shared'
8690 lt_prog_compiler_static
='-non_shared'
8694 lt_prog_compiler_pic
='-KPIC'
8695 lt_prog_compiler_static
='-Bstatic'
8696 case $cc_basename in
8698 lt_prog_compiler_wl
='-Qoption ld ';;
8700 lt_prog_compiler_wl
='-Wl,';;
8705 lt_prog_compiler_wl
='-Qoption ld '
8706 lt_prog_compiler_pic
='-PIC'
8707 lt_prog_compiler_static
='-Bstatic'
8710 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8711 lt_prog_compiler_wl
='-Wl,'
8712 lt_prog_compiler_pic
='-KPIC'
8713 lt_prog_compiler_static
='-Bstatic'
8717 if test -d /usr
/nec
;then
8718 lt_prog_compiler_pic
='-Kconform_pic'
8719 lt_prog_compiler_static
='-Bstatic'
8723 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8724 lt_prog_compiler_wl
='-Wl,'
8725 lt_prog_compiler_pic
='-KPIC'
8726 lt_prog_compiler_static
='-Bstatic'
8730 lt_prog_compiler_wl
='-Wl,'
8731 lt_prog_compiler_can_build_shared
=no
8735 lt_prog_compiler_pic
='-pic'
8736 lt_prog_compiler_static
='-Bstatic'
8740 lt_prog_compiler_can_build_shared
=no
8746 # For platforms which do not support PIC, -DPIC is meaningless:
8748 lt_prog_compiler_pic
=
8751 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8755 $as_echo "$lt_prog_compiler_pic" >&6; }
8763 # Check to make sure the PIC flag actually works.
8765 if test -n "$lt_prog_compiler_pic"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8767 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8768 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8769 $as_echo_n "(cached) " >&6
8771 lt_cv_prog_compiler_pic_works
=no
8772 ac_outfile
=conftest.
$ac_objext
8773 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8774 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8775 # Insert the option either (1) after the last *FLAGS variable, or
8776 # (2) before a word containing "conftest.", or (3) at the end.
8777 # Note that $ac_compile itself does not contain backslashes and begins
8778 # with a dollar sign (not a hyphen), so the echo should work correctly.
8779 # The option is referenced via a variable to avoid confusing sed.
8780 lt_compile
=`echo "$ac_compile" | $SED \
8781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8783 -e 's:$: $lt_compiler_flag:'`
8784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8785 (eval "$lt_compile" 2>conftest.err
)
8787 cat conftest.err
>&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 if (exit $ac_status) && test -s "$ac_outfile"; then
8790 # The compiler can only warn and ignore the option if not recognized
8791 # So say no if there are warnings other than the usual output.
8792 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8793 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8794 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8795 lt_cv_prog_compiler_pic_works
=yes
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8802 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8804 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8805 case $lt_prog_compiler_pic in
8807 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8810 lt_prog_compiler_pic
=
8811 lt_prog_compiler_can_build_shared
=no
8822 # Check to make sure the static flag actually works.
8824 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8826 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8827 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8828 $as_echo_n "(cached) " >&6
8830 lt_cv_prog_compiler_static_works
=no
8831 save_LDFLAGS
="$LDFLAGS"
8832 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8833 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8834 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8835 # The linker can only warn and ignore the option if not recognized
8836 # So say no if there are warnings
8837 if test -s conftest.err
; then
8838 # Append any errors to the config.log.
8839 cat conftest.err
1>&5
8840 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8841 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8842 if diff conftest.exp conftest.er2
>/dev
/null
; then
8843 lt_cv_prog_compiler_static_works
=yes
8846 lt_cv_prog_compiler_static_works
=yes
8850 LDFLAGS
="$save_LDFLAGS"
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8854 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8856 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8859 lt_prog_compiler_static
=
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8869 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8870 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8871 $as_echo_n "(cached) " >&6
8873 lt_cv_prog_compiler_c_o
=no
8874 $RM -r conftest
2>/dev
/null
8878 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8880 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8881 # Insert the option either (1) after the last *FLAGS variable, or
8882 # (2) before a word containing "conftest.", or (3) at the end.
8883 # Note that $ac_compile itself does not contain backslashes and begins
8884 # with a dollar sign (not a hyphen), so the echo should work correctly.
8885 lt_compile
=`echo "$ac_compile" | $SED \
8886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8888 -e 's:$: $lt_compiler_flag:'`
8889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8890 (eval "$lt_compile" 2>out
/conftest.err
)
8892 cat out
/conftest.err
>&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8896 # The compiler can only warn and ignore the option if not recognized
8897 # So say no if there are warnings
8898 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8899 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8900 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8901 lt_cv_prog_compiler_c_o
=yes
8906 # SGI C++ compiler will create directory out/ii_files/ for
8907 # template instantiation
8908 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8909 $RM out
/* && rmdir out
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8916 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8924 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8925 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8926 $as_echo_n "(cached) " >&6
8928 lt_cv_prog_compiler_c_o
=no
8929 $RM -r conftest
2>/dev
/null
8933 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8935 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8936 # Insert the option either (1) after the last *FLAGS variable, or
8937 # (2) before a word containing "conftest.", or (3) at the end.
8938 # Note that $ac_compile itself does not contain backslashes and begins
8939 # with a dollar sign (not a hyphen), so the echo should work correctly.
8940 lt_compile
=`echo "$ac_compile" | $SED \
8941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8943 -e 's:$: $lt_compiler_flag:'`
8944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8945 (eval "$lt_compile" 2>out
/conftest.err
)
8947 cat out
/conftest.err
>&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8951 # The compiler can only warn and ignore the option if not recognized
8952 # So say no if there are warnings
8953 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8954 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8955 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8956 lt_cv_prog_compiler_c_o
=yes
8961 # SGI C++ compiler will create directory out/ii_files/ for
8962 # template instantiation
8963 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8964 $RM out
/* && rmdir out
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8971 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8976 hard_links
="nottested"
8977 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8978 # do not overwrite the value of need_locks provided by the user
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8980 $as_echo_n "checking if we can lock with hard links... " >&6; }
8983 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8985 ln conftest.a conftest.b
2>&5 || hard_links
=no
8986 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8988 $as_echo "$hard_links" >&6; }
8989 if test "$hard_links" = no
; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8991 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9004 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9007 allow_undefined_flag
=
9008 always_export_symbols
=no
9010 archive_expsym_cmds
=
9011 compiler_needs_object
=no
9012 enable_shared_with_static_runtimes
=no
9013 export_dynamic_flag_spec
=
9014 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9015 hardcode_automatic
=no
9017 hardcode_direct_absolute
=no
9018 hardcode_libdir_flag_spec
=
9019 hardcode_libdir_flag_spec_ld
=
9020 hardcode_libdir_separator
=
9022 hardcode_shlibpath_var
=unsupported
9024 link_all_deplibs
=unknown
9027 old_archive_from_new_cmds
=
9028 old_archive_from_expsyms_cmds
=
9029 thread_safe_flag_spec
=
9030 whole_archive_flag_spec
=
9031 # include_expsyms should be a list of space-separated symbols to be *always*
9032 # included in the symbol list
9034 # exclude_expsyms can be an extended regexp of symbols to exclude
9035 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9036 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9037 # as well as any symbol that contains `d'.
9038 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9039 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9040 # platforms (ab)use it in PIC code, but their linkers get confused if
9041 # the symbol is explicitly referenced. Since portable code cannot
9042 # rely on this symbol name, it's probably fine to never include it in
9043 # preloaded symbol tables.
9044 # Exclude shared library initialization/finalization symbols.
9045 extract_expsyms_cmds
=
9048 cygwin
* | mingw
* | pw32
* | cegcc
*)
9049 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9050 # When not using gcc, we currently assume that we are using
9051 # Microsoft Visual C++.
9052 if test "$GCC" != yes; then
9057 # we just hope/assume this is gcc and not c89 (= MSVC++)
9067 # On some targets, GNU ld is compatible enough with the native linker
9068 # that we're better off using the native interface for both.
9069 lt_use_gnu_ld_interface
=no
9070 if test "$with_gnu_ld" = yes; then
9073 # The AIX port of GNU ld has always aspired to compatibility
9074 # with the native linker. However, as the warning in the GNU ld
9075 # block says, versions before 2.19.5* couldn't really create working
9076 # shared libraries, regardless of the interface used.
9077 case `$LD -v 2>&1` in
9078 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9079 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9080 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9082 lt_use_gnu_ld_interface
=yes
9087 lt_use_gnu_ld_interface
=yes
9092 if test "$lt_use_gnu_ld_interface" = yes; then
9093 # If archive_cmds runs LD, not CC, wlarc should be empty
9096 # Set some defaults for GNU ld with shared library support. These
9097 # are reset later if shared libraries are not supported. Putting them
9098 # here allows them to be overridden if necessary.
9099 runpath_var
=LD_RUN_PATH
9100 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9101 export_dynamic_flag_spec
='${wl}--export-dynamic'
9102 # ancient GNU ld didn't support --whole-archive et. al.
9103 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9104 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9106 whole_archive_flag_spec
=
9108 supports_anon_versioning
=no
9109 case `$LD -v 2>&1` in
9110 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9111 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9112 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9113 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9114 *\
2.11.
*) ;; # other 2.11 versions
9115 *) supports_anon_versioning
=yes ;;
9118 # See if GNU ld supports shared libraries.
9121 # On AIX/PPC, the GNU linker is very broken
9122 if test "$host_cpu" != ia64
; then
9126 *** Warning: the GNU linker, at least up to release 2.19, is reported
9127 *** to be unable to reliably create shared libraries on AIX.
9128 *** Therefore, libtool is disabling shared libraries support. If you
9129 *** really care for shared libraries, you may want to install binutils
9130 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9131 *** You will then need to restart the configuration process.
9140 # see comment about AmigaOS4 .so support
9141 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 archive_expsym_cmds
=''
9145 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)'
9146 hardcode_libdir_flag_spec
='-L$libdir'
9147 hardcode_minus_L
=yes
9153 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9154 allow_undefined_flag
=unsupported
9155 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9156 # support --undefined. This deserves some investigation. FIXME
9157 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9163 cygwin
* | mingw
* | pw32
* | cegcc
*)
9164 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9165 # as there is no search path for DLLs.
9166 hardcode_libdir_flag_spec
='-L$libdir'
9167 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9168 allow_undefined_flag
=unsupported
9169 always_export_symbols
=no
9170 enable_shared_with_static_runtimes
=yes
9171 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9173 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9174 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9175 # If the export-symbols file already is a .def file (1st line
9176 # is EXPORTS), use it as is; otherwise, prepend...
9177 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9178 cp $export_symbols $output_objdir/$soname.def;
9180 echo EXPORTS > $output_objdir/$soname.def;
9181 cat $export_symbols >> $output_objdir/$soname.def;
9183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9190 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9191 link_all_deplibs
=yes
9196 hardcode_shlibpath_var
=no
9197 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9198 export_dynamic_flag_spec
='${wl}-E'
9199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9200 # Instead, shared libraries are loaded at an image base (0x10000000 by
9201 # default) and relocated if they conflict, which is a slow very memory
9202 # consuming and fragmenting process. To avoid this, we pick a random,
9203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9204 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9205 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9206 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'
9209 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9211 if test "$host_os" = linux-dietlibc
; then
9212 case $cc_basename in
9213 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9216 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9217 && test "$tmp_diet" = no
9219 tmp_addflag
=' $pic_flag'
9220 tmp_sharedflag
='-shared'
9221 case $cc_basename,$host_cpu in
9222 pgcc
*) # Portland Group C compiler
9223 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'
9224 tmp_addflag
=' $pic_flag'
9226 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9227 # Portland Group f77 and f90 compilers
9228 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'
9229 tmp_addflag
=' $pic_flag -Mnomain' ;;
9230 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9231 tmp_addflag
=' -i_dynamic' ;;
9232 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9233 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9234 ifc
* | ifort
*) # Intel Fortran compiler
9235 tmp_addflag
=' -nofor_main' ;;
9236 lf95
*) # Lahey Fortran 8.1
9237 whole_archive_flag_spec
=
9238 tmp_sharedflag
='--shared' ;;
9239 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9240 tmp_sharedflag
='-qmkshrobj'
9242 nvcc
*) # Cuda Compiler Driver 2.2
9243 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'
9244 compiler_needs_object
=yes
9247 case `$CC -V 2>&1 | sed 5q` in
9248 *Sun\ C
*) # Sun C 5.9
9249 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'
9250 compiler_needs_object
=yes
9251 tmp_sharedflag
='-G' ;;
9252 *Sun\ F
*) # Sun Fortran 8.3
9253 tmp_sharedflag
='-G' ;;
9255 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 if test "x$supports_anon_versioning" = xyes
; then
9258 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9260 echo "local: *; };" >> $output_objdir/$libname.ver~
9261 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9264 case $cc_basename in
9265 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9266 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9267 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9268 hardcode_libdir_flag_spec
=
9269 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9270 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9271 if test "x$supports_anon_versioning" = xyes
; then
9272 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9274 echo "local: *; };" >> $output_objdir/$libname.ver~
9275 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9285 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9286 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9289 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9295 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9299 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9300 *** create shared libraries on Solaris systems. Therefore, libtool
9301 *** is disabling shared libraries support. We urge you to upgrade GNU
9302 *** binutils to release 2.9.1 or newer. Another option is to modify
9303 *** your PATH or compiler configuration so that the native linker is
9304 *** used, and then restart.
9307 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9308 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9315 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9316 case `$LD -v 2>&1` in
9317 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9321 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9322 *** reliably create shared libraries on SCO systems. Therefore, libtool
9323 *** is disabling shared libraries support. We urge you to upgrade GNU
9324 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9325 *** your PATH or compiler configuration so that the native linker is
9326 *** used, and then restart.
9331 # For security reasons, it is highly recommended that you always
9332 # use absolute paths for naming shared libraries, and exclude the
9333 # DT_RUNPATH tag from executables and libraries. But doing so
9334 # requires that you compile everything twice, which is a pain.
9335 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9336 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9337 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9338 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9347 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_shlibpath_var
=no
9354 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9355 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9363 if test "$ld_shlibs" = no
; then
9365 hardcode_libdir_flag_spec
=
9366 export_dynamic_flag_spec
=
9367 whole_archive_flag_spec
=
9370 # PORTME fill in a description of your system's linker (not GNU ld)
9373 allow_undefined_flag
=unsupported
9374 always_export_symbols
=yes
9375 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'
9376 # Note: this linker hardcodes the directories in LIBPATH if there
9377 # are no directories specified by -L.
9378 hardcode_minus_L
=yes
9379 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9380 # Neither direct hardcoding nor static linking is supported with a
9382 hardcode_direct
=unsupported
9387 if test "$host_cpu" = ia64
; then
9388 # On IA64, the linker does run time linking by default, so we don't
9389 # have to do anything special.
9390 aix_use_runtimelinking
=no
9391 exp_sym_flag
='-Bexport'
9394 # If we're using GNU nm, then we don't want the "-C" option.
9395 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9396 # Also, AIX nm treats weak defined symbols like other global
9397 # defined symbols, whereas GNU nm marks them as "W".
9398 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9399 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'
9401 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'
9403 aix_use_runtimelinking
=no
9405 # Test if we are trying to use run time linking or normal
9406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9407 # need to do runtime linking.
9408 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9409 for ld_flag
in $LDFLAGS; do
9410 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9411 aix_use_runtimelinking
=yes
9418 exp_sym_flag
='-bexport'
9419 no_entry_flag
='-bnoentry'
9422 # When large executables or shared objects are built, AIX ld can
9423 # have problems creating the table of contents. If linking a library
9424 # or program results in "error TOC overflow" add -mminimal-toc to
9425 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9426 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9430 hardcode_direct_absolute
=yes
9431 hardcode_libdir_separator
=':'
9432 link_all_deplibs
=yes
9433 file_list_spec
='${wl}-f,'
9435 if test "$GCC" = yes; then
9436 case $host_os in aix4.
[012]|aix4.
[012].
*)
9437 # We only want to do this on AIX 4.2 and lower, the check
9438 # below for broken collect2 doesn't work under 4.3+
9439 collect2name
=`${CC} -print-prog-name=collect2`
9440 if test -f "$collect2name" &&
9441 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9443 # We have reworked collect2
9446 # We have old collect2
9447 hardcode_direct
=unsupported
9448 # It fails to find uninstalled libraries when the uninstalled
9449 # path is not listed in the libpath. Setting hardcode_minus_L
9450 # to unsupported forces relinking
9451 hardcode_minus_L
=yes
9452 hardcode_libdir_flag_spec
='-L$libdir'
9453 hardcode_libdir_separator
=
9457 shared_flag
='-shared'
9458 if test "$aix_use_runtimelinking" = yes; then
9459 shared_flag
="$shared_flag "'${wl}-G'
9463 if test "$host_cpu" = ia64
; then
9464 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9465 # chokes on -Wl,-G. The following line is correct:
9468 if test "$aix_use_runtimelinking" = yes; then
9469 shared_flag
='${wl}-G'
9471 shared_flag
='${wl}-bM:SRE'
9476 export_dynamic_flag_spec
='${wl}-bexpall'
9477 # It seems that -bexpall does not export symbols beginning with
9478 # underscore (_), so it is better to generate a list of symbols to export.
9479 always_export_symbols
=yes
9480 if test "$aix_use_runtimelinking" = yes; then
9481 # Warning - without using the other runtime loading flags (-brtl),
9482 # -berok will link without error, but may produce a broken library.
9483 allow_undefined_flag
='-berok'
9484 # Determine the default libpath from the value encoded in an
9486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9497 if ac_fn_c_try_link
"$LINENO"; then :
9499 lt_aix_libpath_sed
='
9500 /Import File Strings/,/^$/ {
9506 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9507 # Check for a 64-bit object if we didn't find anything.
9508 if test -z "$aix_libpath"; then
9509 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512 rm -f core conftest.err conftest.
$ac_objext \
9513 conftest
$ac_exeext conftest.
$ac_ext
9514 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9516 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9517 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"
9519 if test "$host_cpu" = ia64
; then
9520 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9521 allow_undefined_flag
="-z nodefs"
9522 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"
9524 # Determine the default libpath from the value encoded in an
9526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9537 if ac_fn_c_try_link
"$LINENO"; then :
9539 lt_aix_libpath_sed
='
9540 /Import File Strings/,/^$/ {
9546 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9547 # Check for a 64-bit object if we didn't find anything.
9548 if test -z "$aix_libpath"; then
9549 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9552 rm -f core conftest.err conftest.
$ac_objext \
9553 conftest
$ac_exeext conftest.
$ac_ext
9554 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9556 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9557 # Warning - without using the other run time loading flags,
9558 # -berok will link without error, but may produce a broken library.
9559 no_undefined_flag
=' ${wl}-bernotok'
9560 allow_undefined_flag
=' ${wl}-berok'
9561 if test "$with_gnu_ld" = yes; then
9562 # We only use this code for GNU lds that support --whole-archive.
9563 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9565 # Exported symbols can be pulled into shared objects from archives
9566 whole_archive_flag_spec
='$convenience'
9568 archive_cmds_need_lc
=yes
9569 # This is similar to how AIX traditionally builds its shared libraries.
9570 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'
9578 # see comment about AmigaOS4 .so support
9579 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580 archive_expsym_cmds
=''
9583 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)'
9584 hardcode_libdir_flag_spec
='-L$libdir'
9585 hardcode_minus_L
=yes
9591 export_dynamic_flag_spec
=-rdynamic
9594 cygwin
* | mingw
* | pw32
* | cegcc
*)
9595 # When not using gcc, we currently assume that we are using
9596 # Microsoft Visual C++.
9597 # hardcode_libdir_flag_spec is actually meaningless, as there is
9598 # no search path for DLLs.
9599 hardcode_libdir_flag_spec
=' '
9600 allow_undefined_flag
=unsupported
9601 # Tell ltmain to make .lib files, not .a files.
9603 # Tell ltmain to make .dll files, not .so files.
9605 # FIXME: Setting linknames here is a bad hack.
9606 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9607 # The linker will automatically build a .lib file if we build a DLL.
9608 old_archive_from_new_cmds
='true'
9609 # FIXME: Should let the user specify the lib program.
9610 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9611 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9612 enable_shared_with_static_runtimes
=yes
9615 darwin
* | rhapsody
*)
9618 archive_cmds_need_lc
=no
9620 hardcode_automatic
=yes
9621 hardcode_shlibpath_var
=unsupported
9622 if test "$lt_cv_ld_force_load" = "yes"; then
9623 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\"`'
9625 whole_archive_flag_spec
=''
9627 link_all_deplibs
=yes
9628 allow_undefined_flag
="$_lt_dar_allow_undefined"
9629 case $cc_basename in
9630 ifort
*) _lt_dar_can_shared
=yes ;;
9631 *) _lt_dar_can_shared
=$GCC ;;
9633 if test "$_lt_dar_can_shared" = "yes"; then
9634 output_verbose_link_cmd
=func_echo_all
9635 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9636 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9637 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}"
9638 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}"
9647 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_libdir_flag_spec
='-L$libdir'
9649 hardcode_shlibpath_var
=no
9652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9653 # support. Future versions do this automatically, but an explicit c++rt0.o
9654 # does not break anything, and helps significantly (at the cost of a little
9657 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9658 hardcode_libdir_flag_spec
='-R$libdir'
9660 hardcode_shlibpath_var
=no
9663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9665 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_minus_L
=yes
9668 hardcode_shlibpath_var
=no
9671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9672 freebsd
* | dragonfly
*)
9673 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9674 hardcode_libdir_flag_spec
='-R$libdir'
9676 hardcode_shlibpath_var
=no
9680 if test "$GCC" = yes; then
9681 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'
9683 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'
9685 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9686 hardcode_libdir_separator
=:
9689 # hardcode_minus_L: Not really in the search PATH,
9690 # but as the default location of the library.
9691 hardcode_minus_L
=yes
9692 export_dynamic_flag_spec
='${wl}-E'
9696 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9697 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701 if test "$with_gnu_ld" = no
; then
9702 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9703 hardcode_libdir_flag_spec_ld
='+b $libdir'
9704 hardcode_libdir_separator
=:
9706 hardcode_direct_absolute
=yes
9707 export_dynamic_flag_spec
='${wl}-E'
9708 # hardcode_minus_L: Not really in the search PATH,
9709 # but as the default location of the library.
9710 hardcode_minus_L
=yes
9715 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9718 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9733 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9737 # Older versions of the 11.00 compiler do not understand -b yet
9738 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9740 $as_echo_n "checking if $CC understands -b... " >&6; }
9741 if ${lt_cv_prog_compiler__b+:} false
; then :
9742 $as_echo_n "(cached) " >&6
9744 lt_cv_prog_compiler__b
=no
9745 save_LDFLAGS
="$LDFLAGS"
9746 LDFLAGS
="$LDFLAGS -b"
9747 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9748 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9749 # The linker can only warn and ignore the option if not recognized
9750 # So say no if there are warnings
9751 if test -s conftest.err
; then
9752 # Append any errors to the config.log.
9753 cat conftest.err
1>&5
9754 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9755 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9756 if diff conftest.exp conftest.er2
>/dev
/null
; then
9757 lt_cv_prog_compiler__b
=yes
9760 lt_cv_prog_compiler__b
=yes
9764 LDFLAGS
="$save_LDFLAGS"
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9768 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9770 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9771 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9773 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9779 if test "$with_gnu_ld" = no
; then
9780 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9781 hardcode_libdir_separator
=:
9786 hardcode_shlibpath_var
=no
9790 hardcode_direct_absolute
=yes
9791 export_dynamic_flag_spec
='${wl}-E'
9793 # hardcode_minus_L: Not really in the search PATH,
9794 # but as the default location of the library.
9795 hardcode_minus_L
=yes
9801 irix5
* | irix6
* | nonstopux
*)
9802 if test "$GCC" = yes; then
9803 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'
9804 # Try to use the -exported_symbol ld option, if it does not
9805 # work, assume that -exports_file does not work either and
9806 # implicitly export all symbols.
9807 save_LDFLAGS
="$LDFLAGS"
9808 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9813 if ac_fn_c_try_link
"$LINENO"; then :
9814 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'
9817 rm -f core conftest.err conftest.
$ac_objext \
9818 conftest
$ac_exeext conftest.
$ac_ext
9819 LDFLAGS
="$save_LDFLAGS"
9821 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'
9822 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'
9824 archive_cmds_need_lc
='no'
9825 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9826 hardcode_libdir_separator
=:
9828 link_all_deplibs
=yes
9832 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9833 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9835 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9837 hardcode_libdir_flag_spec
='-R$libdir'
9839 hardcode_shlibpath_var
=no
9843 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9846 hardcode_libdir_separator
=:
9847 hardcode_shlibpath_var
=no
9854 if test -f /usr
/libexec
/ld.so
; then
9856 hardcode_shlibpath_var
=no
9857 hardcode_direct_absolute
=yes
9858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9859 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9861 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9862 export_dynamic_flag_spec
='${wl}-E'
9865 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9866 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9867 hardcode_libdir_flag_spec
='-R$libdir'
9870 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9871 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9881 hardcode_libdir_flag_spec
='-L$libdir'
9882 hardcode_minus_L
=yes
9883 allow_undefined_flag
=unsupported
9884 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'
9885 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9889 if test "$GCC" = yes; then
9890 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9891 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'
9893 allow_undefined_flag
=' -expect_unresolved \*'
9894 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'
9896 archive_cmds_need_lc
='no'
9897 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9898 hardcode_libdir_separator
=:
9901 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9902 if test "$GCC" = yes; then
9903 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9904 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'
9905 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9907 allow_undefined_flag
=' -expect_unresolved \*'
9908 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'
9909 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~
9910 $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'
9912 # Both c and cxx compiler support -rpath directly
9913 hardcode_libdir_flag_spec
='-rpath $libdir'
9915 archive_cmds_need_lc
='no'
9916 hardcode_libdir_separator
=:
9920 no_undefined_flag
=' -z defs'
9921 if test "$GCC" = yes; then
9923 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9924 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9925 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9927 case `$CC -V 2>&1` in
9930 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9931 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9936 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9937 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9938 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9942 hardcode_libdir_flag_spec
='-R$libdir'
9943 hardcode_shlibpath_var
=no
9945 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9947 # The compiler driver will combine and reorder linker options,
9948 # but understands `-z linker_flag'. GCC discards it without `$wl',
9949 # but is careful enough not to reorder.
9950 # Supported since Solaris 2.6 (maybe 2.5.1?)
9951 if test "$GCC" = yes; then
9952 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9954 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9958 link_all_deplibs
=yes
9962 if test "x$host_vendor" = xsequent
; then
9963 # Use $CC to link under sequent, because it throws in some extra .o
9964 # files that make .init and .fini sections work.
9965 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9969 hardcode_libdir_flag_spec
='-L$libdir'
9971 hardcode_minus_L
=yes
9972 hardcode_shlibpath_var
=no
9976 case $host_vendor in
9978 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_direct
=yes # is this really true???
9982 ## LD is ld it makes a PLAMLIB
9983 ## CC just makes a GrossModule.
9984 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9985 reload_cmds
='$CC -r -o $output$reload_objs'
9989 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9993 runpath_var
='LD_RUN_PATH'
9994 hardcode_shlibpath_var
=no
9998 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_shlibpath_var
=no
10000 export_dynamic_flag_spec
='-Bexport'
10004 if test -d /usr
/nec
; then
10005 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_shlibpath_var
=no
10007 runpath_var
=LD_RUN_PATH
10008 hardcode_runpath_var
=yes
10013 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10014 no_undefined_flag
='${wl}-z,text'
10015 archive_cmds_need_lc
=no
10016 hardcode_shlibpath_var
=no
10017 runpath_var
='LD_RUN_PATH'
10019 if test "$GCC" = yes; then
10020 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 sysv5
* | sco3.2v5
* | sco5v6
*)
10029 # Note: We can NOT use -z defs as we might desire, because we do not
10030 # link with -lc, and that would cause any symbols used from libc to
10031 # always be unresolved, which means just about no library would
10032 # ever link correctly. If we're not using GNU ld we use -z text
10033 # though, which does catch some bad symbols but isn't as heavy-handed
10035 no_undefined_flag
='${wl}-z,text'
10036 allow_undefined_flag
='${wl}-z,nodefs'
10037 archive_cmds_need_lc
=no
10038 hardcode_shlibpath_var
=no
10039 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10040 hardcode_libdir_separator
=':'
10041 link_all_deplibs
=yes
10042 export_dynamic_flag_spec
='${wl}-Bexport'
10043 runpath_var
='LD_RUN_PATH'
10045 if test "$GCC" = yes; then
10046 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_libdir_flag_spec
='-L$libdir'
10057 hardcode_shlibpath_var
=no
10065 if test x
$host_vendor = xsni
; then
10067 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10068 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10075 $as_echo "$ld_shlibs" >&6; }
10076 test "$ld_shlibs" = no
&& can_build_shared
=no
10078 with_gnu_ld
=$with_gnu_ld
10095 # Do we need to explicitly link libc?
10097 case "x$archive_cmds_need_lc" in
10099 # Assume -lc should be added
10100 archive_cmds_need_lc
=yes
10102 if test "$enable_shared" = yes && test "$GCC" = yes; then
10103 case $archive_cmds in
10105 # FIXME: we may have to deal with multi-command sequences.
10108 # Test whether the compiler implicitly links with -lc since on some
10109 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10110 # to ld, don't add -lc before -lgcc.
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10112 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10113 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10114 $as_echo_n "(cached) " >&6
10117 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10120 (eval $ac_compile) 2>&5
10122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10123 test $ac_status = 0; } 2>conftest.err
; then
10126 libobjs
=conftest.
$ac_objext
10128 wl
=$lt_prog_compiler_wl
10129 pic_flag
=$lt_prog_compiler_pic
10135 lt_save_allow_undefined_flag
=$allow_undefined_flag
10136 allow_undefined_flag
=
10137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10138 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10141 test $ac_status = 0; }
10143 lt_cv_archive_cmds_need_lc
=no
10145 lt_cv_archive_cmds_need_lc
=yes
10147 allow_undefined_flag
=$lt_save_allow_undefined_flag
10149 cat conftest.err
1>&5
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10155 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10156 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10320 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10322 if test "$GCC" = yes; then
10324 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10325 *) lt_awk_arg
="/^libraries:/" ;;
10328 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10329 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10331 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10332 case $lt_search_path_spec in
10334 # if the path contains ";" then we assume it to be the separator
10335 # otherwise default to the standard path separator (i.e. ":") - it is
10336 # assumed that no part of a normal pathname contains ";" but that should
10337 # okay in the real world where ";" in dirpaths is itself problematic.
10338 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10341 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10344 # Ok, now we have the path, separated by spaces, we can step through it
10345 # and add multilib dir if necessary.
10346 lt_tmp_lt_search_path_spec
=
10347 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10348 for lt_sys_path
in $lt_search_path_spec; do
10349 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10350 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10352 test -d "$lt_sys_path" && \
10353 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10356 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10357 BEGIN {RS=" "; FS="/|\n";} {
10360 for (lt_i = NF; lt_i > 0; lt_i--) {
10361 if ($lt_i != "" && $lt_i != ".") {
10362 if ($lt_i == "..") {
10365 if (lt_count == 0) {
10366 lt_foo="/" $lt_i lt_foo;
10373 if (lt_foo != "") { lt_freq[lt_foo]++; }
10374 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10376 # AWK program above erroneously prepends '/' to C:/dos/paths
10379 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10380 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10382 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10384 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10386 library_names_spec
=
10387 libname_spec
='lib$name'
10391 postuninstall_cmds
=
10395 shlibpath_overrides_runpath
=unknown
10397 dynamic_linker
="$host_os ld.so"
10398 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10399 need_lib_prefix
=unknown
10400 hardcode_into_libs
=no
10402 # when you set need_version to no, make sure it does not cause -set_version
10403 # flags to be left without arguments
10404 need_version
=unknown
10409 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10410 shlibpath_var
=LIBPATH
10412 # AIX 3 has no versioning support, so we append a major version to the name.
10413 soname_spec
='${libname}${release}${shared_ext}$major'
10420 hardcode_into_libs
=yes
10421 if test "$host_cpu" = ia64
; then
10422 # AIX 5 supports IA64
10423 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10424 shlibpath_var
=LD_LIBRARY_PATH
10426 # With GCC up to 2.95.x, collect2 would create an import file
10427 # for dependence libraries. The import file would start with
10428 # the line `#! .'. This would cause the generated library to
10429 # depend on `.', always an invalid library. This was fixed in
10430 # development snapshots of GCC prior to 3.0.
10432 aix4 | aix4.
[01] | aix4.
[01].
*)
10433 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10435 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10438 can_build_shared
=no
10442 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10443 # soname into executable. Probably we can add versioning support to
10444 # collect2, so additional links can be useful in future.
10445 if test "$aix_use_runtimelinking" = yes; then
10446 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10447 # instead of lib<name>.a to let people know that these are not
10448 # typical AIX shared libraries.
10449 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 # We preserve .a as extension for shared libraries through AIX4.2
10452 # and later when we are not doing run time linking.
10453 library_names_spec
='${libname}${release}.a $libname.a'
10454 soname_spec
='${libname}${release}${shared_ext}$major'
10456 shlibpath_var
=LIBPATH
10463 # Since July 2007 AmigaOS4 officially supports .so libraries.
10464 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10465 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468 library_names_spec
='$libname.ixlibrary $libname.a'
10469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10470 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'
10476 library_names_spec
='${libname}${shared_ext}'
10477 dynamic_linker
="$host_os ld.so"
10478 shlibpath_var
=LIBRARY_PATH
10484 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10485 soname_spec
='${libname}${release}${shared_ext}$major'
10486 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10487 shlibpath_var
=LD_LIBRARY_PATH
10488 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10489 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10490 # the default ld.so.conf also contains /usr/contrib/lib and
10491 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10492 # libtool to hard-code these into programs
10495 cygwin
* | mingw
* | pw32
* | cegcc
*)
10496 version_type
=windows
10501 case $GCC,$host_os in
10502 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10503 library_names_spec
='$libname.dll.a'
10504 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10505 postinstall_cmds
='base_file=`basename \${file}`~
10506 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10507 dldir=$destdir/`dirname \$dlpath`~
10508 test -d \$dldir || mkdir -p \$dldir~
10509 $install_prog $dir/$dlname \$dldir/$dlname~
10510 chmod a+x \$dldir/$dlname~
10511 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10512 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10514 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10515 dlpath=$dir/\$dldll~
10517 shlibpath_overrides_runpath
=yes
10521 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10522 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10527 # MinGW DLLs use traditional 'lib' prefix
10528 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10531 # pw32 DLLs use 'pw' prefix rather than 'lib'
10532 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10538 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10541 dynamic_linker
='Win32 ld.exe'
10542 # FIXME: first we should search . and the directory the executable is in
10546 darwin
* | rhapsody
*)
10547 dynamic_linker
="$host_os dyld"
10548 version_type
=darwin
10551 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10552 soname_spec
='${libname}${release}${major}$shared_ext'
10553 shlibpath_overrides_runpath
=yes
10554 shlibpath_var
=DYLD_LIBRARY_PATH
10555 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10557 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10558 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10565 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10566 soname_spec
='${libname}${release}${shared_ext}$major'
10567 shlibpath_var
=LD_LIBRARY_PATH
10570 freebsd
* | dragonfly
*)
10571 # DragonFly does not have aout. When/if they implement a new
10572 # versioning mechanism, adjust this.
10573 if test -x /usr
/bin
/objformat
; then
10574 objformat
=`/usr/bin/objformat`
10577 freebsd
[23].
*) objformat
=aout
;;
10578 *) objformat
=elf
;;
10581 version_type
=freebsd-
$objformat
10582 case $version_type in
10584 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10589 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10593 shlibpath_var
=LD_LIBRARY_PATH
10596 shlibpath_overrides_runpath
=yes
10598 freebsd3.
[01]* | freebsdelf3.
[01]*)
10599 shlibpath_overrides_runpath
=yes
10600 hardcode_into_libs
=yes
10602 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10603 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10604 shlibpath_overrides_runpath
=no
10605 hardcode_into_libs
=yes
10607 *) # from 4.6 on, and DragonFly
10608 shlibpath_overrides_runpath
=yes
10609 hardcode_into_libs
=yes
10618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10619 soname_spec
='${libname}${release}${shared_ext}$major'
10620 shlibpath_var
=LD_LIBRARY_PATH
10621 hardcode_into_libs
=yes
10628 dynamic_linker
="$host_os runtime_loader"
10629 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10630 soname_spec
='${libname}${release}${shared_ext}$major'
10631 shlibpath_var
=LIBRARY_PATH
10632 shlibpath_overrides_runpath
=yes
10633 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10634 hardcode_into_libs
=yes
10637 hpux9
* | hpux10
* | hpux11
*)
10638 # Give a soname corresponding to the major version so that dld.sl refuses to
10639 # link against other versions.
10646 hardcode_into_libs
=yes
10647 dynamic_linker
="$host_os dld.so"
10648 shlibpath_var
=LD_LIBRARY_PATH
10649 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 soname_spec
='${libname}${release}${shared_ext}$major'
10652 if test "X$HPUX_IA64_MODE" = X32
; then
10653 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10655 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10657 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10661 hardcode_into_libs
=yes
10662 dynamic_linker
="$host_os dld.sl"
10663 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10664 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666 soname_spec
='${libname}${release}${shared_ext}$major'
10667 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10668 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10672 dynamic_linker
="$host_os dld.sl"
10673 shlibpath_var
=SHLIB_PATH
10674 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10675 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec
='${libname}${release}${shared_ext}$major'
10679 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10680 postinstall_cmds
='chmod 555 $lib'
10681 # or fails outright, so override atomically:
10682 install_override_mode
=555
10689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10690 soname_spec
='${libname}${release}${shared_ext}$major'
10691 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10692 shlibpath_var
=LD_LIBRARY_PATH
10693 shlibpath_overrides_runpath
=no
10694 hardcode_into_libs
=yes
10697 irix5
* | irix6
* | nonstopux
*)
10699 nonstopux
*) version_type
=nonstopux
;;
10701 if test "$lt_cv_prog_gnu_ld" = yes; then
10709 soname_spec
='${libname}${release}${shared_ext}$major'
10710 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10712 irix5
* | nonstopux
*)
10713 libsuff
= shlibsuff
=
10716 case $LD in # libtool.m4 will add one of these switches to LD
10717 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10718 libsuff
= shlibsuff
= libmagic
=32-bit;;
10719 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10720 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10721 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10722 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10723 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10727 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10728 shlibpath_overrides_runpath
=no
10729 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10730 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10731 hardcode_into_libs
=yes
10734 # No shared lib support for Linux oldld, aout, or coff.
10735 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10739 # This must be Linux ELF.
10741 # uclinux* changes (here and below) have been submitted to the libtool
10742 # project, but have not yet been accepted: they are GCC-local changes
10743 # for the time being. (See
10744 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10745 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
10749 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750 soname_spec
='${libname}${release}${shared_ext}$major'
10751 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10752 shlibpath_var
=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath
=no
10755 # Some binutils ld are patched to set DT_RUNPATH
10756 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10757 $as_echo_n "(cached) " >&6
10759 lt_cv_shlibpath_overrides_runpath
=no
10760 save_LDFLAGS
=$LDFLAGS
10761 save_libdir
=$libdir
10762 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10763 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10775 if ac_fn_c_try_link
"$LINENO"; then :
10776 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10777 lt_cv_shlibpath_overrides_runpath
=yes
10780 rm -f core conftest.err conftest.
$ac_objext \
10781 conftest
$ac_exeext conftest.
$ac_ext
10782 LDFLAGS
=$save_LDFLAGS
10783 libdir
=$save_libdir
10787 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10789 # This implies no fast_install, which is unacceptable.
10790 # Some rework will be needed to allow for fast_install
10791 # before this can be enabled.
10792 hardcode_into_libs
=yes
10794 # Append ld.so.conf contents to the search path
10795 if test -f /etc
/ld.so.conf
; then
10796 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' ' '`
10797 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10800 # We used to test for /lib/ld.so.1 and disable shared libraries on
10801 # powerpc, because MkLinux only supported shared libraries with the
10802 # GNU dynamic linker. Since this was broken with cross compilers,
10803 # most powerpc-linux boxes support dynamic linking these days and
10804 # people can always --disable-shared, the test was removed, and we
10805 # assume the GNU/Linux dynamic linker is in use.
10806 dynamic_linker
='GNU/Linux ld.so'
10813 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10814 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10815 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10816 dynamic_linker
='NetBSD (a.out) ld.so'
10818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10819 soname_spec
='${libname}${release}${shared_ext}$major'
10820 dynamic_linker
='NetBSD ld.elf_so'
10822 shlibpath_var
=LD_LIBRARY_PATH
10823 shlibpath_overrides_runpath
=yes
10824 hardcode_into_libs
=yes
10829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830 shlibpath_var
=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath
=yes
10838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 soname_spec
='${libname}${release}${shared_ext}$major'
10840 shlibpath_var
=LD_LIBRARY_PATH
10841 shlibpath_overrides_runpath
=no
10842 hardcode_into_libs
=yes
10843 dynamic_linker
='ldqnx.so'
10848 sys_lib_dlsearch_path_spec
="/usr/lib"
10850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10852 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10853 *) need_version
=no
;;
10855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10856 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10857 shlibpath_var
=LD_LIBRARY_PATH
10858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10860 openbsd2.
[89] | openbsd2.
[89].
*)
10861 shlibpath_overrides_runpath
=no
10864 shlibpath_overrides_runpath
=yes
10868 shlibpath_overrides_runpath
=yes
10873 libname_spec
='$name'
10876 library_names_spec
='$libname${shared_ext} $libname.a'
10877 dynamic_linker
='OS/2 ld.exe'
10878 shlibpath_var
=LIBPATH
10881 osf3
* | osf4
* | osf5
*)
10885 soname_spec
='${libname}${release}${shared_ext}$major'
10886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887 shlibpath_var
=LD_LIBRARY_PATH
10888 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10889 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 soname_spec
='${libname}${release}${shared_ext}$major'
10902 shlibpath_var
=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath
=yes
10904 hardcode_into_libs
=yes
10905 # ldd complains unless libraries are executable
10906 postinstall_cmds
='chmod +x $lib'
10911 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10912 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10913 shlibpath_var
=LD_LIBRARY_PATH
10914 shlibpath_overrides_runpath
=yes
10915 if test "$with_gnu_ld" = yes; then
10923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 soname_spec
='${libname}${release}${shared_ext}$major'
10925 shlibpath_var
=LD_LIBRARY_PATH
10926 case $host_vendor in
10928 shlibpath_overrides_runpath
=no
10930 runpath_var
=LD_RUN_PATH
10938 shlibpath_overrides_runpath
=no
10939 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10945 if test -d /usr
/nec
;then
10947 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10948 soname_spec
='$libname${shared_ext}.$major'
10949 shlibpath_var
=LD_LIBRARY_PATH
10953 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10954 version_type
=freebsd-elf
10957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10958 soname_spec
='${libname}${release}${shared_ext}$major'
10959 shlibpath_var
=LD_LIBRARY_PATH
10960 shlibpath_overrides_runpath
=yes
10961 hardcode_into_libs
=yes
10962 if test "$with_gnu_ld" = yes; then
10963 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10965 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10968 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10972 sys_lib_dlsearch_path_spec
='/usr/lib'
10976 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 shlibpath_var
=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath
=no
10983 hardcode_into_libs
=yes
10988 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 soname_spec
='${libname}${release}${shared_ext}$major'
10990 shlibpath_var
=LD_LIBRARY_PATH
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10998 $as_echo "$dynamic_linker" >&6; }
10999 test "$dynamic_linker" = no
&& can_build_shared
=no
11001 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11002 if test "$GCC" = yes; then
11003 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11006 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11007 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11009 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11010 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11105 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11107 if test -n "$hardcode_libdir_flag_spec" ||
11108 test -n "$runpath_var" ||
11109 test "X$hardcode_automatic" = "Xyes" ; then
11111 # We can hardcode non-existent directories.
11112 if test "$hardcode_direct" != no
&&
11113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11114 # have to relink, otherwise we might link with an installed library
11115 # when we should be linking with a yet-to-be-installed one
11116 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11117 test "$hardcode_minus_L" != no
; then
11118 # Linking always hardcodes the temporary library directory.
11119 hardcode_action
=relink
11121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11122 hardcode_action
=immediate
11125 # We cannot hardcode anything, or else we can only hardcode existing
11127 hardcode_action
=unsupported
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11130 $as_echo "$hardcode_action" >&6; }
11132 if test "$hardcode_action" = relink ||
11133 test "$inherit_rpath" = yes; then
11134 # Fast installation is not supported
11135 enable_fast_install
=no
11136 elif test "$shlibpath_overrides_runpath" = yes ||
11137 test "$enable_shared" = no
; then
11138 # Fast installation is not necessary
11139 enable_fast_install
=needless
11147 if test "x$enable_dlopen" != xyes
; then
11148 enable_dlopen
=unknown
11149 enable_dlopen_self
=unknown
11150 enable_dlopen_self_static
=unknown
11157 lt_cv_dlopen
="load_add_on"
11159 lt_cv_dlopen_self
=yes
11162 mingw
* | pw32
* | cegcc
*)
11163 lt_cv_dlopen
="LoadLibrary"
11168 lt_cv_dlopen
="dlopen"
11173 # if libdl is installed we need to link against it
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11175 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11176 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11177 $as_echo_n "(cached) " >&6
11179 ac_check_lib_save_LIBS
=$LIBS
11181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11184 /* Override any GCC internal prototype to avoid an error.
11185 Use char because int might match the return type of a GCC
11186 builtin and then its argument prototype would still apply. */
11199 if ac_fn_c_try_link
"$LINENO"; then :
11200 ac_cv_lib_dl_dlopen
=yes
11202 ac_cv_lib_dl_dlopen
=no
11204 rm -f core conftest.err conftest.
$ac_objext \
11205 conftest
$ac_exeext conftest.
$ac_ext
11206 LIBS
=$ac_check_lib_save_LIBS
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11209 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11210 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11211 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11214 lt_cv_dlopen
="dyld"
11216 lt_cv_dlopen_self
=yes
11223 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11224 if test "x$ac_cv_func_shl_load" = xyes
; then :
11225 lt_cv_dlopen
="shl_load"
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11228 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11229 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11230 $as_echo_n "(cached) " >&6
11232 ac_check_lib_save_LIBS
=$LIBS
11234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11247 return shl_load ();
11252 if ac_fn_c_try_link
"$LINENO"; then :
11253 ac_cv_lib_dld_shl_load
=yes
11255 ac_cv_lib_dld_shl_load
=no
11257 rm -f core conftest.err conftest.
$ac_objext \
11258 conftest
$ac_exeext conftest.
$ac_ext
11259 LIBS
=$ac_check_lib_save_LIBS
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11262 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11263 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11264 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11266 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11267 if test "x$ac_cv_func_dlopen" = xyes
; then :
11268 lt_cv_dlopen
="dlopen"
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11271 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11272 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11273 $as_echo_n "(cached) " >&6
11275 ac_check_lib_save_LIBS
=$LIBS
11277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11295 if ac_fn_c_try_link
"$LINENO"; then :
11296 ac_cv_lib_dl_dlopen
=yes
11298 ac_cv_lib_dl_dlopen
=no
11300 rm -f core conftest.err conftest.
$ac_objext \
11301 conftest
$ac_exeext conftest.
$ac_ext
11302 LIBS
=$ac_check_lib_save_LIBS
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11305 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11306 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11307 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11310 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11311 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11312 $as_echo_n "(cached) " >&6
11314 ac_check_lib_save_LIBS
=$LIBS
11315 LIBS
="-lsvld $LIBS"
11316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11319 /* Override any GCC internal prototype to avoid an error.
11320 Use char because int might match the return type of a GCC
11321 builtin and then its argument prototype would still apply. */
11334 if ac_fn_c_try_link
"$LINENO"; then :
11335 ac_cv_lib_svld_dlopen
=yes
11337 ac_cv_lib_svld_dlopen
=no
11339 rm -f core conftest.err conftest.
$ac_objext \
11340 conftest
$ac_exeext conftest.
$ac_ext
11341 LIBS
=$ac_check_lib_save_LIBS
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11344 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11345 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11346 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11349 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11350 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11351 $as_echo_n "(cached) " >&6
11353 ac_check_lib_save_LIBS
=$LIBS
11355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11358 /* Override any GCC internal prototype to avoid an error.
11359 Use char because int might match the return type of a GCC
11360 builtin and then its argument prototype would still apply. */
11368 return dld_link ();
11373 if ac_fn_c_try_link
"$LINENO"; then :
11374 ac_cv_lib_dld_dld_link
=yes
11376 ac_cv_lib_dld_dld_link
=no
11378 rm -f core conftest.err conftest.
$ac_objext \
11379 conftest
$ac_exeext conftest.
$ac_ext
11380 LIBS
=$ac_check_lib_save_LIBS
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11383 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11384 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11385 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11406 if test "x$lt_cv_dlopen" != xno
; then
11412 case $lt_cv_dlopen in
11414 save_CPPFLAGS
="$CPPFLAGS"
11415 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11417 save_LDFLAGS
="$LDFLAGS"
11418 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11421 LIBS
="$lt_cv_dlopen_libs $LIBS"
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11424 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11425 if ${lt_cv_dlopen_self+:} false
; then :
11426 $as_echo_n "(cached) " >&6
11428 if test "$cross_compiling" = yes; then :
11429 lt_cv_dlopen_self
=cross
11431 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11432 lt_status
=$lt_dlunknown
11433 cat > conftest.
$ac_ext <<_LT_EOF
11434 #line 11434 "configure"
11435 #include "confdefs.h"
11444 # define LT_DLGLOBAL RTLD_GLOBAL
11447 # define LT_DLGLOBAL DL_GLOBAL
11449 # define LT_DLGLOBAL 0
11453 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11454 find out it does not work in some platform. */
11455 #ifndef LT_DLLAZY_OR_NOW
11457 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11460 # define LT_DLLAZY_OR_NOW DL_LAZY
11463 # define LT_DLLAZY_OR_NOW RTLD_NOW
11466 # define LT_DLLAZY_OR_NOW DL_NOW
11468 # define LT_DLLAZY_OR_NOW 0
11475 /* When -fvisbility=hidden is used, assume the code has been annotated
11476 correspondingly for the symbols needed. */
11477 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11478 void fnord () __attribute__((visibility("default")));
11481 void fnord () { int i=42; }
11484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11485 int status = $lt_dlunknown;
11489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11492 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11493 else puts (dlerror ());
11495 /* dlclose (self); */
11503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11504 (eval $ac_link) 2>&5
11506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11507 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11508 (.
/conftest
; exit; ) >&5 2>/dev
/null
11510 case x
$lt_status in
11511 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11512 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11513 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11516 # compilation failed
11517 lt_cv_dlopen_self
=no
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11525 $as_echo "$lt_cv_dlopen_self" >&6; }
11527 if test "x$lt_cv_dlopen_self" = xyes
; then
11528 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11530 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11531 if ${lt_cv_dlopen_self_static+:} false
; then :
11532 $as_echo_n "(cached) " >&6
11534 if test "$cross_compiling" = yes; then :
11535 lt_cv_dlopen_self_static
=cross
11537 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11538 lt_status
=$lt_dlunknown
11539 cat > conftest.
$ac_ext <<_LT_EOF
11540 #line 11540 "configure"
11541 #include "confdefs.h"
11550 # define LT_DLGLOBAL RTLD_GLOBAL
11553 # define LT_DLGLOBAL DL_GLOBAL
11555 # define LT_DLGLOBAL 0
11559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11560 find out it does not work in some platform. */
11561 #ifndef LT_DLLAZY_OR_NOW
11563 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11566 # define LT_DLLAZY_OR_NOW DL_LAZY
11569 # define LT_DLLAZY_OR_NOW RTLD_NOW
11572 # define LT_DLLAZY_OR_NOW DL_NOW
11574 # define LT_DLLAZY_OR_NOW 0
11581 /* When -fvisbility=hidden is used, assume the code has been annotated
11582 correspondingly for the symbols needed. */
11583 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11584 void fnord () __attribute__((visibility("default")));
11587 void fnord () { int i=42; }
11590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11591 int status = $lt_dlunknown;
11595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11598 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11599 else puts (dlerror ());
11601 /* dlclose (self); */
11609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11610 (eval $ac_link) 2>&5
11612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11613 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11614 (.
/conftest
; exit; ) >&5 2>/dev
/null
11616 case x
$lt_status in
11617 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11618 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11619 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11622 # compilation failed
11623 lt_cv_dlopen_self_static
=no
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11631 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11634 CPPFLAGS
="$save_CPPFLAGS"
11635 LDFLAGS
="$save_LDFLAGS"
11640 case $lt_cv_dlopen_self in
11641 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11642 *) enable_dlopen_self
=unknown
;;
11645 case $lt_cv_dlopen_self_static in
11646 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11647 *) enable_dlopen_self_static
=unknown
;;
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11670 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11671 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11672 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11673 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675 $as_echo "yes" >&6; }
11677 # FIXME - insert some real tests, host_os isn't really good enough
11680 if test -n "$STRIP" ; then
11681 striplib
="$STRIP -x"
11682 old_striplib
="$STRIP -S"
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11684 $as_echo "yes" >&6; }
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692 $as_echo "no" >&6; }
11708 # Report which library types will actually be built
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11710 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11712 $as_echo "$can_build_shared" >&6; }
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11715 $as_echo_n "checking whether to build shared libraries... " >&6; }
11716 test "$can_build_shared" = "no" && enable_shared
=no
11718 # On AIX, shared libraries and static libraries use the same namespace, and
11719 # are all built from PIC.
11722 test "$enable_shared" = yes && enable_static
=no
11723 if test -n "$RANLIB"; then
11724 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11725 postinstall_cmds
='$RANLIB $lib'
11730 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11731 test "$enable_shared" = yes && enable_static
=no
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11736 $as_echo "$enable_shared" >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11739 $as_echo_n "checking whether to build static libraries... " >&6; }
11740 # Make sure either enable_shared or enable_static is yes.
11741 test "$enable_shared" = yes || enable_static
=yes
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11743 $as_echo "$enable_static" >&6; }
11750 ac_cpp
='$CPP $CPPFLAGS'
11751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11769 ac_config_commands
="$ac_config_commands libtool"
11774 # Only expand once:
11781 *-cygwin* |
*-mingw*)
11782 # 'host' will be top-level target in the case of a target lib,
11783 # we must compare to with_cross_host to decide if this is a native
11784 # or cross-compiler and select where to install dlls appropriately.
11785 if test -n "$with_cross_host" &&
11786 test x
"$with_cross_host" != x
"no"; then
11787 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11789 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11804 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11805 # Check whether --enable-maintainer-mode was given.
11806 if test "${enable_maintainer_mode+set}" = set; then :
11807 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11809 USE_MAINTAINER_MODE
=no
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11813 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11814 if test $USE_MAINTAINER_MODE = yes; then
11815 MAINTAINER_MODE_TRUE
=
11816 MAINTAINER_MODE_FALSE
='#'
11818 MAINTAINER_MODE_TRUE
='#'
11819 MAINTAINER_MODE_FALSE
=
11822 MAINT
=$MAINTAINER_MODE_TRUE
11826 # Create a spec file, so that compile/link tests don't fail
11827 test -f libgfortran.spec ||
touch libgfortran.spec
11828 FCFLAGS
="$FCFLAGS -L."
11830 # We need gfortran to compile parts of the library
11831 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11832 #AC_PROG_FC(gfortran)
11833 case `echo $GFORTRAN` in
11837 set dummy
$GFORTRAN; ac_word
=$2
11838 if test -x "$ac_word"; then
11844 ac_ext
=${ac_fc_srcext-f}
11845 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11846 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11847 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11848 if test -n "$ac_tool_prefix"; then
11849 for ac_prog
in gfortran
11851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11852 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_prog_FC+:} false
; then :
11856 $as_echo_n "(cached) " >&6
11858 if test -n "$FC"; then
11859 ac_cv_prog_FC
="$FC" # Let the user override the test.
11861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11862 for as_dir
in $PATH
11865 test -z "$as_dir" && as_dir
=.
11866 for ac_exec_ext
in '' $ac_executable_extensions; do
11867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 if test -n "$FC"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11881 $as_echo "$FC" >&6; }
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11888 test -n "$FC" && break
11891 if test -z "$FC"; then
11893 for ac_prog
in gfortran
11895 # Extract the first word of "$ac_prog", so it can be a program name with args.
11896 set dummy
$ac_prog; ac_word
=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_prog_ac_ct_FC+:} false
; then :
11900 $as_echo_n "(cached) " >&6
11902 if test -n "$ac_ct_FC"; then
11903 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11906 for as_dir
in $PATH
11909 test -z "$as_dir" && as_dir
=.
11910 for ac_exec_ext
in '' $ac_executable_extensions; do
11911 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_ac_ct_FC
="$ac_prog"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11922 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11923 if test -n "$ac_ct_FC"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11925 $as_echo "$ac_ct_FC" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11932 test -n "$ac_ct_FC" && break
11935 if test "x$ac_ct_FC" = x
; then
11938 case $cross_compiling:$ac_tool_warned in
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11942 ac_tool_warned
=yes ;;
11949 # Provide some information about the compiler.
11950 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11953 for ac_option
in --version -v -V -qversion; do
11954 { { ac_try
="$ac_compiler $ac_option >&5"
11955 case "(($ac_try" in
11956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11960 $as_echo "$ac_try_echo"; } >&5
11961 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11963 if test -s conftest.err; then
11965 ... rest of stderr output deleted ...
11966 10q' conftest.err >conftest.er1
11967 cat conftest.er1 >&5
11969 rm -f conftest.er1 conftest.err
11970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11971 test $ac_status = 0; }
11975 # If we don't use `.F
' as extension, the preprocessor is not run on the
11976 # input file. (Note that this only needs to work for GNU compilers.)
11977 ac_save_ext=$ac_ext
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11980 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11981 if ${ac_cv_fc_compiler_gnu+:} false; then :
11982 $as_echo_n "(cached) " >&6
11984 cat > conftest.$ac_ext <<_ACEOF
11992 if ac_fn_fc_try_compile "$LINENO"; then :
11993 ac_compiler_gnu=yes
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12002 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12003 ac_ext=$ac_save_ext
12004 ac_test_FCFLAGS=${FCFLAGS+set}
12005 ac_save_FCFLAGS=$FCFLAGS
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12008 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12009 if ${ac_cv_prog_fc_g+:} false; then :
12010 $as_echo_n "(cached) " >&6
12013 cat > conftest.$ac_ext <<_ACEOF
12018 if ac_fn_fc_try_compile "$LINENO"; then :
12019 ac_cv_prog_fc_g=yes
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12027 $as_echo "$ac_cv_prog_fc_g" >&6; }
12028 if test "$ac_test_FCFLAGS" = set; then
12029 FCFLAGS=$ac_save_FCFLAGS
12030 elif test $ac_cv_prog_fc_g = yes; then
12031 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12037 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12044 if test $ac_compiler_gnu = yes; then
12050 ac_cpp='$CPP $CPPFLAGS'
12051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12052 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12055 ac_ext=${ac_fc_srcext-f}
12056 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
12057 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
12058 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12061 if test -z "$FC" || test "X$FC" = "Xno"; then
12065 archive_cmds_need_lc_FC=no
12066 allow_undefined_flag_FC=
12067 always_export_symbols_FC=no
12068 archive_expsym_cmds_FC=
12069 export_dynamic_flag_spec_FC=
12070 hardcode_direct_FC=no
12071 hardcode_direct_absolute_FC=no
12072 hardcode_libdir_flag_spec_FC=
12073 hardcode_libdir_flag_spec_ld_FC=
12074 hardcode_libdir_separator_FC=
12075 hardcode_minus_L_FC=no
12076 hardcode_automatic_FC=no
12077 inherit_rpath_FC=no
12079 module_expsym_cmds_FC=
12080 link_all_deplibs_FC=unknown
12081 old_archive_cmds_FC=$old_archive_cmds
12082 reload_flag_FC=$reload_flag
12083 reload_cmds_FC=$reload_cmds
12084 no_undefined_flag_FC=
12085 whole_archive_flag_spec_FC=
12086 enable_shared_with_static_runtimes_FC=no
12088 # Source file extension for fc test sources.
12089 ac_ext=${ac_fc_srcext-f}
12091 # Object file extension for compiled fc test sources.
12095 # No sense in running all these tests if we already determined that
12096 # the FC compiler isn't working. Some variables
(like enable_shared
)
12097 # are currently assumed to apply to all compilers on this platform,
12098 # and will be corrupted by setting them based on a non-working compiler.
12099 if test "$_lt_disable_FC" != yes; then
12100 # Code to be used in simple compile tests
12101 lt_simple_compile_test_code
="\
12107 # Code to be used in simple link tests
12108 lt_simple_link_test_code
="\
12113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12120 # If no C compiler was specified, use CC.
12123 # If no C compiler flags were specified, use CFLAGS.
12124 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12126 # Allow CC to be a program name with arguments.
12130 # save warnings/boilerplate of simple test code
12131 ac_outfile
=conftest.
$ac_objext
12132 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12133 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12134 _lt_compiler_boilerplate
=`cat conftest.err`
12137 ac_outfile
=conftest.
$ac_objext
12138 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12139 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12140 _lt_linker_boilerplate
=`cat conftest.err`
12144 # Allow CC to be a program name with arguments.
12149 GCC
=$ac_cv_fc_compiler_gnu
12152 for cc_temp
in $compiler""; do
12154 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12155 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12160 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12163 if test -n "$compiler"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12165 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12167 $as_echo "$can_build_shared" >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12170 $as_echo_n "checking whether to build shared libraries... " >&6; }
12171 test "$can_build_shared" = "no" && enable_shared
=no
12173 # On AIX, shared libraries and static libraries use the same namespace, and
12174 # are all built from PIC.
12177 test "$enable_shared" = yes && enable_static
=no
12178 if test -n "$RANLIB"; then
12179 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12180 postinstall_cmds
='$RANLIB $lib'
12184 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12185 test "$enable_shared" = yes && enable_static
=no
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12190 $as_echo "$enable_shared" >&6; }
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12193 $as_echo_n "checking whether to build static libraries... " >&6; }
12194 # Make sure either enable_shared or enable_static is yes.
12195 test "$enable_shared" = yes || enable_static
=yes
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12197 $as_echo "$enable_static" >&6; }
12199 GCC_FC
="$ac_cv_fc_compiler_gnu"
12203 ## There is no encapsulation within the following macros, do not change
12204 ## the running order or otherwise move them around unless you know exactly
12205 ## what you are doing...
12206 # Dependencies to place before and after the object being linked:
12208 postdep_objects_FC
=
12211 compiler_lib_search_path_FC
=
12213 cat > conftest.
$ac_ext <<_LT_EOF
12222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12223 (eval $ac_compile) 2>&5
12225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226 test $ac_status = 0; }; then
12227 # Parse the compiler output and extract the necessary
12228 # objects, libraries and library flags.
12230 # Sentinel used to keep track of whether or not we are before
12231 # the conftest object file.
12232 pre_test_object_deps_done
=no
12234 for p
in `eval "$output_verbose_link_cmd"`; do
12238 # Some compilers place space between "-{L,R}" and the path.
12239 # Remove the space.
12240 if test $p = "-L" ||
12241 test $p = "-R"; then
12248 if test "$pre_test_object_deps_done" = no
; then
12251 # Internal compiler library paths should come after those
12252 # provided the user. The postdeps already come after the
12253 # user supplied libs so there is no need to process them.
12254 if test -z "$compiler_lib_search_path_FC"; then
12255 compiler_lib_search_path_FC
="${prev}${p}"
12257 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
12260 # The "-l" case would never come before the object being
12261 # linked, so don't bother handling this case.
12264 if test -z "$postdeps_FC"; then
12265 postdeps_FC
="${prev}${p}"
12267 postdeps_FC
="${postdeps_FC} ${prev}${p}"
12273 # This assumes that the test object file only shows up
12274 # once in the compiler output.
12275 if test "$p" = "conftest.$objext"; then
12276 pre_test_object_deps_done
=yes
12280 if test "$pre_test_object_deps_done" = no
; then
12281 if test -z "$predep_objects_FC"; then
12282 predep_objects_FC
="$p"
12284 predep_objects_FC
="$predep_objects_FC $p"
12287 if test -z "$postdep_objects_FC"; then
12288 postdep_objects_FC
="$p"
12290 postdep_objects_FC
="$postdep_objects_FC $p"
12295 *) ;; # Ignore the rest.
12303 echo "libtool.m4: error: problem compiling FC test program"
12306 $RM -f confest.
$objext
12308 # PORTME: override above test on systems where it is broken
12311 case " $postdeps_FC " in
12312 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12314 compiler_lib_search_dirs_FC
=
12315 if test -n "${compiler_lib_search_path_FC}"; then
12316 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12349 lt_prog_compiler_wl_FC
=
12350 lt_prog_compiler_pic_FC
=
12351 lt_prog_compiler_static_FC
=
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12354 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12356 if test "$GCC" = yes; then
12357 lt_prog_compiler_wl_FC
='-Wl,'
12358 lt_prog_compiler_static_FC
='-static'
12362 # All AIX code is PIC.
12363 if test "$host_cpu" = ia64
; then
12364 # AIX 5 now supports IA64 processor
12365 lt_prog_compiler_static_FC
='-Bstatic'
12367 lt_prog_compiler_pic_FC
='-fPIC'
12373 # see comment about AmigaOS4 .so support
12374 lt_prog_compiler_pic_FC
='-fPIC'
12377 # FIXME: we need at least 68020 code to build shared libraries, but
12378 # adding the `-m68020' flag to GCC prevents building anything better,
12380 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12385 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12386 # PIC is the default for these OSes.
12389 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12390 # This hack is so that the source file can tell whether it is being
12391 # built for inclusion in a dll (and should export symbols for example).
12392 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12393 # (--disable-auto-import) libraries
12394 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12397 darwin
* | rhapsody
*)
12398 # PIC is the default on this platform
12399 # Common symbols not allowed in MH_DYLIB files
12400 lt_prog_compiler_pic_FC
='-fno-common'
12404 # PIC is the default for Haiku.
12405 # The "-static" flag exists, but is broken.
12406 lt_prog_compiler_static_FC
=
12410 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12411 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12412 # sets the default TLS model and affects inlining.
12418 lt_prog_compiler_pic_FC
='-fPIC'
12424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12425 # Instead, we relocate shared libraries at runtime.
12429 # Just because we use GCC doesn't mean we suddenly get shared libraries
12430 # on systems that don't support them.
12431 lt_prog_compiler_can_build_shared_FC
=no
12436 # QNX uses GNU C++, but need to define -shared option too, otherwise
12437 # it will coredump.
12438 lt_prog_compiler_pic_FC
='-fPIC -shared'
12442 if test -d /usr
/nec
; then
12443 lt_prog_compiler_pic_FC
=-Kconform_pic
12448 lt_prog_compiler_pic_FC
='-fPIC'
12452 case $cc_basename in
12453 nvcc
*) # Cuda Compiler Driver 2.2
12454 lt_prog_compiler_wl_FC
='-Xlinker '
12455 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12459 # PORTME Check for flag to pass linker flags through the system compiler.
12462 lt_prog_compiler_wl_FC
='-Wl,'
12463 if test "$host_cpu" = ia64
; then
12464 # AIX 5 now supports IA64 processor
12465 lt_prog_compiler_static_FC
='-Bstatic'
12467 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12471 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12472 # This hack is so that the source file can tell whether it is being
12473 # built for inclusion in a dll (and should export symbols for example).
12474 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12477 hpux9
* | hpux10
* | hpux11
*)
12478 lt_prog_compiler_wl_FC
='-Wl,'
12479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12480 # not for PA HP-UX.
12486 lt_prog_compiler_pic_FC
='+Z'
12489 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12490 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12493 irix5
* | irix6
* | nonstopux
*)
12494 lt_prog_compiler_wl_FC
='-Wl,'
12495 # PIC (with -KPIC) is the default.
12496 lt_prog_compiler_static_FC
='-non_shared'
12499 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12500 case $cc_basename in
12501 # old Intel for x86_64 which still supported -KPIC.
12503 lt_prog_compiler_wl_FC
='-Wl,'
12504 lt_prog_compiler_pic_FC
='-KPIC'
12505 lt_prog_compiler_static_FC
='-static'
12507 # icc used to be incompatible with GCC.
12508 # ICC 10 doesn't accept -KPIC any more.
12510 lt_prog_compiler_wl_FC
='-Wl,'
12511 lt_prog_compiler_pic_FC
='-fPIC'
12512 lt_prog_compiler_static_FC
='-static'
12514 # Lahey Fortran 8.1.
12516 lt_prog_compiler_wl_FC
='-Wl,'
12517 lt_prog_compiler_pic_FC
='--shared'
12518 lt_prog_compiler_static_FC
='--static'
12520 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12521 # Portland Group compilers (*not* the Pentium gcc compiler,
12522 # which looks to be a dead project)
12523 lt_prog_compiler_wl_FC
='-Wl,'
12524 lt_prog_compiler_pic_FC
='-fpic'
12525 lt_prog_compiler_static_FC
='-Bstatic'
12528 lt_prog_compiler_wl_FC
='-Wl,'
12529 # All Alpha code is PIC.
12530 lt_prog_compiler_static_FC
='-non_shared'
12532 xl
* | bgxl
* | bgf
* | mpixl
*)
12533 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12534 lt_prog_compiler_wl_FC
='-Wl,'
12535 lt_prog_compiler_pic_FC
='-qpic'
12536 lt_prog_compiler_static_FC
='-qstaticlink'
12539 case `$CC -V 2>&1 | sed 5q` in
12540 *Sun\ F
* |
*Sun
*Fortran
*)
12541 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12542 lt_prog_compiler_pic_FC
='-KPIC'
12543 lt_prog_compiler_static_FC
='-Bstatic'
12544 lt_prog_compiler_wl_FC
=''
12548 lt_prog_compiler_pic_FC
='-KPIC'
12549 lt_prog_compiler_static_FC
='-Bstatic'
12550 lt_prog_compiler_wl_FC
='-Wl,'
12558 lt_prog_compiler_pic_FC
='-KPIC'
12559 lt_prog_compiler_static_FC
='-Bstatic'
12563 # QNX uses GNU C++, but need to define -shared option too, otherwise
12564 # it will coredump.
12565 lt_prog_compiler_pic_FC
='-fPIC -shared'
12568 osf3
* | osf4
* | osf5
*)
12569 lt_prog_compiler_wl_FC
='-Wl,'
12570 # All OSF/1 code is PIC.
12571 lt_prog_compiler_static_FC
='-non_shared'
12575 lt_prog_compiler_static_FC
='-non_shared'
12579 lt_prog_compiler_pic_FC
='-KPIC'
12580 lt_prog_compiler_static_FC
='-Bstatic'
12581 case $cc_basename in
12582 f77
* | f90
* | f95
*)
12583 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12585 lt_prog_compiler_wl_FC
='-Wl,';;
12590 lt_prog_compiler_wl_FC
='-Qoption ld '
12591 lt_prog_compiler_pic_FC
='-PIC'
12592 lt_prog_compiler_static_FC
='-Bstatic'
12595 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12596 lt_prog_compiler_wl_FC
='-Wl,'
12597 lt_prog_compiler_pic_FC
='-KPIC'
12598 lt_prog_compiler_static_FC
='-Bstatic'
12602 if test -d /usr
/nec
;then
12603 lt_prog_compiler_pic_FC
='-Kconform_pic'
12604 lt_prog_compiler_static_FC
='-Bstatic'
12608 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12609 lt_prog_compiler_wl_FC
='-Wl,'
12610 lt_prog_compiler_pic_FC
='-KPIC'
12611 lt_prog_compiler_static_FC
='-Bstatic'
12615 lt_prog_compiler_wl_FC
='-Wl,'
12616 lt_prog_compiler_can_build_shared_FC
=no
12620 lt_prog_compiler_pic_FC
='-pic'
12621 lt_prog_compiler_static_FC
='-Bstatic'
12625 lt_prog_compiler_can_build_shared_FC
=no
12631 # For platforms which do not support PIC, -DPIC is meaningless:
12633 lt_prog_compiler_pic_FC
=
12636 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12640 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12645 # Check to make sure the PIC flag actually works.
12647 if test -n "$lt_prog_compiler_pic_FC"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12649 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12650 if ${lt_cv_prog_compiler_pic_works_FC+:} false
; then :
12651 $as_echo_n "(cached) " >&6
12653 lt_cv_prog_compiler_pic_works_FC
=no
12654 ac_outfile
=conftest.
$ac_objext
12655 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12656 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12657 # Insert the option either (1) after the last *FLAGS variable, or
12658 # (2) before a word containing "conftest.", or (3) at the end.
12659 # Note that $ac_compile itself does not contain backslashes and begins
12660 # with a dollar sign (not a hyphen), so the echo should work correctly.
12661 # The option is referenced via a variable to avoid confusing sed.
12662 lt_compile
=`echo "$ac_compile" | $SED \
12663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12665 -e 's:$: $lt_compiler_flag:'`
12666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12667 (eval "$lt_compile" 2>conftest.err
)
12669 cat conftest.err
>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 if (exit $ac_status) && test -s "$ac_outfile"; then
12672 # The compiler can only warn and ignore the option if not recognized
12673 # So say no if there are warnings other than the usual output.
12674 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12675 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12676 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12677 lt_cv_prog_compiler_pic_works_FC
=yes
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12684 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12686 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12687 case $lt_prog_compiler_pic_FC in
12689 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12692 lt_prog_compiler_pic_FC
=
12693 lt_prog_compiler_can_build_shared_FC
=no
12701 # Check to make sure the static flag actually works.
12703 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12705 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12706 if ${lt_cv_prog_compiler_static_works_FC+:} false
; then :
12707 $as_echo_n "(cached) " >&6
12709 lt_cv_prog_compiler_static_works_FC
=no
12710 save_LDFLAGS
="$LDFLAGS"
12711 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12712 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12713 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12714 # The linker can only warn and ignore the option if not recognized
12715 # So say no if there are warnings
12716 if test -s conftest.err
; then
12717 # Append any errors to the config.log.
12718 cat conftest.err
1>&5
12719 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12720 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12721 if diff conftest.exp conftest.er2
>/dev
/null
; then
12722 lt_cv_prog_compiler_static_works_FC
=yes
12725 lt_cv_prog_compiler_static_works_FC
=yes
12729 LDFLAGS
="$save_LDFLAGS"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12733 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12735 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12738 lt_prog_compiler_static_FC
=
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12745 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12746 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12747 $as_echo_n "(cached) " >&6
12749 lt_cv_prog_compiler_c_o_FC
=no
12750 $RM -r conftest
2>/dev
/null
12754 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12756 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12757 # Insert the option either (1) after the last *FLAGS variable, or
12758 # (2) before a word containing "conftest.", or (3) at the end.
12759 # Note that $ac_compile itself does not contain backslashes and begins
12760 # with a dollar sign (not a hyphen), so the echo should work correctly.
12761 lt_compile
=`echo "$ac_compile" | $SED \
12762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12764 -e 's:$: $lt_compiler_flag:'`
12765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12766 (eval "$lt_compile" 2>out
/conftest.err
)
12768 cat out
/conftest.err
>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12772 # The compiler can only warn and ignore the option if not recognized
12773 # So say no if there are warnings
12774 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12775 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12776 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12777 lt_cv_prog_compiler_c_o_FC
=yes
12782 # SGI C++ compiler will create directory out/ii_files/ for
12783 # template instantiation
12784 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12785 $RM out
/* && rmdir out
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12792 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12797 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12798 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12799 $as_echo_n "(cached) " >&6
12801 lt_cv_prog_compiler_c_o_FC
=no
12802 $RM -r conftest
2>/dev
/null
12806 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12808 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12809 # Insert the option either (1) after the last *FLAGS variable, or
12810 # (2) before a word containing "conftest.", or (3) at the end.
12811 # Note that $ac_compile itself does not contain backslashes and begins
12812 # with a dollar sign (not a hyphen), so the echo should work correctly.
12813 lt_compile
=`echo "$ac_compile" | $SED \
12814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12816 -e 's:$: $lt_compiler_flag:'`
12817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12818 (eval "$lt_compile" 2>out
/conftest.err
)
12820 cat out
/conftest.err
>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12824 # The compiler can only warn and ignore the option if not recognized
12825 # So say no if there are warnings
12826 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12827 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12828 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12829 lt_cv_prog_compiler_c_o_FC
=yes
12834 # SGI C++ compiler will create directory out/ii_files/ for
12835 # template instantiation
12836 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12837 $RM out
/* && rmdir out
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12844 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12849 hard_links
="nottested"
12850 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12851 # do not overwrite the value of need_locks provided by the user
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12853 $as_echo_n "checking if we can lock with hard links... " >&6; }
12856 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12858 ln conftest.a conftest.b
2>&5 || hard_links
=no
12859 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12861 $as_echo "$hard_links" >&6; }
12862 if test "$hard_links" = no
; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12864 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12877 allow_undefined_flag_FC
=
12878 always_export_symbols_FC
=no
12880 archive_expsym_cmds_FC
=
12881 compiler_needs_object_FC
=no
12882 enable_shared_with_static_runtimes_FC
=no
12883 export_dynamic_flag_spec_FC
=
12884 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12885 hardcode_automatic_FC
=no
12886 hardcode_direct_FC
=no
12887 hardcode_direct_absolute_FC
=no
12888 hardcode_libdir_flag_spec_FC
=
12889 hardcode_libdir_flag_spec_ld_FC
=
12890 hardcode_libdir_separator_FC
=
12891 hardcode_minus_L_FC
=no
12892 hardcode_shlibpath_var_FC
=unsupported
12893 inherit_rpath_FC
=no
12894 link_all_deplibs_FC
=unknown
12896 module_expsym_cmds_FC
=
12897 old_archive_from_new_cmds_FC
=
12898 old_archive_from_expsyms_cmds_FC
=
12899 thread_safe_flag_spec_FC
=
12900 whole_archive_flag_spec_FC
=
12901 # include_expsyms should be a list of space-separated symbols to be *always*
12902 # included in the symbol list
12903 include_expsyms_FC
=
12904 # exclude_expsyms can be an extended regexp of symbols to exclude
12905 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12906 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12907 # as well as any symbol that contains `d'.
12908 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12909 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12910 # platforms (ab)use it in PIC code, but their linkers get confused if
12911 # the symbol is explicitly referenced. Since portable code cannot
12912 # rely on this symbol name, it's probably fine to never include it in
12913 # preloaded symbol tables.
12914 # Exclude shared library initialization/finalization symbols.
12915 extract_expsyms_cmds
=
12918 cygwin
* | mingw
* | pw32
* | cegcc
*)
12919 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12920 # When not using gcc, we currently assume that we are using
12921 # Microsoft Visual C++.
12922 if test "$GCC" != yes; then
12927 # we just hope/assume this is gcc and not c89 (= MSVC++)
12937 # On some targets, GNU ld is compatible enough with the native linker
12938 # that we're better off using the native interface for both.
12939 lt_use_gnu_ld_interface
=no
12940 if test "$with_gnu_ld" = yes; then
12943 # The AIX port of GNU ld has always aspired to compatibility
12944 # with the native linker. However, as the warning in the GNU ld
12945 # block says, versions before 2.19.5* couldn't really create working
12946 # shared libraries, regardless of the interface used.
12947 case `$LD -v 2>&1` in
12948 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12949 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12950 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12952 lt_use_gnu_ld_interface
=yes
12957 lt_use_gnu_ld_interface
=yes
12962 if test "$lt_use_gnu_ld_interface" = yes; then
12963 # If archive_cmds runs LD, not CC, wlarc should be empty
12966 # Set some defaults for GNU ld with shared library support. These
12967 # are reset later if shared libraries are not supported. Putting them
12968 # here allows them to be overridden if necessary.
12969 runpath_var
=LD_RUN_PATH
12970 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12971 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12972 # ancient GNU ld didn't support --whole-archive et. al.
12973 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12974 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12976 whole_archive_flag_spec_FC
=
12978 supports_anon_versioning
=no
12979 case `$LD -v 2>&1` in
12980 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12981 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12982 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12983 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12984 *\
2.11.
*) ;; # other 2.11 versions
12985 *) supports_anon_versioning
=yes ;;
12988 # See if GNU ld supports shared libraries.
12991 # On AIX/PPC, the GNU linker is very broken
12992 if test "$host_cpu" != ia64
; then
12996 *** Warning: the GNU linker, at least up to release 2.19, is reported
12997 *** to be unable to reliably create shared libraries on AIX.
12998 *** Therefore, libtool is disabling shared libraries support. If you
12999 *** really care for shared libraries, you may want to install binutils
13000 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13001 *** You will then need to restart the configuration process.
13010 # see comment about AmigaOS4 .so support
13011 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13012 archive_expsym_cmds_FC
=''
13015 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)'
13016 hardcode_libdir_flag_spec_FC
='-L$libdir'
13017 hardcode_minus_L_FC
=yes
13023 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13024 allow_undefined_flag_FC
=unsupported
13025 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13026 # support --undefined. This deserves some investigation. FIXME
13027 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13033 cygwin
* | mingw
* | pw32
* | cegcc
*)
13034 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13035 # as there is no search path for DLLs.
13036 hardcode_libdir_flag_spec_FC
='-L$libdir'
13037 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
13038 allow_undefined_flag_FC
=unsupported
13039 always_export_symbols_FC
=no
13040 enable_shared_with_static_runtimes_FC
=yes
13041 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13043 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13044 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13045 # If the export-symbols file already is a .def file (1st line
13046 # is EXPORTS), use it as is; otherwise, prepend...
13047 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13048 cp $export_symbols $output_objdir/$soname.def;
13050 echo EXPORTS > $output_objdir/$soname.def;
13051 cat $export_symbols >> $output_objdir/$soname.def;
13053 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13060 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13061 link_all_deplibs_FC
=yes
13065 hardcode_direct_FC
=no
13066 hardcode_shlibpath_var_FC
=no
13067 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13068 export_dynamic_flag_spec_FC
='${wl}-E'
13069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13070 # Instead, shared libraries are loaded at an image base (0x10000000 by
13071 # default) and relocated if they conflict, which is a slow very memory
13072 # consuming and fragmenting process. To avoid this, we pick a random,
13073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13075 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'
13076 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'
13079 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
13081 if test "$host_os" = linux-dietlibc
; then
13082 case $cc_basename in
13083 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13086 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13087 && test "$tmp_diet" = no
13089 tmp_addflag
=' $pic_flag'
13090 tmp_sharedflag
='-shared'
13091 case $cc_basename,$host_cpu in
13092 pgcc
*) # Portland Group C compiler
13093 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'
13094 tmp_addflag
=' $pic_flag'
13096 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13097 # Portland Group f77 and f90 compilers
13098 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'
13099 tmp_addflag
=' $pic_flag -Mnomain' ;;
13100 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13101 tmp_addflag
=' -i_dynamic' ;;
13102 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13103 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13104 ifc
* | ifort
*) # Intel Fortran compiler
13105 tmp_addflag
=' -nofor_main' ;;
13106 lf95
*) # Lahey Fortran 8.1
13107 whole_archive_flag_spec_FC
=
13108 tmp_sharedflag
='--shared' ;;
13109 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13110 tmp_sharedflag
='-qmkshrobj'
13112 nvcc
*) # Cuda Compiler Driver 2.2
13113 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'
13114 compiler_needs_object_FC
=yes
13117 case `$CC -V 2>&1 | sed 5q` in
13118 *Sun\ C
*) # Sun C 5.9
13119 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'
13120 compiler_needs_object_FC
=yes
13121 tmp_sharedflag
='-G' ;;
13122 *Sun\ F
*) # Sun Fortran 8.3
13123 tmp_sharedflag
='-G' ;;
13125 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13127 if test "x$supports_anon_versioning" = xyes
; then
13128 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13130 echo "local: *; };" >> $output_objdir/$libname.ver~
13131 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13134 case $cc_basename in
13135 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13136 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13137 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
13138 hardcode_libdir_flag_spec_FC
=
13139 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
13140 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13141 if test "x$supports_anon_versioning" = xyes
; then
13142 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13144 echo "local: *; };" >> $output_objdir/$libname.ver~
13145 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13155 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13156 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13159 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13160 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13165 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13170 *** create shared libraries on Solaris systems. Therefore, libtool
13171 *** is disabling shared libraries support. We urge you to upgrade GNU
13172 *** binutils to release 2.9.1 or newer. Another option is to modify
13173 *** your PATH or compiler configuration so that the native linker is
13174 *** used, and then restart.
13177 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13178 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13185 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13186 case `$LD -v 2>&1` in
13187 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13191 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13192 *** reliably create shared libraries on SCO systems. Therefore, libtool
13193 *** is disabling shared libraries support. We urge you to upgrade GNU
13194 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13195 *** your PATH or compiler configuration so that the native linker is
13196 *** used, and then restart.
13201 # For security reasons, it is highly recommended that you always
13202 # use absolute paths for naming shared libraries, and exclude the
13203 # DT_RUNPATH tag from executables and libraries. But doing so
13204 # requires that you compile everything twice, which is a pain.
13205 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13206 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13207 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13217 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13219 hardcode_direct_FC
=yes
13220 hardcode_shlibpath_var_FC
=no
13224 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13225 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13233 if test "$ld_shlibs_FC" = no
; then
13235 hardcode_libdir_flag_spec_FC
=
13236 export_dynamic_flag_spec_FC
=
13237 whole_archive_flag_spec_FC
=
13240 # PORTME fill in a description of your system's linker (not GNU ld)
13243 allow_undefined_flag_FC
=unsupported
13244 always_export_symbols_FC
=yes
13245 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'
13246 # Note: this linker hardcodes the directories in LIBPATH if there
13247 # are no directories specified by -L.
13248 hardcode_minus_L_FC
=yes
13249 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13250 # Neither direct hardcoding nor static linking is supported with a
13252 hardcode_direct_FC
=unsupported
13257 if test "$host_cpu" = ia64
; then
13258 # On IA64, the linker does run time linking by default, so we don't
13259 # have to do anything special.
13260 aix_use_runtimelinking
=no
13261 exp_sym_flag
='-Bexport'
13264 # If we're using GNU nm, then we don't want the "-C" option.
13265 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13266 # Also, AIX nm treats weak defined symbols like other global
13267 # defined symbols, whereas GNU nm marks them as "W".
13268 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13269 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'
13271 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'
13273 aix_use_runtimelinking
=no
13275 # Test if we are trying to use run time linking or normal
13276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13277 # need to do runtime linking.
13278 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13279 for ld_flag
in $LDFLAGS; do
13280 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13281 aix_use_runtimelinking
=yes
13288 exp_sym_flag
='-bexport'
13289 no_entry_flag
='-bnoentry'
13292 # When large executables or shared objects are built, AIX ld can
13293 # have problems creating the table of contents. If linking a library
13294 # or program results in "error TOC overflow" add -mminimal-toc to
13295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13299 hardcode_direct_FC
=yes
13300 hardcode_direct_absolute_FC
=yes
13301 hardcode_libdir_separator_FC
=':'
13302 link_all_deplibs_FC
=yes
13303 file_list_spec_FC
='${wl}-f,'
13305 if test "$GCC" = yes; then
13306 case $host_os in aix4.
[012]|aix4.
[012].
*)
13307 # We only want to do this on AIX 4.2 and lower, the check
13308 # below for broken collect2 doesn't work under 4.3+
13309 collect2name
=`${CC} -print-prog-name=collect2`
13310 if test -f "$collect2name" &&
13311 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13313 # We have reworked collect2
13316 # We have old collect2
13317 hardcode_direct_FC
=unsupported
13318 # It fails to find uninstalled libraries when the uninstalled
13319 # path is not listed in the libpath. Setting hardcode_minus_L
13320 # to unsupported forces relinking
13321 hardcode_minus_L_FC
=yes
13322 hardcode_libdir_flag_spec_FC
='-L$libdir'
13323 hardcode_libdir_separator_FC
=
13327 shared_flag
='-shared'
13328 if test "$aix_use_runtimelinking" = yes; then
13329 shared_flag
="$shared_flag "'${wl}-G'
13333 if test "$host_cpu" = ia64
; then
13334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13335 # chokes on -Wl,-G. The following line is correct:
13338 if test "$aix_use_runtimelinking" = yes; then
13339 shared_flag
='${wl}-G'
13341 shared_flag
='${wl}-bM:SRE'
13346 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13347 # It seems that -bexpall does not export symbols beginning with
13348 # underscore (_), so it is better to generate a list of symbols to export.
13349 always_export_symbols_FC
=yes
13350 if test "$aix_use_runtimelinking" = yes; then
13351 # Warning - without using the other runtime loading flags (-brtl),
13352 # -berok will link without error, but may produce a broken library.
13353 allow_undefined_flag_FC
='-berok'
13354 # Determine the default libpath from the value encoded in an
13355 # empty executable.
13356 cat > conftest.
$ac_ext <<_ACEOF
13361 if ac_fn_fc_try_link
"$LINENO"; then :
13363 lt_aix_libpath_sed
='
13364 /Import File Strings/,/^$/ {
13370 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13371 # Check for a 64-bit object if we didn't find anything.
13372 if test -z "$aix_libpath"; then
13373 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13376 rm -f core conftest.err conftest.
$ac_objext \
13377 conftest
$ac_exeext conftest.
$ac_ext
13378 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13380 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13381 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"
13383 if test "$host_cpu" = ia64
; then
13384 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13385 allow_undefined_flag_FC
="-z nodefs"
13386 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"
13388 # Determine the default libpath from the value encoded in an
13389 # empty executable.
13390 cat > conftest.
$ac_ext <<_ACEOF
13395 if ac_fn_fc_try_link
"$LINENO"; then :
13397 lt_aix_libpath_sed
='
13398 /Import File Strings/,/^$/ {
13404 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13405 # Check for a 64-bit object if we didn't find anything.
13406 if test -z "$aix_libpath"; then
13407 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13410 rm -f core conftest.err conftest.
$ac_objext \
13411 conftest
$ac_exeext conftest.
$ac_ext
13412 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13414 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13415 # Warning - without using the other run time loading flags,
13416 # -berok will link without error, but may produce a broken library.
13417 no_undefined_flag_FC
=' ${wl}-bernotok'
13418 allow_undefined_flag_FC
=' ${wl}-berok'
13419 if test "$with_gnu_ld" = yes; then
13420 # We only use this code for GNU lds that support --whole-archive.
13421 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13423 # Exported symbols can be pulled into shared objects from archives
13424 whole_archive_flag_spec_FC
='$convenience'
13426 archive_cmds_need_lc_FC
=yes
13427 # This is similar to how AIX traditionally builds its shared libraries.
13428 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'
13436 # see comment about AmigaOS4 .so support
13437 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438 archive_expsym_cmds_FC
=''
13441 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)'
13442 hardcode_libdir_flag_spec_FC
='-L$libdir'
13443 hardcode_minus_L_FC
=yes
13449 export_dynamic_flag_spec_FC
=-rdynamic
13452 cygwin
* | mingw
* | pw32
* | cegcc
*)
13453 # When not using gcc, we currently assume that we are using
13454 # Microsoft Visual C++.
13455 # hardcode_libdir_flag_spec is actually meaningless, as there is
13456 # no search path for DLLs.
13457 hardcode_libdir_flag_spec_FC
=' '
13458 allow_undefined_flag_FC
=unsupported
13459 # Tell ltmain to make .lib files, not .a files.
13461 # Tell ltmain to make .dll files, not .so files.
13463 # FIXME: Setting linknames here is a bad hack.
13464 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13465 # The linker will automatically build a .lib file if we build a DLL.
13466 old_archive_from_new_cmds_FC
='true'
13467 # FIXME: Should let the user specify the lib program.
13468 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13469 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13470 enable_shared_with_static_runtimes_FC
=yes
13473 darwin
* | rhapsody
*)
13476 archive_cmds_need_lc_FC
=no
13477 hardcode_direct_FC
=no
13478 hardcode_automatic_FC
=yes
13479 hardcode_shlibpath_var_FC
=unsupported
13480 if test "$lt_cv_ld_force_load" = "yes"; then
13481 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\"`'
13483 whole_archive_flag_spec_FC
=''
13485 link_all_deplibs_FC
=yes
13486 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13487 case $cc_basename in
13488 ifort
*) _lt_dar_can_shared
=yes ;;
13489 *) _lt_dar_can_shared
=$GCC ;;
13491 if test "$_lt_dar_can_shared" = "yes"; then
13492 output_verbose_link_cmd
=func_echo_all
13493 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}"
13494 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13495 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}"
13496 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}"
13505 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13506 hardcode_libdir_flag_spec_FC
='-L$libdir'
13507 hardcode_shlibpath_var_FC
=no
13510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13511 # support. Future versions do this automatically, but an explicit c++rt0.o
13512 # does not break anything, and helps significantly (at the cost of a little
13515 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13516 hardcode_libdir_flag_spec_FC
='-R$libdir'
13517 hardcode_direct_FC
=yes
13518 hardcode_shlibpath_var_FC
=no
13521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13523 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13524 hardcode_direct_FC
=yes
13525 hardcode_minus_L_FC
=yes
13526 hardcode_shlibpath_var_FC
=no
13529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13530 freebsd
* | dragonfly
*)
13531 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13532 hardcode_libdir_flag_spec_FC
='-R$libdir'
13533 hardcode_direct_FC
=yes
13534 hardcode_shlibpath_var_FC
=no
13538 if test "$GCC" = yes; then
13539 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'
13541 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'
13543 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13544 hardcode_libdir_separator_FC
=:
13545 hardcode_direct_FC
=yes
13547 # hardcode_minus_L: Not really in the search PATH,
13548 # but as the default location of the library.
13549 hardcode_minus_L_FC
=yes
13550 export_dynamic_flag_spec_FC
='${wl}-E'
13554 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13555 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13557 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13559 if test "$with_gnu_ld" = no
; then
13560 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13561 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13562 hardcode_libdir_separator_FC
=:
13563 hardcode_direct_FC
=yes
13564 hardcode_direct_absolute_FC
=yes
13565 export_dynamic_flag_spec_FC
='${wl}-E'
13566 # hardcode_minus_L: Not really in the search PATH,
13567 # but as the default location of the library.
13568 hardcode_minus_L_FC
=yes
13573 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13576 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13579 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13582 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13588 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13591 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13594 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13598 if test "$with_gnu_ld" = no
; then
13599 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13600 hardcode_libdir_separator_FC
=:
13604 hardcode_direct_FC
=no
13605 hardcode_shlibpath_var_FC
=no
13608 hardcode_direct_FC
=yes
13609 hardcode_direct_absolute_FC
=yes
13610 export_dynamic_flag_spec_FC
='${wl}-E'
13612 # hardcode_minus_L: Not really in the search PATH,
13613 # but as the default location of the library.
13614 hardcode_minus_L_FC
=yes
13620 irix5
* | irix6
* | nonstopux
*)
13621 if test "$GCC" = yes; then
13622 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'
13623 # Try to use the -exported_symbol ld option, if it does not
13624 # work, assume that -exports_file does not work either and
13625 # implicitly export all symbols.
13626 save_LDFLAGS
="$LDFLAGS"
13627 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13628 cat > conftest.
$ac_ext <<_ACEOF
13631 if ac_fn_fc_try_link
"$LINENO"; then :
13632 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'
13635 rm -f core conftest.err conftest.
$ac_objext \
13636 conftest
$ac_exeext conftest.
$ac_ext
13637 LDFLAGS
="$save_LDFLAGS"
13639 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'
13640 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'
13642 archive_cmds_need_lc_FC
='no'
13643 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13644 hardcode_libdir_separator_FC
=:
13645 inherit_rpath_FC
=yes
13646 link_all_deplibs_FC
=yes
13650 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13651 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13653 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13655 hardcode_libdir_flag_spec_FC
='-R$libdir'
13656 hardcode_direct_FC
=yes
13657 hardcode_shlibpath_var_FC
=no
13661 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13662 hardcode_direct_FC
=yes
13663 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13664 hardcode_libdir_separator_FC
=:
13665 hardcode_shlibpath_var_FC
=no
13672 if test -f /usr
/libexec
/ld.so
; then
13673 hardcode_direct_FC
=yes
13674 hardcode_shlibpath_var_FC
=no
13675 hardcode_direct_absolute_FC
=yes
13676 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13677 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13678 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13679 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13680 export_dynamic_flag_spec_FC
='${wl}-E'
13683 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13684 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13685 hardcode_libdir_flag_spec_FC
='-R$libdir'
13688 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13689 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13699 hardcode_libdir_flag_spec_FC
='-L$libdir'
13700 hardcode_minus_L_FC
=yes
13701 allow_undefined_flag_FC
=unsupported
13702 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'
13703 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13707 if test "$GCC" = yes; then
13708 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13709 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'
13711 allow_undefined_flag_FC
=' -expect_unresolved \*'
13712 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'
13714 archive_cmds_need_lc_FC
='no'
13715 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13716 hardcode_libdir_separator_FC
=:
13719 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13720 if test "$GCC" = yes; then
13721 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13722 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'
13723 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13725 allow_undefined_flag_FC
=' -expect_unresolved \*'
13726 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'
13727 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~
13728 $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'
13730 # Both c and cxx compiler support -rpath directly
13731 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13733 archive_cmds_need_lc_FC
='no'
13734 hardcode_libdir_separator_FC
=:
13738 no_undefined_flag_FC
=' -z defs'
13739 if test "$GCC" = yes; then
13741 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13742 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13743 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13745 case `$CC -V 2>&1` in
13748 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13749 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13750 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13754 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13755 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13756 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13760 hardcode_libdir_flag_spec_FC
='-R$libdir'
13761 hardcode_shlibpath_var_FC
=no
13763 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13765 # The compiler driver will combine and reorder linker options,
13766 # but understands `-z linker_flag'. GCC discards it without `$wl',
13767 # but is careful enough not to reorder.
13768 # Supported since Solaris 2.6 (maybe 2.5.1?)
13769 if test "$GCC" = yes; then
13770 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13772 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13776 link_all_deplibs_FC
=yes
13780 if test "x$host_vendor" = xsequent
; then
13781 # Use $CC to link under sequent, because it throws in some extra .o
13782 # files that make .init and .fini sections work.
13783 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13785 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_libdir_flag_spec_FC
='-L$libdir'
13788 hardcode_direct_FC
=yes
13789 hardcode_minus_L_FC
=yes
13790 hardcode_shlibpath_var_FC
=no
13794 case $host_vendor in
13796 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13797 hardcode_direct_FC
=yes # is this really true???
13800 ## LD is ld it makes a PLAMLIB
13801 ## CC just makes a GrossModule.
13802 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13803 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13804 hardcode_direct_FC
=no
13807 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13808 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13811 runpath_var
='LD_RUN_PATH'
13812 hardcode_shlibpath_var_FC
=no
13816 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13817 hardcode_shlibpath_var_FC
=no
13818 export_dynamic_flag_spec_FC
='-Bexport'
13822 if test -d /usr
/nec
; then
13823 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13824 hardcode_shlibpath_var_FC
=no
13825 runpath_var
=LD_RUN_PATH
13826 hardcode_runpath_var
=yes
13831 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13832 no_undefined_flag_FC
='${wl}-z,text'
13833 archive_cmds_need_lc_FC
=no
13834 hardcode_shlibpath_var_FC
=no
13835 runpath_var
='LD_RUN_PATH'
13837 if test "$GCC" = yes; then
13838 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13839 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846 sysv5
* | sco3.2v5
* | sco5v6
*)
13847 # Note: We can NOT use -z defs as we might desire, because we do not
13848 # link with -lc, and that would cause any symbols used from libc to
13849 # always be unresolved, which means just about no library would
13850 # ever link correctly. If we're not using GNU ld we use -z text
13851 # though, which does catch some bad symbols but isn't as heavy-handed
13853 no_undefined_flag_FC
='${wl}-z,text'
13854 allow_undefined_flag_FC
='${wl}-z,nodefs'
13855 archive_cmds_need_lc_FC
=no
13856 hardcode_shlibpath_var_FC
=no
13857 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13858 hardcode_libdir_separator_FC
=':'
13859 link_all_deplibs_FC
=yes
13860 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13861 runpath_var
='LD_RUN_PATH'
13863 if test "$GCC" = yes; then
13864 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13865 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13873 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13874 hardcode_libdir_flag_spec_FC
='-L$libdir'
13875 hardcode_shlibpath_var_FC
=no
13883 if test x
$host_vendor = xsni
; then
13885 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13886 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13893 $as_echo "$ld_shlibs_FC" >&6; }
13894 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13896 with_gnu_ld_FC
=$with_gnu_ld
13904 # Do we need to explicitly link libc?
13906 case "x$archive_cmds_need_lc_FC" in
13908 # Assume -lc should be added
13909 archive_cmds_need_lc_FC
=yes
13911 if test "$enable_shared" = yes && test "$GCC" = yes; then
13912 case $archive_cmds_FC in
13914 # FIXME: we may have to deal with multi-command sequences.
13917 # Test whether the compiler implicitly links with -lc since on some
13918 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13919 # to ld, don't add -lc before -lgcc.
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13921 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13922 if ${lt_cv_archive_cmds_need_lc_FC+:} false
; then :
13923 $as_echo_n "(cached) " >&6
13926 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13929 (eval $ac_compile) 2>&5
13931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13932 test $ac_status = 0; } 2>conftest.err
; then
13935 libobjs
=conftest.
$ac_objext
13937 wl
=$lt_prog_compiler_wl_FC
13938 pic_flag
=$lt_prog_compiler_pic_FC
13944 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13945 allow_undefined_flag_FC
=
13946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13947 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13950 test $ac_status = 0; }
13952 lt_cv_archive_cmds_need_lc_FC
=no
13954 lt_cv_archive_cmds_need_lc_FC
=yes
13956 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13958 cat conftest.err
1>&5
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13964 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13965 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14036 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14038 library_names_spec
=
14039 libname_spec
='lib$name'
14043 postuninstall_cmds
=
14047 shlibpath_overrides_runpath
=unknown
14049 dynamic_linker
="$host_os ld.so"
14050 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14051 need_lib_prefix
=unknown
14052 hardcode_into_libs
=no
14054 # when you set need_version to no, make sure it does not cause -set_version
14055 # flags to be left without arguments
14056 need_version
=unknown
14061 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14062 shlibpath_var
=LIBPATH
14064 # AIX 3 has no versioning support, so we append a major version to the name.
14065 soname_spec
='${libname}${release}${shared_ext}$major'
14072 hardcode_into_libs
=yes
14073 if test "$host_cpu" = ia64
; then
14074 # AIX 5 supports IA64
14075 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14076 shlibpath_var
=LD_LIBRARY_PATH
14078 # With GCC up to 2.95.x, collect2 would create an import file
14079 # for dependence libraries. The import file would start with
14080 # the line `#! .'. This would cause the generated library to
14081 # depend on `.', always an invalid library. This was fixed in
14082 # development snapshots of GCC prior to 3.0.
14084 aix4 | aix4.
[01] | aix4.
[01].
*)
14085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14087 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14090 can_build_shared
=no
14094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14095 # soname into executable. Probably we can add versioning support to
14096 # collect2, so additional links can be useful in future.
14097 if test "$aix_use_runtimelinking" = yes; then
14098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14099 # instead of lib<name>.a to let people know that these are not
14100 # typical AIX shared libraries.
14101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 # We preserve .a as extension for shared libraries through AIX4.2
14104 # and later when we are not doing run time linking.
14105 library_names_spec
='${libname}${release}.a $libname.a'
14106 soname_spec
='${libname}${release}${shared_ext}$major'
14108 shlibpath_var
=LIBPATH
14115 # Since July 2007 AmigaOS4 officially supports .so libraries.
14116 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120 library_names_spec
='$libname.ixlibrary $libname.a'
14121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14122 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'
14128 library_names_spec
='${libname}${shared_ext}'
14129 dynamic_linker
="$host_os ld.so"
14130 shlibpath_var
=LIBRARY_PATH
14136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 soname_spec
='${libname}${release}${shared_ext}$major'
14138 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14139 shlibpath_var
=LD_LIBRARY_PATH
14140 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14141 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14142 # the default ld.so.conf also contains /usr/contrib/lib and
14143 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14144 # libtool to hard-code these into programs
14147 cygwin
* | mingw
* | pw32
* | cegcc
*)
14148 version_type
=windows
14153 case $GCC,$host_os in
14154 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14155 library_names_spec
='$libname.dll.a'
14156 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14157 postinstall_cmds
='base_file=`basename \${file}`~
14158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14159 dldir=$destdir/`dirname \$dlpath`~
14160 test -d \$dldir || mkdir -p \$dldir~
14161 $install_prog $dir/$dlname \$dldir/$dlname~
14162 chmod a+x \$dldir/$dlname~
14163 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14164 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14166 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14167 dlpath=$dir/\$dldll~
14169 shlibpath_overrides_runpath
=yes
14173 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14174 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14178 # MinGW DLLs use traditional 'lib' prefix
14179 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14182 # pw32 DLLs use 'pw' prefix rather than 'lib'
14183 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14189 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14192 dynamic_linker
='Win32 ld.exe'
14193 # FIXME: first we should search . and the directory the executable is in
14197 darwin
* | rhapsody
*)
14198 dynamic_linker
="$host_os dyld"
14199 version_type
=darwin
14202 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14203 soname_spec
='${libname}${release}${major}$shared_ext'
14204 shlibpath_overrides_runpath
=yes
14205 shlibpath_var
=DYLD_LIBRARY_PATH
14206 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14208 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14216 soname_spec
='${libname}${release}${shared_ext}$major'
14217 shlibpath_var
=LD_LIBRARY_PATH
14220 freebsd
* | dragonfly
*)
14221 # DragonFly does not have aout. When/if they implement a new
14222 # versioning mechanism, adjust this.
14223 if test -x /usr
/bin
/objformat
; then
14224 objformat
=`/usr/bin/objformat`
14227 freebsd
[23].
*) objformat
=aout
;;
14228 *) objformat
=elf
;;
14231 version_type
=freebsd-
$objformat
14232 case $version_type in
14234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14239 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14243 shlibpath_var
=LD_LIBRARY_PATH
14246 shlibpath_overrides_runpath
=yes
14248 freebsd3.
[01]* | freebsdelf3.
[01]*)
14249 shlibpath_overrides_runpath
=yes
14250 hardcode_into_libs
=yes
14252 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14253 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14254 shlibpath_overrides_runpath
=no
14255 hardcode_into_libs
=yes
14257 *) # from 4.6 on, and DragonFly
14258 shlibpath_overrides_runpath
=yes
14259 hardcode_into_libs
=yes
14268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14269 soname_spec
='${libname}${release}${shared_ext}$major'
14270 shlibpath_var
=LD_LIBRARY_PATH
14271 hardcode_into_libs
=yes
14278 dynamic_linker
="$host_os runtime_loader"
14279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14280 soname_spec
='${libname}${release}${shared_ext}$major'
14281 shlibpath_var
=LIBRARY_PATH
14282 shlibpath_overrides_runpath
=yes
14283 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14284 hardcode_into_libs
=yes
14287 hpux9
* | hpux10
* | hpux11
*)
14288 # Give a soname corresponding to the major version so that dld.sl refuses to
14289 # link against other versions.
14296 hardcode_into_libs
=yes
14297 dynamic_linker
="$host_os dld.so"
14298 shlibpath_var
=LD_LIBRARY_PATH
14299 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14301 soname_spec
='${libname}${release}${shared_ext}$major'
14302 if test "X$HPUX_IA64_MODE" = X32
; then
14303 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14305 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14307 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14311 hardcode_into_libs
=yes
14312 dynamic_linker
="$host_os dld.sl"
14313 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14314 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14315 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14316 soname_spec
='${libname}${release}${shared_ext}$major'
14317 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14318 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14322 dynamic_linker
="$host_os dld.sl"
14323 shlibpath_var
=SHLIB_PATH
14324 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14325 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326 soname_spec
='${libname}${release}${shared_ext}$major'
14329 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14330 postinstall_cmds
='chmod 555 $lib'
14331 # or fails outright, so override atomically:
14332 install_override_mode
=555
14339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14340 soname_spec
='${libname}${release}${shared_ext}$major'
14341 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14342 shlibpath_var
=LD_LIBRARY_PATH
14343 shlibpath_overrides_runpath
=no
14344 hardcode_into_libs
=yes
14347 irix5
* | irix6
* | nonstopux
*)
14349 nonstopux
*) version_type
=nonstopux
;;
14351 if test "$lt_cv_prog_gnu_ld" = yes; then
14359 soname_spec
='${libname}${release}${shared_ext}$major'
14360 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14362 irix5
* | nonstopux
*)
14363 libsuff
= shlibsuff
=
14366 case $LD in # libtool.m4 will add one of these switches to LD
14367 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14368 libsuff
= shlibsuff
= libmagic
=32-bit;;
14369 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14370 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14371 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14372 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14373 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14377 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14378 shlibpath_overrides_runpath
=no
14379 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14380 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14381 hardcode_into_libs
=yes
14384 # No shared lib support for Linux oldld, aout, or coff.
14385 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14389 # This must be Linux ELF.
14391 # uclinux* changes (here and below) have been submitted to the libtool
14392 # project, but have not yet been accepted: they are GCC-local changes
14393 # for the time being. (See
14394 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14395 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
14399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400 soname_spec
='${libname}${release}${shared_ext}$major'
14401 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14402 shlibpath_var
=LD_LIBRARY_PATH
14403 shlibpath_overrides_runpath
=no
14405 # Some binutils ld are patched to set DT_RUNPATH
14406 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14407 $as_echo_n "(cached) " >&6
14409 lt_cv_shlibpath_overrides_runpath
=no
14410 save_LDFLAGS
=$LDFLAGS
14411 save_libdir
=$libdir
14412 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14413 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14414 cat > conftest.
$ac_ext <<_ACEOF
14419 if ac_fn_fc_try_link
"$LINENO"; then :
14420 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14421 lt_cv_shlibpath_overrides_runpath
=yes
14424 rm -f core conftest.err conftest.
$ac_objext \
14425 conftest
$ac_exeext conftest.
$ac_ext
14426 LDFLAGS
=$save_LDFLAGS
14427 libdir
=$save_libdir
14431 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14433 # This implies no fast_install, which is unacceptable.
14434 # Some rework will be needed to allow for fast_install
14435 # before this can be enabled.
14436 hardcode_into_libs
=yes
14438 # Append ld.so.conf contents to the search path
14439 if test -f /etc
/ld.so.conf
; then
14440 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' ' '`
14441 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14444 # We used to test for /lib/ld.so.1 and disable shared libraries on
14445 # powerpc, because MkLinux only supported shared libraries with the
14446 # GNU dynamic linker. Since this was broken with cross compilers,
14447 # most powerpc-linux boxes support dynamic linking these days and
14448 # people can always --disable-shared, the test was removed, and we
14449 # assume the GNU/Linux dynamic linker is in use.
14450 dynamic_linker
='GNU/Linux ld.so'
14457 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14458 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14459 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14460 dynamic_linker
='NetBSD (a.out) ld.so'
14462 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14463 soname_spec
='${libname}${release}${shared_ext}$major'
14464 dynamic_linker
='NetBSD ld.elf_so'
14466 shlibpath_var
=LD_LIBRARY_PATH
14467 shlibpath_overrides_runpath
=yes
14468 hardcode_into_libs
=yes
14473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474 shlibpath_var
=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath
=yes
14482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483 soname_spec
='${libname}${release}${shared_ext}$major'
14484 shlibpath_var
=LD_LIBRARY_PATH
14485 shlibpath_overrides_runpath
=no
14486 hardcode_into_libs
=yes
14487 dynamic_linker
='ldqnx.so'
14492 sys_lib_dlsearch_path_spec
="/usr/lib"
14494 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14496 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14497 *) need_version
=no
;;
14499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14500 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14501 shlibpath_var
=LD_LIBRARY_PATH
14502 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14504 openbsd2.
[89] | openbsd2.
[89].
*)
14505 shlibpath_overrides_runpath
=no
14508 shlibpath_overrides_runpath
=yes
14512 shlibpath_overrides_runpath
=yes
14517 libname_spec
='$name'
14520 library_names_spec
='$libname${shared_ext} $libname.a'
14521 dynamic_linker
='OS/2 ld.exe'
14522 shlibpath_var
=LIBPATH
14525 osf3
* | osf4
* | osf5
*)
14529 soname_spec
='${libname}${release}${shared_ext}$major'
14530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531 shlibpath_var
=LD_LIBRARY_PATH
14532 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14533 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec
='${libname}${release}${shared_ext}$major'
14546 shlibpath_var
=LD_LIBRARY_PATH
14547 shlibpath_overrides_runpath
=yes
14548 hardcode_into_libs
=yes
14549 # ldd complains unless libraries are executable
14550 postinstall_cmds
='chmod +x $lib'
14555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14556 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14557 shlibpath_var
=LD_LIBRARY_PATH
14558 shlibpath_overrides_runpath
=yes
14559 if test "$with_gnu_ld" = yes; then
14567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568 soname_spec
='${libname}${release}${shared_ext}$major'
14569 shlibpath_var
=LD_LIBRARY_PATH
14570 case $host_vendor in
14572 shlibpath_overrides_runpath
=no
14574 runpath_var
=LD_RUN_PATH
14582 shlibpath_overrides_runpath
=no
14583 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14589 if test -d /usr
/nec
;then
14591 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14592 soname_spec
='$libname${shared_ext}.$major'
14593 shlibpath_var
=LD_LIBRARY_PATH
14597 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14598 version_type
=freebsd-elf
14601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14602 soname_spec
='${libname}${release}${shared_ext}$major'
14603 shlibpath_var
=LD_LIBRARY_PATH
14604 shlibpath_overrides_runpath
=yes
14605 hardcode_into_libs
=yes
14606 if test "$with_gnu_ld" = yes; then
14607 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14609 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14612 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14616 sys_lib_dlsearch_path_spec
='/usr/lib'
14620 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 shlibpath_var
=LD_LIBRARY_PATH
14626 shlibpath_overrides_runpath
=no
14627 hardcode_into_libs
=yes
14632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14633 soname_spec
='${libname}${release}${shared_ext}$major'
14634 shlibpath_var
=LD_LIBRARY_PATH
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14642 $as_echo "$dynamic_linker" >&6; }
14643 test "$dynamic_linker" = no
&& can_build_shared
=no
14645 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14646 if test "$GCC" = yes; then
14647 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14650 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14651 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14653 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14654 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14695 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14696 hardcode_action_FC
=
14697 if test -n "$hardcode_libdir_flag_spec_FC" ||
14698 test -n "$runpath_var_FC" ||
14699 test "X$hardcode_automatic_FC" = "Xyes" ; then
14701 # We can hardcode non-existent directories.
14702 if test "$hardcode_direct_FC" != no
&&
14703 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14704 # have to relink, otherwise we might link with an installed library
14705 # when we should be linking with a yet-to-be-installed one
14706 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14707 test "$hardcode_minus_L_FC" != no
; then
14708 # Linking always hardcodes the temporary library directory.
14709 hardcode_action_FC
=relink
14711 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14712 hardcode_action_FC
=immediate
14715 # We cannot hardcode anything, or else we can only hardcode existing
14717 hardcode_action_FC
=unsupported
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14720 $as_echo "$hardcode_action_FC" >&6; }
14722 if test "$hardcode_action_FC" = relink ||
14723 test "$inherit_rpath_FC" = yes; then
14724 # Fast installation is not supported
14725 enable_fast_install
=no
14726 elif test "$shlibpath_overrides_runpath" = yes ||
14727 test "$enable_shared" = no
; then
14728 # Fast installation is not necessary
14729 enable_fast_install
=needless
14738 fi # test -n "$compiler"
14742 fi # test "$_lt_disable_FC" != yes
14745 ac_cpp
='$CPP $CPPFLAGS'
14746 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14747 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14748 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14751 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14753 # For libtool versioning info, format is CURRENT:REVISION:AGE
14754 libtool_VERSION
=1:0:0
14757 # Check header files.
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14759 $as_echo_n "checking for ANSI C header files... " >&6; }
14760 if ${ac_cv_header_stdc+:} false
; then :
14761 $as_echo_n "(cached) " >&6
14763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14765 #include <stdlib.h>
14766 #include <stdarg.h>
14767 #include <string.h>
14778 if ac_fn_c_try_compile
"$LINENO"; then :
14779 ac_cv_header_stdc
=yes
14781 ac_cv_header_stdc
=no
14783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14785 if test $ac_cv_header_stdc = yes; then
14786 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789 #include <string.h>
14792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14793 $EGREP "memchr" >/dev
/null
2>&1; then :
14796 ac_cv_header_stdc
=no
14802 if test $ac_cv_header_stdc = yes; then
14803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h. */
14806 #include <stdlib.h>
14809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14810 $EGREP "free" >/dev
/null
2>&1; then :
14813 ac_cv_header_stdc
=no
14819 if test $ac_cv_header_stdc = yes; then
14820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14821 if test "$cross_compiling" = yes; then :
14824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h. */
14827 #include <stdlib.h>
14828 #if ((' ' & 0x0FF) == 0x020)
14829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14832 # define ISLOWER(c) \
14833 (('a' <= (c) && (c) <= 'i') \
14834 || ('j' <= (c) && (c) <= 'r') \
14835 || ('s' <= (c) && (c) <= 'z'))
14836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14844 for (i = 0; i < 256; i++)
14845 if (XOR (islower (i), ISLOWER (i))
14846 || toupper (i) != TOUPPER (i))
14851 if ac_fn_c_try_run
"$LINENO"; then :
14854 ac_cv_header_stdc
=no
14856 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14857 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14863 $as_echo "$ac_cv_header_stdc" >&6; }
14864 if test $ac_cv_header_stdc = yes; then
14866 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14871 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14872 if ${ac_cv_header_time+:} false
; then :
14873 $as_echo_n "(cached) " >&6
14875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h. */
14877 #include <sys/types.h>
14878 #include <sys/time.h>
14884 if ((struct tm *) 0)
14890 if ac_fn_c_try_compile
"$LINENO"; then :
14891 ac_cv_header_time
=yes
14893 ac_cv_header_time
=no
14895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14898 $as_echo "$ac_cv_header_time" >&6; }
14899 if test $ac_cv_header_time = yes; then
14901 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14906 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14907 if ${gcc_cv_header_string+:} false
; then :
14908 $as_echo_n "(cached) " >&6
14910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 #include <string.h>
14913 #include <strings.h>
14922 if ac_fn_c_try_compile
"$LINENO"; then :
14923 gcc_cv_header_string
=yes
14925 gcc_cv_header_string
=no
14927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14930 $as_echo "$gcc_cv_header_string" >&6; }
14931 if test $gcc_cv_header_string = yes; then
14933 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14937 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14939 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14940 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14941 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14942 cat >>confdefs.h
<<_ACEOF
14943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14954 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14956 nvptx
*-*-* | amdgcn
*-*-*)
14957 # NVPTX does not support Pthreads, has its own code replacement.
14958 libgomp_use_pthreads
=no
14959 # NVPTX is an accelerator-only target
14960 libgomp_offloaded_only
=yes
14963 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14964 # In case the pthread.h system header is not found, this test will fail.
14965 CFLAGS
="$CFLAGS -pthread"
14966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 #include <pthread.h>
14969 void *g(void *d) { return NULL; }
14973 pthread_t t; pthread_create(&t,NULL,g,NULL);
14978 if ac_fn_c_try_link
"$LINENO"; then :
14979 XPCFLAGS
=" -Wc,-pthread"
14981 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
14982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14983 /* end confdefs.h. */
14984 #include <pthread.h>
14985 void *g(void *d) { return NULL; }
14989 pthread_t t; pthread_create(&t,NULL,g,NULL);
14994 if ac_fn_c_try_link
"$LINENO"; then :
14997 as_fn_error $?
"Pthreads are required to build libgomp" "$LINENO" 5
14999 rm -f core conftest.err conftest.
$ac_objext \
15000 conftest
$ac_exeext conftest.
$ac_ext
15002 rm -f core conftest.err conftest.
$ac_objext \
15003 conftest
$ac_exeext conftest.
$ac_ext
15006 if test x
$libgomp_use_pthreads != xno
; then
15008 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15012 if test x
$libgomp_offloaded_only = xyes
; then
15014 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15018 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15020 # Copyright (C) 2014-2020 Free Software Foundation, Inc.
15022 # Contributed by Mentor Embedded.
15024 # This file is part of the GNU Offloading and Multi Processing Library
15027 # Libgomp is free software; you can redistribute it and/or modify it
15028 # under the terms of the GNU General Public License as published by
15029 # the Free Software Foundation; either version 3, or (at your option)
15030 # any later version.
15032 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15033 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15034 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15037 # Under Section 7 of GPL version 3, you are granted additional
15038 # permissions described in the GCC Runtime Library Exception, version
15039 # 3.1, as published by the Free Software Foundation.
15041 # You should have received a copy of the GNU General Public License and
15042 # a copy of the GCC Runtime Library Exception along with this program;
15043 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15044 # <http://www.gnu.org/licenses/>.
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15048 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15049 if ${ac_cv_lib_dl_dlsym+:} false
; then :
15050 $as_echo_n "(cached) " >&6
15052 ac_check_lib_save_LIBS
=$LIBS
15054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15057 /* Override any GCC internal prototype to avoid an error.
15058 Use char because int might match the return type of a GCC
15059 builtin and then its argument prototype would still apply. */
15072 if ac_fn_c_try_link
"$LINENO"; then :
15073 ac_cv_lib_dl_dlsym
=yes
15075 ac_cv_lib_dl_dlsym
=no
15077 rm -f core conftest.err conftest.
$ac_objext \
15078 conftest
$ac_exeext conftest.
$ac_ext
15079 LIBS
=$ac_check_lib_save_LIBS
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15082 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15083 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
15084 cat >>confdefs.h
<<_ACEOF
15085 #define HAVE_LIBDL 1
15094 if test x
"$plugin_support" = xyes
; then
15096 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15098 elif test "x${enable_offload_targets-no}" != xno
; then
15099 as_fn_error $?
"Can't support offloading without support for plugins" "$LINENO" 5
15104 for ac_header
in $ac_header_list
15106 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15107 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15109 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15110 cat >>confdefs.h
<<_ACEOF
15111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15124 for ac_func
in $ac_func_list
15126 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15127 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15128 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15129 cat >>confdefs.h
<<_ACEOF
15130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15151 # Look for the CUDA driver package.
15152 CUDA_DRIVER_INCLUDE
=
15156 CUDA_DRIVER_CPPFLAGS
=
15157 CUDA_DRIVER_LDFLAGS
=
15159 # Check whether --with-cuda-driver was given.
15160 if test "${with_cuda_driver+set}" = set; then :
15161 withval
=$with_cuda_driver;
15165 # Check whether --with-cuda-driver-include was given.
15166 if test "${with_cuda_driver_include+set}" = set; then :
15167 withval
=$with_cuda_driver_include;
15171 # Check whether --with-cuda-driver-lib was given.
15172 if test "${with_cuda_driver_lib+set}" = set; then :
15173 withval
=$with_cuda_driver_lib;
15176 case "x$with_cuda_driver" in
15179 CUDA_DRIVER_INCLUDE
=no
15182 *) CUDA_DRIVER_INCLUDE
=$with_cuda_driver/include
15183 CUDA_DRIVER_LIB
=$with_cuda_driver/lib
15186 if test "x$with_cuda_driver_include" != x
; then
15187 CUDA_DRIVER_INCLUDE
=$with_cuda_driver_include
15189 if test "x$with_cuda_driver_lib" != x
; then
15190 CUDA_DRIVER_LIB
=$with_cuda_driver_lib
15192 if test "x$CUDA_DRIVER_INCLUDE" != x \
15193 && test "x$CUDA_DRIVER_INCLUDE" != xno
; then
15194 CUDA_DRIVER_CPPFLAGS
=-I$CUDA_DRIVER_INCLUDE
15196 if test "x$CUDA_DRIVER_LIB" != x \
15197 && test "x$CUDA_DRIVER_LIB" != xno
; then
15198 CUDA_DRIVER_LDFLAGS
=-L$CUDA_DRIVER_LIB
15202 PLUGIN_NVPTX_CPPFLAGS
=
15203 PLUGIN_NVPTX_LDFLAGS
=
15205 PLUGIN_NVPTX_DYNAMIC
=0
15211 # Look for HSA run-time, its includes and libraries
15213 HSA_RUNTIME_INCLUDE
=
15217 HSA_RUNTIME_CPPFLAGS
=
15218 HSA_RUNTIME_LDFLAGS
=
15221 # Check whether --with-hsa-runtime was given.
15222 if test "${with_hsa_runtime+set}" = set; then :
15223 withval
=$with_hsa_runtime;
15227 # Check whether --with-hsa-runtime-include was given.
15228 if test "${with_hsa_runtime_include+set}" = set; then :
15229 withval
=$with_hsa_runtime_include;
15233 # Check whether --with-hsa-runtime-lib was given.
15234 if test "${with_hsa_runtime_lib+set}" = set; then :
15235 withval
=$with_hsa_runtime_lib;
15238 if test "x$with_hsa_runtime" != x
; then
15239 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime/include
15240 HSA_RUNTIME_LIB
=$with_hsa_runtime/lib
15242 if test "x$with_hsa_runtime_include" != x
; then
15243 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime_include
15245 if test "x$with_hsa_runtime_lib" != x
; then
15246 HSA_RUNTIME_LIB
=$with_hsa_runtime_lib
15248 if test "x$HSA_RUNTIME_INCLUDE" != x
; then
15249 HSA_RUNTIME_CPPFLAGS
=-I$HSA_RUNTIME_INCLUDE
15251 if test "x$HSA_RUNTIME_LIB" != x
; then
15252 HSA_RUNTIME_LDFLAGS
=-L$HSA_RUNTIME_LIB
15256 PLUGIN_GCN_CPPFLAGS
=
15257 PLUGIN_GCN_LDFLAGS
=
15264 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15265 # plugins, and configure to find the corresponding offload compilers.
15266 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15271 offload_additional_options
=
15272 offload_additional_lib_paths
=
15275 if test x
"$enable_offload_targets" != x
; then
15276 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15277 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15278 tgt
=`echo $tgt | sed 's/=.*//'`
15281 *-intelmic-* |
*-intelmicemul-*)
15282 tgt_plugin
=intelmic
15287 if test "x$CUDA_DRIVER_LIB" != xno \
15288 && test "x$CUDA_DRIVER_LIB" != xno
; then
15289 PLUGIN_NVPTX_CPPFLAGS
=$CUDA_DRIVER_CPPFLAGS
15290 PLUGIN_NVPTX_LDFLAGS
=$CUDA_DRIVER_LDFLAGS
15291 PLUGIN_NVPTX_LIBS
='-lcuda'
15293 PLUGIN_NVPTX_save_CPPFLAGS
=$CPPFLAGS
15294 CPPFLAGS
="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15295 PLUGIN_NVPTX_save_LDFLAGS
=$LDFLAGS
15296 LDFLAGS
="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15297 PLUGIN_NVPTX_save_LIBS
=$LIBS
15298 LIBS
="$PLUGIN_NVPTX_LIBS $LIBS"
15299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15305 CUresult r = cuCtxPushCurrent (NULL);
15310 if ac_fn_c_try_link
"$LINENO"; then :
15313 rm -f core conftest.err conftest.
$ac_objext \
15314 conftest
$ac_exeext conftest.
$ac_ext
15315 CPPFLAGS
=$PLUGIN_NVPTX_save_CPPFLAGS
15316 LDFLAGS
=$PLUGIN_NVPTX_save_LDFLAGS
15317 LIBS
=$PLUGIN_NVPTX_save_LIBS
15319 case $PLUGIN_NVPTX in
15321 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15322 ||
test "x$CUDA_DRIVER_INCLUDE" = xno
) \
15323 && (test "x$CUDA_DRIVER_LIB" = x \
15324 ||
test "x$CUDA_DRIVER_LIB" = xno
); then
15326 PLUGIN_NVPTX_CPPFLAGS
='-I$(srcdir)/plugin/cuda'
15327 PLUGIN_NVPTX_LIBS
='-ldl'
15328 PLUGIN_NVPTX_DYNAMIC
=1
15331 as_fn_error $?
"CUDA driver package required for nvptx support" "$LINENO" 5
15338 case "${target}" in
15340 case " ${CC} ${CFLAGS} " in
15341 *" -m32 "*|
*" -mx32 "*)
15347 PLUGIN_GCN_CPPFLAGS
=$HSA_RUNTIME_CPPFLAGS
15348 PLUGIN_GCN_LDFLAGS
="$HSA_RUNTIME_LDFLAGS"
15349 PLUGIN_GCN_LIBS
="-ldl"
15360 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
15363 if test x
"$tgt_plugin" = x
; then
15364 # Not configuring libgomp for this offload target if we're not building
15365 # the corresponding offload plugin.
15367 elif test x
"$offload_plugins" = x
; then
15368 offload_plugins
=$tgt_plugin
15369 offload_targets
=$tgt
15371 offload_plugins
=$offload_plugins,$tgt_plugin
15372 offload_targets
=$offload_targets,$tgt
15374 # Configure additional search paths.
15375 if test x
"$tgt_dir" != x
; then
15376 offload_additional_options
="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15377 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15379 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15380 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15385 cat >>confdefs.h
<<_ACEOF
15386 #define OFFLOAD_PLUGINS "$offload_plugins"
15389 if test $PLUGIN_NVPTX = 1; then
15391 PLUGIN_NVPTX_FALSE
='#'
15393 PLUGIN_NVPTX_TRUE
='#'
15394 PLUGIN_NVPTX_FALSE
=
15398 cat >>confdefs.h
<<_ACEOF
15399 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15403 cat >>confdefs.h
<<_ACEOF
15404 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15407 if test $PLUGIN_GCN = 1; then
15409 PLUGIN_GCN_FALSE
='#'
15411 PLUGIN_GCN_TRUE
='#'
15416 cat >>confdefs.h
<<_ACEOF
15417 #define PLUGIN_GCN $PLUGIN_GCN
15421 if test "$HSA_RUNTIME_LIB" != ""; then
15422 HSA_RUNTIME_LIB
="$HSA_RUNTIME_LIB/"
15426 cat >>confdefs.h
<<_ACEOF
15427 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15432 # Check for functions needed.
15433 for ac_func
in getloadavg clock_gettime strtoull
15435 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15436 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15437 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15438 cat >>confdefs.h
<<_ACEOF
15439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15445 for ac_func
in aligned_alloc posix_memalign memalign _aligned_malloc
15447 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15448 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15449 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15450 cat >>confdefs.h
<<_ACEOF
15451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15458 # Check for broken semaphore implementation on darwin.
15459 # sem_init returns: sem_init error: Function not implemented.
15463 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15468 # RTEMS specific checks
15471 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15473 if test "x$ac_cv_type_struct__Mutex_Control" = xyes
; then :
15475 cat >>confdefs.h
<<_ACEOF
15476 #define HAVE_STRUCT__MUTEX_CONTROL 1
15485 # Check whether --enable-linux-futex was given.
15486 if test "${enable_linux_futex+set}" = set; then :
15487 enableval
=$enable_linux_futex;
15488 case "$enableval" in
15490 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15494 enable_linux_futex
=default
15499 *-linux* |
*-uclinux*)
15500 case "$enable_linux_futex" in
15502 # If headers don't have gettid/futex syscalls definition, then
15503 # default to no, otherwise there will be compile time failures.
15504 # Otherwise, default to yes. If we don't detect we are
15505 # compiled/linked against NPTL and not cross-compiling, check
15506 # if programs are run by default against NPTL and if not, issue
15508 enable_linux_futex
=no
15509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15511 #include <sys/syscall.h>
15512 #include <unistd.h>
15517 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15522 if ac_fn_c_try_link
"$LINENO"; then :
15524 LIBS
="-lpthread $LIBS"
15525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15526 /* end confdefs.h. */
15527 #ifndef _GNU_SOURCE
15528 #define _GNU_SOURCE 1
15530 #include <pthread.h>
15531 pthread_t th; void *status;
15535 pthread_tryjoin_np (th, &status);
15540 if ac_fn_c_try_link
"$LINENO"; then :
15541 enable_linux_futex
=yes
15543 if test x
$cross_compiling = xno
; then
15544 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15545 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15547 If so, please configure with --disable-linux-futex" >&5
15548 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15549 If so, please configure with --disable-linux-futex" >&2;}
15552 enable_linux_futex
=yes
15554 rm -f core conftest.err conftest.
$ac_objext \
15555 conftest
$ac_exeext conftest.
$ac_ext
15558 rm -f core conftest.err conftest.
$ac_objext \
15559 conftest
$ac_exeext conftest.
$ac_ext
15562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15564 #include <sys/syscall.h>
15565 #include <unistd.h>
15570 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15575 if ac_fn_c_try_link
"$LINENO"; then :
15578 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15580 rm -f core conftest.err conftest.
$ac_objext \
15581 conftest
$ac_exeext conftest.
$ac_ext
15586 enable_linux_futex
=no
15589 if test x
$enable_linux_futex = xyes
; then
15594 # Check for pthread_{,attr_}[sg]etaffinity_np.
15595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15596 /* end confdefs.h. */
15597 #define _GNU_SOURCE
15598 #include <pthread.h>
15603 pthread_attr_t attr;
15604 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15605 if (CPU_ISSET (0, &cpuset))
15606 CPU_SET (1, &cpuset);
15608 CPU_ZERO (&cpuset);
15609 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15610 pthread_attr_init (&attr);
15611 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15612 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15617 if ac_fn_c_try_link
"$LINENO"; then :
15619 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15622 rm -f core conftest.err conftest.
$ac_objext \
15623 conftest
$ac_exeext conftest.
$ac_ext
15625 # At least for glibc, clock_gettime is in librt. But don't pull that
15626 # in if it still doesn't give us the function we want.
15627 if test $ac_cv_func_clock_gettime = no
; then
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15629 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15630 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
15631 $as_echo_n "(cached) " >&6
15633 ac_check_lib_save_LIBS
=$LIBS
15635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15638 /* Override any GCC internal prototype to avoid an error.
15639 Use char because int might match the return type of a GCC
15640 builtin and then its argument prototype would still apply. */
15644 char clock_gettime ();
15648 return clock_gettime ();
15653 if ac_fn_c_try_link
"$LINENO"; then :
15654 ac_cv_lib_rt_clock_gettime
=yes
15656 ac_cv_lib_rt_clock_gettime
=no
15658 rm -f core conftest.err conftest.
$ac_objext \
15659 conftest
$ac_exeext conftest.
$ac_ext
15660 LIBS
=$ac_check_lib_save_LIBS
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15663 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15664 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
15667 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 #include <string.h>
15677 #include <stdlib.h>
15678 #include <sys/utsname.h>
15682 struct utsname buf;
15683 volatile size_t len = 0;
15685 len = strlen (buf.nodename);
15690 if ac_fn_c_try_compile
"$LINENO"; then :
15692 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15697 # Check for gethostname.
15698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15700 #include <unistd.h>
15706 if (gethostname (buf, sizeof (buf) - 1) == 0)
15713 if ac_fn_c_try_compile
"$LINENO"; then :
15715 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15720 # Check for getpid.
15721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15723 #include <unistd.h>
15727 int pid = getpid ();
15732 if ac_fn_c_try_compile
"$LINENO"; then :
15734 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15739 # See if we support thread-local storage.
15742 # Check whether --enable-tls was given.
15743 if test "${enable_tls+set}" = set; then :
15744 enableval
=$enable_tls;
15745 case "$enableval" in
15747 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15756 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15757 if ${gcc_cv_have_tls+:} false
; then :
15758 $as_echo_n "(cached) " >&6
15761 if test "$cross_compiling" = yes; then :
15762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 __thread int a; int b; int main() { return a = b; }
15766 if ac_fn_c_try_link
"$LINENO"; then :
15767 chktls_save_LDFLAGS
="$LDFLAGS"
15769 *-*-linux* |
-*-uclinuxfdpic*)
15770 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15773 chktls_save_CFLAGS
="$CFLAGS"
15774 CFLAGS
="-fPIC $CFLAGS"
15775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15777 int f() { return 0; }
15779 if ac_fn_c_try_link
"$LINENO"; then :
15780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h. */
15782 __thread int a; int b; int f() { return a = b; }
15784 if ac_fn_c_try_link
"$LINENO"; then :
15785 gcc_cv_have_tls
=yes
15789 rm -f core conftest.err conftest.
$ac_objext \
15790 conftest
$ac_exeext conftest.
$ac_ext
15792 gcc_cv_have_tls
=yes
15794 rm -f core conftest.err conftest.
$ac_objext \
15795 conftest
$ac_exeext conftest.
$ac_ext
15796 CFLAGS
="$chktls_save_CFLAGS"
15797 LDFLAGS
="$chktls_save_LDFLAGS"
15801 rm -f core conftest.err conftest.
$ac_objext \
15802 conftest
$ac_exeext conftest.
$ac_ext
15806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15808 __thread int a; int b; int main() { return a = b; }
15810 if ac_fn_c_try_run
"$LINENO"; then :
15811 chktls_save_LDFLAGS
="$LDFLAGS"
15812 LDFLAGS
="-static $LDFLAGS"
15813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15815 int main() { return 0; }
15817 if ac_fn_c_try_link
"$LINENO"; then :
15818 if test "$cross_compiling" = yes; then :
15819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15821 as_fn_error $?
"cannot run test program while cross compiling
15822 See \`config.log' for more details" "$LINENO" 5; }
15824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 __thread int a; int b; int main() { return a = b; }
15828 if ac_fn_c_try_run
"$LINENO"; then :
15829 gcc_cv_have_tls
=yes
15833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15834 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15838 gcc_cv_have_tls
=yes
15840 rm -f core conftest.err conftest.
$ac_objext \
15841 conftest
$ac_exeext conftest.
$ac_ext
15842 LDFLAGS
="$chktls_save_LDFLAGS"
15843 if test $gcc_cv_have_tls = yes; then
15844 chktls_save_CFLAGS
="$CFLAGS"
15845 thread_CFLAGS
=failed
15846 for flag
in '' '-pthread' '-lpthread'; do
15847 CFLAGS
="$flag $chktls_save_CFLAGS"
15848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850 #include <pthread.h>
15851 void *g(void *d) { return NULL; }
15855 pthread_t t; pthread_create(&t,NULL,g,NULL);
15860 if ac_fn_c_try_link
"$LINENO"; then :
15861 thread_CFLAGS
="$flag"
15863 rm -f core conftest.err conftest.
$ac_objext \
15864 conftest
$ac_exeext conftest.
$ac_ext
15865 if test "X$thread_CFLAGS" != Xfailed
; then
15869 CFLAGS
="$chktls_save_CFLAGS"
15870 if test "X$thread_CFLAGS" != Xfailed
; then
15871 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15872 if test "$cross_compiling" = yes; then :
15873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15875 as_fn_error $?
"cannot run test program while cross compiling
15876 See \`config.log' for more details" "$LINENO" 5; }
15878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 #include <pthread.h>
15882 static int *volatile a_in_other_thread;
15884 thread_func (void *arg)
15886 a_in_other_thread = &a;
15893 void *thread_retval;
15894 int *volatile a_in_main_thread;
15895 a_in_main_thread = &a;
15896 if (pthread_create (&thread, (pthread_attr_t *)0,
15897 thread_func, (void *)0))
15899 if (pthread_join (thread, &thread_retval))
15901 return (a_in_other_thread == a_in_main_thread);
15906 if ac_fn_c_try_run
"$LINENO"; then :
15907 gcc_cv_have_tls
=yes
15911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15915 CFLAGS
="$chktls_save_CFLAGS"
15921 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15922 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15927 $as_echo "$gcc_cv_have_tls" >&6; }
15928 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15930 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15934 # See if we have emulated thread-local storage.
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15937 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15938 if ${gcc_cv_use_emutls+:} false
; then :
15939 $as_echo_n "(cached) " >&6
15942 gcc_cv_use_emutls
=no
15943 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15944 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15946 (eval $ac_try) 2>&5
15948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15949 test $ac_status = 0; }; }; then
15950 if grep __emutls_get_address conftest.s
> /dev
/null
; then
15951 gcc_cv_use_emutls
=yes
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15958 $as_echo "$gcc_cv_use_emutls" >&6; }
15959 if test "$gcc_cv_use_emutls" = "yes" ; then
15961 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15965 # See what sort of export controls are available.
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15968 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15969 if ${libgomp_cv_have_attribute_visibility+:} false
; then :
15970 $as_echo_n "(cached) " >&6
15973 save_CFLAGS
="$CFLAGS"
15974 CFLAGS
="$CFLAGS -Werror"
15975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15977 void __attribute__((visibility("hidden"))) foo(void) { }
15986 if ac_fn_c_try_compile
"$LINENO"; then :
15987 libgomp_cv_have_attribute_visibility
=yes
15989 libgomp_cv_have_attribute_visibility
=no
15991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15992 CFLAGS
="$save_CFLAGS"
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15995 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15996 if test $libgomp_cv_have_attribute_visibility = yes; then
15998 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16003 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16004 if ${libgomp_cv_have_attribute_dllexport+:} false
; then :
16005 $as_echo_n "(cached) " >&6
16008 save_CFLAGS
="$CFLAGS"
16009 CFLAGS
="$CFLAGS -Werror"
16010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16012 void __attribute__((dllexport)) foo(void) { }
16021 if ac_fn_c_try_compile
"$LINENO"; then :
16022 libgomp_cv_have_attribute_dllexport
=yes
16024 libgomp_cv_have_attribute_dllexport
=no
16026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16027 CFLAGS
="$save_CFLAGS"
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16030 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16031 if test $libgomp_cv_have_attribute_dllexport = yes; then
16033 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16038 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16039 if ${libgomp_cv_have_attribute_alias+:} false
; then :
16040 $as_echo_n "(cached) " >&6
16043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16047 extern void bar(void) __attribute__((alias("foo")));
16056 if ac_fn_c_try_link
"$LINENO"; then :
16057 libgomp_cv_have_attribute_alias
=yes
16059 libgomp_cv_have_attribute_alias
=no
16061 rm -f core conftest.err conftest.
$ac_objext \
16062 conftest
$ac_exeext conftest.
$ac_ext
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16065 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16066 if test $libgomp_cv_have_attribute_alias = yes; then
16068 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16073 # Check whether --with-gnu-ld was given.
16074 if test "${with_gnu_ld+set}" = set; then :
16075 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16081 if test "$GCC" = yes; then
16082 # Check if gcc -print-prog-name=ld gives a path.
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16084 $as_echo_n "checking for ld used by $CC... " >&6; }
16087 # gcc leaves a trailing carriage return which upsets mingw
16088 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16090 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16093 # Accept absolute paths.
16095 re_direlt
='/[^/][^/]*/\.\./'
16096 # Canonicalize the pathname of ld
16097 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16098 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16099 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16101 test -z "$LD" && LD
="$ac_prog"
16104 # If it fails, then pretend we aren't using GCC.
16108 # If it is relative, then search for the first ld in PATH.
16109 with_gnu_ld
=unknown
16112 elif test "$with_gnu_ld" = yes; then
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16114 $as_echo_n "checking for GNU ld... " >&6; }
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16117 $as_echo_n "checking for non-GNU ld... " >&6; }
16119 if ${lt_cv_path_LD+:} false
; then :
16120 $as_echo_n "(cached) " >&6
16122 if test -z "$LD"; then
16123 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16124 for ac_dir
in $PATH; do
16126 test -z "$ac_dir" && ac_dir
=.
16127 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16128 lt_cv_path_LD
="$ac_dir/$ac_prog"
16129 # Check to see if the program is GNU ld. I'd rather use --version,
16130 # but apparently some variants of GNU ld only accept -v.
16131 # Break only if it was the GNU/non-GNU ld that we prefer.
16132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16133 *GNU
* |
*'with BFD'*)
16134 test "$with_gnu_ld" != no
&& break
16137 test "$with_gnu_ld" != yes && break
16144 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16148 LD
="$lt_cv_path_LD"
16149 if test -n "$LD"; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16151 $as_echo "$LD" >&6; }
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154 $as_echo "no" >&6; }
16156 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16158 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16159 if ${lt_cv_prog_gnu_ld+:} false
; then :
16160 $as_echo_n "(cached) " >&6
16162 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16163 case `$LD -v 2>&1 </dev/null` in
16164 *GNU
* |
*'with BFD'*)
16165 lt_cv_prog_gnu_ld
=yes
16168 lt_cv_prog_gnu_ld
=no
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16173 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16174 with_gnu_ld
=$lt_cv_prog_gnu_ld
16182 # If we're not using GNU ld, then there's no point in even trying these
16183 # tests. Check for that first. We should have already tested for gld
16184 # by now (in libtool), but require it now just to be safe...
16185 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16186 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16190 # The name set by libtool depends on the version of libtool. Shame on us
16191 # for depending on an impl detail, but c'est la vie. Older versions used
16192 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16193 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16194 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16195 # set (hence we're using an older libtool), then set it.
16196 if test x
${with_gnu_ld+set} != xset
; then
16197 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16198 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16201 with_gnu_ld
=$ac_cv_prog_gnu_ld
16205 # Start by getting the version number. I think the libtool test already
16206 # does some of this, but throws away the result.
16207 libgomp_ld_is_gold
=no
16208 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16209 libgomp_ld_is_gold
=yes
16212 ldver
=`$LD --version 2>/dev/null |
16213 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16215 libgomp_gnu_ld_version
=`echo $ldver | \
16216 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16218 # Set --gc-sections.
16219 if test "$with_gnu_ld" = "notbroken"; then
16220 # GNU ld it is! Joy and bunny rabbits!
16222 # All these tests are for C++; save the language and the compiler flags.
16223 # Need to do this so that g++ won't try to link in libstdc++
16224 ac_test_CFLAGS
="${CFLAGS+set}"
16225 ac_save_CFLAGS
="$CFLAGS"
16226 CFLAGS
='-x c++ -Wl,--gc-sections'
16228 # Check for -Wl,--gc-sections
16229 # XXX This test is broken at the moment, as symbols required for linking
16230 # are now in libsupc++ (not built yet). In addition, this test has
16231 # cored on solaris in the past. In addition, --gc-sections doesn't
16232 # really work at the moment (keeps on discarding used sections, first
16233 # .eh_frame and now some of the glibc sections for iconv).
16234 # Bzzzzt. Thanks for playing, maybe next time.
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16236 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16237 if test "$cross_compiling" = yes; then :
16238 ac_sectionLDflags
=yes
16240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16251 if ac_fn_c_try_run
"$LINENO"; then :
16252 ac_sectionLDflags
=yes
16254 ac_sectionLDflags
=no
16256 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16257 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16260 if test "$ac_test_CFLAGS" = set; then
16261 CFLAGS
="$ac_save_CFLAGS"
16263 # this is the suspicious part
16266 if test "$ac_sectionLDflags" = "yes"; then
16267 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16270 $as_echo "$ac_sectionLDflags" >&6; }
16273 # Set linker optimization flags.
16274 if test x
"$with_gnu_ld" = x
"yes"; then
16275 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16283 # Check whether --enable-symvers was given.
16284 if test "${enable_symvers+set}" = set; then :
16285 enableval
=$enable_symvers;
16286 case "$enableval" in
16287 yes|no|gnu
*|sun
) ;;
16288 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16297 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16298 # don't know enough about $LD to do tricks...
16301 # Turn a 'yes' into a suitable default.
16302 if test x
$enable_symvers = xyes
; then
16303 # FIXME The following test is too strict, in theory.
16304 if test $enable_shared = no ||
test "x$LD" = x
; then
16307 if test $with_gnu_ld = yes ; then
16310 case ${target_os} in
16311 # Sun symbol versioning exists since Solaris 2.5.
16312 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16313 enable_symvers
=sun
;;
16315 enable_symvers
=no
;;
16321 # Check if 'sun' was requested on non-Solaris 2 platforms.
16322 if test x
$enable_symvers = xsun
; then
16323 case ${target_os} in
16328 # Unlikely to work.
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16330 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16332 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16334 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16340 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16341 if test $enable_symvers != no
; then
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16343 $as_echo_n "checking for shared libgcc... " >&6; }
16344 ac_save_CFLAGS
="$CFLAGS"
16346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h. */
16357 if ac_fn_c_try_link
"$LINENO"; then :
16358 libgomp_shared_libgcc
=yes
16360 libgomp_shared_libgcc
=no
16362 rm -f core conftest.err conftest.
$ac_objext \
16363 conftest
$ac_exeext conftest.
$ac_ext
16364 CFLAGS
="$ac_save_CFLAGS"
16365 if test $libgomp_shared_libgcc = no
; then
16366 cat > conftest.c
<<EOF
16367 int main (void) { return 0; }
16369 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16370 -shared -shared-libgcc -o conftest.so \
16371 conftest.c -v 2>&1 >/dev/null \
16372 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16373 rm -f conftest.c conftest.so
16374 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16375 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h. */
16387 if ac_fn_c_try_link
"$LINENO"; then :
16388 libgomp_shared_libgcc
=yes
16390 rm -f core conftest.err conftest.
$ac_objext \
16391 conftest
$ac_exeext conftest.
$ac_ext
16392 CFLAGS
="$ac_save_CFLAGS"
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16396 $as_echo "$libgomp_shared_libgcc" >&6; }
16399 # For GNU ld, we need at least this version. The format is described in
16400 # LIBGOMP_CHECK_LINKER_FEATURES above.
16401 libgomp_min_gnu_ld_version
=21400
16402 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16404 # Check to see if unspecified "yes" value can win, given results above.
16405 # Change "yes" into either "no" or a style name.
16406 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16407 if test $with_gnu_ld = yes; then
16408 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16410 elif test $libgomp_ld_is_gold = yes ; then
16413 # The right tools, the right setup, but too old. Fallbacks?
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16415 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16417 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16419 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16421 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16422 if test $libgomp_gnu_ld_version -ge 21200 ; then
16423 # Globbing fix is present, proper block support is not.
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16425 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16430 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16434 elif test $enable_symvers = sun
; then
16435 : All interesting versions of Sun ld support sun style symbol versioning.
16437 # just fail for now
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16439 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16441 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16443 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16445 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16451 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16452 if ${libgomp_cv_have_as_symver_directive+:} false
; then :
16453 $as_echo_n "(cached) " >&6
16456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16458 void foo (void); __asm (".symver foo, bar@SYMVER");
16467 if ac_fn_c_try_compile
"$LINENO"; then :
16468 libgomp_cv_have_as_symver_directive
=yes
16470 libgomp_cv_have_as_symver_directive
=no
16472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16475 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16476 if test $libgomp_cv_have_as_symver_directive = yes; then
16478 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16482 if test $enable_symvers != no
; then
16483 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16484 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16486 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16487 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16490 if test $enable_symvers = gnu
; then
16491 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16492 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16494 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16495 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16498 if test $enable_symvers = sun
; then
16499 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16500 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16502 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16503 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16507 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16509 if test $enable_symvers != no
; then
16510 case ${target_os} in
16511 # The Solaris 2 runtime linker doesn't support the GNU extension of
16512 # binding the same symbol to different versions
16515 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16518 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16525 if test $enable_symvers = gnu
; then
16527 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16531 # Determine cpu count to limit testsuite parallelism.
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16533 $as_echo_n "checking the number of available CPUs... " >&6; }
16536 # Try generic methods
16538 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16539 # 'NPROCESSORS_ONLN' are platform-specific
16540 command -v getconf
>/dev
/null
2>&1 && \
16541 CPU_COUNT
=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT
="0"
16542 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v nproc
>/dev
/null
2>&1; then :
16545 # 'nproc' is part of GNU Coreutils and is widely available
16546 CPU_COUNT
=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT
=`nproc 2>/dev/null` || CPU_COUNT
="0"
16549 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16552 # Try platform-specific preferred methods
16553 case $host_os in #(
16555 CPU_COUNT
=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT
="0" ;; #(
16557 CPU_COUNT
=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT
="0" ;; #(
16559 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT
="0" ;; #(
16561 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT
="0" ;; #(
16563 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" ;; #(
16565 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16567 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16569 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16574 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v sysctl
>/dev
/null
2>&1; then :
16577 # Try less preferred generic method
16578 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16579 CPU_COUNT
=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT
="0"
16582 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16585 # Try platform-specific fallback methods
16586 # They can be less accurate and slower then preferred methods
16587 case $host_os in #(
16589 CPU_COUNT
=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT
="0" ;; #(
16591 CPU_COUNT
=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT
="0" ;; #(
16593 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16595 CPU_COUNT
=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16596 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16598 command -v kstat
>/dev
/null
2>&1 && CPU_COUNT
=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16599 CPU_COUNT
=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT
="0" ;; #(
16601 if CPU_COUNT
=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16604 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS"
16607 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16609 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16614 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev
/null
; then :
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16616 $as_echo "$CPU_COUNT" >&6; }
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16621 $as_echo "unable to detect (assuming 1)" >&6; }
16626 # Get target configury.
16627 .
${srcdir}/configure.tgt
16628 CFLAGS
="$save_CFLAGS $XCFLAGS"
16630 # Check for __sync_val_compare_and_swap, but only after the target has
16631 # had a chance to set XCFLAGS.
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16634 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16635 if ${libgomp_cv_have_sync_builtins+:} false
; then :
16636 $as_echo_n "(cached) " >&6
16639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16645 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16650 if ac_fn_c_try_link
"$LINENO"; then :
16651 libgomp_cv_have_sync_builtins
=yes
16653 libgomp_cv_have_sync_builtins
=no
16655 rm -f core conftest.err conftest.
$ac_objext \
16656 conftest
$ac_exeext conftest.
$ac_ext
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16659 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16660 if test $libgomp_cv_have_sync_builtins = yes; then
16662 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16666 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16668 # Add CET specific flags if CET is enabled
16669 # Check whether --enable-cet was given.
16670 if test "${enable_cet+set}" = set; then :
16671 enableval
=$enable_cet;
16672 case "$enableval" in
16674 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16683 $as_echo_n "checking for CET support... " >&6; }
16685 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16687 i
[34567]86-*-linux* | x86_64-
*-linux*)
16688 case "$enable_cet" in
16690 # Check if target supports multi-byte NOPs
16691 # and if compiler and assembler support CET insn.
16692 cet_save_CFLAGS
="$CFLAGS"
16693 CFLAGS
="$CFLAGS -fcf-protection"
16694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16701 #if !defined(__SSE2__)
16702 #error target does not support multi-byte NOPs
16711 if ac_fn_c_try_compile
"$LINENO"; then :
16716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16717 CFLAGS
="$cet_save_CFLAGS"
16720 # Check if assembler supports CET.
16721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16732 if ac_fn_c_try_compile
"$LINENO"; then :
16735 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
16737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16745 if test x
$enable_cet = xyes
; then
16746 CET_FLAGS
="-fcf-protection -mshstk"
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16748 $as_echo "yes" >&6; }
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751 $as_echo "no" >&6; }
16754 XCFLAGS
="$XCFLAGS $CET_FLAGS"
16755 FCFLAGS
="$FCFLAGS $CET_FLAGS"
16761 # Conditionalize the makefile for this target machine.
16763 for f
in ${tmake_file}
16765 if test -f ${srcdir}/config
/$f
16767 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
16770 tmake_file
="${tmake_file_}"
16773 # Cleanup and exit.
16774 CFLAGS
="$save_CFLAGS"
16775 cat >confcache
<<\_ACEOF
16776 # This file is a shell script that caches the results of configure
16777 # tests run on this system so they can be shared between configure
16778 # scripts and configure runs, see configure's option --config-cache.
16779 # It is not useful on other systems. If it contains results you don't
16780 # want to keep, you may remove or edit it.
16782 # config.status only pays attention to the cache file if you give it
16783 # the --recheck option to rerun configure.
16785 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16786 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16787 # following values.
16791 # The following way of writing the cache mishandles newlines in values,
16792 # but we know of no workaround that is simple, portable, and efficient.
16793 # So, we kill variables containing newlines.
16794 # Ultrix sh set writes to stderr and can't be redirected directly,
16795 # and sets the high bit in the cache file unless we assign to the vars.
16797 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16798 eval ac_val
=\$
$ac_var
16802 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16803 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16806 _ | IFS | as_nl
) ;; #(
16807 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16808 *) { eval $ac_var=; unset $ac_var;} ;;
16814 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16815 *${as_nl}ac_space
=\
*)
16816 # `set' does not quote correctly, so add quotes: double-quote
16817 # substitution turns \\\\ into \\, and sed turns \\ into \.
16820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16823 # `set' quotes correctly as required by POSIX, so do not add quotes.
16824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16835 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16837 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16838 if test -w "$cache_file"; then
16839 if test "x$cache_file" != "x/dev/null"; then
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16841 $as_echo "$as_me: updating cache $cache_file" >&6;}
16842 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16843 cat confcache
>"$cache_file"
16845 case $cache_file in #(
16847 mv -f confcache
"$cache_file"$$
&&
16848 mv -f "$cache_file"$$
"$cache_file" ;; #(
16850 mv -f confcache
"$cache_file" ;;
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16856 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16861 if test ${multilib} = yes; then
16862 multilib_arg
="--enable-multilib"
16867 # Set up the set of libraries that we need to link against for libgomp.
16868 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16869 # which will force linkage against -lpthread (or equivalent for the system).
16870 # That's not 100% ideal, but about the best we can do easily.
16871 if test $enable_shared = yes; then
16872 link_gomp
="-lgomp %{static: $LIBS}"
16874 link_gomp
="-lgomp $LIBS"
16878 if test "$ac_cv_fc_compiler_gnu" = yes; then
16880 USE_FORTRAN_FALSE
='#'
16882 USE_FORTRAN_TRUE
='#'
16887 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16888 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16889 # the underscore here and update the PREREQ. If it doesn't, then we'll
16890 # need to copy this macro to our acinclude.m4.
16891 save_CFLAGS
="$CFLAGS"
16892 for i
in $config_path; do
16893 if test -f $srcdir/config
/$i/omp-lock.h
; then
16894 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16899 if ac_fn_c_compute_int
"$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16904 if ac_fn_c_compute_int
"$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16911 if ac_fn_c_compute_int
"$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16918 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16921 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16925 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16930 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16935 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16940 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16943 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16947 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16952 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16957 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16963 # If the lock fits in an integer, then arrange for Fortran to use that
16964 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16965 # Except that we don't have a way at present to multi-lib the installed
16966 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16968 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16969 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16970 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16973 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16974 OMP_NEST_LOCK_KIND
=8
16976 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16977 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16978 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16981 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16982 OMP_NEST_LOCK_25_KIND
=8
16984 if test $OMP_DEPEND_KIND -eq 16; then
16985 if test $OMP_INT128_SIZE -ne 16; then
16986 as_fn_error $?
"unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16989 if test $OMP_DEPEND_KIND -ne 8; then
16990 as_fn_error $?
"unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
17008 CFLAGS
="$save_CFLAGS"
17010 # Determine what GCC version number to use in filesystem paths.
17012 get_gcc_base_ver
="cat"
17014 # Check whether --with-gcc-major-version-only was given.
17015 if test "${with_gcc_major_version_only+set}" = set; then :
17016 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
17017 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
17025 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17027 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17029 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17031 ac_config_files
="$ac_config_files testsuite/libgomp-site-extra.exp"
17033 cat >confcache
<<\_ACEOF
17034 # This file is a shell script that caches the results of configure
17035 # tests run on this system so they can be shared between configure
17036 # scripts and configure runs, see configure's option --config-cache.
17037 # It is not useful on other systems. If it contains results you don't
17038 # want to keep, you may remove or edit it.
17040 # config.status only pays attention to the cache file if you give it
17041 # the --recheck option to rerun configure.
17043 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17044 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17045 # following values.
17049 # The following way of writing the cache mishandles newlines in values,
17050 # but we know of no workaround that is simple, portable, and efficient.
17051 # So, we kill variables containing newlines.
17052 # Ultrix sh set writes to stderr and can't be redirected directly,
17053 # and sets the high bit in the cache file unless we assign to the vars.
17055 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17056 eval ac_val
=\$
$ac_var
17060 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17061 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17064 _ | IFS | as_nl
) ;; #(
17065 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17066 *) { eval $ac_var=; unset $ac_var;} ;;
17072 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17073 *${as_nl}ac_space
=\
*)
17074 # `set' does not quote correctly, so add quotes: double-quote
17075 # substitution turns \\\\ into \\, and sed turns \\ into \.
17078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17081 # `set' quotes correctly as required by POSIX, so do not add quotes.
17082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17095 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17096 if test -w "$cache_file"; then
17097 if test "x$cache_file" != "x/dev/null"; then
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17099 $as_echo "$as_me: updating cache $cache_file" >&6;}
17100 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17101 cat confcache
>"$cache_file"
17103 case $cache_file in #(
17105 mv -f confcache
"$cache_file"$$
&&
17106 mv -f "$cache_file"$$
"$cache_file" ;; #(
17108 mv -f confcache
"$cache_file" ;;
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17114 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17119 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17120 # Let make expand exec_prefix.
17121 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17123 DEFS
=-DHAVE_CONFIG_H
17128 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17129 # 1. Remove the extension, and $U if already installed.
17130 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17131 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17133 # will be set to the directory where LIBOBJS objects are built.
17134 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17135 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17137 LIBOBJS
=$ac_libobjs
17139 LTLIBOBJS
=$ac_ltlibobjs
17142 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17143 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
17144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17147 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17148 if test -n "$am_sleep_pid"; then
17149 # Hide warnings about reused PIDs.
17150 wait $am_sleep_pid 2>/dev
/null
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17153 $as_echo "done" >&6; }
17154 if test -n "$EXEEXT"; then
17156 am__EXEEXT_FALSE
='#'
17158 am__EXEEXT_TRUE
='#'
17162 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17163 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17166 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17167 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17170 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17171 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
17172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17174 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17175 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17178 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17179 as_fn_error $?
"conditional \"PLUGIN_NVPTX\" was never defined.
17180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17182 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17183 as_fn_error $?
"conditional \"PLUGIN_GCN\" was never defined.
17184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17186 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17187 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17190 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17191 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17194 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17195 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17198 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17199 as_fn_error $?
"conditional \"USE_FORTRAN\" was never defined.
17200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17203 : "${CONFIG_STATUS=./config.status}"
17205 ac_clean_files_save
=$ac_clean_files
17206 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17208 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17210 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17212 # Generated by $as_me.
17213 # Run this file to recreate the current configuration.
17214 # Compiler output produced by configure, useful for debugging
17215 # configure, is in config.log if it exists.
17218 ac_cs_recheck=false
17221 SHELL=\${CONFIG_SHELL-$SHELL}
17224 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17225 ## -------------------- ##
17226 ## M4sh Initialization. ##
17227 ## -------------------- ##
17229 # Be more Bourne compatible
17230 DUALCASE
=1; export DUALCASE
# for MKS sh
17231 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17234 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17235 # is contrary to our usage. Disable this feature.
17236 alias -g '${1+"$@"}'='"$@"'
17237 setopt NO_GLOB_SUBST
17239 case `(set -o) 2>/dev/null` in #(
17251 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17252 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17253 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17254 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17255 # Prefer a ksh shell builtin over an external printf program on Solaris,
17256 # but without wasting forks for bash or zsh.
17257 if test -z "$BASH_VERSION$ZSH_VERSION" \
17258 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17259 as_echo='print
-r --'
17260 as_echo_n='print
-rn --'
17261 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17262 as_echo='printf %s
\n'
17263 as_echo_n='printf %s
'
17265 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17266 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17267 as_echo_n='/usr
/ucb
/echo -n'
17269 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17270 as_echo_n_body='eval
17274 expr "X$arg" : "X\\(.*\\)$as_nl";
17275 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17277 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17279 export as_echo_n_body
17280 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17282 export as_echo_body
17283 as_echo='sh
-c $as_echo_body as_echo
'
17286 # The user is always right.
17287 if test "${PATH_SEPARATOR+set}" != set; then
17289 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17290 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17297 # We need space, tab and new line, in precisely that order. Quoting is
17298 # there to prevent editors from complaining about space-tab.
17299 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17300 # splitting by setting IFS to empty value.)
17303 # Find who we are. Look in the path if we contain no directory separator.
17306 *[\\/]* ) as_myself=$0 ;;
17307 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17308 for as_dir in $PATH
17311 test -z "$as_dir" && as_dir=.
17312 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17318 # We did not find ourselves, most probably we were run as `sh COMMAND'
17319 # in which case we are not to be found in the path.
17320 if test "x$as_myself" = x
; then
17323 if test ! -f "$as_myself"; then
17324 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17328 # Unset variables that we do not need and which cause bugs (e.g. in
17329 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17330 # suppresses any "Segmentation fault" message there. '((' could
17331 # trigger a bug in pdksh 5.2.14.
17332 for as_var
in BASH_ENV ENV MAIL MAILPATH
17333 do eval test x\
${$as_var+set} = xset \
17334 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17347 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17350 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17351 # ----------------------------------------
17352 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17353 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17354 # script with STATUS, using 1 if that was 0.
17357 as_status
=$1; test $as_status -eq 0 && as_status
=1
17359 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17360 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17362 $as_echo "$as_me: error: $2" >&2
17363 as_fn_exit
$as_status
17367 # as_fn_set_status STATUS
17368 # -----------------------
17369 # Set $? to STATUS, without forking.
17370 as_fn_set_status
()
17373 } # as_fn_set_status
17375 # as_fn_exit STATUS
17376 # -----------------
17377 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17381 as_fn_set_status
$1
17387 # Portably unset VAR.
17390 { eval $1=; unset $1;}
17392 as_unset
=as_fn_unset
17393 # as_fn_append VAR VALUE
17394 # ----------------------
17395 # Append the text in VALUE to the end of the definition contained in VAR. Take
17396 # advantage of any shell optimizations that allow amortized linear growth over
17397 # repeated appends, instead of the typical quadratic growth present in naive
17399 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17400 eval 'as_fn_append ()
17411 # as_fn_arith ARG...
17412 # ------------------
17413 # Perform arithmetic evaluation on the ARGs, and store the result in the
17414 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17415 # must be portable across $(()) and expr.
17416 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17417 eval 'as_fn_arith ()
17424 as_val
=`expr "$@" || test $? -eq 1`
17429 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17430 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17436 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17437 as_basename
=basename
17442 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17448 as_me
=`$as_basename -- "$0" ||
17449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17450 X"$0" : 'X\(//\)$' \| \
17451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17453 sed '/^.*\/\([^/][^/]*\)\/*$/{
17467 # Avoid depending upon Character Ranges.
17468 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17469 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17470 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17471 as_cr_digits
='0123456789'
17472 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17474 ECHO_C
= ECHO_N
= ECHO_T
=
17475 case `echo -n x` in #(((((
17477 case `echo 'xy\c'` in
17478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17480 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17487 rm -f conf$$ conf$$.exe conf$$.
file
17488 if test -d conf$$.dir
; then
17489 rm -f conf$$.dir
/conf$$.
file
17492 mkdir conf$$.dir
2>/dev
/null
17494 if (echo >conf$$.
file) 2>/dev
/null
; then
17495 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17497 # ... but there are two gotchas:
17498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17500 # In both cases, we have to default to `cp -pR'.
17501 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17503 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17512 rmdir conf$$.dir
2>/dev
/null
17517 # Create "$as_dir" as a directory, including parents if necessary.
17522 -*) as_dir
=.
/$as_dir;;
17524 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17528 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17529 *) as_qdir
=$as_dir;;
17531 as_dirs
="'$as_qdir' $as_dirs"
17532 as_dir
=`$as_dirname -- "$as_dir" ||
17533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17534 X"$as_dir" : 'X\(//\)[^/]' \| \
17535 X"$as_dir" : 'X\(//\)$' \| \
17536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17537 $as_echo X"$as_dir" |
17538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17542 /^X\(\/\/\)[^/].*/{
17555 test -d "$as_dir" && break
17557 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17558 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17562 if mkdir
-p .
2>/dev
/null
; then
17563 as_mkdir_p
='mkdir -p "$as_dir"'
17565 test -d .
/-p && rmdir .
/-p
17570 # as_fn_executable_p FILE
17571 # -----------------------
17572 # Test if FILE is an executable regular file.
17573 as_fn_executable_p
()
17575 test -f "$1" && test -x "$1"
17576 } # as_fn_executable_p
17577 as_test_x
='test -x'
17578 as_executable_p
=as_fn_executable_p
17580 # Sed expression to map a string onto a valid CPP name.
17581 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17583 # Sed expression to map a string onto a valid variable name.
17584 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17588 ## ----------------------------------- ##
17589 ## Main body of $CONFIG_STATUS script. ##
17590 ## ----------------------------------- ##
17592 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17595 # Save the log message, to keep $0 and so on meaningful, and to
17596 # report actual input values of CONFIG_FILES etc. instead of their
17597 # values after options handling.
17599 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17600 generated by GNU Autoconf 2.69. Invocation command line was
17602 CONFIG_FILES = $CONFIG_FILES
17603 CONFIG_HEADERS = $CONFIG_HEADERS
17604 CONFIG_LINKS = $CONFIG_LINKS
17605 CONFIG_COMMANDS = $CONFIG_COMMANDS
17608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17613 case $ac_config_files in *"
17614 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17617 case $ac_config_headers in *"
17618 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17623 # Files that config.status was made for.
17624 config_files="$ac_config_files"
17625 config_headers="$ac_config_headers"
17626 config_commands="$ac_config_commands"
17630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17632 \`$as_me' instantiates files and other configuration actions
17633 from templates according to the current configuration. Unless the files
17634 and actions are specified as TAGs, all are instantiated by default.
17636 Usage: $0 [OPTION]... [TAG]...
17638 -h, --help print this help, then exit
17639 -V, --version print version number and configuration settings, then exit
17640 --config print configuration, then exit
17641 -q, --quiet, --silent
17642 do not print progress messages
17643 -d, --debug don't remove temporary files
17644 --recheck update $as_me by reconfiguring in the same conditions
17645 --file=FILE[:TEMPLATE]
17646 instantiate the configuration file FILE
17647 --header=FILE[:TEMPLATE]
17648 instantiate the configuration header FILE
17650 Configuration files:
17653 Configuration headers:
17656 Configuration commands:
17659 Report bugs to the package provider.
17660 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17661 General help using GNU software: <http://www.gnu.org/gethelp/>."
17664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17665 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17667 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17668 configured by $0, generated by GNU Autoconf 2.69,
17669 with options \\"\$ac_cs_config\\"
17671 Copyright (C) 2012 Free Software Foundation, Inc.
17672 This config.status script is free software; the Free Software Foundation
17673 gives unlimited permission to copy, distribute and modify it."
17680 test -n "\$AWK" || AWK=awk
17683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17684 # The default lists apply if the user does not specify any file.
17690 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17691 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17695 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17707 # Handling of the options.
17708 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17710 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17711 $as_echo "$ac_cs_version"; exit ;;
17712 --config |
--confi |
--conf |
--con |
--co |
--c )
17713 $as_echo "$ac_cs_config"; exit ;;
17714 --debug |
--debu |
--deb |
--de |
--d |
-d )
17716 --file |
--fil |
--fi |
--f )
17719 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17720 '') as_fn_error $?
"missing file argument" ;;
17722 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17723 ac_need_defaults
=false
;;
17724 --header |
--heade |
--head |
--hea )
17727 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17729 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17730 ac_need_defaults
=false
;;
17732 # Conflict between --help and --header
17733 as_fn_error $?
"ambiguous option: \`$1'
17734 Try \`$0 --help' for more information.";;
17735 --help |
--hel |
-h )
17736 $as_echo "$ac_cs_usage"; exit ;;
17737 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17738 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17741 # This is an error.
17742 -*) as_fn_error $?
"unrecognized option: \`$1'
17743 Try \`$0 --help' for more information." ;;
17745 *) as_fn_append ac_config_targets
" $1"
17746 ac_need_defaults
=false
;;
17752 ac_configure_extra_args
=
17754 if $ac_cs_silent; then
17756 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17761 if \$ac_cs_recheck; then
17762 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17764 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17765 CONFIG_SHELL='$SHELL'
17766 export CONFIG_SHELL
17771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17776 ## Running $as_me. ##
17782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17790 with_multisubdir="$with_multisubdir"
17791 with_multisrctop="$with_multisrctop"
17792 with_target_subdir="$with_target_subdir"
17793 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17794 multi_basedir="$multi_basedir"
17795 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17798 GFORTRAN="$GFORTRAN"
17800 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17803 # The HP-UX ksh and POSIX shell print the target directory to stdout
17804 # if CDPATH is set.
17805 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17807 sed_quote_subst='$sed_quote_subst'
17808 double_quote_subst='$double_quote_subst'
17809 delay_variable_subst='$delay_variable_subst'
17810 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17811 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17812 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17813 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17814 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17815 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17816 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17817 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17818 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17819 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17820 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17821 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17822 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17823 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17824 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17825 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17826 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17827 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17828 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17829 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17830 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17831 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17832 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17833 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17834 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17835 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17836 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17837 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17838 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17839 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17840 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17841 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17842 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17843 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17844 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17845 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17846 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17847 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17848 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17849 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17850 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17851 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17852 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17853 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17854 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17855 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17856 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17857 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17858 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"`'
17859 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17860 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17861 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17862 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17863 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17864 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17865 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17866 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17867 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17868 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17869 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17870 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17871 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17872 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17873 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17874 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17875 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17876 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17877 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17878 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17879 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17880 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17881 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17882 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17883 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17884 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17885 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17886 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17887 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17888 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17889 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17890 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17891 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17892 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17893 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17894 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17895 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17896 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17897 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17898 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17899 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17900 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17901 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17902 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17903 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17904 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17905 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17906 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17907 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17908 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17909 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17910 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17911 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17912 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17913 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17914 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17915 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17916 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17917 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17918 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17919 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17920 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17921 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17922 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17923 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17924 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17925 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17926 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17927 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17928 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17929 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17930 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17931 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17932 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17933 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17934 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17935 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17936 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17937 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17938 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17939 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17940 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17941 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17942 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17943 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17944 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17945 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17946 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17947 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17948 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17949 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17950 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17951 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17952 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17953 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17954 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17955 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17956 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17957 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17958 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17959 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17960 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17961 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17962 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17963 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17964 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17965 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17966 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17967 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17968 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17969 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17970 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17971 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17972 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17973 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17974 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17975 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17976 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17977 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17978 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17979 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17980 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17981 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17982 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17983 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17984 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17987 LTCFLAGS='$LTCFLAGS'
17988 compiler='$compiler_DEFAULT'
17990 # A function that is used when there is no print builtin or printf.
17991 func_fallback_echo ()
17993 eval 'cat <<_LTECHO_EOF
17998 # Quote evaled strings.
18012 deplibs_check_method \
18021 lt_cv_sys_global_symbol_pipe \
18022 lt_cv_sys_global_symbol_to_cdecl \
18023 lt_cv_sys_global_symbol_to_c_name_address \
18024 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18025 lt_prog_compiler_no_builtin_flag \
18026 lt_prog_compiler_wl \
18027 lt_prog_compiler_pic \
18028 lt_prog_compiler_static \
18029 lt_cv_prog_compiler_c_o \
18037 export_dynamic_flag_spec \
18038 whole_archive_flag_spec \
18039 compiler_needs_object \
18041 allow_undefined_flag \
18042 no_undefined_flag \
18043 hardcode_libdir_flag_spec \
18044 hardcode_libdir_flag_spec_ld \
18045 hardcode_libdir_separator \
18050 variables_saved_for_relink \
18052 library_names_spec \
18054 install_override_mode \
18058 compiler_lib_search_dirs \
18063 compiler_lib_search_path \
18067 lt_prog_compiler_no_builtin_flag_FC \
18068 lt_prog_compiler_wl_FC \
18069 lt_prog_compiler_pic_FC \
18070 lt_prog_compiler_static_FC \
18071 lt_cv_prog_compiler_c_o_FC \
18072 export_dynamic_flag_spec_FC \
18073 whole_archive_flag_spec_FC \
18074 compiler_needs_object_FC \
18076 allow_undefined_flag_FC \
18077 no_undefined_flag_FC \
18078 hardcode_libdir_flag_spec_FC \
18079 hardcode_libdir_flag_spec_ld_FC \
18080 hardcode_libdir_separator_FC \
18081 fix_srcfile_path_FC \
18082 exclude_expsyms_FC \
18083 include_expsyms_FC \
18084 file_list_spec_FC \
18085 compiler_lib_search_dirs_FC \
18086 predep_objects_FC \
18087 postdep_objects_FC \
18090 compiler_lib_search_path_FC; do
18091 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18092 *[\\\\\\\`\\"\\\$]*)
18093 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18096 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18101 # Double-quote double-evaled strings.
18102 for var in reload_cmds \
18103 old_postinstall_cmds \
18104 old_postuninstall_cmds \
18106 extract_expsyms_cmds \
18107 old_archive_from_new_cmds \
18108 old_archive_from_expsyms_cmds \
18110 archive_expsym_cmds \
18112 module_expsym_cmds \
18113 export_symbols_cmds \
18116 postuninstall_cmds \
18118 sys_lib_search_path_spec \
18119 sys_lib_dlsearch_path_spec \
18121 old_archive_cmds_FC \
18122 old_archive_from_new_cmds_FC \
18123 old_archive_from_expsyms_cmds_FC \
18125 archive_expsym_cmds_FC \
18127 module_expsym_cmds_FC \
18128 export_symbols_cmds_FC \
18129 prelink_cmds_FC; do
18130 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18131 *[\\\\\\\`\\"\\\$]*)
18132 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18135 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18140 ac_aux_dir='$ac_aux_dir'
18141 xsi_shell='$xsi_shell'
18142 lt_shell_append='$lt_shell_append'
18144 # See if we are running on zsh, and set the options which allow our
18145 # commands through without removal of \ escapes INIT.
18146 if test -n "\${ZSH_VERSION+set}" ; then
18147 setopt NO_GLOB_SUBST
18153 TIMESTAMP='$TIMESTAMP'
18164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18166 # Handling of arguments.
18167 for ac_config_target
in $ac_config_targets
18169 case $ac_config_target in
18170 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18171 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18172 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18173 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18174 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
18175 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
18176 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
18177 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
18178 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18179 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18180 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
18181 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18182 "testsuite/libgomp-site-extra.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18184 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18189 # If the user did not use the arguments to specify the items to instantiate,
18190 # then the envvar interface is used. Set only those that are not.
18191 # We use the long form for the default assignment because of an extremely
18192 # bizarre bug on SunOS 4.1.3.
18193 if $ac_need_defaults; then
18194 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18195 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18199 # Have a temporary directory for convenience. Make it in the build tree
18200 # simply because there is no reason against having it here, and in addition,
18201 # creating and moving files from /tmp can sometimes cause problems.
18202 # Hook for its removal unless debugging.
18203 # Note that there is a small window in which the directory will not be cleaned:
18204 # after its creation but before its name has been assigned to `$tmp'.
18208 trap 'exit_status=$?
18209 : "${ac_tmp:=$tmp}"
18210 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18212 trap 'as_fn_exit 1' 1 2 13 15
18214 # Create a (secure) tmp directory for tmp files.
18217 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18221 tmp
=.
/conf$$
-$RANDOM
18222 (umask 077 && mkdir
"$tmp")
18223 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18226 # Set up the scripts for CONFIG_FILES section.
18227 # No need to generate them if there are no CONFIG_FILES.
18228 # This happens for instance with `./config.status config.h'.
18229 if test -n "$CONFIG_FILES"; then
18232 ac_cr
=`echo X | tr X '\015'`
18233 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18234 # But we know of no other shell where ac_cr would be empty at this
18235 # point, so we can use a bashism as a fallback.
18236 if test "x$ac_cr" = x
; then
18237 eval ac_cr
=\$
\'\\r
\'
18239 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18240 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18243 ac_cs_awk_cr
=$ac_cr
18246 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18251 echo "cat >conf$$subs.awk <<_ACEOF" &&
18252 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18254 } >conf$$subs.sh ||
18255 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18256 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18258 for ac_last_try in false false false false false :; do
18259 . ./conf$$subs.sh ||
18260 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18262 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18263 if test $ac_delim_n = $ac_delim_num; then
18265 elif $ac_last_try; then
18266 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18268 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18271 rm -f conf$$subs.sh
18273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18274 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18278 s/^/S["/; s
/!.
*/"]=/
18288 s/\(.\{148\}\)..*/\1/
18290 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18295 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18302 s/\(.\{148\}\)..*/\1/
18304 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18308 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18313 ' <conf$$subs.awk | sed '
18318 ' >>$CONFIG_STATUS || ac_write_fail=1
18319 rm -f conf$$subs.awk
18320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18323 for (key in S) S_is_set[key] = 1
18329 nfields = split(line, field, "@
")
18331 len = length(field[1])
18332 for (i = 2; i < nfields; i++) {
18334 keylen = length(key)
18335 if (S_is_set[key]) {
18337 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18338 len += length(value) + length(field[++i])
18349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18350 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18351 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18354 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18355 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18358 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18359 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18360 # trailing colons and then remove the whole line if VPATH becomes empty
18361 # (actually we leave an empty line to preserve line numbers).
18362 if test "x
$srcdir" = x.; then
18363 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18382 fi # test -n "$CONFIG_FILES"
18384 # Set up the scripts for CONFIG_HEADERS section.
18385 # No need to generate them if there are no CONFIG_HEADERS.
18386 # This happens for instance with `./config.status Makefile'.
18387 if test -n "$CONFIG_HEADERS"; then
18388 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18392 # Transform confdefs.h into an awk script `defines.awk', embedded as
18393 # here-document in config.status, that substitutes the proper values into
18394 # config.h.in to produce config.h.
18396 # Create a delimiter string that does not exist in confdefs.h, to ease
18397 # handling of long lines.
18399 for ac_last_try in false false :; do
18400 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18401 if test -z "$ac_tt"; then
18403 elif $ac_last_try; then
18404 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18406 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18410 # For the awk script, D is an array of macro values keyed by name,
18411 # likewise P contains macro parameters if any. Preserve backslash
18412 # newline sequences.
18414 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18416 s/.\{148\}/&'"$ac_delim"'/g
18419 s/^[ ]*#[ ]*define[ ][ ]*/ /
18426 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18428 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18432 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18433 D["\
1"]=" \
3\\\\\\n
"\\/p
18435 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18440 s/.\{148\}/&'"$ac_delim"'/g
18445 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18448 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18450 ' <confdefs.h | sed '
18451 s/'"$ac_delim"'/"\\\
18452 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18455 for (key in D) D_is_set[key] = 1
18458 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18460 split(line, arg, " ")
18461 if (arg[1] == "#") {
18465 defundef
= substr
(arg
[1], 2)
18468 split(mac1
, mac2
, "(") #)
18470 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18471 if (D_is_set
[macro
]) {
18472 # Preserve the white space surrounding the "#".
18473 print prefix
"define", macro P
[macro
] D
[macro
]
18476 # Replace #undef with comments. This is necessary, for example,
18477 # in the case of _POSIX_SOURCE, which is predefined and required
18478 # on some systems where configure will not decide to define it.
18479 if (defundef
== "undef") {
18480 print
"/*", prefix defundef
, macro
, "*/"
18488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18489 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18490 fi # test -n "$CONFIG_HEADERS"
18493 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18498 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18500 case $ac_mode$ac_tag in
18502 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18503 :[FH
]-) ac_tag
=-:-;;
18504 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18521 -) ac_f
="$ac_tmp/stdin";;
18522 *) # Look for the file first in the build tree, then in the source tree
18523 # (if the path is not absolute). The absolute path cannot be DOS-style,
18524 # because $ac_f cannot contain `:'.
18528 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18530 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18532 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18533 as_fn_append ac_file_inputs
" '$ac_f'"
18536 # Let's still pretend it is `configure' which instantiates (i.e., don't
18537 # use $as_me), people would be surprised to read:
18538 # /* config.h. Generated by config.status. */
18539 configure_input
='Generated from '`
18540 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18542 if test x
"$ac_file" != x-
; then
18543 configure_input
="$ac_file. $configure_input"
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18545 $as_echo "$as_me: creating $ac_file" >&6;}
18547 # Neutralize special characters interpreted by sed in replacement strings.
18548 case $configure_input in #(
18549 *\
&* |
*\|
* |
*\\* )
18550 ac_sed_conf_input
=`$as_echo "$configure_input" |
18551 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18552 *) ac_sed_conf_input
=$configure_input;;
18556 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18557 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18562 ac_dir
=`$as_dirname -- "$ac_file" ||
18563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18564 X"$ac_file" : 'X\(//\)[^/]' \| \
18565 X"$ac_file" : 'X\(//\)$' \| \
18566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18567 $as_echo X"$ac_file" |
18568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18572 /^X\(\/\/\)[^/].*/{
18585 as_dir
="$ac_dir"; as_fn_mkdir_p
18589 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18591 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18592 # A ".." for each directory in $ac_dir_suffix.
18593 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18594 case $ac_top_builddir_sub in
18595 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18596 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18599 ac_abs_top_builddir
=$ac_pwd
18600 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18601 # for backward compatibility:
18602 ac_top_builddir
=$ac_top_build_prefix
18605 .
) # We are building in place.
18607 ac_top_srcdir
=$ac_top_builddir_sub
18608 ac_abs_top_srcdir
=$ac_pwd ;;
18609 [\\/]* | ?
:[\\/]* ) # Absolute name.
18610 ac_srcdir
=$srcdir$ac_dir_suffix;
18611 ac_top_srcdir
=$srcdir
18612 ac_abs_top_srcdir
=$srcdir ;;
18613 *) # Relative name.
18614 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18615 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18616 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18618 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18628 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18629 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18631 ac_MKDIR_P
=$MKDIR_P
18633 [\\/$
]* | ?
:[\\/]* ) ;;
18634 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18639 # If the template does not know about datarootdir, expand it.
18640 # FIXME: This hack should be removed a few years after 2.60.
18641 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18652 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18653 *datarootdir
*) ac_datarootdir_seen
=yes;;
18654 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18656 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18659 ac_datarootdir_hack='
18660 s&@datadir@&$datadir&g
18661 s&@docdir@&$docdir&g
18662 s&@infodir@&$infodir&g
18663 s&@localedir@&$localedir&g
18664 s&@mandir@&$mandir&g
18665 s&\\\${datarootdir}&$datarootdir&g' ;;
18669 # Neutralize VPATH when `$srcdir' = `.'.
18670 # Shell code in configure.ac might set extrasub.
18671 # FIXME: do we really want to maintain this feature?
18672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18673 ac_sed_extra="$ac_vpsub
18676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18678 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18679 s|@configure_input@|
$ac_sed_conf_input|
;t t
18680 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18681 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18682 s
&@srcdir@
&$ac_srcdir&;t t
18683 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18684 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18685 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18686 s
&@builddir@
&$ac_builddir&;t t
18687 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18688 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18689 s
&@INSTALL@
&$ac_INSTALL&;t t
18690 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18691 $ac_datarootdir_hack
18693 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18694 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18697 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18699 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18701 which seems to be undefined. Please make sure it is defined" >&5
18702 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18703 which seems to be undefined. Please make sure it is defined" >&2;}
18705 rm -f "$ac_tmp/stdin"
18707 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18708 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18716 if test x"$ac_file" != x-; then
18718 $as_echo "/* $configure_input */" \
18719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18720 } >"$ac_tmp/config.h" \
18721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18722 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18724 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18727 mv "$ac_tmp/config.h" "$ac_file" \
18728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18731 $as_echo "/* $configure_input */" \
18732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18733 || as_fn_error $? "could not create -" "$LINENO" 5
18735 # Compute "$ac_file"'s index
in $config_headers.
18738 for _am_header
in $config_headers :; do
18739 case $_am_header in
18740 $_am_arg |
$_am_arg:* )
18743 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18746 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18747 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18748 X"$_am_arg" : 'X\(//\)[^/]' \| \
18749 X"$_am_arg" : 'X\(//\)$' \| \
18750 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18751 $as_echo X"$_am_arg" |
18752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18756 /^X\(\/\/\)[^/].*/{
18768 s/.*/./; q'`/stamp-h
$_am_stamp_count
18771 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18772 $as_echo "$as_me: executing $ac_file commands" >&6;}
18777 case $ac_file$ac_mode in
18779 # Only add multilib support code if we just rebuilt the top-level
18781 case " $CONFIG_FILES " in
18783 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18786 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18787 # Older Autoconf quotes --file arguments for eval, but not when files
18788 # are listed without --file. Let's play safe and only enable the eval
18789 # if we detect the quoting.
18790 case $CONFIG_FILES in
18791 *\'*) eval set x
"$CONFIG_FILES" ;;
18792 *) set x
$CONFIG_FILES ;;
18797 # Strip MF so we end up with the name of the file.
18798 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18799 # Check whether this is an Automake generated Makefile or not.
18800 # We used to match only the files named 'Makefile.in', but
18801 # some people rename them; so instead we look at the file content.
18802 # Grep'ing the first line is not enough: some people post-process
18803 # each Makefile.in and add a new line on top of each file to say so.
18804 # Grep'ing the whole file is not good either: AIX grep has a line
18805 # limit of 2048, but all sed's we know have understand at least 4000.
18806 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18807 dirpart
=`$as_dirname -- "$mf" ||
18808 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18809 X"$mf" : 'X\(//\)[^/]' \| \
18810 X"$mf" : 'X\(//\)$' \| \
18811 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18817 /^X\(\/\/\)[^/].*/{
18833 # Extract the definition of DEPDIR, am__include, and am__quote
18834 # from the Makefile without running 'make'.
18835 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18836 test -z "$DEPDIR" && continue
18837 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18838 test -z "$am__include" && continue
18839 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18840 # Find all dependency output files, they are included files with
18841 # $(DEPDIR) in their names. We invoke sed twice because it is the
18842 # simplest approach to changing $(DEPDIR) to its actual value in the
18844 for file in `sed -n "
18845 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18846 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18847 # Make sure the directory exists.
18848 test -f "$dirpart/$file" && continue
18849 fdir
=`$as_dirname -- "$file" ||
18850 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18851 X"$file" : 'X\(//\)[^/]' \| \
18852 X"$file" : 'X\(//\)$' \| \
18853 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18854 $as_echo X"$file" |
18855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18859 /^X\(\/\/\)[^/].*/{
18872 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18873 # echo "creating $dirpart/$file"
18874 echo '# dummy' > "$dirpart/$file"
18881 # See if we are running on zsh, and set the options which allow our
18882 # commands through without removal of \ escapes.
18883 if test -n "${ZSH_VERSION+set}" ; then
18884 setopt NO_GLOB_SUBST
18887 cfgfile
="${ofile}T"
18888 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18891 cat <<_LT_EOF >> "$cfgfile"
18894 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18895 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18896 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18897 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18899 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18900 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18901 # Written by Gordon Matzigkeit, 1996
18903 # This file is part of GNU Libtool.
18905 # GNU Libtool is free software; you can redistribute it and/or
18906 # modify it under the terms of the GNU General Public License as
18907 # published by the Free Software Foundation; either version 2 of
18908 # the License, or (at your option) any later version.
18910 # As a special exception to the GNU General Public License,
18911 # if you distribute this file as part of a program or library that
18912 # is built using GNU Libtool, you may include this file under the
18913 # same distribution terms that you use for the rest of that program.
18915 # GNU Libtool is distributed in the hope that it will be useful,
18916 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18917 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18918 # GNU General Public License for more details.
18920 # You should have received a copy of the GNU General Public License
18921 # along with GNU Libtool; see the file COPYING. If not, a copy
18922 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18923 # obtained by writing to the Free Software Foundation, Inc.,
18924 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18927 # The names of the tagged configurations supported by this script.
18928 available_tags="FC "
18930 # ### BEGIN LIBTOOL CONFIG
18932 # Which release of libtool.m4 was used?
18933 macro_version=$macro_version
18934 macro_revision=$macro_revision
18936 # Whether or not to build shared libraries.
18937 build_libtool_libs=$enable_shared
18939 # Whether or not to build static libraries.
18940 build_old_libs=$enable_static
18942 # What type of objects to build.
18945 # Whether or not to optimize for fast installation.
18946 fast_install=$enable_fast_install
18948 # Shell to use when invoking shell scripts.
18951 # An echo program that protects backslashes.
18955 host_alias=$host_alias
18959 # The build system.
18960 build_alias=$build_alias
18964 # A sed program that does not truncate output.
18967 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18968 Xsed="\$SED -e 1s/^X//"
18970 # A grep program that handles long lines.
18976 # A literal string matcher.
18979 # A BSD- or MS-compatible name lister.
18982 # Whether we need soft or hard links.
18985 # What is the maximum length of a command?
18986 max_cmd_len=$max_cmd_len
18988 # Object file suffix (normally "o").
18991 # Executable file suffix (normally "").
18994 # whether the shell understands "unset".
18997 # turn spaces into newlines.
19000 # turn newlines into spaces.
19003 # An object symbol dumper.
19004 OBJDUMP=$lt_OBJDUMP
19006 # Method to check whether dependent libraries are shared objects.
19007 deplibs_check_method=$lt_deplibs_check_method
19009 # Command to use when deplibs_check_method == "file_magic".
19010 file_magic_cmd=$lt_file_magic_cmd
19014 AR_FLAGS=$lt_AR_FLAGS
19016 # A symbol stripping program.
19019 # Commands used to install an old-style archive.
19021 old_postinstall_cmds=$lt_old_postinstall_cmds
19022 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19024 # Whether to use a lock for old archive extraction.
19025 lock_old_archive_extraction=$lock_old_archive_extraction
19030 # LTCC compiler flags.
19031 LTCFLAGS=$lt_CFLAGS
19033 # Take the output of nm and produce a listing of raw symbols and C names.
19034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19036 # Transform the output of nm in a proper C declaration.
19037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19039 # Transform the output of nm in a C name address pair.
19040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19042 # Transform the output of nm in a C name address pair when lib prefix is needed.
19043 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19045 # The name of the directory that contains temporary libtool files.
19048 # Used to examine libraries when file_magic_cmd begins with "file".
19049 MAGIC_CMD=$MAGIC_CMD
19051 # Must we lock files when doing compilation?
19052 need_locks=$lt_need_locks
19054 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19055 DSYMUTIL=$lt_DSYMUTIL
19057 # Tool to change global to local symbols on Mac OS X.
19060 # Tool to manipulate fat objects and archives on Mac OS X.
19063 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19066 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19067 OTOOL64=$lt_OTOOL64
19069 # Old archive suffix (normally "a").
19072 # Shared library suffix (normally ".so").
19073 shrext_cmds=$lt_shrext_cmds
19075 # The commands to extract the exported symbol list from a shared archive.
19076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19078 # Variables whose values should be saved in libtool wrapper scripts and
19079 # restored at link time.
19080 variables_saved_for_relink=$lt_variables_saved_for_relink
19082 # Do we need the "lib" prefix for modules?
19083 need_lib_prefix=$need_lib_prefix
19085 # Do we need a version for libraries?
19086 need_version=$need_version
19088 # Library versioning type.
19089 version_type=$version_type
19091 # Shared library runtime path variable.
19092 runpath_var=$runpath_var
19094 # Shared library path variable.
19095 shlibpath_var=$shlibpath_var
19097 # Is shlibpath searched before the hard-coded library search path?
19098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19100 # Format of library name prefix.
19101 libname_spec=$lt_libname_spec
19103 # List of archive names. First name is the real one, the rest are links.
19104 # The last name is the one that the linker finds with -lNAME
19105 library_names_spec=$lt_library_names_spec
19107 # The coded name of the library, if different from the real name.
19108 soname_spec=$lt_soname_spec
19110 # Permission mode override for installation of shared libraries.
19111 install_override_mode=$lt_install_override_mode
19113 # Command to use after installation of a shared archive.
19114 postinstall_cmds=$lt_postinstall_cmds
19116 # Command to use after uninstallation of a shared archive.
19117 postuninstall_cmds=$lt_postuninstall_cmds
19119 # Commands used to finish a libtool library installation in a directory.
19120 finish_cmds=$lt_finish_cmds
19122 # As "finish_cmds", except a single script fragment to be evaled but
19124 finish_eval=$lt_finish_eval
19126 # Whether we should hardcode library paths into libraries.
19127 hardcode_into_libs=$hardcode_into_libs
19129 # Compile-time system search path for libraries.
19130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19132 # Run-time system search path for libraries.
19133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19135 # Whether dlopen is supported.
19136 dlopen_support=$enable_dlopen
19138 # Whether dlopen of programs is supported.
19139 dlopen_self=$enable_dlopen_self
19141 # Whether dlopen of statically linked programs is supported.
19142 dlopen_self_static=$enable_dlopen_self_static
19144 # Commands to strip libraries.
19145 old_striplib=$lt_old_striplib
19146 striplib=$lt_striplib
19149 # The linker used to build libraries.
19152 # How to create reloadable object files.
19153 reload_flag=$lt_reload_flag
19154 reload_cmds=$lt_reload_cmds
19156 # Commands used to build an old-style archive.
19157 old_archive_cmds=$lt_old_archive_cmds
19159 # A language specific compiler.
19162 # Is the compiler the GNU compiler?
19165 # Compiler flag to turn off builtin functions.
19166 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19168 # How to pass a linker flag through the compiler.
19169 wl=$lt_lt_prog_compiler_wl
19171 # Additional compiler flags for building library objects.
19172 pic_flag=$lt_lt_prog_compiler_pic
19174 # Compiler flag to prevent dynamic linking.
19175 link_static_flag=$lt_lt_prog_compiler_static
19177 # Does compiler simultaneously support -c and -o options?
19178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19180 # Whether or not to add -lc for building shared libraries.
19181 build_libtool_need_lc=$archive_cmds_need_lc
19183 # Whether or not to disallow shared libs when runtime libs are static.
19184 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19186 # Compiler flag to allow reflexive dlopens.
19187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19189 # Compiler flag to generate shared objects directly from archives.
19190 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19192 # Whether the compiler copes with passing no objects directly.
19193 compiler_needs_object=$lt_compiler_needs_object
19195 # Create an old-style archive from a shared archive.
19196 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19198 # Create a temporary old-style archive to link instead of a shared archive.
19199 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19201 # Commands used to build a shared archive.
19202 archive_cmds=$lt_archive_cmds
19203 archive_expsym_cmds=$lt_archive_expsym_cmds
19205 # Commands used to build a loadable module if different from building
19206 # a shared archive.
19207 module_cmds=$lt_module_cmds
19208 module_expsym_cmds=$lt_module_expsym_cmds
19210 # Whether we are building with GNU ld or not.
19211 with_gnu_ld=$lt_with_gnu_ld
19213 # Flag that allows shared libraries with undefined symbols to be built.
19214 allow_undefined_flag=$lt_allow_undefined_flag
19216 # Flag that enforces no undefined symbols.
19217 no_undefined_flag=$lt_no_undefined_flag
19219 # Flag to hardcode \$libdir into a binary during linking.
19220 # This must work even if \$libdir does not exist
19221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19223 # If ld is used when linking, flag to hardcode \$libdir into a binary
19224 # during linking. This must work even if \$libdir does not exist.
19225 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19227 # Whether we need a single "-rpath" flag with a separated argument.
19228 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19230 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19231 # DIR into the resulting binary.
19232 hardcode_direct=$hardcode_direct
19234 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19235 # DIR into the resulting binary and the resulting library dependency is
19236 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19237 # library is relocated.
19238 hardcode_direct_absolute=$hardcode_direct_absolute
19240 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19241 # into the resulting binary.
19242 hardcode_minus_L=$hardcode_minus_L
19244 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19245 # into the resulting binary.
19246 hardcode_shlibpath_var=$hardcode_shlibpath_var
19248 # Set to "yes" if building a shared library automatically hardcodes DIR
19249 # into the library and all subsequent libraries and executables linked
19251 hardcode_automatic=$hardcode_automatic
19253 # Set to yes if linker adds runtime paths of dependent libraries
19254 # to runtime path list.
19255 inherit_rpath=$inherit_rpath
19257 # Whether libtool must link a program against all its dependency libraries.
19258 link_all_deplibs=$link_all_deplibs
19260 # Fix the shell variable \$srcfile for the compiler.
19261 fix_srcfile_path=$lt_fix_srcfile_path
19263 # Set to "yes" if exported symbols are required.
19264 always_export_symbols=$always_export_symbols
19266 # The commands to list exported symbols.
19267 export_symbols_cmds=$lt_export_symbols_cmds
19269 # Symbols that should not be listed in the preloaded symbols.
19270 exclude_expsyms=$lt_exclude_expsyms
19272 # Symbols that must always be exported.
19273 include_expsyms=$lt_include_expsyms
19275 # Commands necessary for linking programs (against libraries) with templates.
19276 prelink_cmds=$lt_prelink_cmds
19278 # Specify filename containing input files.
19279 file_list_spec=$lt_file_list_spec
19281 # How to hardcode a shared library path into an executable.
19282 hardcode_action=$hardcode_action
19284 # The directories searched by this compiler when creating a shared library.
19285 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19287 # Dependencies to place before and after the objects being linked to
19288 # create a shared library.
19289 predep_objects=$lt_predep_objects
19290 postdep_objects=$lt_postdep_objects
19291 predeps=$lt_predeps
19292 postdeps=$lt_postdeps
19294 # The library search path used internally by the compiler when linking
19295 # a shared library.
19296 compiler_lib_search_path=$lt_compiler_lib_search_path
19298 # ### END LIBTOOL CONFIG
19304 cat <<\_LT_EOF
>> "$cfgfile"
19305 # AIX sometimes has problems with the GCC collect2 program. For some
19306 # reason, if we set the COLLECT_NAMES environment variable, the problems
19307 # vanish in a puff of smoke.
19308 if test "X${COLLECT_NAMES+set}" != Xset
; then
19310 export COLLECT_NAMES
19317 ltmain
="$ac_aux_dir/ltmain.sh"
19320 # We use sed instead of cat because bash on DJGPP gets confused if
19321 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19322 # text mode, it properly converts lines to CR/LF. This bash problem
19323 # is reportedly fixed, but why not run on old versions too?
19324 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19325 ||
(rm -f "$cfgfile"; exit 1)
19329 cat << \_LT_EOF
>> "$cfgfile"
19331 # func_dirname file append nondir_replacement
19332 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19333 # otherwise set result to NONDIR_REPLACEMENT.
19337 */*) func_dirname_result
="${1%/*}${2}" ;;
19338 * ) func_dirname_result
="${3}" ;;
19342 # func_basename file
19345 func_basename_result
="${1##*/}"
19348 # func_dirname_and_basename file append nondir_replacement
19349 # perform func_basename and func_dirname in a single function
19351 # dirname: Compute the dirname of FILE. If nonempty,
19352 # add APPEND to the result, otherwise set result
19353 # to NONDIR_REPLACEMENT.
19354 # value returned in "$func_dirname_result"
19355 # basename: Compute filename of FILE.
19356 # value retuned in "$func_basename_result"
19357 # Implementation must be kept synchronized with func_dirname
19358 # and func_basename. For efficiency, we do not delegate to
19359 # those functions but instead duplicate the functionality here.
19360 func_dirname_and_basename
()
19363 */*) func_dirname_result
="${1%/*}${2}" ;;
19364 * ) func_dirname_result
="${3}" ;;
19366 func_basename_result
="${1##*/}"
19369 # func_stripname prefix suffix name
19370 # strip PREFIX and SUFFIX off of NAME.
19371 # PREFIX and SUFFIX must not contain globbing or regex special
19372 # characters, hashes, percent signs, but SUFFIX may contain a leading
19373 # dot (in which case that matches only a dot).
19376 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19377 # positional parameters, so assign one to ordinary parameter first.
19378 func_stripname_result
=${3}
19379 func_stripname_result
=${func_stripname_result#"${1}"}
19380 func_stripname_result
=${func_stripname_result%"${2}"}
19386 func_opt_split_opt
=${1%%=*}
19387 func_opt_split_arg
=${1#*=}
19394 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19395 *) func_lo2o_result
=${1} ;;
19399 # func_xform libobj-or-source
19402 func_xform_result
=${1%.*}.lo
19405 # func_arith arithmetic-term...
19408 func_arith_result
=$
(( $
* ))
19412 # STRING may not start with a hyphen.
19415 func_len_result
=${#1}
19420 *) # Bourne compatible functions.
19421 cat << \_LT_EOF
>> "$cfgfile"
19423 # func_dirname file append nondir_replacement
19424 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19425 # otherwise set result to NONDIR_REPLACEMENT.
19428 # Extract subdirectory from the argument.
19429 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19430 if test "X$func_dirname_result" = "X${1}"; then
19431 func_dirname_result
="${3}"
19433 func_dirname_result
="$func_dirname_result${2}"
19437 # func_basename file
19440 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19444 # func_stripname prefix suffix name
19445 # strip PREFIX and SUFFIX off of NAME.
19446 # PREFIX and SUFFIX must not contain globbing or regex special
19447 # characters, hashes, percent signs, but SUFFIX may contain a leading
19448 # dot (in which case that matches only a dot).
19449 # func_strip_suffix prefix name
19453 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19454 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19459 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19460 my_sed_long_arg
='1s/^-[^=]*=//'
19465 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19466 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19472 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19475 # func_xform libobj-or-source
19478 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19481 # func_arith arithmetic-term...
19484 func_arith_result
=`expr "$@"`
19488 # STRING may not start with a hyphen.
19491 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19497 case $lt_shell_append in
19499 cat << \_LT_EOF
>> "$cfgfile"
19501 # func_append var value
19502 # Append VALUE to the end of shell variable VAR.
19510 cat << \_LT_EOF
>> "$cfgfile"
19512 # func_append var value
19513 # Append VALUE to the end of shell variable VAR.
19524 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19525 ||
(rm -f "$cfgfile"; exit 1)
19527 mv -f "$cfgfile" "$ofile" ||
19528 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19532 cat <<_LT_EOF >> "$ofile"
19534 # ### BEGIN LIBTOOL TAG CONFIG: FC
19536 # The linker used to build libraries.
19539 # How to create reloadable object files.
19540 reload_flag=$lt_reload_flag_FC
19541 reload_cmds=$lt_reload_cmds_FC
19543 # Commands used to build an old-style archive.
19544 old_archive_cmds=$lt_old_archive_cmds_FC
19546 # A language specific compiler.
19549 # Is the compiler the GNU compiler?
19552 # Compiler flag to turn off builtin functions.
19553 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19555 # How to pass a linker flag through the compiler.
19556 wl=$lt_lt_prog_compiler_wl_FC
19558 # Additional compiler flags for building library objects.
19559 pic_flag=$lt_lt_prog_compiler_pic_FC
19561 # Compiler flag to prevent dynamic linking.
19562 link_static_flag=$lt_lt_prog_compiler_static_FC
19564 # Does compiler simultaneously support -c and -o options?
19565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19567 # Whether or not to add -lc for building shared libraries.
19568 build_libtool_need_lc=$archive_cmds_need_lc_FC
19570 # Whether or not to disallow shared libs when runtime libs are static.
19571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19573 # Compiler flag to allow reflexive dlopens.
19574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19576 # Compiler flag to generate shared objects directly from archives.
19577 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19579 # Whether the compiler copes with passing no objects directly.
19580 compiler_needs_object=$lt_compiler_needs_object_FC
19582 # Create an old-style archive from a shared archive.
19583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19585 # Create a temporary old-style archive to link instead of a shared archive.
19586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19588 # Commands used to build a shared archive.
19589 archive_cmds=$lt_archive_cmds_FC
19590 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19592 # Commands used to build a loadable module if different from building
19593 # a shared archive.
19594 module_cmds=$lt_module_cmds_FC
19595 module_expsym_cmds=$lt_module_expsym_cmds_FC
19597 # Whether we are building with GNU ld or not.
19598 with_gnu_ld=$lt_with_gnu_ld_FC
19600 # Flag that allows shared libraries with undefined symbols to be built.
19601 allow_undefined_flag=$lt_allow_undefined_flag_FC
19603 # Flag that enforces no undefined symbols.
19604 no_undefined_flag=$lt_no_undefined_flag_FC
19606 # Flag to hardcode \$libdir into a binary during linking.
19607 # This must work even if \$libdir does not exist
19608 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19610 # If ld is used when linking, flag to hardcode \$libdir into a binary
19611 # during linking. This must work even if \$libdir does not exist.
19612 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19614 # Whether we need a single "-rpath" flag with a separated argument.
19615 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19617 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19618 # DIR into the resulting binary.
19619 hardcode_direct=$hardcode_direct_FC
19621 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19622 # DIR into the resulting binary and the resulting library dependency is
19623 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19624 # library is relocated.
19625 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19627 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19628 # into the resulting binary.
19629 hardcode_minus_L=$hardcode_minus_L_FC
19631 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19632 # into the resulting binary.
19633 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19635 # Set to "yes" if building a shared library automatically hardcodes DIR
19636 # into the library and all subsequent libraries and executables linked
19638 hardcode_automatic=$hardcode_automatic_FC
19640 # Set to yes if linker adds runtime paths of dependent libraries
19641 # to runtime path list.
19642 inherit_rpath=$inherit_rpath_FC
19644 # Whether libtool must link a program against all its dependency libraries.
19645 link_all_deplibs=$link_all_deplibs_FC
19647 # Fix the shell variable \$srcfile for the compiler.
19648 fix_srcfile_path=$lt_fix_srcfile_path_FC
19650 # Set to "yes" if exported symbols are required.
19651 always_export_symbols=$always_export_symbols_FC
19653 # The commands to list exported symbols.
19654 export_symbols_cmds=$lt_export_symbols_cmds_FC
19656 # Symbols that should not be listed in the preloaded symbols.
19657 exclude_expsyms=$lt_exclude_expsyms_FC
19659 # Symbols that must always be exported.
19660 include_expsyms=$lt_include_expsyms_FC
19662 # Commands necessary for linking programs (against libraries) with templates.
19663 prelink_cmds=$lt_prelink_cmds_FC
19665 # Specify filename containing input files.
19666 file_list_spec=$lt_file_list_spec_FC
19668 # How to hardcode a shared library path into an executable.
19669 hardcode_action=$hardcode_action_FC
19671 # The directories searched by this compiler when creating a shared library.
19672 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19674 # Dependencies to place before and after the objects being linked to
19675 # create a shared library.
19676 predep_objects=$lt_predep_objects_FC
19677 postdep_objects=$lt_postdep_objects_FC
19678 predeps=$lt_predeps_FC
19679 postdeps=$lt_postdeps_FC
19681 # The library search path used internally by the compiler when linking
19682 # a shared library.
19683 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19685 # ### END LIBTOOL TAG CONFIG: FC
19696 ac_clean_files
=$ac_clean_files_save
19698 test $ac_write_fail = 0 ||
19699 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19702 # configure is writing to config.log, and then calls config.status.
19703 # config.status does its own redirection, appending to config.log.
19704 # Unfortunately, on DOS this fails, as config.log is still kept open
19705 # by configure, so config.status won't be able to write to it; its
19706 # output is simply discarded. So we exec the FD to /dev/null,
19707 # effectively closing config.log, so it can be properly (re)opened and
19708 # appended to by config.status. When coming back to configure, we
19709 # need to make the FD available again.
19710 if test "$no_create" != yes; then
19712 ac_config_status_args
=
19713 test "$silent" = yes &&
19714 ac_config_status_args
="$ac_config_status_args --quiet"
19716 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19719 # would make configure fail if this is the last instruction.
19720 $ac_cs_success || as_fn_exit
1
19722 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19724 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}