2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME
='libgomp'
590 PACKAGE_VERSION
='1.0'
591 PACKAGE_STRING
='GNU Offloading and Multi Processing Runtime Library 1.0'
593 PACKAGE_URL
='http://www.gnu.org/software/libgomp/'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
633 ac_subst_vars
='am__EXEEXT_FALSE
638 OMP_NEST_LOCK_25_KIND
640 OMP_NEST_LOCK_25_ALIGN
641 OMP_NEST_LOCK_25_SIZE
657 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
658 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
659 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
671 offload_additional_lib_paths
672 offload_additional_options
687 PLUGIN_NVPTX_CPPFLAGS
696 MAINTAINER_MODE_FALSE
755 INSTALL_STRIP_PROGRAM
811 program_transform_name
824 enable_option_checking
825 enable_version_specific_runtime_libs
826 enable_generated_files_in_srcdir
829 enable_dependency_tracking
836 enable_maintainer_mode
838 with_cuda_driver_include
841 with_hsa_runtime_include
847 with_gcc_major_version_only
849 ac_precious_vars
='build_alias
860 # Initialize some variables set by options.
862 ac_init_version
=false
863 ac_unrecognized_opts
=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name
=s
,x
,x
,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir
='${exec_prefix}/bin'
889 sbindir
='${exec_prefix}/sbin'
890 libexecdir
='${exec_prefix}/libexec'
891 datarootdir
='${prefix}/share'
892 datadir
='${datarootdir}'
893 sysconfdir
='${prefix}/etc'
894 sharedstatedir
='${prefix}/com'
895 localstatedir
='${prefix}/var'
896 includedir
='${prefix}/include'
897 oldincludedir
='/usr/include'
898 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir
='${datarootdir}/info'
904 libdir
='${exec_prefix}/lib'
905 localedir
='${datarootdir}/locale'
906 mandir
='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\
$ac_option
920 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
933 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
936 -build |
--build |
--buil |
--bui |
--bu)
937 ac_prev
=build_alias
;;
938 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
939 build_alias
=$ac_optarg ;;
941 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
942 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
943 ac_prev
=cache_file
;;
944 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
945 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
946 cache_file
=$ac_optarg ;;
949 cache_file
=config.cache
;;
951 -datadir |
--datadir |
--datadi |
--datad)
953 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
954 datadir
=$ac_optarg ;;
956 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
957 |
--dataroo |
--dataro |
--datar)
958 ac_prev
=datarootdir
;;
959 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
960 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
961 datarootdir
=$ac_optarg ;;
963 -disable-* |
--disable-*)
964 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
967 as_fn_error $?
"invalid feature name: $ac_useropt"
968 ac_useropt_orig
=$ac_useropt
969 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep
=', ';;
977 eval enable_
$ac_useropt=no
;;
979 -docdir |
--docdir |
--docdi |
--doc |
--do)
981 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
984 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
986 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
989 -enable-* |
--enable-*)
990 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
993 as_fn_error $?
"invalid feature name: $ac_useropt"
994 ac_useropt_orig
=$ac_useropt
995 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep
=', ';;
1003 eval enable_
$ac_useropt=\
$ac_optarg ;;
1005 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1006 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1007 |
--exec |
--exe |
--ex)
1008 ac_prev
=exec_prefix
;;
1009 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1010 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1011 |
--exec=* |
--exe=* |
--ex=*)
1012 exec_prefix
=$ac_optarg ;;
1014 -gas |
--gas |
--ga |
--g)
1015 # Obsolete; use --with-gas.
1018 -help |
--help |
--hel |
--he |
-h)
1019 ac_init_help
=long
;;
1020 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1021 ac_init_help
=recursive
;;
1022 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1023 ac_init_help
=short
;;
1025 -host |
--host |
--hos |
--ho)
1026 ac_prev
=host_alias
;;
1027 -host=* |
--host=* |
--hos=* |
--ho=*)
1028 host_alias
=$ac_optarg ;;
1030 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1032 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1034 htmldir
=$ac_optarg ;;
1036 -includedir |
--includedir |
--includedi |
--included |
--include \
1037 |
--includ |
--inclu |
--incl |
--inc)
1038 ac_prev
=includedir
;;
1039 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1040 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1041 includedir
=$ac_optarg ;;
1043 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1045 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1046 infodir
=$ac_optarg ;;
1048 -libdir |
--libdir |
--libdi |
--libd)
1050 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1051 libdir
=$ac_optarg ;;
1053 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1054 |
--libexe |
--libex |
--libe)
1055 ac_prev
=libexecdir
;;
1056 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1057 |
--libexe=* |
--libex=* |
--libe=*)
1058 libexecdir
=$ac_optarg ;;
1060 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1061 ac_prev
=localedir
;;
1062 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1063 localedir
=$ac_optarg ;;
1065 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1066 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1067 ac_prev
=localstatedir
;;
1068 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1069 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1070 localstatedir
=$ac_optarg ;;
1072 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1074 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1075 mandir
=$ac_optarg ;;
1077 -nfp |
--nfp |
--nf)
1078 # Obsolete; use --without-fp.
1081 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1082 |
--no-cr |
--no-c |
-n)
1085 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1086 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1089 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1090 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1091 |
--oldin |
--oldi |
--old |
--ol |
--o)
1092 ac_prev
=oldincludedir
;;
1093 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1094 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1095 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1096 oldincludedir
=$ac_optarg ;;
1098 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1100 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1101 prefix
=$ac_optarg ;;
1103 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1104 |
--program-pre |
--program-pr |
--program-p)
1105 ac_prev
=program_prefix
;;
1106 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1107 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1108 program_prefix
=$ac_optarg ;;
1110 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1111 |
--program-suf |
--program-su |
--program-s)
1112 ac_prev
=program_suffix
;;
1113 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1114 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1115 program_suffix
=$ac_optarg ;;
1117 -program-transform-name |
--program-transform-name \
1118 |
--program-transform-nam |
--program-transform-na \
1119 |
--program-transform-n |
--program-transform- \
1120 |
--program-transform |
--program-transfor \
1121 |
--program-transfo |
--program-transf \
1122 |
--program-trans |
--program-tran \
1123 |
--progr-tra |
--program-tr |
--program-t)
1124 ac_prev
=program_transform_name
;;
1125 -program-transform-name=* |
--program-transform-name=* \
1126 |
--program-transform-nam=* |
--program-transform-na=* \
1127 |
--program-transform-n=* |
--program-transform-=* \
1128 |
--program-transform=* |
--program-transfor=* \
1129 |
--program-transfo=* |
--program-transf=* \
1130 |
--program-trans=* |
--program-tran=* \
1131 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1132 program_transform_name
=$ac_optarg ;;
1134 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1136 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1137 pdfdir
=$ac_optarg ;;
1139 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1141 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1144 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1145 |
-silent |
--silent |
--silen |
--sile |
--sil)
1148 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1150 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1152 sbindir
=$ac_optarg ;;
1154 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1155 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1156 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1158 ac_prev
=sharedstatedir
;;
1159 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1160 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1161 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1163 sharedstatedir
=$ac_optarg ;;
1165 -site |
--site |
--sit)
1167 -site=* |
--site=* |
--sit=*)
1170 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1172 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1173 srcdir
=$ac_optarg ;;
1175 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1176 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1177 ac_prev
=sysconfdir
;;
1178 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1179 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1180 sysconfdir
=$ac_optarg ;;
1182 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1183 ac_prev
=target_alias
;;
1184 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1185 target_alias
=$ac_optarg ;;
1187 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1190 -version |
--version |
--versio |
--versi |
--vers |
-V)
1191 ac_init_version
=: ;;
1194 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1197 as_fn_error $?
"invalid package name: $ac_useropt"
1198 ac_useropt_orig
=$ac_useropt
1199 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep
=', ';;
1207 eval with_
$ac_useropt=\
$ac_optarg ;;
1209 -without-* |
--without-*)
1210 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1213 as_fn_error $?
"invalid package name: $ac_useropt"
1214 ac_useropt_orig
=$ac_useropt
1215 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep
=', ';;
1223 eval with_
$ac_useropt=no
;;
1226 # Obsolete; use --with-x.
1229 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1230 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1231 ac_prev
=x_includes
;;
1232 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1233 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1234 x_includes
=$ac_optarg ;;
1236 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1237 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1238 ac_prev
=x_libraries
;;
1239 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1240 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1241 x_libraries
=$ac_optarg ;;
1243 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1252 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\
$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $?
"missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val
=\$
$ac_var
1288 # Remove trailing slashes.
1291 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\
$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$
]* | ?
:[\\/]* ) continue;;
1297 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1299 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target
=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x
; then
1311 if test "x$build_alias" = x
; then
1312 cross_compiling
=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1321 test "$silent" = yes && exec 6>/dev
/null
1324 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di
=`ls -di .` &&
1326 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $?
"working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $?
"pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted
=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir
=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted
=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1368 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var
in $ac_precious_vars; do
1385 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1387 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1461 --build=BUILD configure
for building on BUILD
[guessed
]
1462 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1463 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1474 --disable-option-checking ignore unrecognized
--enable/--with options
1475 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1476 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1477 --enable-version-specific-runtime-libs
1478 Specify that runtime libraries should be installed
1479 in a compiler-specific directory
[default
=no
]
1480 --enable-generated-files-in-srcdir
1481 put copies of generated files
in source dir intended
1482 for creating
source tarballs
for users without
1483 texinfo bison or flex.
[default
=no
]
1484 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1485 --disable-silent-rules verbose build output
(undo
: "make V=0")
1486 --enable-multilib build many library versions
(default
)
1487 --enable-dependency-tracking
1488 do not reject slow dependency extractors
1489 --disable-dependency-tracking
1490 speeds up one-time build
1491 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1492 --enable-static[=PKGS
] build static libraries
[default
=yes]
1493 --enable-fast-install[=PKGS
]
1494 optimize
for fast installation
[default
=yes]
1495 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1496 --enable-maintainer-mode
1497 enable make rules and dependencies not useful
(and
1498 sometimes confusing
) to the casual installer
1499 --enable-linux-futex use the Linux futex system call
[default
=default
]
1500 --enable-tls Use thread-local storage
[default
=yes]
1501 --enable-symvers=STYLE enables symbol versioning of the shared library
1503 --enable-cet enable Intel CET
in target libraries
[default
=no
]
1506 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1507 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1508 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1510 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1511 --with-cuda-driver=PATH specify prefix directory
for installed CUDA driver
1512 package. Equivalent to
1513 --with-cuda-driver-include=PATH
/include plus
1514 --with-cuda-driver-lib=PATH
/lib
1515 --with-cuda-driver-include=PATH
1516 specify directory
for installed CUDA driver include
1518 --with-cuda-driver-lib=PATH
1519 specify directory
for the installed CUDA driver
1521 --with-hsa-runtime=PATH specify prefix directory
for installed HSA run-time
1522 package. Equivalent to
1523 --with-hsa-runtime-include=PATH
/include plus
1524 --with-hsa-runtime-lib=PATH
/lib
1525 --with-hsa-runtime-include=PATH
1526 specify directory
for installed HSA run-time include
1528 --with-hsa-runtime-lib=PATH
1529 specify directory
for the installed HSA run-time
1531 --with-gcc-major-version-only
1532 use only GCC major number
in filesystem paths
1534 Some influential environment variables
:
1535 CC C compiler
command
1536 CFLAGS C compiler flags
1537 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1538 nonstandard directory
<lib dir
>
1539 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1540 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1541 you have headers
in a nonstandard directory
<include dir
>
1543 FC Fortran compiler
command
1544 FCFLAGS Fortran compiler flags
1546 Use these variables to override the choices made by
`configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1549 Report bugs to the package provider.
1550 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1551 General help using GNU software: <http://www.gnu.org/gethelp/>.
1556 if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
1558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559 test -d "$ac_dir" ||
1560 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1568 # A ".." for each directory in $ac_dir_suffix.
1569 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1570 case $ac_top_builddir_sub in
1571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 ac_abs_top_builddir=$ac_pwd
1576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577 # for backward compatibility:
1578 ac_top_builddir=$ac_top_build_prefix
1581 .) # We are building in place.
1583 ac_top_srcdir=$ac_top_builddir_sub
1584 ac_abs_top_srcdir=$ac_pwd ;;
1585 [\\/]* | ?:[\\/]* ) # Absolute name.
1586 ac_srcdir=$srcdir$ac_dir_suffix;
1587 ac_top_srcdir=$srcdir
1588 ac_abs_top_srcdir=$srcdir ;;
1590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591 ac_top_srcdir=$ac_top_build_prefix$srcdir
1592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596 cd "$ac_dir" || { ac_status=$?; continue; }
1597 # Check for guested configure.
1598 if test -f "$ac_srcdir/configure.gnu"; then
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1603 $SHELL "$ac_srcdir/configure" --help=recursive
1605 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 cd "$ac_pwd" || { ac_status=$?; break; }
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1614 GNU Offloading and Multi Processing Runtime Library configure 1.0
1615 generated by GNU Autoconf 2.69
1617 Copyright (C) 2012 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext
1635 if { { ac_try="$ac_compile"
1637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1638 *) ac_try_echo
=$ac_try;;
1640 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_compile") 2>conftest.err
1644 if test -s conftest.err
; then
1645 grep -v '^ *+' conftest.err
>conftest.er1
1646 cat conftest.er1
>&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest.
$ac_objext; then :
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.
$ac_ext >&5
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status
$ac_retval
1664 } # ac_fn_c_try_compile
1666 # ac_fn_c_try_link LINENO
1667 # -----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1672 rm -f conftest.
$ac_objext conftest
$ac_exeext
1673 if { { ac_try
="$ac_link"
1675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>conftest.err
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && {
1689 test -z "$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 } && test -s conftest$ac_exeext && {
1692 test "$cross_compiling" = yes ||
1693 test -x conftest$ac_exeext
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1702 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1703 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1704 # interfere with the next link command; also delete a directory that is
1705 # left behind by Apple's compiler. We do this before executing the actions.
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1710 } # ac_fn_c_try_link
1712 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_c_check_header_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1729 if ac_fn_c_try_compile "$LINENO"; then :
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 } # ac_fn_c_check_header_compile
1743 # ac_fn_c_try_cpp LINENO
1744 # ----------------------
1745 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_cpp conftest.$ac_ext"
1751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1752 *) ac_try_echo
=$ac_try;;
1754 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1758 if test -s conftest.err
; then
1759 grep -v '^ *+' conftest.err
>conftest.er1
1760 cat conftest.er1
>&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } > conftest.i
&& {
1765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.
$ac_ext >&5
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status
$ac_retval
1780 # ac_fn_c_try_run LINENO
1781 # ----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783 # that executables *can* be run.
1786 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1787 if { { ac_try
="$ac_link"
1789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>&5
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798 { { case "(($ac_try" in
1799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1800 *) ac_try_echo
=$ac_try;;
1802 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_try") 2>&5
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; }; }; then :
1810 $as_echo "$as_me: program exited with status $ac_status" >&5
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.
$ac_ext >&5
1814 ac_retval
=$ac_status
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status
$ac_retval
1822 # ac_fn_c_check_func LINENO FUNC VAR
1823 # ----------------------------------
1824 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1825 ac_fn_c_check_func
()
1827 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \
${$3+:} false
; then :
1831 $as_echo_n "(cached) " >&6
1833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1837 #define $2 innocuous_$2
1839 /* System header to define __stub macros and hopefully few prototypes,
1840 which can conflict with char $2 (); below.
1841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1842 <limits.h> exists even on freestanding compilers. */
1845 # include <limits.h>
1847 # include <assert.h>
1852 /* Override any GCC internal prototype to avoid an error.
1853 Use char because int might match the return type of a GCC
1854 builtin and then its argument prototype would still apply. */
1859 /* The GNU C library defines this for functions which it implements
1860 to always fail with ENOSYS. Some functions are actually named
1861 something starting with __ and the normal name is an alias. */
1862 #if defined __stub_$2 || defined __stub___$2
1874 if ac_fn_c_try_link
"$LINENO"; then :
1879 rm -f core conftest.err conftest.
$ac_objext \
1880 conftest
$ac_exeext conftest.
$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 } # ac_fn_c_check_func
1889 # ac_fn_fc_try_compile LINENO
1890 # ---------------------------
1891 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_fc_try_compile
()
1894 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1895 rm -f conftest.
$ac_objext
1896 if { { ac_try
="$ac_compile"
1898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_compile") 2>conftest.err
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_fc_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest.$ac_objext; then :
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1925 } # ac_fn_fc_try_compile
1927 # ac_fn_fc_try_link LINENO
1928 # ------------------------
1929 # Try to link conftest.$ac_ext, and return whether this succeeded.
1930 ac_fn_fc_try_link ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 rm -f conftest.$ac_objext conftest$ac_exeext
1934 if { { ac_try="$ac_link"
1936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1937 *) ac_try_echo
=$ac_try;;
1939 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_link") 2>conftest.err
1943 if test -s conftest.err
; then
1944 grep -v '^ *+' conftest.err
>conftest.er1
1945 cat conftest.er1
>&5
1946 mv -f conftest.er1 conftest.err
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && {
1950 test -z "$ac_fc_werror_flag" ||
1951 test ! -s conftest.err
1952 } && test -s conftest
$ac_exeext && {
1953 test "$cross_compiling" = yes ||
1954 test -x conftest
$ac_exeext
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.
$ac_ext >&5
1963 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1964 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1965 # interfere with the next link command; also delete a directory that is
1966 # left behind by Apple's compiler. We do this before executing the actions.
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status
$ac_retval
1971 } # ac_fn_fc_try_link
1973 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1974 # -------------------------------------------------------
1975 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1976 # the include files in INCLUDES and setting the cache variable VAR
1978 ac_fn_c_check_header_mongrel
()
1980 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1981 if eval \
${$3+:} false
; then :
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \
${$3+:} false
; then :
1985 $as_echo_n "(cached) " >&6
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1991 # Is the header compilable?
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1993 $as_echo_n "checking $2 usability... " >&6; }
1994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1999 if ac_fn_c_try_compile
"$LINENO"; then :
2000 ac_header_compiler
=yes
2002 ac_header_compiler
=no
2004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2006 $as_echo "$ac_header_compiler" >&6; }
2008 # Is the header present?
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2010 $as_echo_n "checking $2 presence... " >&6; }
2011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2015 if ac_fn_c_try_cpp
"$LINENO"; then :
2016 ac_header_preproc
=yes
2018 ac_header_preproc
=no
2020 rm -f conftest.err conftest.i conftest.
$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2022 $as_echo "$ac_header_preproc" >&6; }
2024 # So? What about this header?
2025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2028 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2030 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2034 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2036 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2038 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2040 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \
${$3+:} false
; then :
2048 $as_echo_n "(cached) " >&6
2050 eval "$3=\$ac_header_compiler"
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 } # ac_fn_c_check_header_mongrel
2060 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2061 # -------------------------------------------
2062 # Tests whether TYPE exists after having included INCLUDES, setting cache
2063 # variable VAR accordingly.
2064 ac_fn_c_check_type
()
2066 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if eval \
${$3+:} false
; then :
2070 $as_echo_n "(cached) " >&6
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2098 if ac_fn_c_try_compile
"$LINENO"; then :
2103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112 } # ac_fn_c_check_type
2114 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2115 # --------------------------------------------
2116 # Tries to find the compile-time value of EXPR in a program that includes
2117 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2119 ac_fn_c_compute_int
()
2121 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2122 if test "$cross_compiling" = yes; then
2123 # Depending upon the size, compute the lo and hi bounds.
2124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2130 static int test_array [1 - 2 * !(($2) >= 0)];
2132 return test_array [0];
2138 if ac_fn_c_try_compile
"$LINENO"; then :
2141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 return test_array [0];
2155 if ac_fn_c_try_compile
"$LINENO"; then :
2156 ac_hi
=$ac_mid; break
2158 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2159 if test $ac_lo -le $ac_mid; then
2163 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) < 0)];
2176 return test_array [0];
2182 if ac_fn_c_try_compile
"$LINENO"; then :
2185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2193 return test_array [0];
2199 if ac_fn_c_try_compile
"$LINENO"; then :
2200 ac_lo
=$ac_mid; break
2202 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2203 if test $ac_mid -le $ac_hi; then
2207 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2217 # Binary search between lo and hi bounds.
2218 while test "x$ac_lo" != "x$ac_hi"; do
2219 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2226 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228 return test_array [0];
2234 if ac_fn_c_try_compile
"$LINENO"; then :
2237 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2242 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2249 static long int longval () { return $2; }
2250 static unsigned long int ulongval () { return $2; }
2257 FILE *f = fopen ("conftest.val", "w");
2262 long int i = longval ();
2265 fprintf (f, "%ld", i);
2269 unsigned long int i = ulongval ();
2272 fprintf (f, "%lu", i);
2274 /* Do not output a trailing newline, as this causes \r\n confusion
2275 on some platforms. */
2276 return ferror (f) || fclose (f) != 0;
2282 if ac_fn_c_try_run
"$LINENO"; then :
2283 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2287 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2288 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2292 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293 as_fn_set_status
$ac_retval
2295 } # ac_fn_c_compute_int
2296 cat >config.log
<<_ACEOF
2297 This file contains any messages produced by compilers while
2298 running configure, to aid debugging if configure makes a mistake.
2300 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2301 generated by GNU Autoconf 2.69. Invocation command line was
2313 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2314 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2315 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2316 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2317 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2319 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2320 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2322 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2323 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2324 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2325 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2326 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2327 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2328 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2336 test -z "$as_dir" && as_dir
=.
2337 $as_echo "PATH: $as_dir"
2353 # Keep a trace of the command line.
2354 # Strip out --no-create and --no-recursion so they do not pile up.
2355 # Strip out --silent because we don't want to record it for future runs.
2356 # Also quote any args containing shell meta-characters.
2357 # Make two passes to allow for proper duplicate-argument suppression.
2361 ac_must_keep_next
=false
2367 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2369 |
-silent |
--silent |
--silen |
--sile |
--sil)
2372 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2375 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2377 as_fn_append ac_configure_args1
" '$ac_arg'"
2378 if test $ac_must_keep_next = true
; then
2379 ac_must_keep_next
=false
# Got value, back to normal.
2382 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2383 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2384 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2385 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2386 case "$ac_configure_args0 " in
2387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2390 -* ) ac_must_keep_next
=true
;;
2393 as_fn_append ac_configure_args
" '$ac_arg'"
2398 { ac_configure_args0
=; unset ac_configure_args0
;}
2399 { ac_configure_args1
=; unset ac_configure_args1
;}
2401 # When interrupted or exit'd, cleanup temporary files, and complete
2402 # config.log. We remove comments because anyway the quotes in there
2403 # would cause problems or look ugly.
2404 # WARNING: Use '\'' to represent an apostrophe within the trap.
2405 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2406 trap 'exit_status=$?
2407 # Save into config.log some information that might help in debugging.
2411 $as_echo "## ---------------- ##
2412 ## Cache variables. ##
2413 ## ---------------- ##"
2415 # The following way of writing the cache mishandles newlines in values,
2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418 eval ac_val=\$$ac_var
2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2426 _ | IFS | as_nl) ;; #(
2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428 *) { eval $ac_var=; unset $ac_var;} ;;
2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434 *${as_nl}ac_space=\ *)
2436 "s/'\''/'\''\\\\'\'''\''/g;
2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2447 $as_echo "## ----------------- ##
2448 ## Output variables. ##
2449 ## ----------------- ##"
2451 for ac_var in $ac_subst_vars
2453 eval ac_val=\$$ac_var
2455 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 $as_echo "$ac_var='\''$ac_val'\''"
2461 if test -n "$ac_subst_files"; then
2462 $as_echo "## ------------------- ##
2463 ## File substitutions. ##
2464 ## ------------------- ##"
2466 for ac_var
in $ac_subst_files
2468 eval ac_val
=\$
$ac_var
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2472 $as_echo "$ac_var='\''$ac_val'\''"
2477 if test -s confdefs.h; then
2478 $as_echo "## ----------- ##
2485 test "$ac_signal" != 0 &&
2486 $as_echo "$as_me: caught signal $ac_signal"
2487 $as_echo "$as_me: exit $exit_status"
2489 rm -f core *.core core.conftest.* &&
2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2493 for ac_signal
in 1 2 13 15; do
2494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2499 rm -f -r conftest
* confdefs.h
2501 $as_echo "/* confdefs.h */" > confdefs.h
2503 # Predefined preprocessor variables.
2505 cat >>confdefs.h
<<_ACEOF
2506 #define PACKAGE_NAME "$PACKAGE_NAME"
2509 cat >>confdefs.h
<<_ACEOF
2510 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2513 cat >>confdefs.h
<<_ACEOF
2514 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2517 cat >>confdefs.h
<<_ACEOF
2518 #define PACKAGE_STRING "$PACKAGE_STRING"
2521 cat >>confdefs.h
<<_ACEOF
2522 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2525 cat >>confdefs.h
<<_ACEOF
2526 #define PACKAGE_URL "$PACKAGE_URL"
2530 # Let the site file select an alternate cache file if it wants to.
2531 # Prefer an explicitly selected file to automatically selected ones.
2534 if test -n "$CONFIG_SITE"; then
2535 # We do not want a PATH search for config.site.
2536 case $CONFIG_SITE in #((
2537 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2538 */*) ac_site_file1
=$CONFIG_SITE;;
2539 *) ac_site_file1
=.
/$CONFIG_SITE;;
2541 elif test "x$prefix" != xNONE
; then
2542 ac_site_file1
=$prefix/share
/config.site
2543 ac_site_file2
=$prefix/etc
/config.site
2545 ac_site_file1
=$ac_default_prefix/share
/config.site
2546 ac_site_file2
=$ac_default_prefix/etc
/config.site
2548 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2550 test "x$ac_site_file" = xNONE
&& continue
2551 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2554 sed 's/^/| /' "$ac_site_file" >&5
2556 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 as_fn_error $?
"failed to load site script $ac_site_file
2559 See \`config.log' for more details" "$LINENO" 5; }
2563 if test -r "$cache_file"; then
2564 # Some versions of bash will fail to source /dev/null (special files
2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2566 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568 $as_echo "$as_me: loading cache $cache_file" >&6;}
2570 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2571 *) .
"./$cache_file";;
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576 $as_echo "$as_me: creating cache $cache_file" >&6;}
2580 as_fn_append ac_header_list
" unistd.h"
2581 as_fn_append ac_func_list
" secure_getenv"
2582 as_fn_append ac_func_list
" __secure_getenv"
2583 as_fn_append ac_func_list
" getuid"
2584 as_fn_append ac_func_list
" geteuid"
2585 as_fn_append ac_func_list
" getgid"
2586 as_fn_append ac_func_list
" getegid"
2587 # Check that the precious variables saved in the cache have kept the same
2589 ac_cache_corrupted
=false
2590 for ac_var
in $ac_precious_vars; do
2591 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2592 eval ac_new_set
=\
$ac_env_${ac_var}_set
2593 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2594 eval ac_new_val
=\
$ac_env_${ac_var}_value
2595 case $ac_old_set,$ac_new_set in
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2598 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2599 ac_cache_corrupted
=: ;;
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2603 ac_cache_corrupted
=: ;;
2606 if test "x$ac_old_val" != "x$ac_new_val"; then
2607 # differences in whitespace do not lead to failure.
2608 ac_old_val_w
=`echo x $ac_old_val`
2609 ac_new_val_w
=`echo x $ac_new_val`
2610 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2612 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2613 ac_cache_corrupted
=:
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2616 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2617 eval $ac_var=\
$ac_old_val
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2620 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2622 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2625 # Pass precious variables to config.status.
2626 if test "$ac_new_set" = set; then
2628 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2629 *) ac_arg
=$ac_var=$ac_new_val ;;
2631 case " $ac_configure_args " in
2632 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2633 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2637 if $ac_cache_corrupted; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2641 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2642 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2644 ## -------------------- ##
2645 ## Main body of script. ##
2646 ## -------------------- ##
2649 ac_cpp
='$CPP $CPPFLAGS'
2650 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2658 ac_config_headers
="$ac_config_headers config.h"
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2666 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2667 # Check whether --enable-version-specific-runtime-libs was given.
2668 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2669 enableval
=$enable_version_specific_runtime_libs;
2670 case "$enableval" in
2672 *) as_fn_error $?
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2676 enable_version_specific_runtime_libs
=no
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2681 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2683 # We would like our source tree to be readonly. However when releases or
2684 # pre-releases are generated, the flex/bison generated files as well as the
2685 # various formats of manuals need to be included along with the rest of the
2686 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2689 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2690 # Check whether --enable-generated-files-in-srcdir was given.
2691 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2692 enableval
=$enable_generated_files_in_srcdir;
2693 case "$enableval" in
2695 *) as_fn_error $?
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2699 enable_generated_files_in_srcdir
=no
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2704 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2705 if test "$enable_generated_files_in_srcdir" = yes; then
2718 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2720 # You will slowly go insane if you do not grok the following fact: when
2721 # building this library, the top-level /target/ becomes the library's /host/.
2723 # configure then causes --target to default to --host, exactly like any
2724 # other package using autoconf. Therefore, 'target' and 'host' will
2725 # always be the same. This makes sense both for native and cross compilers
2726 # just think about it for a little while. :-)
2728 # Also, if this library is being configured as part of a cross compiler, the
2729 # top-level configure script will pass the "real" host as $with_cross_host.
2731 # Do not delete or change the following two lines. For why, see
2732 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2734 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2735 if test -f "$ac_dir/install-sh"; then
2737 ac_install_sh
="$ac_aux_dir/install-sh -c"
2739 elif test -f "$ac_dir/install.sh"; then
2741 ac_install_sh
="$ac_aux_dir/install.sh -c"
2743 elif test -f "$ac_dir/shtool"; then
2745 ac_install_sh
="$ac_aux_dir/shtool install -c"
2749 if test -z "$ac_aux_dir"; then
2750 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2753 # These three variables are undocumented and unsupported,
2754 # and are intended to be withdrawn in a future Autoconf release.
2755 # They can cause serious problems if a builder's source tree is in a directory
2756 # whose full name contains unusual characters.
2757 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2758 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2759 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2762 # Make sure we can run config.sub.
2763 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2764 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2767 $as_echo_n "checking build system type... " >&6; }
2768 if ${ac_cv_build+:} false
; then :
2769 $as_echo_n "(cached) " >&6
2771 ac_build_alias
=$build_alias
2772 test "x$ac_build_alias" = x
&&
2773 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2774 test "x$ac_build_alias" = x
&&
2775 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2776 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2777 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2781 $as_echo "$ac_cv_build" >&6; }
2782 case $ac_cv_build in
2784 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2787 ac_save_IFS
=$IFS; IFS
='-'
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2797 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2801 $as_echo_n "checking host system type... " >&6; }
2802 if ${ac_cv_host+:} false
; then :
2803 $as_echo_n "(cached) " >&6
2805 if test "x$host_alias" = x
; then
2806 ac_cv_host
=$ac_cv_build
2808 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2809 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2814 $as_echo "$ac_cv_host" >&6; }
2817 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2820 ac_save_IFS
=$IFS; IFS
='-'
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2830 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2834 $as_echo_n "checking target system type... " >&6; }
2835 if ${ac_cv_target+:} false
; then :
2836 $as_echo_n "(cached) " >&6
2838 if test "x$target_alias" = x
; then
2839 ac_cv_target
=$ac_cv_host
2841 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2842 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2847 $as_echo "$ac_cv_target" >&6; }
2848 case $ac_cv_target in
2850 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2852 target
=$ac_cv_target
2853 ac_save_IFS
=$IFS; IFS
='-'
2859 # Remember, the first character of IFS is used to create $*,
2860 # except with old shells:
2863 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2866 # The aliases save the names the user supplied, while $host etc.
2867 # will get canonicalized.
2868 test -n "$target_alias" &&
2869 test "$program_prefix$program_suffix$program_transform_name" = \
2871 program_prefix
=${target_alias}-
2873 target_alias
=${target_alias-$host_alias}
2875 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2876 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2877 # 1.9.0: minimum required version
2878 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2879 # of other PACKAGE_* variables will, however, and there's nothing
2880 # we can do about that; they come from AC_INIT).
2881 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2882 # file in the top srcdir, etc, etc), so stop complaining.
2883 # no-dist: we don't want 'dist' and related rules.
2884 # -Wall: turns on all automake warnings...
2885 # -Wno-portability: ...except this one, since GNU make is required.
2886 # -Wno-override: ... and this one, since we do want this in testsuite.
2887 am__api_version
='1.15'
2889 # Find a good install program. We prefer a C program (faster),
2890 # so one script is as good as another. But avoid the broken or
2891 # incompatible versions:
2892 # SysV /etc/install, /usr/sbin/install
2893 # SunOS /usr/etc/install
2894 # IRIX /sbin/install
2896 # AmigaOS /C/install, which installs bootblocks on floppy discs
2897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2900 # OS/2's system install, which has a completely different semantic
2901 # ./install, which can be erroneously created by make from ./install.sh.
2902 # Reject install programs that cannot install multiple files.
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2904 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2905 if test -z "$INSTALL"; then
2906 if ${ac_cv_path_install+:} false
; then :
2907 $as_echo_n "(cached) " >&6
2909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir
=.
2914 # Account for people who put trailing slashes in PATH elements.
2915 case $as_dir/ in #((
2916 .
/ | .
// |
/[cC
]/* | \
2917 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2918 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2921 # OSF1 and SCO ODT 3.0 have their own names for install.
2922 # Don't use installbsd from OSF since it installs stuff as root
2924 for ac_prog
in ginstall scoinst
install; do
2925 for ac_exec_ext
in '' $ac_executable_extensions; do
2926 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2927 if test $ac_prog = install &&
2928 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2929 # AIX install. It has an incompatible calling convention.
2931 elif test $ac_prog = install &&
2932 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2933 # program-specific install script used by HP pwplus--don't use.
2936 rm -rf conftest.one conftest.two conftest.dir
2937 echo one
> conftest.one
2938 echo two
> conftest.two
2940 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2941 test -s conftest.one
&& test -s conftest.two
&&
2942 test -s conftest.dir
/conftest.one
&&
2943 test -s conftest.dir
/conftest.two
2945 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2958 rm -rf conftest.one conftest.two conftest.dir
2961 if test "${ac_cv_path_install+set}" = set; then
2962 INSTALL
=$ac_cv_path_install
2964 # As a last resort, use the slow shell script. Don't cache a
2965 # value for INSTALL within a source directory, because that will
2966 # break other packages using the cache if that directory is
2967 # removed, or if the value is a relative name.
2968 INSTALL
=$ac_install_sh
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2972 $as_echo "$INSTALL" >&6; }
2974 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2975 # It thinks the first close brace ends the variable substitution.
2976 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2978 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2980 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2983 $as_echo_n "checking whether build environment is sane... " >&6; }
2984 # Reject unsafe characters in $srcdir or the absolute working directory
2985 # name. Accept space and tab only in the latter.
2989 *[\\\"\
#\$\&\'\`$am_lf]*)
2990 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2993 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2994 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2997 # Do 'set' in a subshell so we don't clobber the current shell's
2998 # arguments. Must try -L first in case configure is actually a
2999 # symlink; some systems play weird games with the mod time of symlinks
3000 # (eg FreeBSD returns the mod time of the symlink's containing
3004 for am_try
in 1 2; do
3005 echo "timestamp, slept: $am_has_slept" > conftest.
file
3006 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3007 if test "$*" = "X"; then
3009 set X
`ls -t "$srcdir/configure" conftest.file`
3011 if test "$*" != "X $srcdir/configure conftest.file" \
3012 && test "$*" != "X conftest.file $srcdir/configure"; then
3014 # If neither matched, then we have a broken ls. This can happen
3015 # if, for instance, CONFIG_SHELL is bash and it inherits a
3016 # broken ls alias from the environment. This has actually
3017 # happened. Such a system could not be considered "sane".
3018 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3019 alias in your environment" "$LINENO" 5
3021 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3028 test "$2" = conftest.
file
3034 as_fn_error $?
"newly created file is older than distributed files!
3035 Check your system clock" "$LINENO" 5
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3038 $as_echo "yes" >&6; }
3039 # If we didn't sleep, we still need to ensure time stamps of config.status and
3040 # generated files are strictly newer.
3042 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3049 test "$program_prefix" != NONE
&&
3050 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3051 # Use a double $ so make ignores it.
3052 test "$program_suffix" != NONE
&&
3053 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3054 # Double any \ or $.
3055 # By default was `s,x,x', remove it if useless.
3056 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3057 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3059 # Expand $ac_aux_dir to an absolute path.
3060 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3062 if test x
"${MISSING+set}" != xset
; then
3065 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3067 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3070 # Use eval to expand $SHELL
3071 if eval "$MISSING --is-lightweight"; then
3072 am_missing_run
="$MISSING "
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3076 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3079 if test x
"${install_sh+set}" != xset
; then
3082 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3084 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3088 # Installed binaries are usually stripped using 'strip' when the user
3089 # run "make install-strip". However 'strip' might not be the right
3090 # tool to use in cross-compilation environments, therefore Automake
3091 # will honor the 'STRIP' environment variable to overrule this program.
3092 if test "$cross_compiling" != no
; then
3093 if test -n "$ac_tool_prefix"; then
3094 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3095 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_STRIP+:} false
; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$STRIP"; then
3102 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir
=.
3109 for ac_exec_ext
in '' $ac_executable_extensions; do
3110 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 STRIP
=$ac_cv_prog_STRIP
3122 if test -n "$STRIP"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3124 $as_echo "$STRIP" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3132 if test -z "$ac_cv_prog_STRIP"; then
3134 # Extract the first word of "strip", so it can be a program name with args.
3135 set dummy strip
; ac_word
=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$ac_ct_STRIP"; then
3142 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir
=.
3149 for ac_exec_ext
in '' $ac_executable_extensions; do
3150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3151 ac_cv_prog_ac_ct_STRIP
="strip"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3162 if test -n "$ac_ct_STRIP"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3164 $as_echo "$ac_ct_STRIP" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3170 if test "x$ac_ct_STRIP" = x
; then
3173 case $cross_compiling:$ac_tool_warned in
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned
=yes ;;
3182 STRIP
="$ac_cv_prog_STRIP"
3186 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3189 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3190 if test -z "$MKDIR_P"; then
3191 if ${ac_cv_path_mkdir+:} false
; then :
3192 $as_echo_n "(cached) " >&6
3194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3195 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3198 test -z "$as_dir" && as_dir
=.
3199 for ac_prog
in mkdir gmkdir
; do
3200 for ac_exec_ext
in '' $ac_executable_extensions; do
3201 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3202 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3203 'mkdir (GNU coreutils) '* | \
3204 'mkdir (coreutils) '* | \
3205 'mkdir (fileutils) '4.1*)
3206 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3216 test -d .
/--version && rmdir .
/--version
3217 if test "${ac_cv_path_mkdir+set}" = set; then
3218 MKDIR_P
="$ac_cv_path_mkdir -p"
3220 # As a last resort, use the slow shell script. Don't cache a
3221 # value for MKDIR_P within a source directory, because that will
3222 # break other packages using the cache if that directory is
3223 # removed, or if the value is a relative name.
3224 MKDIR_P
="$ac_install_sh -d"
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3228 $as_echo "$MKDIR_P" >&6; }
3230 for ac_prog
in gawk mawk nawk
awk
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy
$ac_prog; ac_word
=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_AWK+:} false
; then :
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$AWK"; then
3240 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir
=.
3247 for ac_exec_ext
in '' $ac_executable_extensions; do
3248 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_AWK
="$ac_prog"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 if test -n "$AWK"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3262 $as_echo "$AWK" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3269 test -n "$AWK" && break
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3273 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3275 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3276 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3277 $as_echo_n "(cached) " >&6
3279 cat >conftest.
make <<\_ACEOF
3282 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3284 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3285 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3287 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3289 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3293 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 SET_MAKE
="MAKE=${MAKE-make}"
3303 rm -rf .tst
2>/dev
/null
3304 mkdir .tst
2>/dev
/null
3305 if test -d .tst
; then
3310 rmdir .tst
2>/dev
/null
3312 # Check whether --enable-silent-rules was given.
3313 if test "${enable_silent_rules+set}" = set; then :
3314 enableval
=$enable_silent_rules;
3317 case $enable_silent_rules in # (((
3318 yes) AM_DEFAULT_VERBOSITY
=0;;
3319 no
) AM_DEFAULT_VERBOSITY
=1;;
3320 *) AM_DEFAULT_VERBOSITY
=1;;
3322 am_make
=${MAKE-make}
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3324 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3325 if ${am_cv_make_support_nested_variables+:} false
; then :
3326 $as_echo_n "(cached) " >&6
3328 if $as_echo 'TRUE=$(BAR$(V))
3334 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3335 am_cv_make_support_nested_variables
=yes
3337 am_cv_make_support_nested_variables
=no
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3341 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3342 if test $am_cv_make_support_nested_variables = yes; then
3344 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3346 AM_V
=$AM_DEFAULT_VERBOSITY
3347 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3351 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3352 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3353 # is not polluted with repeated "-I."
3354 am__isrc
=' -I$(srcdir)'
3355 # test to see if srcdir already configured
3356 if test -f $srcdir/config.status
; then
3357 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3361 # test whether we have cygpath
3362 if test -z "$CYGPATH_W"; then
3363 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3364 CYGPATH_W
='cygpath -w'
3371 # Define the identity of the package.
3376 cat >>confdefs.h
<<_ACEOF
3377 #define PACKAGE "$PACKAGE"
3381 cat >>confdefs.h
<<_ACEOF
3382 #define VERSION "$VERSION"
3385 # Some tools Automake needs.
3387 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3390 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3393 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3396 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3399 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3401 # For better backward compatibility. To be removed once Automake 1.9.x
3402 # dies out for good. For more background, see:
3403 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3404 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3405 mkdir_p
='$(MKDIR_P)'
3407 # We need awk for the "check" target (and possibly the TAP driver). The
3408 # system "awk" is bad on some platforms.
3409 # Always define AMTAR for backward compatibility. Yes, it's still used
3410 # in the wild :-( We should find a proper way to deprecate it ...
3414 # We'll loop over all known methods to create a tar archive until one works.
3415 _am_tools
='gnutar pax cpio none'
3417 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3424 # POSIX will say in a future version that running "rm -f" with no argument
3425 # is OK; and we want to be able to make that assumption in our Makefile
3426 # recipes. So use an aggressive probe to check that the usage we want is
3427 # actually supported "in the wild" to an acceptable degree.
3428 # See automake bug#10828.
3429 # To make any issue more visible, cause the running configure to be aborted
3430 # by default if the 'rm' program in use doesn't match our expectations; the
3431 # user can still override this though.
3432 if rm -f && rm -fr && rm -rf; then : OK
; else
3436 Your 'rm' program seems unable to run without file operands specified
3437 on the command line, even when the '-f' option is present. This is contrary
3438 to the behaviour of most rm programs out there, and not conforming with
3439 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3441 Please tell bug-automake@gnu.org about your system, including the value
3442 of your $PATH and any error possibly output before this message. This
3443 can help us improve future automake versions.
3446 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3447 echo 'Configuration will proceed anyway, since you have set the' >&2
3448 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3452 Aborting the configuration process, to ensure you take notice of the issue.
3454 You can download and install GNU coreutils to get an 'rm' implementation
3455 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3457 If you want to complete the configuration process using your problematic
3458 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3459 to "yes", and re-run configure.
3462 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3466 # Default to --enable-multilib
3467 # Check whether --enable-multilib was given.
3468 if test "${enable_multilib+set}" = set; then :
3469 enableval
=$enable_multilib; case "$enableval" in
3470 yes) multilib
=yes ;;
3472 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3479 # We may get other options which we leave undocumented:
3480 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3481 # See config-ml.in if you want the gory details.
3483 if test "$srcdir" = "."; then
3484 if test "$with_target_subdir" != "."; then
3485 multi_basedir
="$srcdir/$with_multisrctop../.."
3487 multi_basedir
="$srcdir/$with_multisrctop.."
3490 multi_basedir
="$srcdir/.."
3494 # Even if the default multilib is not a cross compilation,
3495 # it may be that some of the other multilibs are.
3496 if test $cross_compiling = no
&& test $multilib = yes \
3497 && test "x${with_multisubdir}" != x
; then
3498 cross_compiling
=maybe
3501 ac_config_commands
="$ac_config_commands default-1"
3504 # Calculate toolexeclibdir
3505 # Also toolexecdir, though it's only used in toolexeclibdir
3506 case ${enable_version_specific_runtime_libs} in
3508 # Need the gcc compiler version to know where to install libraries
3509 # and header files if --enable-version-specific-runtime-libs option
3511 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3512 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3515 if test -n "$with_cross_host" &&
3516 test x
"$with_cross_host" != x
"no"; then
3517 # Install a library built with a cross compiler in tooldir, not libdir.
3518 toolexecdir
='$(exec_prefix)/$(target_alias)'
3519 toolexeclibdir
='$(toolexecdir)/lib'
3521 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3522 toolexeclibdir
='$(libdir)'
3524 multi_os_directory
=`$CC -print-multi-os-directory`
3525 case $multi_os_directory in
3526 .
) ;; # Avoid trailing /.
3527 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3534 # Check the compiler.
3535 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3536 # We must force CC to /not/ be precious variables; otherwise
3537 # the wrong, non-multilib-adjusted value will be used in multilibs.
3538 # As a side effect, we have to subst CFLAGS ourselves.
3543 ac_cpp
='$CPP $CPPFLAGS'
3544 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3547 if test -n "$ac_tool_prefix"; then
3548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3549 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_CC+:} false
; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC
="$CC" # Let the user override the test.
3558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir
=.
3563 for ac_exec_ext
in '' $ac_executable_extensions; do
3564 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 if test -n "$CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3586 if test -z "$ac_cv_prog_CC"; then
3588 # Extract the first word of "gcc", so it can be a program name with args.
3589 set dummy gcc
; ac_word
=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir
=.
3603 for ac_exec_ext
in '' $ac_executable_extensions; do
3604 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_ac_ct_CC
="gcc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618 $as_echo "$ac_ct_CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3624 if test "x$ac_ct_CC" = x
; then
3627 case $cross_compiling:$ac_tool_warned in
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631 ac_tool_warned
=yes ;;
3639 if test -z "$CC"; then
3640 if test -n "$ac_tool_prefix"; then
3641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3642 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CC+:} false
; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC
="$CC" # Let the user override the test.
3651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir
=.
3656 for ac_exec_ext
in '' $ac_executable_extensions; do
3657 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3680 if test -z "$CC"; then
3681 # Extract the first word of "cc", so it can be a program name with args.
3682 set dummy cc
; ac_word
=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if ${ac_cv_prog_CC+:} false
; then :
3686 $as_echo_n "(cached) " >&6
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC
="$CC" # Let the user override the test.
3692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir
=.
3697 for ac_exec_ext
in '' $ac_executable_extensions; do
3698 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3700 ac_prog_rejected
=yes
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 if test $ac_prog_rejected = yes; then
3712 # We found a bogon in the path, so make sure we never use it.
3713 set dummy
$ac_cv_prog_CC
3715 if test $# != 0; then
3716 # We chose a different compiler from the bogus one.
3717 # However, it has the same basename, so the bogon will be chosen
3718 # first if we set CC to just the basename; use the full file name.
3720 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3736 if test -z "$CC"; then
3737 if test -n "$ac_tool_prefix"; then
3738 for ac_prog
in cl.exe
3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3741 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false
; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC
="$CC" # Let the user override the test.
3750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir
=.
3755 for ac_exec_ext
in '' $ac_executable_extensions; do
3756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3777 test -n "$CC" && break
3780 if test -z "$CC"; then
3782 for ac_prog
in cl.exe
3784 # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy
$ac_prog; ac_word
=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3789 $as_echo_n "(cached) " >&6
3791 if test -n "$ac_ct_CC"; then
3792 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir
=.
3799 for ac_exec_ext
in '' $ac_executable_extensions; do
3800 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_ac_ct_CC
="$ac_prog"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3812 if test -n "$ac_ct_CC"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3814 $as_echo "$ac_ct_CC" >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3821 test -n "$ac_ct_CC" && break
3824 if test "x$ac_ct_CC" = x
; then
3827 case $cross_compiling:$ac_tool_warned in
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned
=yes ;;
3840 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $?
"no acceptable C compiler found in \$PATH
3843 See \`config.log' for more details" "$LINENO" 5; }
3845 # Provide some information about the compiler.
3846 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3849 for ac_option
in --version -v -V -qversion; do
3850 { { ac_try
="$ac_compiler $ac_option >&5"
3852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3859 if test -s conftest.err; then
3861 ... rest of stderr output deleted ...
3862 10q' conftest.err >conftest.er1
3863 cat conftest.er1 >&5
3865 rm -f conftest.er1 conftest.err
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3881 ac_clean_files_save=$ac_clean_files
3882 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3883 # Try to create an executable without -o first, disregard a.out.
3884 # It will help us diagnose broken compilers, and finding out an intuition
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3887 $as_echo_n "checking whether the C compiler works... " >&6; }
3888 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3890 # The possible output files:
3891 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3894 for ac_file in $ac_files
3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3903 if { { ac_try="$ac_link_default"
3905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3906 *) ac_try_echo
=$ac_try;;
3908 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_link_default") 2>&5
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3915 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3916 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3917 # so that the user can short-circuit this test for compilers unknown to
3919 for ac_file
in $ac_files ''
3921 test -f "$ac_file" ||
continue
3923 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3926 # We found the default executable, but exeext='' is most
3930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3932 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934 # We set ac_cv_exeext here because the later test for it is not
3935 # safe: cross compilers may not add the suffix if given an `-o'
3936 # argument, so we may need to know it at that point already.
3937 # Even if this section looks crufty: it has the advantage of
3944 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3949 if test -z "$ac_file"; then :
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.
$ac_ext >&5
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error
77 "C compiler cannot create executables
3958 See \`config.log' for more details" "$LINENO" 5; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3964 $as_echo_n "checking for C compiler default output file name... " >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3966 $as_echo "$ac_file" >&6; }
3967 ac_exeext
=$ac_cv_exeext
3969 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3970 ac_clean_files
=$ac_clean_files_save
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3972 $as_echo_n "checking for suffix of executables... " >&6; }
3973 if { { ac_try
="$ac_link"
3975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link") 2>&5
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; then :
3984 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3985 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3986 # work properly (i.e., refer to `conftest.exe'), while it won't with
3988 for ac_file
in conftest.exe conftest conftest.
*; do
3989 test -f "$ac_file" ||
continue
3991 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3992 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4001 See \`config.log' for more details" "$LINENO" 5; }
4003 rm -f conftest conftest
$ac_cv_exeext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4005 $as_echo "$ac_cv_exeext" >&6; }
4007 rm -f conftest.
$ac_ext
4008 EXEEXT
=$ac_cv_exeext
4010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4016 FILE *f = fopen ("conftest.out", "w");
4017 return ferror (f) || fclose (f) != 0;
4023 ac_clean_files
="$ac_clean_files conftest.out"
4024 # Check that the compiler produces executables we can run. If not, either
4025 # the compiler is broken, or we cross compile.
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4027 $as_echo_n "checking whether we are cross compiling... " >&6; }
4028 if test "$cross_compiling" != yes; then
4029 { { ac_try
="$ac_link"
4031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_link") 2>&5
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }
4040 if { ac_try='./conftest$ac_cv_exeext'
4041 { { case "(($ac_try" in
4042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4043 *) ac_try_echo
=$ac_try;;
4045 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_try") 2>&5
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; }; then
4053 if test "$cross_compiling" = maybe
; then
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $?
"cannot run C compiled programs.
4059 If you meant to cross compile, use \`--host'.
4060 See \`config.log' for more details" "$LINENO" 5; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4065 $as_echo "$cross_compiling" >&6; }
4067 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4068 ac_clean_files
=$ac_clean_files_save
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4070 $as_echo_n "checking for suffix of object files... " >&6; }
4071 if ${ac_cv_objext+:} false
; then :
4072 $as_echo_n "(cached) " >&6
4074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 rm -f conftest.o conftest.obj
4086 if { { ac_try
="$ac_compile"
4088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092 $as_echo "$ac_try_echo"; } >&5
4093 (eval "$ac_compile") 2>&5
4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096 test $ac_status = 0; }; then :
4097 for ac_file in conftest.o conftest.obj conftest.*; do
4098 test -f "$ac_file" || continue;
4100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4101 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4106 $as_echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4112 See \
`config.log' for more details" "$LINENO" 5; }
4114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4117 $as_echo "$ac_cv_objext" >&6; }
4118 OBJEXT=$ac_cv_objext
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4121 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4122 if ${ac_cv_c_compiler_gnu+:} false; then :
4123 $as_echo_n "(cached) " >&6
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4139 if ac_fn_c_try_compile "$LINENO"; then :
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4149 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4150 if test $ac_compiler_gnu = yes; then
4155 ac_test_CFLAGS=${CFLAGS+set}
4156 ac_save_CFLAGS=$CFLAGS
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4158 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4159 if ${ac_cv_prog_cc_g+:} false; then :
4160 $as_echo_n "(cached) " >&6
4162 ac_save_c_werror_flag=$ac_c_werror_flag
4163 ac_c_werror_flag=yes
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4177 if ac_fn_c_try_compile "$LINENO"; then :
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4192 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_c_werror_flag=$ac_save_c_werror_flag
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4208 if ac_fn_c_try_compile "$LINENO"; then :
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_c_werror_flag=$ac_save_c_werror_flag
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4219 $as_echo "$ac_cv_prog_cc_g" >&6; }
4220 if test "$ac_test_CFLAGS" = set; then
4221 CFLAGS=$ac_save_CFLAGS
4222 elif test $ac_cv_prog_cc_g = yes; then
4223 if test "$GCC" = yes; then
4229 if test "$GCC" = yes; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4236 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4237 if ${ac_cv_prog_cc_c89+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 ac_cv_prog_cc_c89=no
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4248 struct buf { int x; };
4249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4250 static char *e (p, i)
4256 static char *f (char * (*g) (char **, int), char **p, ...)
4261 s = g (p, va_arg (v,int));
4266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4267 function prototypes and stuff, but not '\xHH' hex character constants.
4268 These don't provoke an error unfortunately, instead are silently treated
4269 as 'x'. The following induces an error, until -std is added to get
4270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4271 array size at least. It's necessary to write '\x00'==0 to get something
4272 that's true only with -std. */
4273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4276 inside strings and character constants. */
4278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4297 CC="$ac_save_CC $ac_arg"
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_prog_cc_c89=$ac_arg
4301 rm -f core conftest.err conftest.$ac_objext
4302 test "x$ac_cv_prog_cc_c89" != "xno" && break
4304 rm -f conftest.$ac_ext
4309 case "x$ac_cv_prog_cc_c89" in
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4312 $as_echo "none needed" >&6; } ;;
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 $as_echo "unsupported" >&6; } ;;
4317 CC="$CC $ac_cv_prog_cc_c89"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4321 if test "x$ac_cv_prog_cc_c89" != xno; then :
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4337 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4338 if ${am_cv_prog_cc_c_o+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4352 # Make sure it works both with $CC and with simple cc.
4353 # Following AC_PROG_CC_C_O, we do the test twice because some
4354 # compilers refuse to overwrite an existing .o file with -o,
4355 # though they will create one.
4356 am_cv_prog_cc_c_o=yes
4358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } \
4363 && test -f conftest2.$ac_objext; then
4366 am_cv_prog_cc_c_o=no
4370 rm -f core conftest*
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4374 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4375 if test "$am_cv_prog_cc_c_o" != yes; then
4376 # Losing compiler, so override with the script.
4377 # FIXME: It is wrong to rewrite CC.
4378 # But if we don't then we get into trouble of one sort or another.
4379 # A longer-term fix would be to have automake use am__CC in this case,
4380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4381 CC="$am_aux_dir/compile $CC"
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 DEPDIR="${am__leading_dot}deps"
4391 ac_config_commands="$ac_config_commands depfiles"
4394 am_make=${MAKE-make}
4395 cat > confinc << 'END'
4397 @echo this is the am__doit target
4400 # If we don't find an include directive, just comment out the code.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4406 # First try GNU make style include.
4407 echo "include confinc" > confmf
4408 # Ignore all kinds of additional output from 'make'.
4409 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4410 *the\ am__doit\ target*)
4416 # Now try BSD make style include.
4417 if test "$am__include" = "#"; then
4418 echo '.include "confinc"' > confmf
4419 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4420 *the\ am__doit\ target*)
4421 am__include=.include
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4430 $as_echo "$_am_result" >&6; }
4431 rm -f confinc confmf
4433 # Check whether --enable-dependency-tracking was given.
4434 if test "${enable_dependency_tracking+set}" = set; then :
4435 enableval=$enable_dependency_tracking;
4438 if test "x$enable_dependency_tracking" != xno; then
4439 am_depcomp="$ac_aux_dir/depcomp"
4443 if test "x$enable_dependency_tracking" != xno; then
4453 depcc="$CC" am_compiler_list=
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456 $as_echo_n "checking dependency style of $depcc... " >&6; }
4457 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461 # We make a subdir and do the tests there. Otherwise we can end up
4462 # making bogus files that we don't know about and never remove. For
4463 # instance it was reported that on HP-UX the gcc test will end up
4464 # making a dummy file named 'D' -- because '-MD' means "put the output
4468 # Copy depcomp to subdir because otherwise we won't find it if we're
4469 # using a relative directory.
4470 cp "$am_depcomp" conftest.dir
4472 # We will build objects and dependencies in a subdirectory because
4473 # it helps to detect inapplicable dependency modes. For instance
4474 # both Tru64's cc and ICC support -MD to output dependencies as a
4475 # side effect of compilation, but ICC will put the dependencies in
4476 # the current directory while Tru64 will put them in the object
4480 am_cv_CC_dependencies_compiler_type=none
4481 if test "$am_compiler_list" = ""; then
4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4485 case " $depcc " in #(
4486 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4489 for depmode in $am_compiler_list; do
4490 # Setup a source with many dependencies, because some compilers
4491 # like to wrap large dependency lists on column 80 (with \), and
4492 # we should not choose a depcomp mode which is confused by this.
4494 # We need to recreate these files for each test, as the compiler may
4495 # overwrite some of them when testing with obscure command lines.
4496 # This happens at least with the AIX C compiler.
4498 for i in 1 2 3 4 5 6; do
4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4501 # Solaris 10 /bin/sh.
4502 echo '/* dummy */' > sub/conftst$i.h
4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4506 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4507 # mode. It turns out that the SunPro C++ compiler does not properly
4508 # handle '-M -o', and we need to detect this. Also, some Intel
4509 # versions had trouble with output in subdirs.
4510 am__obj=sub/conftest.${OBJEXT-o}
4511 am__minus_obj="-o $am__obj"
4514 # This depmode causes a compiler race in universal mode.
4515 test "$am__universal" = false || continue
4518 # After this tag, mechanisms are not by side-effect, so they'll
4519 # only be used when explicitly requested.
4520 if test "x$enable_dependency_tracking" = xyes; then
4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4527 # This compiler won't grok '-c -o', but also, the minuso test has
4528 # not run yet. These depmodes are late enough in the game, and
4529 # so weak that their functioning should not be impacted.
4530 am__obj=conftest.${OBJEXT-o}
4535 if depmode=$depmode \
4536 source=sub/conftest.c object=$am__obj \
4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4539 >/dev/null 2>conftest.err &&
4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4544 # icc doesn't choke on unknown options, it will just issue warnings
4545 # or remarks (even with -Werror). So we grep stderr for any message
4546 # that says an option was ignored or not supported.
4547 # When given -MP, icc 7.0 and 7.1 complain thusly:
4548 # icc: Command line warning: ignoring option '-M'; no argument required
4549 # The diagnosis changed in icc 8.0:
4550 # icc: Command line remark: option '-MP' not supported
4551 if (grep 'ignoring option' conftest.err ||
4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4553 am_cv_CC_dependencies_compiler_type=$depmode
4562 am_cv_CC_dependencies_compiler_type=none
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4567 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4571 test "x$enable_dependency_tracking" != xno \
4572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4574 am__fastdepCC_FALSE='#'
4576 am__fastdepCC_TRUE='#'
4577 am__fastdepCC_FALSE=
4585 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4586 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4587 # in both places for now and restore CFLAGS at the end of config.
4588 save_CFLAGS="$CFLAGS"
4590 # Add -Wall -Werror if we are using GCC.
4591 if test "x$GCC" = "xyes"; then
4592 XCFLAGS="$XCFLAGS -Wall -Werror"
4595 # Find other programs we need.
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}ar; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_AR+:} false; then :
4602 $as_echo_n "(cached) " >&6
4604 if test -n "$AR"; then
4605 ac_cv_prog_AR="$AR" # Let the user override the test.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_AR="${ac_tool_prefix}ar"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 if test -n "$AR"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4627 $as_echo "$AR" >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4635 if test -z "$ac_cv_prog_AR"; then
4637 # Extract the first word of "ar", so it can be a program name with args.
4638 set dummy ar; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$ac_ct_AR"; then
4645 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_AR="ar"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4665 if test -n "$ac_ct_AR"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4667 $as_echo "$ac_ct_AR" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4673 if test "x$ac_ct_AR" = x; then
4676 case $cross_compiling:$ac_tool_warned in
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_prog_RANLIB+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 if test -n "$RANLIB"; then
4697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 RANLIB=$ac_cv_prog_RANLIB
4717 if test -n "$RANLIB"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4719 $as_echo "$RANLIB" >&6; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4727 if test -z "$ac_cv_prog_RANLIB"; then
4728 ac_ct_RANLIB=$RANLIB
4729 # Extract the first word of "ranlib", so it can be a program name with args.
4730 set dummy ranlib; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4734 $as_echo_n "(cached) " >&6
4736 if test -n "$ac_ct_RANLIB"; then
4737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4746 ac_cv_prog_ac_ct_RANLIB="ranlib"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4757 if test -n "$ac_ct_RANLIB"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4759 $as_echo "$ac_ct_RANLIB" >&6; }
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4765 if test "x$ac_ct_RANLIB" = x; then
4766 RANLIB="ranlib-not-found-in-path-error"
4768 case $cross_compiling:$ac_tool_warned in
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4772 ac_tool_warned=yes ;;
4774 RANLIB=$ac_ct_RANLIB
4777 RANLIB="$ac_cv_prog_RANLIB"
4780 # Extract the first word of "perl", so it can be a program name with args.
4781 set dummy perl; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_path_PERL+:} false; then :
4785 $as_echo_n "(cached) " >&6
4789 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4811 PERL=$ac_cv_path_PERL
4812 if test -n "$PERL"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4814 $as_echo "$PERL" >&6; }
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4822 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4824 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4825 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4826 $as_echo_n "(cached) " >&6
4828 cat >conftest.make <<\_ACEOF
4831 @echo '@@@%%%=$(MAKE)=@@@%%%'
4833 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4834 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4836 eval ac_cv_prog_make_${ac_make}_set=yes;;
4838 eval ac_cv_prog_make_${ac_make}_set=no;;
4842 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4844 $as_echo "yes" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 SET_MAKE="MAKE=${MAKE-make}"
4854 # See if makeinfo has been installed and is modern enough
4855 # that we can use it.
4857 # Extract the first word of "makeinfo", so it can be a program name with args.
4858 set dummy makeinfo; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_MAKEINFO+:} false; then :
4862 $as_echo_n "(cached) " >&6
4864 if test -n "$MAKEINFO"; then
4865 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_MAKEINFO="makeinfo"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 MAKEINFO=$ac_cv_prog_MAKEINFO
4885 if test -n "$MAKEINFO"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4887 $as_echo "$MAKEINFO" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4894 if test -n "$MAKEINFO"; then
4895 # Found it, now check the version.
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4897 $as_echo_n "checking for modern makeinfo... " >&6; }
4898 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4899 $as_echo_n "(cached) " >&6
4901 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4902 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4904 case $ac_prog_version in
4905 '') gcc_cv_prog_makeinfo_modern=no;;
4906 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4907 *) gcc_cv_prog_makeinfo_modern=no;;
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4912 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4914 gcc_cv_prog_makeinfo_modern=no
4916 if test $gcc_cv_prog_makeinfo_modern = no; then
4917 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4920 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4922 BUILD_INFO_FALSE='#'
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4934 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4939 macro_version='2.2.7a'
4940 macro_revision='1.3134'
4954 ltmain="$ac_aux_dir/ltmain.sh"
4956 # Backslashify metacharacters that are still active within
4957 # double-quoted strings.
4958 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4960 # Same as above, but do not quote variable references.
4961 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4963 # Sed substitution to delay expansion of an escaped shell variable in a
4964 # double_quote_subst'ed string.
4965 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4967 # Sed substitution to delay expansion of an escaped single quote.
4968 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4970 # Sed substitution to avoid accidental globbing in evaled expressions
4971 no_glob_subst='s/\*/\\\*/g'
4973 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4974 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4975 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4978 $as_echo_n "checking how to print
strings...
" >&6; }
4979 # Test print first, because it will be a builtin if present.
4980 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
4981 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4983 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4986 # Use this function as a fallback that always works.
4987 func_fallback_echo ()
4989 eval 'cat <<_LTECHO_EOF
4993 ECHO='func_fallback_echo'
4996 # func_echo_all arg...
4997 # Invoke $ECHO with all args, space-separated.
5004 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
5005 $as_echo "printf" >&6; } ;;
5006 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5007 $as_echo "print
-r" >&6; } ;;
5008 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5009 $as_echo "cat" >&6; } ;;
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5026 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5027 if ${ac_cv_path_SED+:} false; then :
5028 $as_echo_n "(cached
) " >&6
5030 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5031 for ac_i in 1 2 3 4 5 6 7; do
5032 ac_script="$ac_script$as_nl$ac_script"
5034 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5035 { ac_script=; unset ac_script;}
5036 if test -z "$SED"; then
5037 ac_path_SED_found=false
5038 # Loop through the user's path and test for each of PROGNAME-LIST
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_prog in sed gsed; do
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5047 as_fn_executable_p "$ac_path_SED" || continue
5048 # Check for GNU ac_path_SED and select it if it is found.
5049 # Check for GNU $ac_path_SED
5050 case `"$ac_path_SED" --version 2>&1` in
5052 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5055 $as_echo_n 0123456789 >"conftest.
in"
5058 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5059 mv "conftest.tmp
" "conftest.
in"
5060 cp "conftest.
in" "conftest.
nl"
5061 $as_echo '' >> "conftest.
nl"
5062 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5063 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5064 as_fn_arith $ac_count + 1 && ac_count=$as_val
5065 if test $ac_count -gt ${ac_path_SED_max-0}; then
5066 # Best one so far, save it but keep looking for a better one
5067 ac_cv_path_SED="$ac_path_SED"
5068 ac_path_SED_max=$ac_count
5070 # 10*(2^10) chars as input seems more than enough
5071 test $ac_count -gt 10 && break
5073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5076 $ac_path_SED_found && break 3
5081 if test -z "$ac_cv_path_SED"; then
5082 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5090 $as_echo "$ac_cv_path_SED" >&6; }
5091 SED="$ac_cv_path_SED"
5094 test -z "$SED" && SED=sed
5095 Xsed="$SED -e 1s
/^X
//"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5108 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5109 if ${ac_cv_path_GREP+:} false; then :
5110 $as_echo_n "(cached
) " >&6
5112 if test -z "$GREP"; then
5113 ac_path_GREP_found=false
5114 # Loop through the user's path and test for each of PROGNAME-LIST
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5119 test -z "$as_dir" && as_dir=.
5120 for ac_prog in grep ggrep; do
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5123 as_fn_executable_p "$ac_path_GREP" || continue
5124 # Check for GNU ac_path_GREP and select it if it is found.
5125 # Check for GNU $ac_path_GREP
5126 case `"$ac_path_GREP" --version 2>&1` in
5128 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5131 $as_echo_n 0123456789 >"conftest.
in"
5134 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5135 mv "conftest.tmp
" "conftest.
in"
5136 cp "conftest.
in" "conftest.
nl"
5137 $as_echo 'GREP' >> "conftest.
nl"
5138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5139 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5140 as_fn_arith $ac_count + 1 && ac_count=$as_val
5141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5142 # Best one so far, save it but keep looking for a better one
5143 ac_cv_path_GREP="$ac_path_GREP"
5144 ac_path_GREP_max=$ac_count
5146 # 10*(2^10) chars as input seems more than enough
5147 test $ac_count -gt 10 && break
5149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5152 $ac_path_GREP_found && break 3
5157 if test -z "$ac_cv_path_GREP"; then
5158 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5161 ac_cv_path_GREP=$GREP
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5166 $as_echo "$ac_cv_path_GREP" >&6; }
5167 GREP="$ac_cv_path_GREP"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5171 $as_echo_n "checking
for egrep...
" >&6; }
5172 if ${ac_cv_path_EGREP+:} false; then :
5173 $as_echo_n "(cached
) " >&6
5175 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5176 then ac_cv_path_EGREP="$GREP -E"
5178 if test -z "$EGREP"; then
5179 ac_path_EGREP_found=false
5180 # Loop through the user's path and test for each of PROGNAME-LIST
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5185 test -z "$as_dir" && as_dir=.
5186 for ac_prog in egrep; do
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5189 as_fn_executable_p "$ac_path_EGREP" || continue
5190 # Check for GNU ac_path_EGREP and select it if it is found.
5191 # Check for GNU $ac_path_EGREP
5192 case `"$ac_path_EGREP" --version 2>&1` in
5194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5197 $as_echo_n 0123456789 >"conftest.
in"
5200 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5201 mv "conftest.tmp
" "conftest.
in"
5202 cp "conftest.
in" "conftest.
nl"
5203 $as_echo 'EGREP' >> "conftest.
nl"
5204 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5205 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5206 as_fn_arith $ac_count + 1 && ac_count=$as_val
5207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5208 # Best one so far, save it but keep looking for a better one
5209 ac_cv_path_EGREP="$ac_path_EGREP"
5210 ac_path_EGREP_max=$ac_count
5212 # 10*(2^10) chars as input seems more than enough
5213 test $ac_count -gt 10 && break
5215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5218 $ac_path_EGREP_found && break 3
5223 if test -z "$ac_cv_path_EGREP"; then
5224 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5227 ac_cv_path_EGREP=$EGREP
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5233 $as_echo "$ac_cv_path_EGREP" >&6; }
5234 EGREP="$ac_cv_path_EGREP"
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5238 $as_echo_n "checking
for fgrep...
" >&6; }
5239 if ${ac_cv_path_FGREP+:} false; then :
5240 $as_echo_n "(cached
) " >&6
5242 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5243 then ac_cv_path_FGREP="$GREP -F"
5245 if test -z "$FGREP"; then
5246 ac_path_FGREP_found=false
5247 # Loop through the user's path and test for each of PROGNAME-LIST
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5252 test -z "$as_dir" && as_dir=.
5253 for ac_prog in fgrep; do
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5256 as_fn_executable_p "$ac_path_FGREP" || continue
5257 # Check for GNU ac_path_FGREP and select it if it is found.
5258 # Check for GNU $ac_path_FGREP
5259 case `"$ac_path_FGREP" --version 2>&1` in
5261 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5264 $as_echo_n 0123456789 >"conftest.
in"
5267 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5268 mv "conftest.tmp
" "conftest.
in"
5269 cp "conftest.
in" "conftest.
nl"
5270 $as_echo 'FGREP' >> "conftest.
nl"
5271 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5272 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5273 as_fn_arith $ac_count + 1 && ac_count=$as_val
5274 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5275 # Best one so far, save it but keep looking for a better one
5276 ac_cv_path_FGREP="$ac_path_FGREP"
5277 ac_path_FGREP_max=$ac_count
5279 # 10*(2^10) chars as input seems more than enough
5280 test $ac_count -gt 10 && break
5282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5285 $ac_path_FGREP_found && break 3
5290 if test -z "$ac_cv_path_FGREP"; then
5291 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5294 ac_cv_path_FGREP=$FGREP
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5300 $as_echo "$ac_cv_path_FGREP" >&6; }
5301 FGREP="$ac_cv_path_FGREP"
5304 test -z "$GREP" && GREP=grep
5324 # Check whether --with-gnu-ld was given.
5325 if test "${with_gnu_ld+set}" = set; then :
5326 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5332 if test "$GCC" = yes; then
5333 # Check if gcc -print-prog-name=ld gives a path.
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5335 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5338 # gcc leaves a trailing carriage return which upsets mingw
5339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5344 # Accept absolute paths.
5346 re_direlt='/[^/][^/]*/\.\./'
5347 # Canonicalize the pathname of ld
5348 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5349 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5350 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5352 test -z "$LD" && LD="$ac_prog"
5355 # If it fails, then pretend we aren't using GCC.
5359 # If it is relative, then search for the first ld in PATH.
5363 elif test "$with_gnu_ld" = yes; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5365 $as_echo_n "checking
for GNU ld...
" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5368 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5370 if ${lt_cv_path_LD+:} false; then :
5371 $as_echo_n "(cached
) " >&6
5373 if test -z "$LD"; then
5374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5375 for ac_dir in $PATH; do
5377 test -z "$ac_dir" && ac_dir=.
5378 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5379 lt_cv_path_LD="$ac_dir/$ac_prog"
5380 # Check to see if the program is GNU ld. I'd rather use --version,
5381 # but apparently some variants of GNU ld only accept -v.
5382 # Break only if it was the GNU/non-GNU ld that we prefer.
5383 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5384 *GNU* | *'with BFD'*)
5385 test "$with_gnu_ld" != no && break
5388 test "$with_gnu_ld" != yes && break
5395 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5400 if test -n "$LD"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5402 $as_echo "$LD" >&6; }
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5405 $as_echo "no
" >&6; }
5407 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5409 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5410 if ${lt_cv_prog_gnu_ld+:} false; then :
5411 $as_echo_n "(cached
) " >&6
5413 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5414 case `$LD -v 2>&1 </dev/null` in
5415 *GNU* | *'with BFD'*)
5416 lt_cv_prog_gnu_ld=yes
5419 lt_cv_prog_gnu_ld=no
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5424 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5425 with_gnu_ld=$lt_cv_prog_gnu_ld
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5436 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5437 if ${lt_cv_path_NM+:} false; then :
5438 $as_echo_n "(cached
) " >&6
5440 if test -n "$NM"; then
5441 # Let the user override the test.
5444 lt_nm_to_check="${ac_tool_prefix}nm
"
5445 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5446 lt_nm_to_check="$lt_nm_to_check nm
"
5448 for lt_tmp_nm in $lt_nm_to_check; do
5449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5452 test -z "$ac_dir" && ac_dir=.
5453 tmp_nm="$ac_dir/$lt_tmp_nm"
5454 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5455 # Check to see if the nm accepts a BSD-compat flag.
5456 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5457 # nm: unknown option "B
" ignored
5458 # Tru64's nm complains that /dev/null is an invalid object file
5459 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5460 */dev/null* | *'Invalid file or object type'*)
5461 lt_cv_path_NM="$tmp_nm -B"
5465 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5467 lt_cv_path_NM="$tmp_nm -p"
5471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5472 continue # so that we can try to find one that supports BSD flags
5481 : ${lt_cv_path_NM=no}
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5485 $as_echo "$lt_cv_path_NM" >&6; }
5486 if test "$lt_cv_path_NM" != "no
"; then
5489 # Didn't find any BSD compatible name lister, look for dumpbin.
5490 if test -n "$DUMPBIN"; then :
5491 # Let the user override the test.
5493 if test -n "$ac_tool_prefix"; then
5494 for ac_prog in dumpbin "link
-dump"
5496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5499 $as_echo_n "checking
for $ac_word...
" >&6; }
5500 if ${ac_cv_prog_DUMPBIN+:} false; then :
5501 $as_echo_n "(cached
) " >&6
5503 if test -n "$DUMPBIN"; then
5504 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5523 DUMPBIN=$ac_cv_prog_DUMPBIN
5524 if test -n "$DUMPBIN"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5526 $as_echo "$DUMPBIN" >&6; }
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5529 $as_echo "no
" >&6; }
5533 test -n "$DUMPBIN" && break
5536 if test -z "$DUMPBIN"; then
5537 ac_ct_DUMPBIN=$DUMPBIN
5538 for ac_prog in dumpbin "link
-dump"
5540 # Extract the first word of "$ac_prog", so it can be a program name with args.
5541 set dummy $ac_prog; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5543 $as_echo_n "checking
for $ac_word...
" >&6; }
5544 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5545 $as_echo_n "(cached
) " >&6
5547 if test -n "$ac_ct_DUMPBIN"; then
5548 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5567 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5568 if test -n "$ac_ct_DUMPBIN"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5570 $as_echo "$ac_ct_DUMPBIN" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5573 $as_echo "no
" >&6; }
5577 test -n "$ac_ct_DUMPBIN" && break
5580 if test "x
$ac_ct_DUMPBIN" = x; then
5583 case $cross_compiling:$ac_tool_warned in
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5586 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5587 ac_tool_warned=yes ;;
5589 DUMPBIN=$ac_ct_DUMPBIN
5593 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5595 DUMPBIN="$DUMPBIN -symbols"
5603 if test "$DUMPBIN" != ":"; then
5607 test -z "$NM" && NM=nm
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5615 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5616 if ${lt_cv_nm_interface+:} false; then :
5617 $as_echo_n "(cached
) " >&6
5619 lt_cv_nm_interface="BSD nm
"
5620 echo "int some_variable
= 0;" > conftest.$ac_ext
5621 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5622 (eval "$ac_compile" 2>conftest.err)
5623 cat conftest.err >&5
5624 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5625 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5626 cat conftest.err >&5
5627 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5628 cat conftest.out >&5
5629 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5630 lt_cv_nm_interface="MS dumpbin
"
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5635 $as_echo "$lt_cv_nm_interface" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5638 $as_echo_n "checking whether
ln -s works...
" >&6; }
5640 if test "$LN_S" = "ln -s"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5642 $as_echo "yes" >&6; }
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5645 $as_echo "no
, using
$LN_S" >&6; }
5648 # find the maximum length of command line arguments
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5650 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5651 if ${lt_cv_sys_max_cmd_len+:} false; then :
5652 $as_echo_n "(cached
) " >&6
5659 # On DJGPP, this test can blow up pretty badly due to problems in libc
5660 # (any single argument exceeding 2000 bytes causes a buffer overrun
5661 # during glob expansion). Even if it were fixed, the result of this
5662 # check would be larger than it should be.
5663 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5667 # Under GNU Hurd, this test is not required because there is
5668 # no limit to the length of command line arguments.
5669 # Libtool will interpret -1 as no limit whatsoever
5670 lt_cv_sys_max_cmd_len=-1;
5673 cygwin* | mingw* | cegcc*)
5674 # On Win9x/ME, this test blows up -- it succeeds, but takes
5675 # about 5 minutes as the teststring grows exponentially.
5676 # Worse, since 9x/ME are not pre-emptively multitasking,
5677 # you end up with a "frozen
" computer, even though with patience
5678 # the test eventually succeeds (with a max line length of 256k).
5679 # Instead, let's just punt: use the minimum linelength reported by
5680 # all of the supported platforms: 8192 (on NT/2K/XP).
5681 lt_cv_sys_max_cmd_len=8192;
5685 # On MiNT this can take a long time and run out of memory.
5686 lt_cv_sys_max_cmd_len=8192;
5690 # On AmigaOS with pdksh, this test takes hours, literally.
5691 # So we just punt and use a minimum line length of 8192.
5692 lt_cv_sys_max_cmd_len=8192;
5695 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5696 # This has been around since 386BSD, at least. Likely further.
5697 if test -x /sbin/sysctl; then
5698 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5699 elif test -x /usr/sbin/sysctl; then
5700 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5702 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5704 # And add a safety zone
5705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5710 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5711 lt_cv_sys_max_cmd_len=196608
5715 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5716 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5717 # nice to cause kernel panics so lets avoid the loop below.
5718 # First set a reasonable default.
5719 lt_cv_sys_max_cmd_len=16384
5721 if test -x /sbin/sysconfig; then
5722 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5723 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5728 lt_cv_sys_max_cmd_len=102400
5730 sysv5* | sco5v6* | sysv4.2uw2*)
5731 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5732 if test -n "$kargmax"; then
5733 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5735 lt_cv_sys_max_cmd_len=32768
5739 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5740 if test -n "$lt_cv_sys_max_cmd_len"; then
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5744 # Make teststring a little bigger before we do anything with it.
5745 # a 1K string should be a reasonable start.
5746 for i in 1 2 3 4 5 6 7 8 ; do
5747 teststring=$teststring$teststring
5749 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5750 # If test is not a shell built-in, we'll probably end up computing a
5751 # maximum length that is only half of the actual maximum length, but
5753 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5754 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5755 test $i != 17 # 1/2 MB should be enough
5758 teststring=$teststring$teststring
5760 # Only check the string length outside the loop.
5761 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5763 # Add a significant safety factor because C++ compilers can tack on
5764 # massive amounts of additional arguments before passing them to the
5765 # linker. It appears as though 1/2 is a usable value.
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5773 if test -n $lt_cv_sys_max_cmd_len ; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5775 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5778 $as_echo "none
" >&6; }
5780 max_cmd_len=$lt_cv_sys_max_cmd_len
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5792 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5793 # Try some XSI features
5796 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5798 && eval 'test $(( 1 + 1 )) -eq 2 \
5799 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5802 $as_echo "$xsi_shell" >&6; }
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5806 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5808 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5810 && lt_shell_append
=yes
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5812 $as_echo "$lt_shell_append" >&6; }
5815 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5825 # test EBCDIC or ASCII
5826 case `echo X|tr X '\101'` in
5827 A
) # ASCII based system
5828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5829 lt_SP2NL
='tr \040 \012'
5830 lt_NL2SP
='tr \015\012 \040\040'
5832 *) # EBCDIC based system
5833 lt_SP2NL
='tr \100 \n'
5834 lt_NL2SP
='tr \r\n \100\100'
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5847 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5848 if ${lt_cv_ld_reload_flag+:} false
; then :
5849 $as_echo_n "(cached) " >&6
5851 lt_cv_ld_reload_flag
='-r'
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5854 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5855 reload_flag
=$lt_cv_ld_reload_flag
5856 case $reload_flag in
5858 *) reload_flag
=" $reload_flag" ;;
5860 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5863 if test "$GCC" = yes; then
5864 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5866 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5881 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5885 $as_echo_n "(cached) " >&6
5887 if test -n "$OBJDUMP"; then
5888 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5894 test -z "$as_dir" && as_dir
=.
5895 for ac_exec_ext
in '' $ac_executable_extensions; do
5896 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5897 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 OBJDUMP
=$ac_cv_prog_OBJDUMP
5908 if test -n "$OBJDUMP"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5910 $as_echo "$OBJDUMP" >&6; }
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5918 if test -z "$ac_cv_prog_OBJDUMP"; then
5919 ac_ct_OBJDUMP
=$OBJDUMP
5920 # Extract the first word of "objdump", so it can be a program name with args.
5921 set dummy objdump
; ac_word
=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5925 $as_echo_n "(cached) " >&6
5927 if test -n "$ac_ct_OBJDUMP"; then
5928 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5934 test -z "$as_dir" && as_dir
=.
5935 for ac_exec_ext
in '' $ac_executable_extensions; do
5936 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5948 if test -n "$ac_ct_OBJDUMP"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5950 $as_echo "$ac_ct_OBJDUMP" >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5956 if test "x$ac_ct_OBJDUMP" = x
; then
5959 case $cross_compiling:$ac_tool_warned in
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned
=yes ;;
5965 OBJDUMP
=$ac_ct_OBJDUMP
5968 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5971 test -z "$OBJDUMP" && OBJDUMP
=objdump
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5982 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5983 if ${lt_cv_deplibs_check_method+:} false
; then :
5984 $as_echo_n "(cached) " >&6
5986 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5987 lt_cv_file_magic_test_file
=
5988 lt_cv_deplibs_check_method
='unknown'
5989 # Need to set the preceding variable on all platforms that support
5990 # interlibrary dependencies.
5991 # 'none' -- dependencies not supported.
5992 # `unknown' -- same as none, but documents that we really don't know.
5993 # 'pass_all' -- all dependencies passed with no checks.
5994 # 'test_compile' -- check by making test program.
5995 # 'file_magic [[regex]]' -- check by looking for files in library path
5996 # which responds to the $file_magic_cmd with a given extended regex.
5997 # If you have `file' or equivalent on your system and you're not sure
5998 # whether `pass_all' will *always* work, you probably want this one.
6002 lt_cv_deplibs_check_method
=pass_all
6006 lt_cv_deplibs_check_method
=pass_all
6010 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6011 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6012 lt_cv_file_magic_test_file
=/shlib
/libc.so
6016 # func_win32_libid is a shell function defined in ltmain.sh
6017 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6018 lt_cv_file_magic_cmd
='func_win32_libid'
6022 # Base MSYS/MinGW do not provide the 'file' command needed by
6023 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6024 # unless we find 'file', for example because we are cross-compiling.
6025 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6026 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6027 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6028 lt_cv_file_magic_cmd
='func_win32_libid'
6030 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6031 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6036 # use the weaker test based on 'objdump'. See mingw*.
6037 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6038 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6041 darwin
* | rhapsody
*)
6042 lt_cv_deplibs_check_method
=pass_all
6045 freebsd
* | dragonfly
*)
6046 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6049 # Not sure whether the presence of OpenBSD here was a mistake.
6050 # Let's accept both of them until this is cleared up.
6051 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6052 lt_cv_file_magic_cmd
=/usr
/bin
/file
6053 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6057 lt_cv_deplibs_check_method
=pass_all
6062 lt_cv_deplibs_check_method
=pass_all
6066 lt_cv_deplibs_check_method
=pass_all
6069 hpux10.20
* | hpux11
*)
6070 lt_cv_file_magic_cmd
=/usr
/bin
/file
6073 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6074 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6077 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]'
6078 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6081 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6082 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6089 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6092 irix5
* | irix6
* | nonstopux
*)
6094 *-32|
*"-32 ") libmagic
=32-bit;;
6095 *-n32|
*"-n32 ") libmagic
=N32
;;
6096 *-64|
*"-64 ") libmagic
=64-bit;;
6097 *) libmagic
=never-match
;;
6099 lt_cv_deplibs_check_method
=pass_all
6102 # This must be Linux ELF.
6103 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
6104 lt_cv_deplibs_check_method
=pass_all
6108 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6109 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6111 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6116 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6117 lt_cv_file_magic_cmd
=/usr
/bin
/file
6118 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6122 lt_cv_deplibs_check_method
=pass_all
6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6127 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6129 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6133 osf3
* | osf4
* | osf5
*)
6134 lt_cv_deplibs_check_method
=pass_all
6138 lt_cv_deplibs_check_method
=pass_all
6142 lt_cv_deplibs_check_method
=pass_all
6145 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6146 lt_cv_deplibs_check_method
=pass_all
6150 case $host_vendor in
6152 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]'
6153 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6156 lt_cv_deplibs_check_method
=pass_all
6159 lt_cv_file_magic_cmd
='/bin/file'
6160 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6163 lt_cv_file_magic_cmd
='/bin/file'
6164 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6165 lt_cv_file_magic_test_file
=/lib
/libc.so
6168 lt_cv_deplibs_check_method
=pass_all
6171 lt_cv_deplibs_check_method
=pass_all
6177 lt_cv_deplibs_check_method
=pass_all
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6183 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6184 file_magic_cmd
=$lt_cv_file_magic_cmd
6185 deplibs_check_method
=$lt_cv_deplibs_check_method
6186 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6201 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_AR+:} false
; then :
6205 $as_echo_n "(cached) " >&6
6207 if test -n "$AR"; then
6208 ac_cv_prog_AR
="$AR" # Let the user override the test.
6210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir
=.
6215 for ac_exec_ext
in '' $ac_executable_extensions; do
6216 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 if test -n "$AR"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6230 $as_echo "$AR" >&6; }
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6238 if test -z "$ac_cv_prog_AR"; then
6240 # Extract the first word of "ar", so it can be a program name with args.
6241 set dummy
ar; ac_word
=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6245 $as_echo_n "(cached) " >&6
6247 if test -n "$ac_ct_AR"; then
6248 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir
=.
6255 for ac_exec_ext
in '' $ac_executable_extensions; do
6256 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6257 ac_cv_prog_ac_ct_AR
="ar"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6268 if test -n "$ac_ct_AR"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6270 $as_echo "$ac_ct_AR" >&6; }
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6276 if test "x$ac_ct_AR" = x
; then
6279 case $cross_compiling:$ac_tool_warned in
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283 ac_tool_warned
=yes ;;
6291 test -z "$AR" && AR
=ar
6292 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6306 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_STRIP+:} false
; then :
6310 $as_echo_n "(cached) " >&6
6312 if test -n "$STRIP"; then
6313 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir
=.
6320 for ac_exec_ext
in '' $ac_executable_extensions; do
6321 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 STRIP
=$ac_cv_prog_STRIP
6333 if test -n "$STRIP"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6335 $as_echo "$STRIP" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6343 if test -z "$ac_cv_prog_STRIP"; then
6345 # Extract the first word of "strip", so it can be a program name with args.
6346 set dummy strip
; ac_word
=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$ac_ct_STRIP"; then
6353 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir
=.
6360 for ac_exec_ext
in '' $ac_executable_extensions; do
6361 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_STRIP
="strip"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6373 if test -n "$ac_ct_STRIP"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6375 $as_echo "$ac_ct_STRIP" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6381 if test "x$ac_ct_STRIP" = x
; then
6384 case $cross_compiling:$ac_tool_warned in
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned
=yes ;;
6393 STRIP
="$ac_cv_prog_STRIP"
6396 test -z "$STRIP" && STRIP
=:
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6405 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_RANLIB+:} false
; then :
6409 $as_echo_n "(cached) " >&6
6411 if test -n "$RANLIB"; then
6412 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6418 test -z "$as_dir" && as_dir
=.
6419 for ac_exec_ext
in '' $ac_executable_extensions; do
6420 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6421 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 RANLIB
=$ac_cv_prog_RANLIB
6432 if test -n "$RANLIB"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6434 $as_echo "$RANLIB" >&6; }
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6442 if test -z "$ac_cv_prog_RANLIB"; then
6443 ac_ct_RANLIB
=$RANLIB
6444 # Extract the first word of "ranlib", so it can be a program name with args.
6445 set dummy ranlib
; ac_word
=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6449 $as_echo_n "(cached) " >&6
6451 if test -n "$ac_ct_RANLIB"; then
6452 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6458 test -z "$as_dir" && as_dir
=.
6459 for ac_exec_ext
in '' $ac_executable_extensions; do
6460 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6472 if test -n "$ac_ct_RANLIB"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6474 $as_echo "$ac_ct_RANLIB" >&6; }
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6480 if test "x$ac_ct_RANLIB" = x
; then
6483 case $cross_compiling:$ac_tool_warned in
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned
=yes ;;
6489 RANLIB
=$ac_ct_RANLIB
6492 RANLIB
="$ac_cv_prog_RANLIB"
6495 test -z "$RANLIB" && RANLIB
=:
6502 # Determine commands to create old-style static archives.
6503 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6504 old_postinstall_cmds
='chmod 644 $oldlib'
6505 old_postuninstall_cmds
=
6507 if test -n "$RANLIB"; then
6510 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6513 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6516 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6521 lock_old_archive_extraction
=yes ;;
6523 lock_old_archive_extraction
=no
;;
6564 # If no C compiler was specified, use CC.
6567 # If no C compiler flags were specified, use CFLAGS.
6568 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6570 # Allow CC to be a program name with arguments.
6574 # Check for command to grab the raw symbol name followed by C symbol from nm.
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6576 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6577 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6578 $as_echo_n "(cached) " >&6
6581 # These are sane defaults that work on at least a few old systems.
6582 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6584 # Character class describing NM global symbol codes.
6585 symcode
='[BCDEGRST]'
6587 # Regexp to match symbols that can be accessed directly from C.
6588 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6590 # Define system-specific variables.
6595 cygwin
* | mingw
* | pw32
* | cegcc
*)
6596 symcode
='[ABCDGISTW]'
6599 if test "$host_cpu" = ia64
; then
6600 symcode
='[ABCDEGRST]'
6604 symcode
='[BCDEGRST]'
6607 symcode
='[BCDEGQRST]'
6618 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6626 # If we're using GNU nm, then use its standard symbol codes.
6627 case `$NM -V 2>&1` in
6628 *GNU
* |
*'with BFD'*)
6629 symcode
='[ABCDGIRSTW]' ;;
6632 # Transform an extracted symbol line into a proper C declaration.
6633 # Some systems (esp. on ia64) link data and code symbols differently,
6634 # so use this general approach.
6635 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6637 # Transform an extracted symbol line into symbol name and symbol address
6638 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6639 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'"
6641 # Handle CRLF in mingw tool chain
6645 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6649 # Try without a prefix underscore, then with it.
6650 for ac_symprfx
in "" "_"; do
6652 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6653 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6655 # Write the raw and C identifiers.
6656 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6657 # Fake it for dumpbin and say T for any non-static function
6658 # and D for any global variable.
6659 # Also find C++ and __fastcall symbols from MSVC++,
6660 # which start with @ or ?.
6661 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6662 " {last_section=section; section=\$ 3};"\
6663 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6664 " \$ 0!~/External *\|/{next};"\
6665 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6666 " {if(hide[section]) next};"\
6667 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6668 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6669 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6670 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6671 " ' prfx=^$ac_symprfx"
6673 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6676 # Check to see that the pipe works correctly.
6680 cat > conftest.
$ac_ext <<_LT_EOF
6685 void nm_test_func(void);
6686 void nm_test_func(void){}
6690 int main(){nm_test_var='a';nm_test_func();return(0);}
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6694 (eval $ac_compile) 2>&5
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; }; then
6698 # Now try to grab the symbols.
6700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6701 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704 test $ac_status = 0; } && test -s "$nlist"; then
6705 # Try sorting and uniquifying the output.
6706 if sort "$nlist" |
uniq > "$nlist"T
; then
6707 mv -f "$nlist"T
"$nlist"
6712 # Make sure that we snagged all the symbols we need.
6713 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6714 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6715 cat <<_LT_EOF > conftest.$ac_ext
6721 # Now generate the symbol file.
6722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6724 cat <<_LT_EOF >> conftest.$ac_ext
6726 /* The mapping between symbol names and symbols. */
6731 lt__PROGRAM__LTX_preloaded_symbols[] =
6733 { "@PROGRAM@", (void *) 0 },
6735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6736 cat <<\_LT_EOF
>> conftest.
$ac_ext
6740 /* This works around a problem
in FreeBSD linker
*/
6741 #ifdef FREEBSD_WORKAROUND
6742 static const void
*lt_preloaded_setup
() {
6743 return lt__PROGRAM__LTX_preloaded_symbols
;
6751 # Now try linking the two files.
6752 mv conftest.
$ac_objext conftstm.
$ac_objext
6753 lt_save_LIBS
="$LIBS"
6754 lt_save_CFLAGS
="$CFLAGS"
6755 LIBS
="conftstm.$ac_objext"
6756 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6758 (eval $ac_link) 2>&5
6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6764 LIBS
="$lt_save_LIBS"
6765 CFLAGS
="$lt_save_CFLAGS"
6767 echo "cannot find nm_test_func in $nlist" >&5
6770 echo "cannot find nm_test_var in $nlist" >&5
6773 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6776 echo "$progname: failed program was:" >&5
6777 cat conftest.
$ac_ext >&5
6779 rm -rf conftest
* conftst
*
6781 # Do not use the global_symbol_pipe unless it works.
6782 if test "$pipe_works" = yes; then
6785 lt_cv_sys_global_symbol_pipe
=
6791 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6792 lt_cv_sys_global_symbol_to_cdecl
=
6794 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6796 $as_echo "failed" >&6; }
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6799 $as_echo "ok" >&6; }
6824 # Check whether --enable-libtool-lock was given.
6825 if test "${enable_libtool_lock+set}" = set; then :
6826 enableval
=$enable_libtool_lock;
6829 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6831 # Some flags need to be propagated to the compiler or linker for good
6835 # Find out which ABI we are using.
6836 echo 'int i;' > conftest.
$ac_ext
6837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6838 (eval $ac_compile) 2>&5
6840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6841 test $ac_status = 0; }; then
6842 case `/usr/bin/file conftest.$ac_objext` in
6854 # Find out which ABI we are using.
6855 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6857 (eval $ac_compile) 2>&5
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }; then
6861 if test "$lt_cv_prog_gnu_ld" = yes; then
6862 case `/usr/bin/file conftest.$ac_objext` in
6864 LD
="${LD-ld} -melf32bsmip"
6867 LD
="${LD-ld} -melf32bmipn32"
6870 LD
="${LD-ld} -melf64bmip"
6874 case `/usr/bin/file conftest.$ac_objext` in
6890 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6891 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6892 # Find out which ABI we are using.
6893 echo 'int i;' > conftest.
$ac_ext
6894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6895 (eval $ac_compile) 2>&5
6897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898 test $ac_status = 0; }; then
6899 case `/usr/bin/file conftest.o` in
6902 x86_64-
*kfreebsd
*-gnu)
6903 LD
="${LD-ld} -m elf_i386_fbsd"
6906 case `/usr/bin/file conftest.o` in
6908 LD
="${LD-ld} -m elf32_x86_64"
6911 LD
="${LD-ld} -m elf_i386"
6915 powerpc64le-
*linux
*)
6916 LD
="${LD-ld} -m elf32lppclinux"
6919 LD
="${LD-ld} -m elf32ppclinux"
6922 LD
="${LD-ld} -m elf_s390"
6925 LD
="${LD-ld} -m elf32_sparc"
6931 x86_64-
*kfreebsd
*-gnu)
6932 LD
="${LD-ld} -m elf_x86_64_fbsd"
6935 LD
="${LD-ld} -m elf_x86_64"
6938 LD
="${LD-ld} -m elf64lppc"
6941 LD
="${LD-ld} -m elf64ppc"
6943 s390
*-*linux
*|s390
*-*tpf
*)
6944 LD
="${LD-ld} -m elf64_s390"
6947 LD
="${LD-ld} -m elf64_sparc"
6957 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6958 SAVE_CFLAGS
="$CFLAGS"
6959 CFLAGS
="$CFLAGS -belf"
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6961 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6962 if ${lt_cv_cc_needs_belf+:} false
; then :
6963 $as_echo_n "(cached) " >&6
6966 ac_cpp
='$CPP $CPPFLAGS'
6967 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6982 if ac_fn_c_try_link
"$LINENO"; then :
6983 lt_cv_cc_needs_belf
=yes
6985 lt_cv_cc_needs_belf
=no
6987 rm -f core conftest.err conftest.
$ac_objext \
6988 conftest
$ac_exeext conftest.
$ac_ext
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
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6997 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6998 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6999 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7000 CFLAGS
="$SAVE_CFLAGS"
7004 # Find out which ABI we are using.
7005 echo 'int i;' > conftest.
$ac_ext
7006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7007 (eval $ac_compile) 2>&5
7009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7010 test $ac_status = 0; }; then
7011 case `/usr/bin/file conftest.o` in
7013 case $lt_cv_prog_gnu_ld in
7014 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7016 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7028 need_locks
="$enable_libtool_lock"
7032 rhapsody
* | darwin
*)
7033 if test -n "$ac_tool_prefix"; then
7034 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7035 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7039 $as_echo_n "(cached) " >&6
7041 if test -n "$DSYMUTIL"; then
7042 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7048 test -z "$as_dir" && as_dir
=.
7049 for ac_exec_ext
in '' $ac_executable_extensions; do
7050 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7051 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7062 if test -n "$DSYMUTIL"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7064 $as_echo "$DSYMUTIL" >&6; }
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7072 if test -z "$ac_cv_prog_DSYMUTIL"; then
7073 ac_ct_DSYMUTIL
=$DSYMUTIL
7074 # Extract the first word of "dsymutil", so it can be a program name with args.
7075 set dummy dsymutil
; ac_word
=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7079 $as_echo_n "(cached) " >&6
7081 if test -n "$ac_ct_DSYMUTIL"; then
7082 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir
=.
7089 for ac_exec_ext
in '' $ac_executable_extensions; do
7090 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7091 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7102 if test -n "$ac_ct_DSYMUTIL"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7104 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7110 if test "x$ac_ct_DSYMUTIL" = x
; then
7113 case $cross_compiling:$ac_tool_warned in
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7117 ac_tool_warned
=yes ;;
7119 DSYMUTIL
=$ac_ct_DSYMUTIL
7122 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7127 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_NMEDIT+:} false
; then :
7131 $as_echo_n "(cached) " >&6
7133 if test -n "$NMEDIT"; then
7134 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir
=.
7141 for ac_exec_ext
in '' $ac_executable_extensions; do
7142 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7143 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 NMEDIT
=$ac_cv_prog_NMEDIT
7154 if test -n "$NMEDIT"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7156 $as_echo "$NMEDIT" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7164 if test -z "$ac_cv_prog_NMEDIT"; then
7165 ac_ct_NMEDIT
=$NMEDIT
7166 # Extract the first word of "nmedit", so it can be a program name with args.
7167 set dummy nmedit
; ac_word
=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7171 $as_echo_n "(cached) " >&6
7173 if test -n "$ac_ct_NMEDIT"; then
7174 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir
=.
7181 for ac_exec_ext
in '' $ac_executable_extensions; do
7182 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7194 if test -n "$ac_ct_NMEDIT"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7196 $as_echo "$ac_ct_NMEDIT" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7202 if test "x$ac_ct_NMEDIT" = x
; then
7205 case $cross_compiling:$ac_tool_warned in
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned
=yes ;;
7211 NMEDIT
=$ac_ct_NMEDIT
7214 NMEDIT
="$ac_cv_prog_NMEDIT"
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7219 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_LIPO+:} false
; then :
7223 $as_echo_n "(cached) " >&6
7225 if test -n "$LIPO"; then
7226 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir
=.
7233 for ac_exec_ext
in '' $ac_executable_extensions; do
7234 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 LIPO
=$ac_cv_prog_LIPO
7246 if test -n "$LIPO"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7248 $as_echo "$LIPO" >&6; }
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7256 if test -z "$ac_cv_prog_LIPO"; then
7258 # Extract the first word of "lipo", so it can be a program name with args.
7259 set dummy lipo
; ac_word
=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7263 $as_echo_n "(cached) " >&6
7265 if test -n "$ac_ct_LIPO"; then
7266 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir
=.
7273 for ac_exec_ext
in '' $ac_executable_extensions; do
7274 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_prog_ac_ct_LIPO
="lipo"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7286 if test -n "$ac_ct_LIPO"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7288 $as_echo "$ac_ct_LIPO" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7294 if test "x$ac_ct_LIPO" = x
; then
7297 case $cross_compiling:$ac_tool_warned in
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned
=yes ;;
7306 LIPO
="$ac_cv_prog_LIPO"
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7311 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_OTOOL+:} false
; then :
7315 $as_echo_n "(cached) " >&6
7317 if test -n "$OTOOL"; then
7318 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir
=.
7325 for ac_exec_ext
in '' $ac_executable_extensions; do
7326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7327 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 OTOOL
=$ac_cv_prog_OTOOL
7338 if test -n "$OTOOL"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7340 $as_echo "$OTOOL" >&6; }
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7348 if test -z "$ac_cv_prog_OTOOL"; then
7350 # Extract the first word of "otool", so it can be a program name with args.
7351 set dummy otool
; ac_word
=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$ac_ct_OTOOL"; then
7358 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir
=.
7365 for ac_exec_ext
in '' $ac_executable_extensions; do
7366 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_ac_ct_OTOOL
="otool"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7378 if test -n "$ac_ct_OTOOL"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7380 $as_echo "$ac_ct_OTOOL" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7386 if test "x$ac_ct_OTOOL" = x
; then
7389 case $cross_compiling:$ac_tool_warned in
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned
=yes ;;
7398 OTOOL
="$ac_cv_prog_OTOOL"
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7403 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_OTOOL64+:} false
; then :
7407 $as_echo_n "(cached) " >&6
7409 if test -n "$OTOOL64"; then
7410 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir
=.
7417 for ac_exec_ext
in '' $ac_executable_extensions; do
7418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 OTOOL64
=$ac_cv_prog_OTOOL64
7430 if test -n "$OTOOL64"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7432 $as_echo "$OTOOL64" >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7440 if test -z "$ac_cv_prog_OTOOL64"; then
7441 ac_ct_OTOOL64
=$OTOOL64
7442 # Extract the first word of "otool64", so it can be a program name with args.
7443 set dummy otool64
; ac_word
=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7447 $as_echo_n "(cached) " >&6
7449 if test -n "$ac_ct_OTOOL64"; then
7450 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir
=.
7457 for ac_exec_ext
in '' $ac_executable_extensions; do
7458 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7470 if test -n "$ac_ct_OTOOL64"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7472 $as_echo "$ac_ct_OTOOL64" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7478 if test "x$ac_ct_OTOOL64" = x
; then
7481 case $cross_compiling:$ac_tool_warned in
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned
=yes ;;
7487 OTOOL64
=$ac_ct_OTOOL64
7490 OTOOL64
="$ac_cv_prog_OTOOL64"
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7520 $as_echo_n "checking for -single_module linker flag... " >&6; }
7521 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7522 $as_echo_n "(cached) " >&6
7524 lt_cv_apple_cc_single_mod
=no
7525 if test -z "${LT_MULTI_MODULE}"; then
7526 # By default we will add the -single_module flag. You can override
7527 # by either setting the environment variable LT_MULTI_MODULE
7528 # non-empty at configure time, or by adding -multi_module to the
7530 rm -rf libconftest.dylib
*
7531 echo "int foo(void){return 1;}" > conftest.c
7532 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7533 -dynamiclib -Wl,-single_module conftest.c" >&5
7534 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7535 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7537 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7538 lt_cv_apple_cc_single_mod
=yes
7540 cat conftest.err
>&5
7542 rm -rf libconftest.dylib
*
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7547 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7549 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7550 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7551 $as_echo_n "(cached) " >&6
7553 lt_cv_ld_exported_symbols_list
=no
7554 save_LDFLAGS
=$LDFLAGS
7555 echo "_main" > conftest.sym
7556 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7568 if ac_fn_c_try_link
"$LINENO"; then :
7569 lt_cv_ld_exported_symbols_list
=yes
7571 lt_cv_ld_exported_symbols_list
=no
7573 rm -f core conftest.err conftest.
$ac_objext \
7574 conftest
$ac_exeext conftest.
$ac_ext
7575 LDFLAGS
="$save_LDFLAGS"
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7579 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7581 $as_echo_n "checking for -force_load linker flag... " >&6; }
7582 if ${lt_cv_ld_force_load+:} false
; then :
7583 $as_echo_n "(cached) " >&6
7585 lt_cv_ld_force_load
=no
7586 cat > conftest.c
<< _LT_EOF
7587 int forced_loaded() { return 2;}
7589 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7590 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7591 echo "$AR cru libconftest.a conftest.o" >&5
7592 $AR cru libconftest.a conftest.o
2>&5
7593 cat > conftest.c
<< _LT_EOF
7594 int main() { return 0;}
7596 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7597 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7599 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7600 lt_cv_ld_force_load
=yes
7602 cat conftest.err
>&5
7604 rm -f conftest.err libconftest.a conftest conftest.c
7605 rm -rf conftest.dSYM
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7609 $as_echo "$lt_cv_ld_force_load" >&6; }
7611 rhapsody
* | darwin1.
[012])
7612 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7614 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7615 darwin
*) # darwin 5.x on
7616 # if running on 10.5 or later, the deployment target defaults
7617 # to the OS version, if on x86, and 10.4, the deployment
7618 # target defaults to 10.4. Don't you love it?
7619 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7620 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7621 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7623 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7625 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7629 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7630 _lt_dar_single_mod
='$single_module'
7632 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7633 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7635 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7637 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7638 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7646 ac_cpp
='$CPP $CPPFLAGS'
7647 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7651 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7652 # On Suns, sometimes $CPP names a directory.
7653 if test -n "$CPP" && test -d "$CPP"; then
7656 if test -z "$CPP"; then
7657 if ${ac_cv_prog_CPP+:} false
; then :
7658 $as_echo_n "(cached) " >&6
7660 # Double quotes because CPP needs to be expanded
7661 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7664 for ac_c_preproc_warn_flag
in '' yes
7666 # Use a header file that comes with gcc, so configuring glibc
7667 # with a fresh cross-compiler works.
7668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7669 # <limits.h> exists even on freestanding compilers.
7670 # On the NeXT, cc -E runs the code through the compiler's parser,
7671 # not just through cpp. "Syntax error" is here to catch this case.
7672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7675 # include <limits.h>
7677 # include <assert.h>
7681 if ac_fn_c_try_cpp
"$LINENO"; then :
7684 # Broken: fails on valid input.
7687 rm -f conftest.err conftest.i conftest.
$ac_ext
7689 # OK, works on sane cases. Now check whether nonexistent headers
7690 # can be detected and how.
7691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 #include <ac_nonexistent.h>
7695 if ac_fn_c_try_cpp
"$LINENO"; then :
7696 # Broken: success on invalid input.
7699 # Passes both tests.
7703 rm -f conftest.err conftest.i conftest.
$ac_ext
7706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7707 rm -f conftest.i conftest.err conftest.
$ac_ext
7708 if $ac_preproc_ok; then :
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7721 $as_echo "$CPP" >&6; }
7723 for ac_c_preproc_warn_flag
in '' yes
7725 # Use a header file that comes with gcc, so configuring glibc
7726 # with a fresh cross-compiler works.
7727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7728 # <limits.h> exists even on freestanding compilers.
7729 # On the NeXT, cc -E runs the code through the compiler's parser,
7730 # not just through cpp. "Syntax error" is here to catch this case.
7731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7734 # include <limits.h>
7736 # include <assert.h>
7740 if ac_fn_c_try_cpp
"$LINENO"; then :
7743 # Broken: fails on valid input.
7746 rm -f conftest.err conftest.i conftest.
$ac_ext
7748 # OK, works on sane cases. Now check whether nonexistent headers
7749 # can be detected and how.
7750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752 #include <ac_nonexistent.h>
7754 if ac_fn_c_try_cpp
"$LINENO"; then :
7755 # Broken: success on invalid input.
7758 # Passes both tests.
7762 rm -f conftest.err conftest.i conftest.
$ac_ext
7765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7766 rm -f conftest.i conftest.err conftest.
$ac_ext
7767 if $ac_preproc_ok; then :
7770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7772 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7773 See \`config.log' for more details" "$LINENO" 5; }
7777 ac_cpp
='$CPP $CPPFLAGS'
7778 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7784 $as_echo_n "checking for ANSI C header files... " >&6; }
7785 if ${ac_cv_header_stdc+:} false
; then :
7786 $as_echo_n "(cached) " >&6
7788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7803 if ac_fn_c_try_compile
"$LINENO"; then :
7804 ac_cv_header_stdc
=yes
7806 ac_cv_header_stdc
=no
7808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7810 if test $ac_cv_header_stdc = yes; then
7811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "memchr" >/dev
/null
2>&1; then :
7821 ac_cv_header_stdc
=no
7827 if test $ac_cv_header_stdc = yes; then
7828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7835 $EGREP "free" >/dev
/null
2>&1; then :
7838 ac_cv_header_stdc
=no
7844 if test $ac_cv_header_stdc = yes; then
7845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7846 if test "$cross_compiling" = yes; then :
7849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7853 #if ((' ' & 0x0FF) == 0x020)
7854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7857 # define ISLOWER(c) \
7858 (('a' <= (c) && (c) <= 'i') \
7859 || ('j' <= (c) && (c) <= 'r') \
7860 || ('s' <= (c) && (c) <= 'z'))
7861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7869 for (i = 0; i < 256; i++)
7870 if (XOR (islower (i), ISLOWER (i))
7871 || toupper (i) != TOUPPER (i))
7876 if ac_fn_c_try_run
"$LINENO"; then :
7879 ac_cv_header_stdc
=no
7881 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7882 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7888 $as_echo "$ac_cv_header_stdc" >&6; }
7889 if test $ac_cv_header_stdc = yes; then
7891 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7896 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7897 inttypes.h stdint.h unistd.h
7899 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7900 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7902 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7903 cat >>confdefs.h
<<_ACEOF
7904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7912 for ac_header
in dlfcn.h
7914 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7916 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7917 cat >>confdefs.h
<<_ACEOF
7918 #define HAVE_DLFCN_H 1
7939 # Check whether --enable-shared was given.
7940 if test "${enable_shared+set}" = set; then :
7941 enableval
=$enable_shared; p
=${PACKAGE-default}
7943 yes) enable_shared
=yes ;;
7944 no
) enable_shared
=no
;;
7947 # Look at the argument we got. We use all the common list separators.
7948 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7949 for pkg
in $enableval; do
7951 if test "X$pkg" = "X$p"; then
7970 # Check whether --enable-static was given.
7971 if test "${enable_static+set}" = set; then :
7972 enableval
=$enable_static; p
=${PACKAGE-default}
7974 yes) enable_static
=yes ;;
7975 no
) enable_static
=no
;;
7978 # Look at the argument we got. We use all the common list separators.
7979 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7980 for pkg
in $enableval; do
7982 if test "X$pkg" = "X$p"; then
8002 # Check whether --with-pic was given.
8003 if test "${with_pic+set}" = set; then :
8004 withval
=$with_pic; pic_mode
="$withval"
8010 test -z "$pic_mode" && pic_mode
=default
8018 # Check whether --enable-fast-install was given.
8019 if test "${enable_fast_install+set}" = set; then :
8020 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8022 yes) enable_fast_install
=yes ;;
8023 no
) enable_fast_install
=no
;;
8025 enable_fast_install
=no
8026 # Look at the argument we got. We use all the common list separators.
8027 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8028 for pkg
in $enableval; do
8030 if test "X$pkg" = "X$p"; then
8031 enable_fast_install
=yes
8038 enable_fast_install
=yes
8051 # This can be used to rebuild libtool when needed
8052 LIBTOOL_DEPS
="$ltmain"
8054 # Always use our own libtool.
8055 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8082 test -z "$LN_S" && LN_S
="ln -s"
8097 if test -n "${ZSH_VERSION+set}" ; then
8098 setopt NO_GLOB_SUBST
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8102 $as_echo_n "checking for objdir... " >&6; }
8103 if ${lt_cv_objdir+:} false
; then :
8104 $as_echo_n "(cached) " >&6
8106 rm -f .libs
2>/dev
/null
8107 mkdir .libs
2>/dev
/null
8108 if test -d .libs
; then
8111 # MS-DOS does not allow filenames that begin with a dot.
8114 rmdir .libs
2>/dev
/null
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8117 $as_echo "$lt_cv_objdir" >&6; }
8118 objdir
=$lt_cv_objdir
8124 cat >>confdefs.h
<<_ACEOF
8125 #define LT_OBJDIR "$lt_cv_objdir/"
8133 # AIX sometimes has problems with the GCC collect2 program. For some
8134 # reason, if we set the COLLECT_NAMES environment variable, the problems
8135 # vanish in a puff of smoke.
8136 if test "X${COLLECT_NAMES+set}" != Xset
; then
8138 export COLLECT_NAMES
8145 can_build_shared
=yes
8147 # All known linkers require a `.a' archive for static linking (except MSVC,
8148 # which needs '.lib').
8151 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8154 old_CFLAGS
="$CFLAGS"
8156 # Set sane defaults for various variables
8157 test -z "$CC" && CC
=cc
8158 test -z "$LTCC" && LTCC
=$CC
8159 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8160 test -z "$LD" && LD
=ld
8161 test -z "$ac_objext" && ac_objext
=o
8163 for cc_temp
in $compiler""; do
8165 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8166 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8171 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8174 # Only perform the check for file, if the check method requires it
8175 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8176 case $deplibs_check_method in
8178 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8180 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8181 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8182 $as_echo_n "(cached) " >&6
8186 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8189 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8190 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8191 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8192 for ac_dir
in $ac_dummy; do
8194 test -z "$ac_dir" && ac_dir
=.
8195 if test -f $ac_dir/${ac_tool_prefix}file; then
8196 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8197 if test -n "$file_magic_test_file"; then
8198 case $deplibs_check_method in
8200 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8201 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8202 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8203 $EGREP "$file_magic_regex" > /dev
/null
; then
8208 *** Warning: the command libtool uses to detect shared libraries,
8209 *** $file_magic_cmd, produces output that libtool cannot recognize.
8210 *** The result is that libtool may fail to recognize shared libraries
8211 *** as such. This will affect the creation of libtool libraries that
8212 *** depend on shared libraries, but programs linked with such libtool
8213 *** libraries will work regardless of this problem. Nevertheless, you
8214 *** may want to report the problem to your system manager and/or to
8215 *** bug-libtool@gnu.org
8225 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8230 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8231 if test -n "$MAGIC_CMD"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8233 $as_echo "$MAGIC_CMD" >&6; }
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8243 if test -z "$lt_cv_path_MAGIC_CMD"; then
8244 if test -n "$ac_tool_prefix"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8246 $as_echo_n "checking for file... " >&6; }
8247 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8248 $as_echo_n "(cached) " >&6
8252 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8255 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8256 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8257 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8258 for ac_dir
in $ac_dummy; do
8260 test -z "$ac_dir" && ac_dir
=.
8261 if test -f $ac_dir/file; then
8262 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8263 if test -n "$file_magic_test_file"; then
8264 case $deplibs_check_method in
8266 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8267 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8268 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8269 $EGREP "$file_magic_regex" > /dev
/null
; then
8274 *** Warning: the command libtool uses to detect shared libraries,
8275 *** $file_magic_cmd, produces output that libtool cannot recognize.
8276 *** The result is that libtool may fail to recognize shared libraries
8277 *** as such. This will affect the creation of libtool libraries that
8278 *** depend on shared libraries, but programs linked with such libtool
8279 *** libraries will work regardless of this problem. Nevertheless, you
8280 *** may want to report the problem to your system manager and/or to
8281 *** bug-libtool@gnu.org
8291 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8296 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8297 if test -n "$MAGIC_CMD"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8299 $as_echo "$MAGIC_CMD" >&6; }
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8315 # Use C for the default configuration in the libtool script
8319 ac_cpp
='$CPP $CPPFLAGS'
8320 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8321 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8322 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8325 # Source file extension for C test sources.
8328 # Object file extension for compiled C test sources.
8332 # Code to be used in simple compile tests
8333 lt_simple_compile_test_code
="int some_variable = 0;"
8335 # Code to be used in simple link tests
8336 lt_simple_link_test_code
='int main(){return(0);}'
8344 # If no C compiler was specified, use CC.
8347 # If no C compiler flags were specified, use CFLAGS.
8348 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8350 # Allow CC to be a program name with arguments.
8353 # Save the default compiler, since it gets overwritten when the other
8354 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8355 compiler_DEFAULT
=$CC
8357 # save warnings/boilerplate of simple test code
8358 ac_outfile
=conftest.
$ac_objext
8359 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8360 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8361 _lt_compiler_boilerplate
=`cat conftest.err`
8364 ac_outfile
=conftest.
$ac_objext
8365 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8366 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8367 _lt_linker_boilerplate
=`cat conftest.err`
8372 ## There is no encapsulation within the following macros, do not change
8373 ## the running order or otherwise move them around unless you know exactly
8374 ## what you are doing...
8375 if test -n "$compiler"; then
8377 lt_prog_compiler_no_builtin_flag
=
8379 if test "$GCC" = yes; then
8380 case $cc_basename in
8382 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8384 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8388 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8389 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8390 $as_echo_n "(cached) " >&6
8392 lt_cv_prog_compiler_rtti_exceptions
=no
8393 ac_outfile
=conftest.
$ac_objext
8394 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8395 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8396 # Insert the option either (1) after the last *FLAGS variable, or
8397 # (2) before a word containing "conftest.", or (3) at the end.
8398 # Note that $ac_compile itself does not contain backslashes and begins
8399 # with a dollar sign (not a hyphen), so the echo should work correctly.
8400 # The option is referenced via a variable to avoid confusing sed.
8401 lt_compile
=`echo "$ac_compile" | $SED \
8402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8404 -e 's:$: $lt_compiler_flag:'`
8405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8406 (eval "$lt_compile" 2>conftest.err
)
8408 cat conftest.err
>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 if (exit $ac_status) && test -s "$ac_outfile"; then
8411 # The compiler can only warn and ignore the option if not recognized
8412 # So say no if there are warnings other than the usual output.
8413 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8414 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8415 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8416 lt_cv_prog_compiler_rtti_exceptions
=yes
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8423 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8425 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8426 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8438 lt_prog_compiler_wl
=
8439 lt_prog_compiler_pic
=
8440 lt_prog_compiler_static
=
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8443 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8445 if test "$GCC" = yes; then
8446 lt_prog_compiler_wl
='-Wl,'
8447 lt_prog_compiler_static
='-static'
8451 # All AIX code is PIC.
8452 if test "$host_cpu" = ia64
; then
8453 # AIX 5 now supports IA64 processor
8454 lt_prog_compiler_static
='-Bstatic'
8456 lt_prog_compiler_pic
='-fPIC'
8462 # see comment about AmigaOS4 .so support
8463 lt_prog_compiler_pic
='-fPIC'
8466 # FIXME: we need at least 68020 code to build shared libraries, but
8467 # adding the `-m68020' flag to GCC prevents building anything better,
8469 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8474 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8475 # PIC is the default for these OSes.
8478 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8479 # This hack is so that the source file can tell whether it is being
8480 # built for inclusion in a dll (and should export symbols for example).
8481 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8482 # (--disable-auto-import) libraries
8483 lt_prog_compiler_pic
='-DDLL_EXPORT'
8486 darwin
* | rhapsody
*)
8487 # PIC is the default on this platform
8488 # Common symbols not allowed in MH_DYLIB files
8489 lt_prog_compiler_pic
='-fno-common'
8493 # PIC is the default for Haiku.
8494 # The "-static" flag exists, but is broken.
8495 lt_prog_compiler_static
=
8499 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8500 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8501 # sets the default TLS model and affects inlining.
8507 lt_prog_compiler_pic
='-fPIC'
8513 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8514 # Instead, we relocate shared libraries at runtime.
8518 # Just because we use GCC doesn't mean we suddenly get shared libraries
8519 # on systems that don't support them.
8520 lt_prog_compiler_can_build_shared
=no
8525 # QNX uses GNU C++, but need to define -shared option too, otherwise
8527 lt_prog_compiler_pic
='-fPIC -shared'
8531 if test -d /usr
/nec
; then
8532 lt_prog_compiler_pic
=-Kconform_pic
8537 lt_prog_compiler_pic
='-fPIC'
8541 case $cc_basename in
8542 nvcc
*) # Cuda Compiler Driver 2.2
8543 lt_prog_compiler_wl
='-Xlinker '
8544 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8548 # PORTME Check for flag to pass linker flags through the system compiler.
8551 lt_prog_compiler_wl
='-Wl,'
8552 if test "$host_cpu" = ia64
; then
8553 # AIX 5 now supports IA64 processor
8554 lt_prog_compiler_static
='-Bstatic'
8556 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8560 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8561 # This hack is so that the source file can tell whether it is being
8562 # built for inclusion in a dll (and should export symbols for example).
8563 lt_prog_compiler_pic
='-DDLL_EXPORT'
8566 hpux9
* | hpux10
* | hpux11
*)
8567 lt_prog_compiler_wl
='-Wl,'
8568 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8575 lt_prog_compiler_pic
='+Z'
8578 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8579 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8582 irix5
* | irix6
* | nonstopux
*)
8583 lt_prog_compiler_wl
='-Wl,'
8584 # PIC (with -KPIC) is the default.
8585 lt_prog_compiler_static
='-non_shared'
8588 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8589 case $cc_basename in
8590 # old Intel for x86_64 which still supported -KPIC.
8592 lt_prog_compiler_wl
='-Wl,'
8593 lt_prog_compiler_pic
='-KPIC'
8594 lt_prog_compiler_static
='-static'
8596 # icc used to be incompatible with GCC.
8597 # ICC 10 doesn't accept -KPIC any more.
8599 lt_prog_compiler_wl
='-Wl,'
8600 lt_prog_compiler_pic
='-fPIC'
8601 lt_prog_compiler_static
='-static'
8603 # Lahey Fortran 8.1.
8605 lt_prog_compiler_wl
='-Wl,'
8606 lt_prog_compiler_pic
='--shared'
8607 lt_prog_compiler_static
='--static'
8609 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8610 # Portland Group compilers (*not* the Pentium gcc compiler,
8611 # which looks to be a dead project)
8612 lt_prog_compiler_wl
='-Wl,'
8613 lt_prog_compiler_pic
='-fpic'
8614 lt_prog_compiler_static
='-Bstatic'
8617 lt_prog_compiler_wl
='-Wl,'
8618 # All Alpha code is PIC.
8619 lt_prog_compiler_static
='-non_shared'
8621 xl
* | bgxl
* | bgf
* | mpixl
*)
8622 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8623 lt_prog_compiler_wl
='-Wl,'
8624 lt_prog_compiler_pic
='-qpic'
8625 lt_prog_compiler_static
='-qstaticlink'
8628 case `$CC -V 2>&1 | sed 5q` in
8629 *Sun\ F
* |
*Sun
*Fortran
*)
8630 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8631 lt_prog_compiler_pic
='-KPIC'
8632 lt_prog_compiler_static
='-Bstatic'
8633 lt_prog_compiler_wl
=''
8637 lt_prog_compiler_pic
='-KPIC'
8638 lt_prog_compiler_static
='-Bstatic'
8639 lt_prog_compiler_wl
='-Wl,'
8647 lt_prog_compiler_pic
='-KPIC'
8648 lt_prog_compiler_static
='-Bstatic'
8652 # QNX uses GNU C++, but need to define -shared option too, otherwise
8654 lt_prog_compiler_pic
='-fPIC -shared'
8657 osf3
* | osf4
* | osf5
*)
8658 lt_prog_compiler_wl
='-Wl,'
8659 # All OSF/1 code is PIC.
8660 lt_prog_compiler_static
='-non_shared'
8664 lt_prog_compiler_static
='-non_shared'
8668 lt_prog_compiler_pic
='-KPIC'
8669 lt_prog_compiler_static
='-Bstatic'
8670 case $cc_basename in
8672 lt_prog_compiler_wl
='-Qoption ld ';;
8674 lt_prog_compiler_wl
='-Wl,';;
8679 lt_prog_compiler_wl
='-Qoption ld '
8680 lt_prog_compiler_pic
='-PIC'
8681 lt_prog_compiler_static
='-Bstatic'
8684 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8685 lt_prog_compiler_wl
='-Wl,'
8686 lt_prog_compiler_pic
='-KPIC'
8687 lt_prog_compiler_static
='-Bstatic'
8691 if test -d /usr
/nec
;then
8692 lt_prog_compiler_pic
='-Kconform_pic'
8693 lt_prog_compiler_static
='-Bstatic'
8697 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8698 lt_prog_compiler_wl
='-Wl,'
8699 lt_prog_compiler_pic
='-KPIC'
8700 lt_prog_compiler_static
='-Bstatic'
8704 lt_prog_compiler_wl
='-Wl,'
8705 lt_prog_compiler_can_build_shared
=no
8709 lt_prog_compiler_pic
='-pic'
8710 lt_prog_compiler_static
='-Bstatic'
8714 lt_prog_compiler_can_build_shared
=no
8720 # For platforms which do not support PIC, -DPIC is meaningless:
8722 lt_prog_compiler_pic
=
8725 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8729 $as_echo "$lt_prog_compiler_pic" >&6; }
8737 # Check to make sure the PIC flag actually works.
8739 if test -n "$lt_prog_compiler_pic"; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8741 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8742 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8743 $as_echo_n "(cached) " >&6
8745 lt_cv_prog_compiler_pic_works
=no
8746 ac_outfile
=conftest.
$ac_objext
8747 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8748 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8749 # Insert the option either (1) after the last *FLAGS variable, or
8750 # (2) before a word containing "conftest.", or (3) at the end.
8751 # Note that $ac_compile itself does not contain backslashes and begins
8752 # with a dollar sign (not a hyphen), so the echo should work correctly.
8753 # The option is referenced via a variable to avoid confusing sed.
8754 lt_compile
=`echo "$ac_compile" | $SED \
8755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8757 -e 's:$: $lt_compiler_flag:'`
8758 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8759 (eval "$lt_compile" 2>conftest.err
)
8761 cat conftest.err
>&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 if (exit $ac_status) && test -s "$ac_outfile"; then
8764 # The compiler can only warn and ignore the option if not recognized
8765 # So say no if there are warnings other than the usual output.
8766 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8767 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8768 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8769 lt_cv_prog_compiler_pic_works
=yes
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8776 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8778 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8779 case $lt_prog_compiler_pic in
8781 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8784 lt_prog_compiler_pic
=
8785 lt_prog_compiler_can_build_shared
=no
8796 # Check to make sure the static flag actually works.
8798 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8800 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8801 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8802 $as_echo_n "(cached) " >&6
8804 lt_cv_prog_compiler_static_works
=no
8805 save_LDFLAGS
="$LDFLAGS"
8806 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8807 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8808 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8809 # The linker can only warn and ignore the option if not recognized
8810 # So say no if there are warnings
8811 if test -s conftest.err
; then
8812 # Append any errors to the config.log.
8813 cat conftest.err
1>&5
8814 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8815 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8816 if diff conftest.exp conftest.er2
>/dev
/null
; then
8817 lt_cv_prog_compiler_static_works
=yes
8820 lt_cv_prog_compiler_static_works
=yes
8824 LDFLAGS
="$save_LDFLAGS"
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8828 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8830 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8833 lt_prog_compiler_static
=
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8843 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8844 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8845 $as_echo_n "(cached) " >&6
8847 lt_cv_prog_compiler_c_o
=no
8848 $RM -r conftest
2>/dev
/null
8852 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8854 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8855 # Insert the option either (1) after the last *FLAGS variable, or
8856 # (2) before a word containing "conftest.", or (3) at the end.
8857 # Note that $ac_compile itself does not contain backslashes and begins
8858 # with a dollar sign (not a hyphen), so the echo should work correctly.
8859 lt_compile
=`echo "$ac_compile" | $SED \
8860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8862 -e 's:$: $lt_compiler_flag:'`
8863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8864 (eval "$lt_compile" 2>out
/conftest.err
)
8866 cat out
/conftest.err
>&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8870 # The compiler can only warn and ignore the option if not recognized
8871 # So say no if there are warnings
8872 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8873 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8874 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8875 lt_cv_prog_compiler_c_o
=yes
8880 # SGI C++ compiler will create directory out/ii_files/ for
8881 # template instantiation
8882 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8883 $RM out
/* && rmdir out
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8890 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8899 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8900 $as_echo_n "(cached) " >&6
8902 lt_cv_prog_compiler_c_o
=no
8903 $RM -r conftest
2>/dev
/null
8907 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8909 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8910 # Insert the option either (1) after the last *FLAGS variable, or
8911 # (2) before a word containing "conftest.", or (3) at the end.
8912 # Note that $ac_compile itself does not contain backslashes and begins
8913 # with a dollar sign (not a hyphen), so the echo should work correctly.
8914 lt_compile
=`echo "$ac_compile" | $SED \
8915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917 -e 's:$: $lt_compiler_flag:'`
8918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8919 (eval "$lt_compile" 2>out
/conftest.err
)
8921 cat out
/conftest.err
>&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8925 # The compiler can only warn and ignore the option if not recognized
8926 # So say no if there are warnings
8927 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8928 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8929 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8930 lt_cv_prog_compiler_c_o
=yes
8935 # SGI C++ compiler will create directory out/ii_files/ for
8936 # template instantiation
8937 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8938 $RM out
/* && rmdir out
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8950 hard_links
="nottested"
8951 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8952 # do not overwrite the value of need_locks provided by the user
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8954 $as_echo_n "checking if we can lock with hard links... " >&6; }
8957 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8959 ln conftest.a conftest.b
2>&5 || hard_links
=no
8960 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8962 $as_echo "$hard_links" >&6; }
8963 if test "$hard_links" = no
; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8965 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8978 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8981 allow_undefined_flag
=
8982 always_export_symbols
=no
8984 archive_expsym_cmds
=
8985 compiler_needs_object
=no
8986 enable_shared_with_static_runtimes
=no
8987 export_dynamic_flag_spec
=
8988 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8989 hardcode_automatic
=no
8991 hardcode_direct_absolute
=no
8992 hardcode_libdir_flag_spec
=
8993 hardcode_libdir_flag_spec_ld
=
8994 hardcode_libdir_separator
=
8996 hardcode_shlibpath_var
=unsupported
8998 link_all_deplibs
=unknown
9001 old_archive_from_new_cmds
=
9002 old_archive_from_expsyms_cmds
=
9003 thread_safe_flag_spec
=
9004 whole_archive_flag_spec
=
9005 # include_expsyms should be a list of space-separated symbols to be *always*
9006 # included in the symbol list
9008 # exclude_expsyms can be an extended regexp of symbols to exclude
9009 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9011 # as well as any symbol that contains `d'.
9012 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9014 # platforms (ab)use it in PIC code, but their linkers get confused if
9015 # the symbol is explicitly referenced. Since portable code cannot
9016 # rely on this symbol name, it's probably fine to never include it in
9017 # preloaded symbol tables.
9018 # Exclude shared library initialization/finalization symbols.
9019 extract_expsyms_cmds
=
9022 cygwin
* | mingw
* | pw32
* | cegcc
*)
9023 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9024 # When not using gcc, we currently assume that we are using
9025 # Microsoft Visual C++.
9026 if test "$GCC" != yes; then
9031 # we just hope/assume this is gcc and not c89 (= MSVC++)
9041 # On some targets, GNU ld is compatible enough with the native linker
9042 # that we're better off using the native interface for both.
9043 lt_use_gnu_ld_interface
=no
9044 if test "$with_gnu_ld" = yes; then
9047 # The AIX port of GNU ld has always aspired to compatibility
9048 # with the native linker. However, as the warning in the GNU ld
9049 # block says, versions before 2.19.5* couldn't really create working
9050 # shared libraries, regardless of the interface used.
9051 case `$LD -v 2>&1` in
9052 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9053 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9054 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9056 lt_use_gnu_ld_interface
=yes
9061 lt_use_gnu_ld_interface
=yes
9066 if test "$lt_use_gnu_ld_interface" = yes; then
9067 # If archive_cmds runs LD, not CC, wlarc should be empty
9070 # Set some defaults for GNU ld with shared library support. These
9071 # are reset later if shared libraries are not supported. Putting them
9072 # here allows them to be overridden if necessary.
9073 runpath_var
=LD_RUN_PATH
9074 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9075 export_dynamic_flag_spec
='${wl}--export-dynamic'
9076 # ancient GNU ld didn't support --whole-archive et. al.
9077 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9078 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9080 whole_archive_flag_spec
=
9082 supports_anon_versioning
=no
9083 case `$LD -v 2>&1` in
9084 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9085 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9086 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9087 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9088 *\
2.11.
*) ;; # other 2.11 versions
9089 *) supports_anon_versioning
=yes ;;
9092 # See if GNU ld supports shared libraries.
9095 # On AIX/PPC, the GNU linker is very broken
9096 if test "$host_cpu" != ia64
; then
9100 *** Warning: the GNU linker, at least up to release 2.19, is reported
9101 *** to be unable to reliably create shared libraries on AIX.
9102 *** Therefore, libtool is disabling shared libraries support. If you
9103 *** really care for shared libraries, you may want to install binutils
9104 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9105 *** You will then need to restart the configuration process.
9114 # see comment about AmigaOS4 .so support
9115 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116 archive_expsym_cmds
=''
9119 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)'
9120 hardcode_libdir_flag_spec
='-L$libdir'
9121 hardcode_minus_L
=yes
9127 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9128 allow_undefined_flag
=unsupported
9129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9130 # support --undefined. This deserves some investigation. FIXME
9131 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9137 cygwin
* | mingw
* | pw32
* | cegcc
*)
9138 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9139 # as there is no search path for DLLs.
9140 hardcode_libdir_flag_spec
='-L$libdir'
9141 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9142 allow_undefined_flag
=unsupported
9143 always_export_symbols
=no
9144 enable_shared_with_static_runtimes
=yes
9145 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9147 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9148 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9149 # If the export-symbols file already is a .def file (1st line
9150 # is EXPORTS), use it as is; otherwise, prepend...
9151 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9152 cp $export_symbols $output_objdir/$soname.def;
9154 echo EXPORTS > $output_objdir/$soname.def;
9155 cat $export_symbols >> $output_objdir/$soname.def;
9157 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9164 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9165 link_all_deplibs
=yes
9170 hardcode_shlibpath_var
=no
9171 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9172 export_dynamic_flag_spec
='${wl}-E'
9173 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9174 # Instead, shared libraries are loaded at an image base (0x10000000 by
9175 # default) and relocated if they conflict, which is a slow very memory
9176 # consuming and fragmenting process. To avoid this, we pick a random,
9177 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9178 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9179 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9180 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'
9183 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9185 if test "$host_os" = linux-dietlibc
; then
9186 case $cc_basename in
9187 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9190 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9191 && test "$tmp_diet" = no
9193 tmp_addflag
=' $pic_flag'
9194 tmp_sharedflag
='-shared'
9195 case $cc_basename,$host_cpu in
9196 pgcc
*) # Portland Group C compiler
9197 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'
9198 tmp_addflag
=' $pic_flag'
9200 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9201 # Portland Group f77 and f90 compilers
9202 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'
9203 tmp_addflag
=' $pic_flag -Mnomain' ;;
9204 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9205 tmp_addflag
=' -i_dynamic' ;;
9206 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9207 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9208 ifc
* | ifort
*) # Intel Fortran compiler
9209 tmp_addflag
=' -nofor_main' ;;
9210 lf95
*) # Lahey Fortran 8.1
9211 whole_archive_flag_spec
=
9212 tmp_sharedflag
='--shared' ;;
9213 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9214 tmp_sharedflag
='-qmkshrobj'
9216 nvcc
*) # Cuda Compiler Driver 2.2
9217 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'
9218 compiler_needs_object
=yes
9221 case `$CC -V 2>&1 | sed 5q` in
9222 *Sun\ C
*) # Sun C 5.9
9223 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'
9224 compiler_needs_object
=yes
9225 tmp_sharedflag
='-G' ;;
9226 *Sun\ F
*) # Sun Fortran 8.3
9227 tmp_sharedflag
='-G' ;;
9229 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231 if test "x$supports_anon_versioning" = xyes
; then
9232 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9234 echo "local: *; };" >> $output_objdir/$libname.ver~
9235 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9238 case $cc_basename in
9239 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9240 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9241 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9242 hardcode_libdir_flag_spec
=
9243 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9244 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9245 if test "x$supports_anon_versioning" = xyes
; then
9246 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9248 echo "local: *; };" >> $output_objdir/$libname.ver~
9249 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9259 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9260 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9263 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9269 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9274 *** create shared libraries on Solaris systems. Therefore, libtool
9275 *** is disabling shared libraries support. We urge you to upgrade GNU
9276 *** binutils to release 2.9.1 or newer. Another option is to modify
9277 *** your PATH or compiler configuration so that the native linker is
9278 *** used, and then restart.
9281 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9282 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9289 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9290 case `$LD -v 2>&1` in
9291 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9295 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9296 *** reliably create shared libraries on SCO systems. Therefore, libtool
9297 *** is disabling shared libraries support. We urge you to upgrade GNU
9298 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9299 *** your PATH or compiler configuration so that the native linker is
9300 *** used, and then restart.
9305 # For security reasons, it is highly recommended that you always
9306 # use absolute paths for naming shared libraries, and exclude the
9307 # DT_RUNPATH tag from executables and libraries. But doing so
9308 # requires that you compile everything twice, which is a pain.
9309 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9310 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9311 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9321 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9324 hardcode_shlibpath_var
=no
9328 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9329 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9337 if test "$ld_shlibs" = no
; then
9339 hardcode_libdir_flag_spec
=
9340 export_dynamic_flag_spec
=
9341 whole_archive_flag_spec
=
9344 # PORTME fill in a description of your system's linker (not GNU ld)
9347 allow_undefined_flag
=unsupported
9348 always_export_symbols
=yes
9349 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'
9350 # Note: this linker hardcodes the directories in LIBPATH if there
9351 # are no directories specified by -L.
9352 hardcode_minus_L
=yes
9353 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9354 # Neither direct hardcoding nor static linking is supported with a
9356 hardcode_direct
=unsupported
9361 if test "$host_cpu" = ia64
; then
9362 # On IA64, the linker does run time linking by default, so we don't
9363 # have to do anything special.
9364 aix_use_runtimelinking
=no
9365 exp_sym_flag
='-Bexport'
9368 # If we're using GNU nm, then we don't want the "-C" option.
9369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9370 # Also, AIX nm treats weak defined symbols like other global
9371 # defined symbols, whereas GNU nm marks them as "W".
9372 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9373 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'
9375 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'
9377 aix_use_runtimelinking
=no
9379 # Test if we are trying to use run time linking or normal
9380 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9381 # need to do runtime linking.
9382 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9383 for ld_flag
in $LDFLAGS; do
9384 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9385 aix_use_runtimelinking
=yes
9392 exp_sym_flag
='-bexport'
9393 no_entry_flag
='-bnoentry'
9396 # When large executables or shared objects are built, AIX ld can
9397 # have problems creating the table of contents. If linking a library
9398 # or program results in "error TOC overflow" add -mminimal-toc to
9399 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9400 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9404 hardcode_direct_absolute
=yes
9405 hardcode_libdir_separator
=':'
9406 link_all_deplibs
=yes
9407 file_list_spec
='${wl}-f,'
9409 if test "$GCC" = yes; then
9410 case $host_os in aix4.
[012]|aix4.
[012].
*)
9411 # We only want to do this on AIX 4.2 and lower, the check
9412 # below for broken collect2 doesn't work under 4.3+
9413 collect2name
=`${CC} -print-prog-name=collect2`
9414 if test -f "$collect2name" &&
9415 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9417 # We have reworked collect2
9420 # We have old collect2
9421 hardcode_direct
=unsupported
9422 # It fails to find uninstalled libraries when the uninstalled
9423 # path is not listed in the libpath. Setting hardcode_minus_L
9424 # to unsupported forces relinking
9425 hardcode_minus_L
=yes
9426 hardcode_libdir_flag_spec
='-L$libdir'
9427 hardcode_libdir_separator
=
9431 shared_flag
='-shared'
9432 if test "$aix_use_runtimelinking" = yes; then
9433 shared_flag
="$shared_flag "'${wl}-G'
9437 if test "$host_cpu" = ia64
; then
9438 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9439 # chokes on -Wl,-G. The following line is correct:
9442 if test "$aix_use_runtimelinking" = yes; then
9443 shared_flag
='${wl}-G'
9445 shared_flag
='${wl}-bM:SRE'
9450 export_dynamic_flag_spec
='${wl}-bexpall'
9451 # It seems that -bexpall does not export symbols beginning with
9452 # underscore (_), so it is better to generate a list of symbols to export.
9453 always_export_symbols
=yes
9454 if test "$aix_use_runtimelinking" = yes; then
9455 # Warning - without using the other runtime loading flags (-brtl),
9456 # -berok will link without error, but may produce a broken library.
9457 allow_undefined_flag
='-berok'
9458 # Determine the default libpath from the value encoded in an
9460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9471 if ac_fn_c_try_link
"$LINENO"; then :
9473 lt_aix_libpath_sed
='
9474 /Import File Strings/,/^$/ {
9480 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9481 # Check for a 64-bit object if we didn't find anything.
9482 if test -z "$aix_libpath"; then
9483 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9486 rm -f core conftest.err conftest.
$ac_objext \
9487 conftest
$ac_exeext conftest.
$ac_ext
9488 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9490 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9491 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"
9493 if test "$host_cpu" = ia64
; then
9494 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9495 allow_undefined_flag
="-z nodefs"
9496 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"
9498 # Determine the default libpath from the value encoded in an
9500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9511 if ac_fn_c_try_link
"$LINENO"; then :
9513 lt_aix_libpath_sed
='
9514 /Import File Strings/,/^$/ {
9520 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521 # Check for a 64-bit object if we didn't find anything.
9522 if test -z "$aix_libpath"; then
9523 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9526 rm -f core conftest.err conftest.
$ac_objext \
9527 conftest
$ac_exeext conftest.
$ac_ext
9528 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9530 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9531 # Warning - without using the other run time loading flags,
9532 # -berok will link without error, but may produce a broken library.
9533 no_undefined_flag
=' ${wl}-bernotok'
9534 allow_undefined_flag
=' ${wl}-berok'
9535 if test "$with_gnu_ld" = yes; then
9536 # We only use this code for GNU lds that support --whole-archive.
9537 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9539 # Exported symbols can be pulled into shared objects from archives
9540 whole_archive_flag_spec
='$convenience'
9542 archive_cmds_need_lc
=yes
9543 # This is similar to how AIX traditionally builds its shared libraries.
9544 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'
9552 # see comment about AmigaOS4 .so support
9553 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 archive_expsym_cmds
=''
9557 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)'
9558 hardcode_libdir_flag_spec
='-L$libdir'
9559 hardcode_minus_L
=yes
9565 export_dynamic_flag_spec
=-rdynamic
9568 cygwin
* | mingw
* | pw32
* | cegcc
*)
9569 # When not using gcc, we currently assume that we are using
9570 # Microsoft Visual C++.
9571 # hardcode_libdir_flag_spec is actually meaningless, as there is
9572 # no search path for DLLs.
9573 hardcode_libdir_flag_spec
=' '
9574 allow_undefined_flag
=unsupported
9575 # Tell ltmain to make .lib files, not .a files.
9577 # Tell ltmain to make .dll files, not .so files.
9579 # FIXME: Setting linknames here is a bad hack.
9580 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9581 # The linker will automatically build a .lib file if we build a DLL.
9582 old_archive_from_new_cmds
='true'
9583 # FIXME: Should let the user specify the lib program.
9584 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9585 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9586 enable_shared_with_static_runtimes
=yes
9589 darwin
* | rhapsody
*)
9592 archive_cmds_need_lc
=no
9594 hardcode_automatic
=yes
9595 hardcode_shlibpath_var
=unsupported
9596 if test "$lt_cv_ld_force_load" = "yes"; then
9597 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\"`'
9599 whole_archive_flag_spec
=''
9601 link_all_deplibs
=yes
9602 allow_undefined_flag
="$_lt_dar_allow_undefined"
9603 case $cc_basename in
9604 ifort
*) _lt_dar_can_shared
=yes ;;
9605 *) _lt_dar_can_shared
=$GCC ;;
9607 if test "$_lt_dar_can_shared" = "yes"; then
9608 output_verbose_link_cmd
=func_echo_all
9609 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9610 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9611 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}"
9612 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}"
9621 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_libdir_flag_spec
='-L$libdir'
9623 hardcode_shlibpath_var
=no
9626 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9627 # support. Future versions do this automatically, but an explicit c++rt0.o
9628 # does not break anything, and helps significantly (at the cost of a little
9631 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9632 hardcode_libdir_flag_spec
='-R$libdir'
9634 hardcode_shlibpath_var
=no
9637 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9639 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_minus_L
=yes
9642 hardcode_shlibpath_var
=no
9645 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9646 freebsd
* | dragonfly
*)
9647 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9648 hardcode_libdir_flag_spec
='-R$libdir'
9650 hardcode_shlibpath_var
=no
9654 if test "$GCC" = yes; then
9655 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'
9657 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'
9659 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9660 hardcode_libdir_separator
=:
9663 # hardcode_minus_L: Not really in the search PATH,
9664 # but as the default location of the library.
9665 hardcode_minus_L
=yes
9666 export_dynamic_flag_spec
='${wl}-E'
9670 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9671 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9675 if test "$with_gnu_ld" = no
; then
9676 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9677 hardcode_libdir_flag_spec_ld
='+b $libdir'
9678 hardcode_libdir_separator
=:
9680 hardcode_direct_absolute
=yes
9681 export_dynamic_flag_spec
='${wl}-E'
9682 # hardcode_minus_L: Not really in the search PATH,
9683 # but as the default location of the library.
9684 hardcode_minus_L
=yes
9689 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9692 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9711 # Older versions of the 11.00 compiler do not understand -b yet
9712 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9714 $as_echo_n "checking if $CC understands -b... " >&6; }
9715 if ${lt_cv_prog_compiler__b+:} false
; then :
9716 $as_echo_n "(cached) " >&6
9718 lt_cv_prog_compiler__b
=no
9719 save_LDFLAGS
="$LDFLAGS"
9720 LDFLAGS
="$LDFLAGS -b"
9721 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9722 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9723 # The linker can only warn and ignore the option if not recognized
9724 # So say no if there are warnings
9725 if test -s conftest.err
; then
9726 # Append any errors to the config.log.
9727 cat conftest.err
1>&5
9728 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9729 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9730 if diff conftest.exp conftest.er2
>/dev
/null
; then
9731 lt_cv_prog_compiler__b
=yes
9734 lt_cv_prog_compiler__b
=yes
9738 LDFLAGS
="$save_LDFLAGS"
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9742 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9744 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9745 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9753 if test "$with_gnu_ld" = no
; then
9754 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9755 hardcode_libdir_separator
=:
9760 hardcode_shlibpath_var
=no
9764 hardcode_direct_absolute
=yes
9765 export_dynamic_flag_spec
='${wl}-E'
9767 # hardcode_minus_L: Not really in the search PATH,
9768 # but as the default location of the library.
9769 hardcode_minus_L
=yes
9775 irix5
* | irix6
* | nonstopux
*)
9776 if test "$GCC" = yes; then
9777 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'
9778 # Try to use the -exported_symbol ld option, if it does not
9779 # work, assume that -exports_file does not work either and
9780 # implicitly export all symbols.
9781 save_LDFLAGS
="$LDFLAGS"
9782 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9787 if ac_fn_c_try_link
"$LINENO"; then :
9788 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'
9791 rm -f core conftest.err conftest.
$ac_objext \
9792 conftest
$ac_exeext conftest.
$ac_ext
9793 LDFLAGS
="$save_LDFLAGS"
9795 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'
9796 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'
9798 archive_cmds_need_lc
='no'
9799 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9800 hardcode_libdir_separator
=:
9802 link_all_deplibs
=yes
9806 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9807 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9809 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9811 hardcode_libdir_flag_spec
='-R$libdir'
9813 hardcode_shlibpath_var
=no
9817 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9820 hardcode_libdir_separator
=:
9821 hardcode_shlibpath_var
=no
9828 if test -f /usr
/libexec
/ld.so
; then
9830 hardcode_shlibpath_var
=no
9831 hardcode_direct_absolute
=yes
9832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9833 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9835 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9836 export_dynamic_flag_spec
='${wl}-E'
9839 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9840 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9841 hardcode_libdir_flag_spec
='-R$libdir'
9844 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9845 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9855 hardcode_libdir_flag_spec
='-L$libdir'
9856 hardcode_minus_L
=yes
9857 allow_undefined_flag
=unsupported
9858 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'
9859 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9863 if test "$GCC" = yes; then
9864 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9865 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'
9867 allow_undefined_flag
=' -expect_unresolved \*'
9868 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'
9870 archive_cmds_need_lc
='no'
9871 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9872 hardcode_libdir_separator
=:
9875 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9876 if test "$GCC" = yes; then
9877 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9878 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'
9879 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9881 allow_undefined_flag
=' -expect_unresolved \*'
9882 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'
9883 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~
9884 $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'
9886 # Both c and cxx compiler support -rpath directly
9887 hardcode_libdir_flag_spec
='-rpath $libdir'
9889 archive_cmds_need_lc
='no'
9890 hardcode_libdir_separator
=:
9894 no_undefined_flag
=' -z defs'
9895 if test "$GCC" = yes; then
9897 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9898 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9899 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9901 case `$CC -V 2>&1` in
9904 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9910 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9911 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9912 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9916 hardcode_libdir_flag_spec
='-R$libdir'
9917 hardcode_shlibpath_var
=no
9919 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9921 # The compiler driver will combine and reorder linker options,
9922 # but understands `-z linker_flag'. GCC discards it without `$wl',
9923 # but is careful enough not to reorder.
9924 # Supported since Solaris 2.6 (maybe 2.5.1?)
9925 if test "$GCC" = yes; then
9926 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9928 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9932 link_all_deplibs
=yes
9936 if test "x$host_vendor" = xsequent
; then
9937 # Use $CC to link under sequent, because it throws in some extra .o
9938 # files that make .init and .fini sections work.
9939 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9941 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9943 hardcode_libdir_flag_spec
='-L$libdir'
9945 hardcode_minus_L
=yes
9946 hardcode_shlibpath_var
=no
9950 case $host_vendor in
9952 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_direct
=yes # is this really true???
9956 ## LD is ld it makes a PLAMLIB
9957 ## CC just makes a GrossModule.
9958 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9959 reload_cmds
='$CC -r -o $output$reload_objs'
9963 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9967 runpath_var
='LD_RUN_PATH'
9968 hardcode_shlibpath_var
=no
9972 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_shlibpath_var
=no
9974 export_dynamic_flag_spec
='-Bexport'
9978 if test -d /usr
/nec
; then
9979 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980 hardcode_shlibpath_var
=no
9981 runpath_var
=LD_RUN_PATH
9982 hardcode_runpath_var
=yes
9987 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9988 no_undefined_flag
='${wl}-z,text'
9989 archive_cmds_need_lc
=no
9990 hardcode_shlibpath_var
=no
9991 runpath_var
='LD_RUN_PATH'
9993 if test "$GCC" = yes; then
9994 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10002 sysv5
* | sco3.2v5
* | sco5v6
*)
10003 # Note: We can NOT use -z defs as we might desire, because we do not
10004 # link with -lc, and that would cause any symbols used from libc to
10005 # always be unresolved, which means just about no library would
10006 # ever link correctly. If we're not using GNU ld we use -z text
10007 # though, which does catch some bad symbols but isn't as heavy-handed
10009 no_undefined_flag
='${wl}-z,text'
10010 allow_undefined_flag
='${wl}-z,nodefs'
10011 archive_cmds_need_lc
=no
10012 hardcode_shlibpath_var
=no
10013 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10014 hardcode_libdir_separator
=':'
10015 link_all_deplibs
=yes
10016 export_dynamic_flag_spec
='${wl}-Bexport'
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'
10029 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030 hardcode_libdir_flag_spec
='-L$libdir'
10031 hardcode_shlibpath_var
=no
10039 if test x
$host_vendor = xsni
; then
10041 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10042 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10049 $as_echo "$ld_shlibs" >&6; }
10050 test "$ld_shlibs" = no
&& can_build_shared
=no
10052 with_gnu_ld
=$with_gnu_ld
10069 # Do we need to explicitly link libc?
10071 case "x$archive_cmds_need_lc" in
10073 # Assume -lc should be added
10074 archive_cmds_need_lc
=yes
10076 if test "$enable_shared" = yes && test "$GCC" = yes; then
10077 case $archive_cmds in
10079 # FIXME: we may have to deal with multi-command sequences.
10082 # Test whether the compiler implicitly links with -lc since on some
10083 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10084 # to ld, don't add -lc before -lgcc.
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10086 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10087 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10088 $as_echo_n "(cached) " >&6
10091 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10094 (eval $ac_compile) 2>&5
10096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10097 test $ac_status = 0; } 2>conftest.err
; then
10100 libobjs
=conftest.
$ac_objext
10102 wl
=$lt_prog_compiler_wl
10103 pic_flag
=$lt_prog_compiler_pic
10109 lt_save_allow_undefined_flag
=$allow_undefined_flag
10110 allow_undefined_flag
=
10111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10112 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10115 test $ac_status = 0; }
10117 lt_cv_archive_cmds_need_lc
=no
10119 lt_cv_archive_cmds_need_lc
=yes
10121 allow_undefined_flag
=$lt_save_allow_undefined_flag
10123 cat conftest.err
1>&5
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10129 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10130 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10294 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10296 if test "$GCC" = yes; then
10298 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10299 *) lt_awk_arg
="/^libraries:/" ;;
10302 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10303 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10305 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10306 case $lt_search_path_spec in
10308 # if the path contains ";" then we assume it to be the separator
10309 # otherwise default to the standard path separator (i.e. ":") - it is
10310 # assumed that no part of a normal pathname contains ";" but that should
10311 # okay in the real world where ";" in dirpaths is itself problematic.
10312 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10315 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10318 # Ok, now we have the path, separated by spaces, we can step through it
10319 # and add multilib dir if necessary.
10320 lt_tmp_lt_search_path_spec
=
10321 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10322 for lt_sys_path
in $lt_search_path_spec; do
10323 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10324 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10326 test -d "$lt_sys_path" && \
10327 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10330 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10331 BEGIN {RS=" "; FS="/|\n";} {
10334 for (lt_i = NF; lt_i > 0; lt_i--) {
10335 if ($lt_i != "" && $lt_i != ".") {
10336 if ($lt_i == "..") {
10339 if (lt_count == 0) {
10340 lt_foo="/" $lt_i lt_foo;
10347 if (lt_foo != "") { lt_freq[lt_foo]++; }
10348 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10350 # AWK program above erroneously prepends '/' to C:/dos/paths
10353 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10354 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10356 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10358 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10360 library_names_spec
=
10361 libname_spec
='lib$name'
10365 postuninstall_cmds
=
10369 shlibpath_overrides_runpath
=unknown
10371 dynamic_linker
="$host_os ld.so"
10372 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10373 need_lib_prefix
=unknown
10374 hardcode_into_libs
=no
10376 # when you set need_version to no, make sure it does not cause -set_version
10377 # flags to be left without arguments
10378 need_version
=unknown
10383 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10384 shlibpath_var
=LIBPATH
10386 # AIX 3 has no versioning support, so we append a major version to the name.
10387 soname_spec
='${libname}${release}${shared_ext}$major'
10394 hardcode_into_libs
=yes
10395 if test "$host_cpu" = ia64
; then
10396 # AIX 5 supports IA64
10397 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10398 shlibpath_var
=LD_LIBRARY_PATH
10400 # With GCC up to 2.95.x, collect2 would create an import file
10401 # for dependence libraries. The import file would start with
10402 # the line `#! .'. This would cause the generated library to
10403 # depend on `.', always an invalid library. This was fixed in
10404 # development snapshots of GCC prior to 3.0.
10406 aix4 | aix4.
[01] | aix4.
[01].
*)
10407 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10409 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10412 can_build_shared
=no
10416 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10417 # soname into executable. Probably we can add versioning support to
10418 # collect2, so additional links can be useful in future.
10419 if test "$aix_use_runtimelinking" = yes; then
10420 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10421 # instead of lib<name>.a to let people know that these are not
10422 # typical AIX shared libraries.
10423 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 # We preserve .a as extension for shared libraries through AIX4.2
10426 # and later when we are not doing run time linking.
10427 library_names_spec
='${libname}${release}.a $libname.a'
10428 soname_spec
='${libname}${release}${shared_ext}$major'
10430 shlibpath_var
=LIBPATH
10437 # Since July 2007 AmigaOS4 officially supports .so libraries.
10438 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 library_names_spec
='$libname.ixlibrary $libname.a'
10443 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10444 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'
10450 library_names_spec
='${libname}${shared_ext}'
10451 dynamic_linker
="$host_os ld.so"
10452 shlibpath_var
=LIBRARY_PATH
10458 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec
='${libname}${release}${shared_ext}$major'
10460 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10461 shlibpath_var
=LD_LIBRARY_PATH
10462 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10463 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10464 # the default ld.so.conf also contains /usr/contrib/lib and
10465 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10466 # libtool to hard-code these into programs
10469 cygwin
* | mingw
* | pw32
* | cegcc
*)
10470 version_type
=windows
10475 case $GCC,$host_os in
10476 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10477 library_names_spec
='$libname.dll.a'
10478 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10479 postinstall_cmds
='base_file=`basename \${file}`~
10480 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10481 dldir=$destdir/`dirname \$dlpath`~
10482 test -d \$dldir || mkdir -p \$dldir~
10483 $install_prog $dir/$dlname \$dldir/$dlname~
10484 chmod a+x \$dldir/$dlname~
10485 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10486 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10488 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10489 dlpath=$dir/\$dldll~
10491 shlibpath_overrides_runpath
=yes
10495 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10496 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10498 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10501 # MinGW DLLs use traditional 'lib' prefix
10502 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10505 # pw32 DLLs use 'pw' prefix rather than 'lib'
10506 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10512 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10515 dynamic_linker
='Win32 ld.exe'
10516 # FIXME: first we should search . and the directory the executable is in
10520 darwin
* | rhapsody
*)
10521 dynamic_linker
="$host_os dyld"
10522 version_type
=darwin
10525 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10526 soname_spec
='${libname}${release}${major}$shared_ext'
10527 shlibpath_overrides_runpath
=yes
10528 shlibpath_var
=DYLD_LIBRARY_PATH
10529 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10531 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10532 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10539 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10540 soname_spec
='${libname}${release}${shared_ext}$major'
10541 shlibpath_var
=LD_LIBRARY_PATH
10544 freebsd
* | dragonfly
*)
10545 # DragonFly does not have aout. When/if they implement a new
10546 # versioning mechanism, adjust this.
10547 if test -x /usr
/bin
/objformat
; then
10548 objformat
=`/usr/bin/objformat`
10551 freebsd
[23].
*) objformat
=aout
;;
10552 *) objformat
=elf
;;
10555 version_type
=freebsd-
$objformat
10556 case $version_type in
10558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10563 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10567 shlibpath_var
=LD_LIBRARY_PATH
10570 shlibpath_overrides_runpath
=yes
10572 freebsd3.
[01]* | freebsdelf3.
[01]*)
10573 shlibpath_overrides_runpath
=yes
10574 hardcode_into_libs
=yes
10576 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10577 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10578 shlibpath_overrides_runpath
=no
10579 hardcode_into_libs
=yes
10581 *) # from 4.6 on, and DragonFly
10582 shlibpath_overrides_runpath
=yes
10583 hardcode_into_libs
=yes
10592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10593 soname_spec
='${libname}${release}${shared_ext}$major'
10594 shlibpath_var
=LD_LIBRARY_PATH
10595 hardcode_into_libs
=yes
10602 dynamic_linker
="$host_os runtime_loader"
10603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10604 soname_spec
='${libname}${release}${shared_ext}$major'
10605 shlibpath_var
=LIBRARY_PATH
10606 shlibpath_overrides_runpath
=yes
10607 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10608 hardcode_into_libs
=yes
10611 hpux9
* | hpux10
* | hpux11
*)
10612 # Give a soname corresponding to the major version so that dld.sl refuses to
10613 # link against other versions.
10620 hardcode_into_libs
=yes
10621 dynamic_linker
="$host_os dld.so"
10622 shlibpath_var
=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec
='${libname}${release}${shared_ext}$major'
10626 if test "X$HPUX_IA64_MODE" = X32
; then
10627 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10629 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10631 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10635 hardcode_into_libs
=yes
10636 dynamic_linker
="$host_os dld.sl"
10637 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10638 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec
='${libname}${release}${shared_ext}$major'
10641 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10642 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10646 dynamic_linker
="$host_os dld.sl"
10647 shlibpath_var
=SHLIB_PATH
10648 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 soname_spec
='${libname}${release}${shared_ext}$major'
10653 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10654 postinstall_cmds
='chmod 555 $lib'
10655 # or fails outright, so override atomically:
10656 install_override_mode
=555
10663 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10664 soname_spec
='${libname}${release}${shared_ext}$major'
10665 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10666 shlibpath_var
=LD_LIBRARY_PATH
10667 shlibpath_overrides_runpath
=no
10668 hardcode_into_libs
=yes
10671 irix5
* | irix6
* | nonstopux
*)
10673 nonstopux
*) version_type
=nonstopux
;;
10675 if test "$lt_cv_prog_gnu_ld" = yes; then
10683 soname_spec
='${libname}${release}${shared_ext}$major'
10684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10686 irix5
* | nonstopux
*)
10687 libsuff
= shlibsuff
=
10690 case $LD in # libtool.m4 will add one of these switches to LD
10691 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10692 libsuff
= shlibsuff
= libmagic
=32-bit;;
10693 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10694 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10695 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10696 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10697 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10701 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10702 shlibpath_overrides_runpath
=no
10703 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10704 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10705 hardcode_into_libs
=yes
10708 # No shared lib support for Linux oldld, aout, or coff.
10709 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10713 # This must be Linux ELF.
10715 # uclinux* changes (here and below) have been submitted to the libtool
10716 # project, but have not yet been accepted: they are GCC-local changes
10717 # for the time being. (See
10718 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10719 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
10723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec
='${libname}${release}${shared_ext}$major'
10725 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10726 shlibpath_var
=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath
=no
10729 # Some binutils ld are patched to set DT_RUNPATH
10730 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10731 $as_echo_n "(cached) " >&6
10733 lt_cv_shlibpath_overrides_runpath
=no
10734 save_LDFLAGS
=$LDFLAGS
10735 save_libdir
=$libdir
10736 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10737 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10749 if ac_fn_c_try_link
"$LINENO"; then :
10750 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10751 lt_cv_shlibpath_overrides_runpath
=yes
10754 rm -f core conftest.err conftest.
$ac_objext \
10755 conftest
$ac_exeext conftest.
$ac_ext
10756 LDFLAGS
=$save_LDFLAGS
10757 libdir
=$save_libdir
10761 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10763 # This implies no fast_install, which is unacceptable.
10764 # Some rework will be needed to allow for fast_install
10765 # before this can be enabled.
10766 hardcode_into_libs
=yes
10768 # Append ld.so.conf contents to the search path
10769 if test -f /etc
/ld.so.conf
; then
10770 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' ' '`
10771 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10774 # We used to test for /lib/ld.so.1 and disable shared libraries on
10775 # powerpc, because MkLinux only supported shared libraries with the
10776 # GNU dynamic linker. Since this was broken with cross compilers,
10777 # most powerpc-linux boxes support dynamic linking these days and
10778 # people can always --disable-shared, the test was removed, and we
10779 # assume the GNU/Linux dynamic linker is in use.
10780 dynamic_linker
='GNU/Linux ld.so'
10787 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10789 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10790 dynamic_linker
='NetBSD (a.out) ld.so'
10792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10793 soname_spec
='${libname}${release}${shared_ext}$major'
10794 dynamic_linker
='NetBSD ld.elf_so'
10796 shlibpath_var
=LD_LIBRARY_PATH
10797 shlibpath_overrides_runpath
=yes
10798 hardcode_into_libs
=yes
10803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804 shlibpath_var
=LD_LIBRARY_PATH
10805 shlibpath_overrides_runpath
=yes
10812 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec
='${libname}${release}${shared_ext}$major'
10814 shlibpath_var
=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath
=no
10816 hardcode_into_libs
=yes
10817 dynamic_linker
='ldqnx.so'
10822 sys_lib_dlsearch_path_spec
="/usr/lib"
10824 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10826 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10827 *) need_version
=no
;;
10829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10830 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10831 shlibpath_var
=LD_LIBRARY_PATH
10832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10834 openbsd2.
[89] | openbsd2.
[89].
*)
10835 shlibpath_overrides_runpath
=no
10838 shlibpath_overrides_runpath
=yes
10842 shlibpath_overrides_runpath
=yes
10847 libname_spec
='$name'
10850 library_names_spec
='$libname${shared_ext} $libname.a'
10851 dynamic_linker
='OS/2 ld.exe'
10852 shlibpath_var
=LIBPATH
10855 osf3
* | osf4
* | osf5
*)
10859 soname_spec
='${libname}${release}${shared_ext}$major'
10860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 shlibpath_var
=LD_LIBRARY_PATH
10862 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10863 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec
='${libname}${release}${shared_ext}$major'
10876 shlibpath_var
=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath
=yes
10878 hardcode_into_libs
=yes
10879 # ldd complains unless libraries are executable
10880 postinstall_cmds
='chmod +x $lib'
10885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10886 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10887 shlibpath_var
=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath
=yes
10889 if test "$with_gnu_ld" = yes; then
10897 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec
='${libname}${release}${shared_ext}$major'
10899 shlibpath_var
=LD_LIBRARY_PATH
10900 case $host_vendor in
10902 shlibpath_overrides_runpath
=no
10904 runpath_var
=LD_RUN_PATH
10912 shlibpath_overrides_runpath
=no
10913 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10919 if test -d /usr
/nec
;then
10921 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10922 soname_spec
='$libname${shared_ext}.$major'
10923 shlibpath_var
=LD_LIBRARY_PATH
10927 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10928 version_type
=freebsd-elf
10931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10932 soname_spec
='${libname}${release}${shared_ext}$major'
10933 shlibpath_var
=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath
=yes
10935 hardcode_into_libs
=yes
10936 if test "$with_gnu_ld" = yes; then
10937 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10939 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10942 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10946 sys_lib_dlsearch_path_spec
='/usr/lib'
10950 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 shlibpath_var
=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath
=no
10957 hardcode_into_libs
=yes
10962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec
='${libname}${release}${shared_ext}$major'
10964 shlibpath_var
=LD_LIBRARY_PATH
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10972 $as_echo "$dynamic_linker" >&6; }
10973 test "$dynamic_linker" = no
&& can_build_shared
=no
10975 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10976 if test "$GCC" = yes; then
10977 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10980 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10981 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10983 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10984 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11079 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11081 if test -n "$hardcode_libdir_flag_spec" ||
11082 test -n "$runpath_var" ||
11083 test "X$hardcode_automatic" = "Xyes" ; then
11085 # We can hardcode non-existent directories.
11086 if test "$hardcode_direct" != no
&&
11087 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11088 # have to relink, otherwise we might link with an installed library
11089 # when we should be linking with a yet-to-be-installed one
11090 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11091 test "$hardcode_minus_L" != no
; then
11092 # Linking always hardcodes the temporary library directory.
11093 hardcode_action
=relink
11095 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11096 hardcode_action
=immediate
11099 # We cannot hardcode anything, or else we can only hardcode existing
11101 hardcode_action
=unsupported
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11104 $as_echo "$hardcode_action" >&6; }
11106 if test "$hardcode_action" = relink ||
11107 test "$inherit_rpath" = yes; then
11108 # Fast installation is not supported
11109 enable_fast_install
=no
11110 elif test "$shlibpath_overrides_runpath" = yes ||
11111 test "$enable_shared" = no
; then
11112 # Fast installation is not necessary
11113 enable_fast_install
=needless
11121 if test "x$enable_dlopen" != xyes
; then
11122 enable_dlopen
=unknown
11123 enable_dlopen_self
=unknown
11124 enable_dlopen_self_static
=unknown
11131 lt_cv_dlopen
="load_add_on"
11133 lt_cv_dlopen_self
=yes
11136 mingw
* | pw32
* | cegcc
*)
11137 lt_cv_dlopen
="LoadLibrary"
11142 lt_cv_dlopen
="dlopen"
11147 # if libdl is installed we need to link against it
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11149 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11150 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11151 $as_echo_n "(cached) " >&6
11153 ac_check_lib_save_LIBS
=$LIBS
11155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11173 if ac_fn_c_try_link
"$LINENO"; then :
11174 ac_cv_lib_dl_dlopen
=yes
11176 ac_cv_lib_dl_dlopen
=no
11178 rm -f core conftest.err conftest.
$ac_objext \
11179 conftest
$ac_exeext conftest.
$ac_ext
11180 LIBS
=$ac_check_lib_save_LIBS
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11184 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11185 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11188 lt_cv_dlopen
="dyld"
11190 lt_cv_dlopen_self
=yes
11197 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11198 if test "x$ac_cv_func_shl_load" = xyes
; then :
11199 lt_cv_dlopen
="shl_load"
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11202 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11203 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11204 $as_echo_n "(cached) " >&6
11206 ac_check_lib_save_LIBS
=$LIBS
11208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11211 /* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11221 return shl_load ();
11226 if ac_fn_c_try_link
"$LINENO"; then :
11227 ac_cv_lib_dld_shl_load
=yes
11229 ac_cv_lib_dld_shl_load
=no
11231 rm -f core conftest.err conftest.
$ac_objext \
11232 conftest
$ac_exeext conftest.
$ac_ext
11233 LIBS
=$ac_check_lib_save_LIBS
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11236 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11237 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11238 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11240 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11241 if test "x$ac_cv_func_dlopen" = xyes
; then :
11242 lt_cv_dlopen
="dlopen"
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11245 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11246 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11247 $as_echo_n "(cached) " >&6
11249 ac_check_lib_save_LIBS
=$LIBS
11251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11254 /* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11269 if ac_fn_c_try_link
"$LINENO"; then :
11270 ac_cv_lib_dl_dlopen
=yes
11272 ac_cv_lib_dl_dlopen
=no
11274 rm -f core conftest.err conftest.
$ac_objext \
11275 conftest
$ac_exeext conftest.
$ac_ext
11276 LIBS
=$ac_check_lib_save_LIBS
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11279 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11280 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11281 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11284 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11285 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11286 $as_echo_n "(cached) " >&6
11288 ac_check_lib_save_LIBS
=$LIBS
11289 LIBS
="-lsvld $LIBS"
11290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11293 /* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11308 if ac_fn_c_try_link
"$LINENO"; then :
11309 ac_cv_lib_svld_dlopen
=yes
11311 ac_cv_lib_svld_dlopen
=no
11313 rm -f core conftest.err conftest.
$ac_objext \
11314 conftest
$ac_exeext conftest.
$ac_ext
11315 LIBS
=$ac_check_lib_save_LIBS
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11318 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11319 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11320 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11323 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11324 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11325 $as_echo_n "(cached) " >&6
11327 ac_check_lib_save_LIBS
=$LIBS
11329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11342 return dld_link ();
11347 if ac_fn_c_try_link
"$LINENO"; then :
11348 ac_cv_lib_dld_dld_link
=yes
11350 ac_cv_lib_dld_dld_link
=no
11352 rm -f core conftest.err conftest.
$ac_objext \
11353 conftest
$ac_exeext conftest.
$ac_ext
11354 LIBS
=$ac_check_lib_save_LIBS
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11357 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11358 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11359 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11380 if test "x$lt_cv_dlopen" != xno
; then
11386 case $lt_cv_dlopen in
11388 save_CPPFLAGS
="$CPPFLAGS"
11389 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11391 save_LDFLAGS
="$LDFLAGS"
11392 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11395 LIBS
="$lt_cv_dlopen_libs $LIBS"
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11398 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11399 if ${lt_cv_dlopen_self+:} false
; then :
11400 $as_echo_n "(cached) " >&6
11402 if test "$cross_compiling" = yes; then :
11403 lt_cv_dlopen_self
=cross
11405 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11406 lt_status
=$lt_dlunknown
11407 cat > conftest.
$ac_ext <<_LT_EOF
11408 #line 11408 "configure"
11409 #include "confdefs.h"
11418 # define LT_DLGLOBAL RTLD_GLOBAL
11421 # define LT_DLGLOBAL DL_GLOBAL
11423 # define LT_DLGLOBAL 0
11427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11428 find out it does not work in some platform. */
11429 #ifndef LT_DLLAZY_OR_NOW
11431 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11434 # define LT_DLLAZY_OR_NOW DL_LAZY
11437 # define LT_DLLAZY_OR_NOW RTLD_NOW
11440 # define LT_DLLAZY_OR_NOW DL_NOW
11442 # define LT_DLLAZY_OR_NOW 0
11449 /* When -fvisbility=hidden is used, assume the code has been annotated
11450 correspondingly for the symbols needed. */
11451 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11452 void fnord () __attribute__((visibility("default")));
11455 void fnord () { int i=42; }
11458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11459 int status = $lt_dlunknown;
11463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11466 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11467 else puts (dlerror ());
11469 /* dlclose (self); */
11477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11478 (eval $ac_link) 2>&5
11480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11481 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11482 (.
/conftest
; exit; ) >&5 2>/dev
/null
11484 case x
$lt_status in
11485 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11486 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11487 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11490 # compilation failed
11491 lt_cv_dlopen_self
=no
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11499 $as_echo "$lt_cv_dlopen_self" >&6; }
11501 if test "x$lt_cv_dlopen_self" = xyes
; then
11502 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11504 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11505 if ${lt_cv_dlopen_self_static+:} false
; then :
11506 $as_echo_n "(cached) " >&6
11508 if test "$cross_compiling" = yes; then :
11509 lt_cv_dlopen_self_static
=cross
11511 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11512 lt_status
=$lt_dlunknown
11513 cat > conftest.
$ac_ext <<_LT_EOF
11514 #line 11514 "configure"
11515 #include "confdefs.h"
11524 # define LT_DLGLOBAL RTLD_GLOBAL
11527 # define LT_DLGLOBAL DL_GLOBAL
11529 # define LT_DLGLOBAL 0
11533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11534 find out it does not work in some platform. */
11535 #ifndef LT_DLLAZY_OR_NOW
11537 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11540 # define LT_DLLAZY_OR_NOW DL_LAZY
11543 # define LT_DLLAZY_OR_NOW RTLD_NOW
11546 # define LT_DLLAZY_OR_NOW DL_NOW
11548 # define LT_DLLAZY_OR_NOW 0
11555 /* When -fvisbility=hidden is used, assume the code has been annotated
11556 correspondingly for the symbols needed. */
11557 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11558 void fnord () __attribute__((visibility("default")));
11561 void fnord () { int i=42; }
11564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11565 int status = $lt_dlunknown;
11569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11573 else puts (dlerror ());
11575 /* dlclose (self); */
11583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11584 (eval $ac_link) 2>&5
11586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11587 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11588 (.
/conftest
; exit; ) >&5 2>/dev
/null
11590 case x
$lt_status in
11591 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11592 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11593 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11596 # compilation failed
11597 lt_cv_dlopen_self_static
=no
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11605 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11608 CPPFLAGS
="$save_CPPFLAGS"
11609 LDFLAGS
="$save_LDFLAGS"
11614 case $lt_cv_dlopen_self in
11615 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11616 *) enable_dlopen_self
=unknown
;;
11619 case $lt_cv_dlopen_self_static in
11620 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11621 *) enable_dlopen_self_static
=unknown
;;
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11644 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11645 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11646 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11647 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649 $as_echo "yes" >&6; }
11651 # FIXME - insert some real tests, host_os isn't really good enough
11654 if test -n "$STRIP" ; then
11655 striplib
="$STRIP -x"
11656 old_striplib
="$STRIP -S"
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658 $as_echo "yes" >&6; }
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11682 # Report which library types will actually be built
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11684 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11686 $as_echo "$can_build_shared" >&6; }
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11689 $as_echo_n "checking whether to build shared libraries... " >&6; }
11690 test "$can_build_shared" = "no" && enable_shared
=no
11692 # On AIX, shared libraries and static libraries use the same namespace, and
11693 # are all built from PIC.
11696 test "$enable_shared" = yes && enable_static
=no
11697 if test -n "$RANLIB"; then
11698 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11699 postinstall_cmds
='$RANLIB $lib'
11704 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11705 test "$enable_shared" = yes && enable_static
=no
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11710 $as_echo "$enable_shared" >&6; }
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11713 $as_echo_n "checking whether to build static libraries... " >&6; }
11714 # Make sure either enable_shared or enable_static is yes.
11715 test "$enable_shared" = yes || enable_static
=yes
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11717 $as_echo "$enable_static" >&6; }
11724 ac_cpp
='$CPP $CPPFLAGS'
11725 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11726 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11727 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11743 ac_config_commands
="$ac_config_commands libtool"
11748 # Only expand once:
11755 *-cygwin* |
*-mingw*)
11756 # 'host' will be top-level target in the case of a target lib,
11757 # we must compare to with_cross_host to decide if this is a native
11758 # or cross-compiler and select where to install dlls appropriately.
11759 if test -n "$with_cross_host" &&
11760 test x
"$with_cross_host" != x
"no"; then
11761 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11763 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11778 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11779 # Check whether --enable-maintainer-mode was given.
11780 if test "${enable_maintainer_mode+set}" = set; then :
11781 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11783 USE_MAINTAINER_MODE
=no
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11787 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11788 if test $USE_MAINTAINER_MODE = yes; then
11789 MAINTAINER_MODE_TRUE
=
11790 MAINTAINER_MODE_FALSE
='#'
11792 MAINTAINER_MODE_TRUE
='#'
11793 MAINTAINER_MODE_FALSE
=
11796 MAINT
=$MAINTAINER_MODE_TRUE
11800 # Create a spec file, so that compile/link tests don't fail
11801 test -f libgfortran.spec ||
touch libgfortran.spec
11802 FCFLAGS
="$FCFLAGS -L."
11804 # We need gfortran to compile parts of the library
11805 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11806 #AC_PROG_FC(gfortran)
11807 case `echo $GFORTRAN` in
11811 set dummy
$GFORTRAN; ac_word
=$2
11812 if test -x "$ac_word"; then
11818 ac_ext
=${ac_fc_srcext-f}
11819 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11820 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11821 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11822 if test -n "$ac_tool_prefix"; then
11823 for ac_prog
in gfortran
11825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11826 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828 $as_echo_n "checking for $ac_word... " >&6; }
11829 if ${ac_cv_prog_FC+:} false
; then :
11830 $as_echo_n "(cached) " >&6
11832 if test -n "$FC"; then
11833 ac_cv_prog_FC
="$FC" # Let the user override the test.
11835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11836 for as_dir
in $PATH
11839 test -z "$as_dir" && as_dir
=.
11840 for ac_exec_ext
in '' $ac_executable_extensions; do
11841 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11842 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 if test -n "$FC"; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11855 $as_echo "$FC" >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11862 test -n "$FC" && break
11865 if test -z "$FC"; then
11867 for ac_prog
in gfortran
11869 # Extract the first word of "$ac_prog", so it can be a program name with args.
11870 set dummy
$ac_prog; ac_word
=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872 $as_echo_n "checking for $ac_word... " >&6; }
11873 if ${ac_cv_prog_ac_ct_FC+:} false
; then :
11874 $as_echo_n "(cached) " >&6
11876 if test -n "$ac_ct_FC"; then
11877 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11880 for as_dir
in $PATH
11883 test -z "$as_dir" && as_dir
=.
11884 for ac_exec_ext
in '' $ac_executable_extensions; do
11885 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11886 ac_cv_prog_ac_ct_FC
="$ac_prog"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11897 if test -n "$ac_ct_FC"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11899 $as_echo "$ac_ct_FC" >&6; }
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11906 test -n "$ac_ct_FC" && break
11909 if test "x$ac_ct_FC" = x
; then
11912 case $cross_compiling:$ac_tool_warned in
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11916 ac_tool_warned
=yes ;;
11923 # Provide some information about the compiler.
11924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11927 for ac_option
in --version -v -V -qversion; do
11928 { { ac_try
="$ac_compiler $ac_option >&5"
11929 case "(($ac_try" in
11930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11934 $as_echo "$ac_try_echo"; } >&5
11935 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11937 if test -s conftest.err; then
11939 ... rest of stderr output deleted ...
11940 10q' conftest.err >conftest.er1
11941 cat conftest.er1 >&5
11943 rm -f conftest.er1 conftest.err
11944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11945 test $ac_status = 0; }
11949 # If we don't use `.F
' as extension, the preprocessor is not run on the
11950 # input file. (Note that this only needs to work for GNU compilers.)
11951 ac_save_ext=$ac_ext
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11954 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11955 if ${ac_cv_fc_compiler_gnu+:} false; then :
11956 $as_echo_n "(cached) " >&6
11958 cat > conftest.$ac_ext <<_ACEOF
11966 if ac_fn_fc_try_compile "$LINENO"; then :
11967 ac_compiler_gnu=yes
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11976 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11977 ac_ext=$ac_save_ext
11978 ac_test_FCFLAGS=${FCFLAGS+set}
11979 ac_save_FCFLAGS=$FCFLAGS
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11982 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11983 if ${ac_cv_prog_fc_g+:} false; then :
11984 $as_echo_n "(cached) " >&6
11987 cat > conftest.$ac_ext <<_ACEOF
11992 if ac_fn_fc_try_compile "$LINENO"; then :
11993 ac_cv_prog_fc_g=yes
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12001 $as_echo "$ac_cv_prog_fc_g" >&6; }
12002 if test "$ac_test_FCFLAGS" = set; then
12003 FCFLAGS=$ac_save_FCFLAGS
12004 elif test $ac_cv_prog_fc_g = yes; then
12005 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12011 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12018 if test $ac_compiler_gnu = yes; then
12024 ac_cpp='$CPP $CPPFLAGS'
12025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12026 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12029 ac_ext=${ac_fc_srcext-f}
12030 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
12031 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
12032 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12035 if test -z "$FC" || test "X$FC" = "Xno"; then
12039 archive_cmds_need_lc_FC=no
12040 allow_undefined_flag_FC=
12041 always_export_symbols_FC=no
12042 archive_expsym_cmds_FC=
12043 export_dynamic_flag_spec_FC=
12044 hardcode_direct_FC=no
12045 hardcode_direct_absolute_FC=no
12046 hardcode_libdir_flag_spec_FC=
12047 hardcode_libdir_flag_spec_ld_FC=
12048 hardcode_libdir_separator_FC=
12049 hardcode_minus_L_FC=no
12050 hardcode_automatic_FC=no
12051 inherit_rpath_FC=no
12053 module_expsym_cmds_FC=
12054 link_all_deplibs_FC=unknown
12055 old_archive_cmds_FC=$old_archive_cmds
12056 reload_flag_FC=$reload_flag
12057 reload_cmds_FC=$reload_cmds
12058 no_undefined_flag_FC=
12059 whole_archive_flag_spec_FC=
12060 enable_shared_with_static_runtimes_FC=no
12062 # Source file extension for fc test sources.
12063 ac_ext=${ac_fc_srcext-f}
12065 # Object file extension for compiled fc test sources.
12069 # No sense in running all these tests if we already determined that
12070 # the FC compiler isn't working. Some variables
(like enable_shared
)
12071 # are currently assumed to apply to all compilers on this platform,
12072 # and will be corrupted by setting them based on a non-working compiler.
12073 if test "$_lt_disable_FC" != yes; then
12074 # Code to be used in simple compile tests
12075 lt_simple_compile_test_code
="\
12081 # Code to be used in simple link tests
12082 lt_simple_link_test_code
="\
12087 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12094 # If no C compiler was specified, use CC.
12097 # If no C compiler flags were specified, use CFLAGS.
12098 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12100 # Allow CC to be a program name with arguments.
12104 # save warnings/boilerplate of simple test code
12105 ac_outfile
=conftest.
$ac_objext
12106 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12107 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12108 _lt_compiler_boilerplate
=`cat conftest.err`
12111 ac_outfile
=conftest.
$ac_objext
12112 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12113 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12114 _lt_linker_boilerplate
=`cat conftest.err`
12118 # Allow CC to be a program name with arguments.
12123 GCC
=$ac_cv_fc_compiler_gnu
12126 for cc_temp
in $compiler""; do
12128 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12129 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12134 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12137 if test -n "$compiler"; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12139 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12141 $as_echo "$can_build_shared" >&6; }
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12144 $as_echo_n "checking whether to build shared libraries... " >&6; }
12145 test "$can_build_shared" = "no" && enable_shared
=no
12147 # On AIX, shared libraries and static libraries use the same namespace, and
12148 # are all built from PIC.
12151 test "$enable_shared" = yes && enable_static
=no
12152 if test -n "$RANLIB"; then
12153 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12154 postinstall_cmds
='$RANLIB $lib'
12158 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12159 test "$enable_shared" = yes && enable_static
=no
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12164 $as_echo "$enable_shared" >&6; }
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12167 $as_echo_n "checking whether to build static libraries... " >&6; }
12168 # Make sure either enable_shared or enable_static is yes.
12169 test "$enable_shared" = yes || enable_static
=yes
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12171 $as_echo "$enable_static" >&6; }
12173 GCC_FC
="$ac_cv_fc_compiler_gnu"
12177 ## There is no encapsulation within the following macros, do not change
12178 ## the running order or otherwise move them around unless you know exactly
12179 ## what you are doing...
12180 # Dependencies to place before and after the object being linked:
12182 postdep_objects_FC
=
12185 compiler_lib_search_path_FC
=
12187 cat > conftest.
$ac_ext <<_LT_EOF
12196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12197 (eval $ac_compile) 2>&5
12199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12200 test $ac_status = 0; }; then
12201 # Parse the compiler output and extract the necessary
12202 # objects, libraries and library flags.
12204 # Sentinel used to keep track of whether or not we are before
12205 # the conftest object file.
12206 pre_test_object_deps_done
=no
12208 for p
in `eval "$output_verbose_link_cmd"`; do
12212 # Some compilers place space between "-{L,R}" and the path.
12213 # Remove the space.
12214 if test $p = "-L" ||
12215 test $p = "-R"; then
12222 if test "$pre_test_object_deps_done" = no
; then
12225 # Internal compiler library paths should come after those
12226 # provided the user. The postdeps already come after the
12227 # user supplied libs so there is no need to process them.
12228 if test -z "$compiler_lib_search_path_FC"; then
12229 compiler_lib_search_path_FC
="${prev}${p}"
12231 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
12234 # The "-l" case would never come before the object being
12235 # linked, so don't bother handling this case.
12238 if test -z "$postdeps_FC"; then
12239 postdeps_FC
="${prev}${p}"
12241 postdeps_FC
="${postdeps_FC} ${prev}${p}"
12247 # This assumes that the test object file only shows up
12248 # once in the compiler output.
12249 if test "$p" = "conftest.$objext"; then
12250 pre_test_object_deps_done
=yes
12254 if test "$pre_test_object_deps_done" = no
; then
12255 if test -z "$predep_objects_FC"; then
12256 predep_objects_FC
="$p"
12258 predep_objects_FC
="$predep_objects_FC $p"
12261 if test -z "$postdep_objects_FC"; then
12262 postdep_objects_FC
="$p"
12264 postdep_objects_FC
="$postdep_objects_FC $p"
12269 *) ;; # Ignore the rest.
12277 echo "libtool.m4: error: problem compiling FC test program"
12280 $RM -f confest.
$objext
12282 # PORTME: override above test on systems where it is broken
12285 case " $postdeps_FC " in
12286 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12288 compiler_lib_search_dirs_FC
=
12289 if test -n "${compiler_lib_search_path_FC}"; then
12290 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12323 lt_prog_compiler_wl_FC
=
12324 lt_prog_compiler_pic_FC
=
12325 lt_prog_compiler_static_FC
=
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12328 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12330 if test "$GCC" = yes; then
12331 lt_prog_compiler_wl_FC
='-Wl,'
12332 lt_prog_compiler_static_FC
='-static'
12336 # All AIX code is PIC.
12337 if test "$host_cpu" = ia64
; then
12338 # AIX 5 now supports IA64 processor
12339 lt_prog_compiler_static_FC
='-Bstatic'
12341 lt_prog_compiler_pic_FC
='-fPIC'
12347 # see comment about AmigaOS4 .so support
12348 lt_prog_compiler_pic_FC
='-fPIC'
12351 # FIXME: we need at least 68020 code to build shared libraries, but
12352 # adding the `-m68020' flag to GCC prevents building anything better,
12354 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12359 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12360 # PIC is the default for these OSes.
12363 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12364 # This hack is so that the source file can tell whether it is being
12365 # built for inclusion in a dll (and should export symbols for example).
12366 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12367 # (--disable-auto-import) libraries
12368 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12371 darwin
* | rhapsody
*)
12372 # PIC is the default on this platform
12373 # Common symbols not allowed in MH_DYLIB files
12374 lt_prog_compiler_pic_FC
='-fno-common'
12378 # PIC is the default for Haiku.
12379 # The "-static" flag exists, but is broken.
12380 lt_prog_compiler_static_FC
=
12384 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12385 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12386 # sets the default TLS model and affects inlining.
12392 lt_prog_compiler_pic_FC
='-fPIC'
12398 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12399 # Instead, we relocate shared libraries at runtime.
12403 # Just because we use GCC doesn't mean we suddenly get shared libraries
12404 # on systems that don't support them.
12405 lt_prog_compiler_can_build_shared_FC
=no
12410 # QNX uses GNU C++, but need to define -shared option too, otherwise
12411 # it will coredump.
12412 lt_prog_compiler_pic_FC
='-fPIC -shared'
12416 if test -d /usr
/nec
; then
12417 lt_prog_compiler_pic_FC
=-Kconform_pic
12422 lt_prog_compiler_pic_FC
='-fPIC'
12426 case $cc_basename in
12427 nvcc
*) # Cuda Compiler Driver 2.2
12428 lt_prog_compiler_wl_FC
='-Xlinker '
12429 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12433 # PORTME Check for flag to pass linker flags through the system compiler.
12436 lt_prog_compiler_wl_FC
='-Wl,'
12437 if test "$host_cpu" = ia64
; then
12438 # AIX 5 now supports IA64 processor
12439 lt_prog_compiler_static_FC
='-Bstatic'
12441 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12445 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12446 # This hack is so that the source file can tell whether it is being
12447 # built for inclusion in a dll (and should export symbols for example).
12448 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12451 hpux9
* | hpux10
* | hpux11
*)
12452 lt_prog_compiler_wl_FC
='-Wl,'
12453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12454 # not for PA HP-UX.
12460 lt_prog_compiler_pic_FC
='+Z'
12463 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12464 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12467 irix5
* | irix6
* | nonstopux
*)
12468 lt_prog_compiler_wl_FC
='-Wl,'
12469 # PIC (with -KPIC) is the default.
12470 lt_prog_compiler_static_FC
='-non_shared'
12473 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12474 case $cc_basename in
12475 # old Intel for x86_64 which still supported -KPIC.
12477 lt_prog_compiler_wl_FC
='-Wl,'
12478 lt_prog_compiler_pic_FC
='-KPIC'
12479 lt_prog_compiler_static_FC
='-static'
12481 # icc used to be incompatible with GCC.
12482 # ICC 10 doesn't accept -KPIC any more.
12484 lt_prog_compiler_wl_FC
='-Wl,'
12485 lt_prog_compiler_pic_FC
='-fPIC'
12486 lt_prog_compiler_static_FC
='-static'
12488 # Lahey Fortran 8.1.
12490 lt_prog_compiler_wl_FC
='-Wl,'
12491 lt_prog_compiler_pic_FC
='--shared'
12492 lt_prog_compiler_static_FC
='--static'
12494 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12495 # Portland Group compilers (*not* the Pentium gcc compiler,
12496 # which looks to be a dead project)
12497 lt_prog_compiler_wl_FC
='-Wl,'
12498 lt_prog_compiler_pic_FC
='-fpic'
12499 lt_prog_compiler_static_FC
='-Bstatic'
12502 lt_prog_compiler_wl_FC
='-Wl,'
12503 # All Alpha code is PIC.
12504 lt_prog_compiler_static_FC
='-non_shared'
12506 xl
* | bgxl
* | bgf
* | mpixl
*)
12507 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12508 lt_prog_compiler_wl_FC
='-Wl,'
12509 lt_prog_compiler_pic_FC
='-qpic'
12510 lt_prog_compiler_static_FC
='-qstaticlink'
12513 case `$CC -V 2>&1 | sed 5q` in
12514 *Sun\ F
* |
*Sun
*Fortran
*)
12515 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12516 lt_prog_compiler_pic_FC
='-KPIC'
12517 lt_prog_compiler_static_FC
='-Bstatic'
12518 lt_prog_compiler_wl_FC
=''
12522 lt_prog_compiler_pic_FC
='-KPIC'
12523 lt_prog_compiler_static_FC
='-Bstatic'
12524 lt_prog_compiler_wl_FC
='-Wl,'
12532 lt_prog_compiler_pic_FC
='-KPIC'
12533 lt_prog_compiler_static_FC
='-Bstatic'
12537 # QNX uses GNU C++, but need to define -shared option too, otherwise
12538 # it will coredump.
12539 lt_prog_compiler_pic_FC
='-fPIC -shared'
12542 osf3
* | osf4
* | osf5
*)
12543 lt_prog_compiler_wl_FC
='-Wl,'
12544 # All OSF/1 code is PIC.
12545 lt_prog_compiler_static_FC
='-non_shared'
12549 lt_prog_compiler_static_FC
='-non_shared'
12553 lt_prog_compiler_pic_FC
='-KPIC'
12554 lt_prog_compiler_static_FC
='-Bstatic'
12555 case $cc_basename in
12556 f77
* | f90
* | f95
*)
12557 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12559 lt_prog_compiler_wl_FC
='-Wl,';;
12564 lt_prog_compiler_wl_FC
='-Qoption ld '
12565 lt_prog_compiler_pic_FC
='-PIC'
12566 lt_prog_compiler_static_FC
='-Bstatic'
12569 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12570 lt_prog_compiler_wl_FC
='-Wl,'
12571 lt_prog_compiler_pic_FC
='-KPIC'
12572 lt_prog_compiler_static_FC
='-Bstatic'
12576 if test -d /usr
/nec
;then
12577 lt_prog_compiler_pic_FC
='-Kconform_pic'
12578 lt_prog_compiler_static_FC
='-Bstatic'
12582 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12583 lt_prog_compiler_wl_FC
='-Wl,'
12584 lt_prog_compiler_pic_FC
='-KPIC'
12585 lt_prog_compiler_static_FC
='-Bstatic'
12589 lt_prog_compiler_wl_FC
='-Wl,'
12590 lt_prog_compiler_can_build_shared_FC
=no
12594 lt_prog_compiler_pic_FC
='-pic'
12595 lt_prog_compiler_static_FC
='-Bstatic'
12599 lt_prog_compiler_can_build_shared_FC
=no
12605 # For platforms which do not support PIC, -DPIC is meaningless:
12607 lt_prog_compiler_pic_FC
=
12610 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12614 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12619 # Check to make sure the PIC flag actually works.
12621 if test -n "$lt_prog_compiler_pic_FC"; then
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12623 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12624 if ${lt_cv_prog_compiler_pic_works_FC+:} false
; then :
12625 $as_echo_n "(cached) " >&6
12627 lt_cv_prog_compiler_pic_works_FC
=no
12628 ac_outfile
=conftest.
$ac_objext
12629 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12630 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12631 # Insert the option either (1) after the last *FLAGS variable, or
12632 # (2) before a word containing "conftest.", or (3) at the end.
12633 # Note that $ac_compile itself does not contain backslashes and begins
12634 # with a dollar sign (not a hyphen), so the echo should work correctly.
12635 # The option is referenced via a variable to avoid confusing sed.
12636 lt_compile
=`echo "$ac_compile" | $SED \
12637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12639 -e 's:$: $lt_compiler_flag:'`
12640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12641 (eval "$lt_compile" 2>conftest.err
)
12643 cat conftest.err
>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 if (exit $ac_status) && test -s "$ac_outfile"; then
12646 # The compiler can only warn and ignore the option if not recognized
12647 # So say no if there are warnings other than the usual output.
12648 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12649 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12650 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12651 lt_cv_prog_compiler_pic_works_FC
=yes
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12658 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12660 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12661 case $lt_prog_compiler_pic_FC in
12663 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12666 lt_prog_compiler_pic_FC
=
12667 lt_prog_compiler_can_build_shared_FC
=no
12675 # Check to make sure the static flag actually works.
12677 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12679 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12680 if ${lt_cv_prog_compiler_static_works_FC+:} false
; then :
12681 $as_echo_n "(cached) " >&6
12683 lt_cv_prog_compiler_static_works_FC
=no
12684 save_LDFLAGS
="$LDFLAGS"
12685 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12686 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12687 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12688 # The linker can only warn and ignore the option if not recognized
12689 # So say no if there are warnings
12690 if test -s conftest.err
; then
12691 # Append any errors to the config.log.
12692 cat conftest.err
1>&5
12693 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12694 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12695 if diff conftest.exp conftest.er2
>/dev
/null
; then
12696 lt_cv_prog_compiler_static_works_FC
=yes
12699 lt_cv_prog_compiler_static_works_FC
=yes
12703 LDFLAGS
="$save_LDFLAGS"
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12707 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12709 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12712 lt_prog_compiler_static_FC
=
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12719 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12720 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12721 $as_echo_n "(cached) " >&6
12723 lt_cv_prog_compiler_c_o_FC
=no
12724 $RM -r conftest
2>/dev
/null
12728 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12730 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12731 # Insert the option either (1) after the last *FLAGS variable, or
12732 # (2) before a word containing "conftest.", or (3) at the end.
12733 # Note that $ac_compile itself does not contain backslashes and begins
12734 # with a dollar sign (not a hyphen), so the echo should work correctly.
12735 lt_compile
=`echo "$ac_compile" | $SED \
12736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12738 -e 's:$: $lt_compiler_flag:'`
12739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12740 (eval "$lt_compile" 2>out
/conftest.err
)
12742 cat out
/conftest.err
>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12746 # The compiler can only warn and ignore the option if not recognized
12747 # So say no if there are warnings
12748 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12749 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12750 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12751 lt_cv_prog_compiler_c_o_FC
=yes
12756 # SGI C++ compiler will create directory out/ii_files/ for
12757 # template instantiation
12758 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12759 $RM out
/* && rmdir out
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12766 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12771 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12772 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12773 $as_echo_n "(cached) " >&6
12775 lt_cv_prog_compiler_c_o_FC
=no
12776 $RM -r conftest
2>/dev
/null
12780 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12782 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12783 # Insert the option either (1) after the last *FLAGS variable, or
12784 # (2) before a word containing "conftest.", or (3) at the end.
12785 # Note that $ac_compile itself does not contain backslashes and begins
12786 # with a dollar sign (not a hyphen), so the echo should work correctly.
12787 lt_compile
=`echo "$ac_compile" | $SED \
12788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12790 -e 's:$: $lt_compiler_flag:'`
12791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12792 (eval "$lt_compile" 2>out
/conftest.err
)
12794 cat out
/conftest.err
>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12798 # The compiler can only warn and ignore the option if not recognized
12799 # So say no if there are warnings
12800 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12801 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12802 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12803 lt_cv_prog_compiler_c_o_FC
=yes
12808 # SGI C++ compiler will create directory out/ii_files/ for
12809 # template instantiation
12810 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12811 $RM out
/* && rmdir out
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12818 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12823 hard_links
="nottested"
12824 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12825 # do not overwrite the value of need_locks provided by the user
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12827 $as_echo_n "checking if we can lock with hard links... " >&6; }
12830 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12832 ln conftest.a conftest.b
2>&5 || hard_links
=no
12833 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12835 $as_echo "$hard_links" >&6; }
12836 if test "$hard_links" = no
; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12838 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12848 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12851 allow_undefined_flag_FC
=
12852 always_export_symbols_FC
=no
12854 archive_expsym_cmds_FC
=
12855 compiler_needs_object_FC
=no
12856 enable_shared_with_static_runtimes_FC
=no
12857 export_dynamic_flag_spec_FC
=
12858 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12859 hardcode_automatic_FC
=no
12860 hardcode_direct_FC
=no
12861 hardcode_direct_absolute_FC
=no
12862 hardcode_libdir_flag_spec_FC
=
12863 hardcode_libdir_flag_spec_ld_FC
=
12864 hardcode_libdir_separator_FC
=
12865 hardcode_minus_L_FC
=no
12866 hardcode_shlibpath_var_FC
=unsupported
12867 inherit_rpath_FC
=no
12868 link_all_deplibs_FC
=unknown
12870 module_expsym_cmds_FC
=
12871 old_archive_from_new_cmds_FC
=
12872 old_archive_from_expsyms_cmds_FC
=
12873 thread_safe_flag_spec_FC
=
12874 whole_archive_flag_spec_FC
=
12875 # include_expsyms should be a list of space-separated symbols to be *always*
12876 # included in the symbol list
12877 include_expsyms_FC
=
12878 # exclude_expsyms can be an extended regexp of symbols to exclude
12879 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12880 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12881 # as well as any symbol that contains `d'.
12882 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12883 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12884 # platforms (ab)use it in PIC code, but their linkers get confused if
12885 # the symbol is explicitly referenced. Since portable code cannot
12886 # rely on this symbol name, it's probably fine to never include it in
12887 # preloaded symbol tables.
12888 # Exclude shared library initialization/finalization symbols.
12889 extract_expsyms_cmds
=
12892 cygwin
* | mingw
* | pw32
* | cegcc
*)
12893 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12894 # When not using gcc, we currently assume that we are using
12895 # Microsoft Visual C++.
12896 if test "$GCC" != yes; then
12901 # we just hope/assume this is gcc and not c89 (= MSVC++)
12911 # On some targets, GNU ld is compatible enough with the native linker
12912 # that we're better off using the native interface for both.
12913 lt_use_gnu_ld_interface
=no
12914 if test "$with_gnu_ld" = yes; then
12917 # The AIX port of GNU ld has always aspired to compatibility
12918 # with the native linker. However, as the warning in the GNU ld
12919 # block says, versions before 2.19.5* couldn't really create working
12920 # shared libraries, regardless of the interface used.
12921 case `$LD -v 2>&1` in
12922 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12923 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12924 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12926 lt_use_gnu_ld_interface
=yes
12931 lt_use_gnu_ld_interface
=yes
12936 if test "$lt_use_gnu_ld_interface" = yes; then
12937 # If archive_cmds runs LD, not CC, wlarc should be empty
12940 # Set some defaults for GNU ld with shared library support. These
12941 # are reset later if shared libraries are not supported. Putting them
12942 # here allows them to be overridden if necessary.
12943 runpath_var
=LD_RUN_PATH
12944 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12945 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12946 # ancient GNU ld didn't support --whole-archive et. al.
12947 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12948 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12950 whole_archive_flag_spec_FC
=
12952 supports_anon_versioning
=no
12953 case `$LD -v 2>&1` in
12954 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12955 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12956 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12957 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12958 *\
2.11.
*) ;; # other 2.11 versions
12959 *) supports_anon_versioning
=yes ;;
12962 # See if GNU ld supports shared libraries.
12965 # On AIX/PPC, the GNU linker is very broken
12966 if test "$host_cpu" != ia64
; then
12970 *** Warning: the GNU linker, at least up to release 2.19, is reported
12971 *** to be unable to reliably create shared libraries on AIX.
12972 *** Therefore, libtool is disabling shared libraries support. If you
12973 *** really care for shared libraries, you may want to install binutils
12974 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12975 *** You will then need to restart the configuration process.
12984 # see comment about AmigaOS4 .so support
12985 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986 archive_expsym_cmds_FC
=''
12989 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)'
12990 hardcode_libdir_flag_spec_FC
='-L$libdir'
12991 hardcode_minus_L_FC
=yes
12997 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12998 allow_undefined_flag_FC
=unsupported
12999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13000 # support --undefined. This deserves some investigation. FIXME
13001 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13007 cygwin
* | mingw
* | pw32
* | cegcc
*)
13008 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13009 # as there is no search path for DLLs.
13010 hardcode_libdir_flag_spec_FC
='-L$libdir'
13011 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
13012 allow_undefined_flag_FC
=unsupported
13013 always_export_symbols_FC
=no
13014 enable_shared_with_static_runtimes_FC
=yes
13015 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13017 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13018 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13019 # If the export-symbols file already is a .def file (1st line
13020 # is EXPORTS), use it as is; otherwise, prepend...
13021 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13022 cp $export_symbols $output_objdir/$soname.def;
13024 echo EXPORTS > $output_objdir/$soname.def;
13025 cat $export_symbols >> $output_objdir/$soname.def;
13027 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13034 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13035 link_all_deplibs_FC
=yes
13039 hardcode_direct_FC
=no
13040 hardcode_shlibpath_var_FC
=no
13041 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13042 export_dynamic_flag_spec_FC
='${wl}-E'
13043 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13044 # Instead, shared libraries are loaded at an image base (0x10000000 by
13045 # default) and relocated if they conflict, which is a slow very memory
13046 # consuming and fragmenting process. To avoid this, we pick a random,
13047 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13048 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13049 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'
13050 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'
13053 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
13055 if test "$host_os" = linux-dietlibc
; then
13056 case $cc_basename in
13057 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13060 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13061 && test "$tmp_diet" = no
13063 tmp_addflag
=' $pic_flag'
13064 tmp_sharedflag
='-shared'
13065 case $cc_basename,$host_cpu in
13066 pgcc
*) # Portland Group C compiler
13067 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'
13068 tmp_addflag
=' $pic_flag'
13070 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13071 # Portland Group f77 and f90 compilers
13072 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'
13073 tmp_addflag
=' $pic_flag -Mnomain' ;;
13074 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13075 tmp_addflag
=' -i_dynamic' ;;
13076 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13077 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13078 ifc
* | ifort
*) # Intel Fortran compiler
13079 tmp_addflag
=' -nofor_main' ;;
13080 lf95
*) # Lahey Fortran 8.1
13081 whole_archive_flag_spec_FC
=
13082 tmp_sharedflag
='--shared' ;;
13083 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13084 tmp_sharedflag
='-qmkshrobj'
13086 nvcc
*) # Cuda Compiler Driver 2.2
13087 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'
13088 compiler_needs_object_FC
=yes
13091 case `$CC -V 2>&1 | sed 5q` in
13092 *Sun\ C
*) # Sun C 5.9
13093 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'
13094 compiler_needs_object_FC
=yes
13095 tmp_sharedflag
='-G' ;;
13096 *Sun\ F
*) # Sun Fortran 8.3
13097 tmp_sharedflag
='-G' ;;
13099 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13101 if test "x$supports_anon_versioning" = xyes
; then
13102 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13103 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13104 echo "local: *; };" >> $output_objdir/$libname.ver~
13105 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13108 case $cc_basename in
13109 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13110 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13111 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
13112 hardcode_libdir_flag_spec_FC
=
13113 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
13114 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13115 if test "x$supports_anon_versioning" = xyes
; then
13116 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13118 echo "local: *; };" >> $output_objdir/$libname.ver~
13119 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13129 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13130 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13133 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13134 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13139 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13143 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13144 *** create shared libraries on Solaris systems. Therefore, libtool
13145 *** is disabling shared libraries support. We urge you to upgrade GNU
13146 *** binutils to release 2.9.1 or newer. Another option is to modify
13147 *** your PATH or compiler configuration so that the native linker is
13148 *** used, and then restart.
13151 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13152 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13153 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13159 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13160 case `$LD -v 2>&1` in
13161 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13165 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13166 *** reliably create shared libraries on SCO systems. Therefore, libtool
13167 *** is disabling shared libraries support. We urge you to upgrade GNU
13168 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13169 *** your PATH or compiler configuration so that the native linker is
13170 *** used, and then restart.
13175 # For security reasons, it is highly recommended that you always
13176 # use absolute paths for naming shared libraries, and exclude the
13177 # DT_RUNPATH tag from executables and libraries. But doing so
13178 # requires that you compile everything twice, which is a pain.
13179 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13180 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13181 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13182 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13191 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13193 hardcode_direct_FC
=yes
13194 hardcode_shlibpath_var_FC
=no
13198 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13199 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13200 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13207 if test "$ld_shlibs_FC" = no
; then
13209 hardcode_libdir_flag_spec_FC
=
13210 export_dynamic_flag_spec_FC
=
13211 whole_archive_flag_spec_FC
=
13214 # PORTME fill in a description of your system's linker (not GNU ld)
13217 allow_undefined_flag_FC
=unsupported
13218 always_export_symbols_FC
=yes
13219 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'
13220 # Note: this linker hardcodes the directories in LIBPATH if there
13221 # are no directories specified by -L.
13222 hardcode_minus_L_FC
=yes
13223 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13224 # Neither direct hardcoding nor static linking is supported with a
13226 hardcode_direct_FC
=unsupported
13231 if test "$host_cpu" = ia64
; then
13232 # On IA64, the linker does run time linking by default, so we don't
13233 # have to do anything special.
13234 aix_use_runtimelinking
=no
13235 exp_sym_flag
='-Bexport'
13238 # If we're using GNU nm, then we don't want the "-C" option.
13239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13240 # Also, AIX nm treats weak defined symbols like other global
13241 # defined symbols, whereas GNU nm marks them as "W".
13242 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13243 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'
13245 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'
13247 aix_use_runtimelinking
=no
13249 # Test if we are trying to use run time linking or normal
13250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13251 # need to do runtime linking.
13252 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13253 for ld_flag
in $LDFLAGS; do
13254 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13255 aix_use_runtimelinking
=yes
13262 exp_sym_flag
='-bexport'
13263 no_entry_flag
='-bnoentry'
13266 # When large executables or shared objects are built, AIX ld can
13267 # have problems creating the table of contents. If linking a library
13268 # or program results in "error TOC overflow" add -mminimal-toc to
13269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13273 hardcode_direct_FC
=yes
13274 hardcode_direct_absolute_FC
=yes
13275 hardcode_libdir_separator_FC
=':'
13276 link_all_deplibs_FC
=yes
13277 file_list_spec_FC
='${wl}-f,'
13279 if test "$GCC" = yes; then
13280 case $host_os in aix4.
[012]|aix4.
[012].
*)
13281 # We only want to do this on AIX 4.2 and lower, the check
13282 # below for broken collect2 doesn't work under 4.3+
13283 collect2name
=`${CC} -print-prog-name=collect2`
13284 if test -f "$collect2name" &&
13285 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13287 # We have reworked collect2
13290 # We have old collect2
13291 hardcode_direct_FC
=unsupported
13292 # It fails to find uninstalled libraries when the uninstalled
13293 # path is not listed in the libpath. Setting hardcode_minus_L
13294 # to unsupported forces relinking
13295 hardcode_minus_L_FC
=yes
13296 hardcode_libdir_flag_spec_FC
='-L$libdir'
13297 hardcode_libdir_separator_FC
=
13301 shared_flag
='-shared'
13302 if test "$aix_use_runtimelinking" = yes; then
13303 shared_flag
="$shared_flag "'${wl}-G'
13307 if test "$host_cpu" = ia64
; then
13308 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13309 # chokes on -Wl,-G. The following line is correct:
13312 if test "$aix_use_runtimelinking" = yes; then
13313 shared_flag
='${wl}-G'
13315 shared_flag
='${wl}-bM:SRE'
13320 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13321 # It seems that -bexpall does not export symbols beginning with
13322 # underscore (_), so it is better to generate a list of symbols to export.
13323 always_export_symbols_FC
=yes
13324 if test "$aix_use_runtimelinking" = yes; then
13325 # Warning - without using the other runtime loading flags (-brtl),
13326 # -berok will link without error, but may produce a broken library.
13327 allow_undefined_flag_FC
='-berok'
13328 # Determine the default libpath from the value encoded in an
13329 # empty executable.
13330 cat > conftest.
$ac_ext <<_ACEOF
13335 if ac_fn_fc_try_link
"$LINENO"; then :
13337 lt_aix_libpath_sed
='
13338 /Import File Strings/,/^$/ {
13344 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13345 # Check for a 64-bit object if we didn't find anything.
13346 if test -z "$aix_libpath"; then
13347 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13350 rm -f core conftest.err conftest.
$ac_objext \
13351 conftest
$ac_exeext conftest.
$ac_ext
13352 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13354 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13355 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"
13357 if test "$host_cpu" = ia64
; then
13358 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13359 allow_undefined_flag_FC
="-z nodefs"
13360 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"
13362 # Determine the default libpath from the value encoded in an
13363 # empty executable.
13364 cat > conftest.
$ac_ext <<_ACEOF
13369 if ac_fn_fc_try_link
"$LINENO"; then :
13371 lt_aix_libpath_sed
='
13372 /Import File Strings/,/^$/ {
13378 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13379 # Check for a 64-bit object if we didn't find anything.
13380 if test -z "$aix_libpath"; then
13381 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13384 rm -f core conftest.err conftest.
$ac_objext \
13385 conftest
$ac_exeext conftest.
$ac_ext
13386 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13388 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13389 # Warning - without using the other run time loading flags,
13390 # -berok will link without error, but may produce a broken library.
13391 no_undefined_flag_FC
=' ${wl}-bernotok'
13392 allow_undefined_flag_FC
=' ${wl}-berok'
13393 if test "$with_gnu_ld" = yes; then
13394 # We only use this code for GNU lds that support --whole-archive.
13395 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13397 # Exported symbols can be pulled into shared objects from archives
13398 whole_archive_flag_spec_FC
='$convenience'
13400 archive_cmds_need_lc_FC
=yes
13401 # This is similar to how AIX traditionally builds its shared libraries.
13402 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'
13410 # see comment about AmigaOS4 .so support
13411 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13412 archive_expsym_cmds_FC
=''
13415 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)'
13416 hardcode_libdir_flag_spec_FC
='-L$libdir'
13417 hardcode_minus_L_FC
=yes
13423 export_dynamic_flag_spec_FC
=-rdynamic
13426 cygwin
* | mingw
* | pw32
* | cegcc
*)
13427 # When not using gcc, we currently assume that we are using
13428 # Microsoft Visual C++.
13429 # hardcode_libdir_flag_spec is actually meaningless, as there is
13430 # no search path for DLLs.
13431 hardcode_libdir_flag_spec_FC
=' '
13432 allow_undefined_flag_FC
=unsupported
13433 # Tell ltmain to make .lib files, not .a files.
13435 # Tell ltmain to make .dll files, not .so files.
13437 # FIXME: Setting linknames here is a bad hack.
13438 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13439 # The linker will automatically build a .lib file if we build a DLL.
13440 old_archive_from_new_cmds_FC
='true'
13441 # FIXME: Should let the user specify the lib program.
13442 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13443 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13444 enable_shared_with_static_runtimes_FC
=yes
13447 darwin
* | rhapsody
*)
13450 archive_cmds_need_lc_FC
=no
13451 hardcode_direct_FC
=no
13452 hardcode_automatic_FC
=yes
13453 hardcode_shlibpath_var_FC
=unsupported
13454 if test "$lt_cv_ld_force_load" = "yes"; then
13455 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\"`'
13457 whole_archive_flag_spec_FC
=''
13459 link_all_deplibs_FC
=yes
13460 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13461 case $cc_basename in
13462 ifort
*) _lt_dar_can_shared
=yes ;;
13463 *) _lt_dar_can_shared
=$GCC ;;
13465 if test "$_lt_dar_can_shared" = "yes"; then
13466 output_verbose_link_cmd
=func_echo_all
13467 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}"
13468 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13469 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}"
13470 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}"
13479 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480 hardcode_libdir_flag_spec_FC
='-L$libdir'
13481 hardcode_shlibpath_var_FC
=no
13484 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13485 # support. Future versions do this automatically, but an explicit c++rt0.o
13486 # does not break anything, and helps significantly (at the cost of a little
13489 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13490 hardcode_libdir_flag_spec_FC
='-R$libdir'
13491 hardcode_direct_FC
=yes
13492 hardcode_shlibpath_var_FC
=no
13495 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13497 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13498 hardcode_direct_FC
=yes
13499 hardcode_minus_L_FC
=yes
13500 hardcode_shlibpath_var_FC
=no
13503 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13504 freebsd
* | dragonfly
*)
13505 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13506 hardcode_libdir_flag_spec_FC
='-R$libdir'
13507 hardcode_direct_FC
=yes
13508 hardcode_shlibpath_var_FC
=no
13512 if test "$GCC" = yes; then
13513 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'
13515 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'
13517 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13518 hardcode_libdir_separator_FC
=:
13519 hardcode_direct_FC
=yes
13521 # hardcode_minus_L: Not really in the search PATH,
13522 # but as the default location of the library.
13523 hardcode_minus_L_FC
=yes
13524 export_dynamic_flag_spec_FC
='${wl}-E'
13528 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13529 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13531 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13533 if test "$with_gnu_ld" = no
; then
13534 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13535 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13536 hardcode_libdir_separator_FC
=:
13537 hardcode_direct_FC
=yes
13538 hardcode_direct_absolute_FC
=yes
13539 export_dynamic_flag_spec_FC
='${wl}-E'
13540 # hardcode_minus_L: Not really in the search PATH,
13541 # but as the default location of the library.
13542 hardcode_minus_L_FC
=yes
13547 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13550 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13553 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13556 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13562 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13565 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13568 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13572 if test "$with_gnu_ld" = no
; then
13573 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13574 hardcode_libdir_separator_FC
=:
13578 hardcode_direct_FC
=no
13579 hardcode_shlibpath_var_FC
=no
13582 hardcode_direct_FC
=yes
13583 hardcode_direct_absolute_FC
=yes
13584 export_dynamic_flag_spec_FC
='${wl}-E'
13586 # hardcode_minus_L: Not really in the search PATH,
13587 # but as the default location of the library.
13588 hardcode_minus_L_FC
=yes
13594 irix5
* | irix6
* | nonstopux
*)
13595 if test "$GCC" = yes; then
13596 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'
13597 # Try to use the -exported_symbol ld option, if it does not
13598 # work, assume that -exports_file does not work either and
13599 # implicitly export all symbols.
13600 save_LDFLAGS
="$LDFLAGS"
13601 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13602 cat > conftest.
$ac_ext <<_ACEOF
13605 if ac_fn_fc_try_link
"$LINENO"; then :
13606 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'
13609 rm -f core conftest.err conftest.
$ac_objext \
13610 conftest
$ac_exeext conftest.
$ac_ext
13611 LDFLAGS
="$save_LDFLAGS"
13613 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'
13614 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'
13616 archive_cmds_need_lc_FC
='no'
13617 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13618 hardcode_libdir_separator_FC
=:
13619 inherit_rpath_FC
=yes
13620 link_all_deplibs_FC
=yes
13624 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13625 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13627 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13629 hardcode_libdir_flag_spec_FC
='-R$libdir'
13630 hardcode_direct_FC
=yes
13631 hardcode_shlibpath_var_FC
=no
13635 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13636 hardcode_direct_FC
=yes
13637 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13638 hardcode_libdir_separator_FC
=:
13639 hardcode_shlibpath_var_FC
=no
13646 if test -f /usr
/libexec
/ld.so
; then
13647 hardcode_direct_FC
=yes
13648 hardcode_shlibpath_var_FC
=no
13649 hardcode_direct_absolute_FC
=yes
13650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13651 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13653 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13654 export_dynamic_flag_spec_FC
='${wl}-E'
13657 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13658 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13659 hardcode_libdir_flag_spec_FC
='-R$libdir'
13662 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13663 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13673 hardcode_libdir_flag_spec_FC
='-L$libdir'
13674 hardcode_minus_L_FC
=yes
13675 allow_undefined_flag_FC
=unsupported
13676 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'
13677 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13681 if test "$GCC" = yes; then
13682 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13683 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'
13685 allow_undefined_flag_FC
=' -expect_unresolved \*'
13686 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'
13688 archive_cmds_need_lc_FC
='no'
13689 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13690 hardcode_libdir_separator_FC
=:
13693 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13694 if test "$GCC" = yes; then
13695 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13696 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'
13697 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13699 allow_undefined_flag_FC
=' -expect_unresolved \*'
13700 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'
13701 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~
13702 $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'
13704 # Both c and cxx compiler support -rpath directly
13705 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13707 archive_cmds_need_lc_FC
='no'
13708 hardcode_libdir_separator_FC
=:
13712 no_undefined_flag_FC
=' -z defs'
13713 if test "$GCC" = yes; then
13715 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13716 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13717 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13719 case `$CC -V 2>&1` in
13722 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13723 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13724 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13728 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13729 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13730 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13734 hardcode_libdir_flag_spec_FC
='-R$libdir'
13735 hardcode_shlibpath_var_FC
=no
13737 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13739 # The compiler driver will combine and reorder linker options,
13740 # but understands `-z linker_flag'. GCC discards it without `$wl',
13741 # but is careful enough not to reorder.
13742 # Supported since Solaris 2.6 (maybe 2.5.1?)
13743 if test "$GCC" = yes; then
13744 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13746 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13750 link_all_deplibs_FC
=yes
13754 if test "x$host_vendor" = xsequent
; then
13755 # Use $CC to link under sequent, because it throws in some extra .o
13756 # files that make .init and .fini sections work.
13757 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13759 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13761 hardcode_libdir_flag_spec_FC
='-L$libdir'
13762 hardcode_direct_FC
=yes
13763 hardcode_minus_L_FC
=yes
13764 hardcode_shlibpath_var_FC
=no
13768 case $host_vendor in
13770 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_direct_FC
=yes # is this really true???
13774 ## LD is ld it makes a PLAMLIB
13775 ## CC just makes a GrossModule.
13776 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13777 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13778 hardcode_direct_FC
=no
13781 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13782 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13785 runpath_var
='LD_RUN_PATH'
13786 hardcode_shlibpath_var_FC
=no
13790 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13791 hardcode_shlibpath_var_FC
=no
13792 export_dynamic_flag_spec_FC
='-Bexport'
13796 if test -d /usr
/nec
; then
13797 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798 hardcode_shlibpath_var_FC
=no
13799 runpath_var
=LD_RUN_PATH
13800 hardcode_runpath_var
=yes
13805 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13806 no_undefined_flag_FC
='${wl}-z,text'
13807 archive_cmds_need_lc_FC
=no
13808 hardcode_shlibpath_var_FC
=no
13809 runpath_var
='LD_RUN_PATH'
13811 if test "$GCC" = yes; then
13812 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13813 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13815 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13816 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13820 sysv5
* | sco3.2v5
* | sco5v6
*)
13821 # Note: We can NOT use -z defs as we might desire, because we do not
13822 # link with -lc, and that would cause any symbols used from libc to
13823 # always be unresolved, which means just about no library would
13824 # ever link correctly. If we're not using GNU ld we use -z text
13825 # though, which does catch some bad symbols but isn't as heavy-handed
13827 no_undefined_flag_FC
='${wl}-z,text'
13828 allow_undefined_flag_FC
='${wl}-z,nodefs'
13829 archive_cmds_need_lc_FC
=no
13830 hardcode_shlibpath_var_FC
=no
13831 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13832 hardcode_libdir_separator_FC
=':'
13833 link_all_deplibs_FC
=yes
13834 export_dynamic_flag_spec_FC
='${wl}-Bexport'
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'
13847 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13848 hardcode_libdir_flag_spec_FC
='-L$libdir'
13849 hardcode_shlibpath_var_FC
=no
13857 if test x
$host_vendor = xsni
; then
13859 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13860 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13867 $as_echo "$ld_shlibs_FC" >&6; }
13868 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13870 with_gnu_ld_FC
=$with_gnu_ld
13878 # Do we need to explicitly link libc?
13880 case "x$archive_cmds_need_lc_FC" in
13882 # Assume -lc should be added
13883 archive_cmds_need_lc_FC
=yes
13885 if test "$enable_shared" = yes && test "$GCC" = yes; then
13886 case $archive_cmds_FC in
13888 # FIXME: we may have to deal with multi-command sequences.
13891 # Test whether the compiler implicitly links with -lc since on some
13892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13893 # to ld, don't add -lc before -lgcc.
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13895 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13896 if ${lt_cv_archive_cmds_need_lc_FC+:} false
; then :
13897 $as_echo_n "(cached) " >&6
13900 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13903 (eval $ac_compile) 2>&5
13905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13906 test $ac_status = 0; } 2>conftest.err
; then
13909 libobjs
=conftest.
$ac_objext
13911 wl
=$lt_prog_compiler_wl_FC
13912 pic_flag
=$lt_prog_compiler_pic_FC
13918 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13919 allow_undefined_flag_FC
=
13920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13921 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924 test $ac_status = 0; }
13926 lt_cv_archive_cmds_need_lc_FC
=no
13928 lt_cv_archive_cmds_need_lc_FC
=yes
13930 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13932 cat conftest.err
1>&5
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13938 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13939 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14010 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14012 library_names_spec
=
14013 libname_spec
='lib$name'
14017 postuninstall_cmds
=
14021 shlibpath_overrides_runpath
=unknown
14023 dynamic_linker
="$host_os ld.so"
14024 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14025 need_lib_prefix
=unknown
14026 hardcode_into_libs
=no
14028 # when you set need_version to no, make sure it does not cause -set_version
14029 # flags to be left without arguments
14030 need_version
=unknown
14035 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14036 shlibpath_var
=LIBPATH
14038 # AIX 3 has no versioning support, so we append a major version to the name.
14039 soname_spec
='${libname}${release}${shared_ext}$major'
14046 hardcode_into_libs
=yes
14047 if test "$host_cpu" = ia64
; then
14048 # AIX 5 supports IA64
14049 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14050 shlibpath_var
=LD_LIBRARY_PATH
14052 # With GCC up to 2.95.x, collect2 would create an import file
14053 # for dependence libraries. The import file would start with
14054 # the line `#! .'. This would cause the generated library to
14055 # depend on `.', always an invalid library. This was fixed in
14056 # development snapshots of GCC prior to 3.0.
14058 aix4 | aix4.
[01] | aix4.
[01].
*)
14059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14061 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14064 can_build_shared
=no
14068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14069 # soname into executable. Probably we can add versioning support to
14070 # collect2, so additional links can be useful in future.
14071 if test "$aix_use_runtimelinking" = yes; then
14072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14073 # instead of lib<name>.a to let people know that these are not
14074 # typical AIX shared libraries.
14075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077 # We preserve .a as extension for shared libraries through AIX4.2
14078 # and later when we are not doing run time linking.
14079 library_names_spec
='${libname}${release}.a $libname.a'
14080 soname_spec
='${libname}${release}${shared_ext}$major'
14082 shlibpath_var
=LIBPATH
14089 # Since July 2007 AmigaOS4 officially supports .so libraries.
14090 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094 library_names_spec
='$libname.ixlibrary $libname.a'
14095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14096 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'
14102 library_names_spec
='${libname}${shared_ext}'
14103 dynamic_linker
="$host_os ld.so"
14104 shlibpath_var
=LIBRARY_PATH
14110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14111 soname_spec
='${libname}${release}${shared_ext}$major'
14112 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14113 shlibpath_var
=LD_LIBRARY_PATH
14114 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14115 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14116 # the default ld.so.conf also contains /usr/contrib/lib and
14117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14118 # libtool to hard-code these into programs
14121 cygwin
* | mingw
* | pw32
* | cegcc
*)
14122 version_type
=windows
14127 case $GCC,$host_os in
14128 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14129 library_names_spec
='$libname.dll.a'
14130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14131 postinstall_cmds
='base_file=`basename \${file}`~
14132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14133 dldir=$destdir/`dirname \$dlpath`~
14134 test -d \$dldir || mkdir -p \$dldir~
14135 $install_prog $dir/$dlname \$dldir/$dlname~
14136 chmod a+x \$dldir/$dlname~
14137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14140 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14141 dlpath=$dir/\$dldll~
14143 shlibpath_overrides_runpath
=yes
14147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14148 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14152 # MinGW DLLs use traditional 'lib' prefix
14153 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14156 # pw32 DLLs use 'pw' prefix rather than 'lib'
14157 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14163 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14166 dynamic_linker
='Win32 ld.exe'
14167 # FIXME: first we should search . and the directory the executable is in
14171 darwin
* | rhapsody
*)
14172 dynamic_linker
="$host_os dyld"
14173 version_type
=darwin
14176 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14177 soname_spec
='${libname}${release}${major}$shared_ext'
14178 shlibpath_overrides_runpath
=yes
14179 shlibpath_var
=DYLD_LIBRARY_PATH
14180 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14182 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14189 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14190 soname_spec
='${libname}${release}${shared_ext}$major'
14191 shlibpath_var
=LD_LIBRARY_PATH
14194 freebsd
* | dragonfly
*)
14195 # DragonFly does not have aout. When/if they implement a new
14196 # versioning mechanism, adjust this.
14197 if test -x /usr
/bin
/objformat
; then
14198 objformat
=`/usr/bin/objformat`
14201 freebsd
[23].
*) objformat
=aout
;;
14202 *) objformat
=elf
;;
14205 version_type
=freebsd-
$objformat
14206 case $version_type in
14208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14213 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14217 shlibpath_var
=LD_LIBRARY_PATH
14220 shlibpath_overrides_runpath
=yes
14222 freebsd3.
[01]* | freebsdelf3.
[01]*)
14223 shlibpath_overrides_runpath
=yes
14224 hardcode_into_libs
=yes
14226 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14227 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14228 shlibpath_overrides_runpath
=no
14229 hardcode_into_libs
=yes
14231 *) # from 4.6 on, and DragonFly
14232 shlibpath_overrides_runpath
=yes
14233 hardcode_into_libs
=yes
14242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14243 soname_spec
='${libname}${release}${shared_ext}$major'
14244 shlibpath_var
=LD_LIBRARY_PATH
14245 hardcode_into_libs
=yes
14252 dynamic_linker
="$host_os runtime_loader"
14253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14254 soname_spec
='${libname}${release}${shared_ext}$major'
14255 shlibpath_var
=LIBRARY_PATH
14256 shlibpath_overrides_runpath
=yes
14257 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14258 hardcode_into_libs
=yes
14261 hpux9
* | hpux10
* | hpux11
*)
14262 # Give a soname corresponding to the major version so that dld.sl refuses to
14263 # link against other versions.
14270 hardcode_into_libs
=yes
14271 dynamic_linker
="$host_os dld.so"
14272 shlibpath_var
=LD_LIBRARY_PATH
14273 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275 soname_spec
='${libname}${release}${shared_ext}$major'
14276 if test "X$HPUX_IA64_MODE" = X32
; then
14277 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14279 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14281 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14285 hardcode_into_libs
=yes
14286 dynamic_linker
="$host_os dld.sl"
14287 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14288 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14289 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14290 soname_spec
='${libname}${release}${shared_ext}$major'
14291 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14292 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14296 dynamic_linker
="$host_os dld.sl"
14297 shlibpath_var
=SHLIB_PATH
14298 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14300 soname_spec
='${libname}${release}${shared_ext}$major'
14303 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14304 postinstall_cmds
='chmod 555 $lib'
14305 # or fails outright, so override atomically:
14306 install_override_mode
=555
14313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14314 soname_spec
='${libname}${release}${shared_ext}$major'
14315 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14316 shlibpath_var
=LD_LIBRARY_PATH
14317 shlibpath_overrides_runpath
=no
14318 hardcode_into_libs
=yes
14321 irix5
* | irix6
* | nonstopux
*)
14323 nonstopux
*) version_type
=nonstopux
;;
14325 if test "$lt_cv_prog_gnu_ld" = yes; then
14333 soname_spec
='${libname}${release}${shared_ext}$major'
14334 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14336 irix5
* | nonstopux
*)
14337 libsuff
= shlibsuff
=
14340 case $LD in # libtool.m4 will add one of these switches to LD
14341 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14342 libsuff
= shlibsuff
= libmagic
=32-bit;;
14343 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14344 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14345 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14346 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14347 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14351 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14352 shlibpath_overrides_runpath
=no
14353 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14354 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14355 hardcode_into_libs
=yes
14358 # No shared lib support for Linux oldld, aout, or coff.
14359 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14363 # This must be Linux ELF.
14365 # uclinux* changes (here and below) have been submitted to the libtool
14366 # project, but have not yet been accepted: they are GCC-local changes
14367 # for the time being. (See
14368 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14369 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
14373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14374 soname_spec
='${libname}${release}${shared_ext}$major'
14375 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14376 shlibpath_var
=LD_LIBRARY_PATH
14377 shlibpath_overrides_runpath
=no
14379 # Some binutils ld are patched to set DT_RUNPATH
14380 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14381 $as_echo_n "(cached) " >&6
14383 lt_cv_shlibpath_overrides_runpath
=no
14384 save_LDFLAGS
=$LDFLAGS
14385 save_libdir
=$libdir
14386 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14387 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14388 cat > conftest.
$ac_ext <<_ACEOF
14393 if ac_fn_fc_try_link
"$LINENO"; then :
14394 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14395 lt_cv_shlibpath_overrides_runpath
=yes
14398 rm -f core conftest.err conftest.
$ac_objext \
14399 conftest
$ac_exeext conftest.
$ac_ext
14400 LDFLAGS
=$save_LDFLAGS
14401 libdir
=$save_libdir
14405 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14407 # This implies no fast_install, which is unacceptable.
14408 # Some rework will be needed to allow for fast_install
14409 # before this can be enabled.
14410 hardcode_into_libs
=yes
14412 # Append ld.so.conf contents to the search path
14413 if test -f /etc
/ld.so.conf
; then
14414 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' ' '`
14415 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14418 # We used to test for /lib/ld.so.1 and disable shared libraries on
14419 # powerpc, because MkLinux only supported shared libraries with the
14420 # GNU dynamic linker. Since this was broken with cross compilers,
14421 # most powerpc-linux boxes support dynamic linking these days and
14422 # people can always --disable-shared, the test was removed, and we
14423 # assume the GNU/Linux dynamic linker is in use.
14424 dynamic_linker
='GNU/Linux ld.so'
14431 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14433 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14434 dynamic_linker
='NetBSD (a.out) ld.so'
14436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14437 soname_spec
='${libname}${release}${shared_ext}$major'
14438 dynamic_linker
='NetBSD ld.elf_so'
14440 shlibpath_var
=LD_LIBRARY_PATH
14441 shlibpath_overrides_runpath
=yes
14442 hardcode_into_libs
=yes
14447 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448 shlibpath_var
=LD_LIBRARY_PATH
14449 shlibpath_overrides_runpath
=yes
14456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457 soname_spec
='${libname}${release}${shared_ext}$major'
14458 shlibpath_var
=LD_LIBRARY_PATH
14459 shlibpath_overrides_runpath
=no
14460 hardcode_into_libs
=yes
14461 dynamic_linker
='ldqnx.so'
14466 sys_lib_dlsearch_path_spec
="/usr/lib"
14468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14470 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14471 *) need_version
=no
;;
14473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14474 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14475 shlibpath_var
=LD_LIBRARY_PATH
14476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14478 openbsd2.
[89] | openbsd2.
[89].
*)
14479 shlibpath_overrides_runpath
=no
14482 shlibpath_overrides_runpath
=yes
14486 shlibpath_overrides_runpath
=yes
14491 libname_spec
='$name'
14494 library_names_spec
='$libname${shared_ext} $libname.a'
14495 dynamic_linker
='OS/2 ld.exe'
14496 shlibpath_var
=LIBPATH
14499 osf3
* | osf4
* | osf5
*)
14503 soname_spec
='${libname}${release}${shared_ext}$major'
14504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 shlibpath_var
=LD_LIBRARY_PATH
14506 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14507 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 soname_spec
='${libname}${release}${shared_ext}$major'
14520 shlibpath_var
=LD_LIBRARY_PATH
14521 shlibpath_overrides_runpath
=yes
14522 hardcode_into_libs
=yes
14523 # ldd complains unless libraries are executable
14524 postinstall_cmds
='chmod +x $lib'
14529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14530 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14531 shlibpath_var
=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath
=yes
14533 if test "$with_gnu_ld" = yes; then
14541 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542 soname_spec
='${libname}${release}${shared_ext}$major'
14543 shlibpath_var
=LD_LIBRARY_PATH
14544 case $host_vendor in
14546 shlibpath_overrides_runpath
=no
14548 runpath_var
=LD_RUN_PATH
14556 shlibpath_overrides_runpath
=no
14557 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14563 if test -d /usr
/nec
;then
14565 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14566 soname_spec
='$libname${shared_ext}.$major'
14567 shlibpath_var
=LD_LIBRARY_PATH
14571 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14572 version_type
=freebsd-elf
14575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14576 soname_spec
='${libname}${release}${shared_ext}$major'
14577 shlibpath_var
=LD_LIBRARY_PATH
14578 shlibpath_overrides_runpath
=yes
14579 hardcode_into_libs
=yes
14580 if test "$with_gnu_ld" = yes; then
14581 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14583 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14586 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14590 sys_lib_dlsearch_path_spec
='/usr/lib'
14594 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599 shlibpath_var
=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath
=no
14601 hardcode_into_libs
=yes
14606 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 soname_spec
='${libname}${release}${shared_ext}$major'
14608 shlibpath_var
=LD_LIBRARY_PATH
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14616 $as_echo "$dynamic_linker" >&6; }
14617 test "$dynamic_linker" = no
&& can_build_shared
=no
14619 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14620 if test "$GCC" = yes; then
14621 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14624 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14625 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14627 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14628 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14669 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14670 hardcode_action_FC
=
14671 if test -n "$hardcode_libdir_flag_spec_FC" ||
14672 test -n "$runpath_var_FC" ||
14673 test "X$hardcode_automatic_FC" = "Xyes" ; then
14675 # We can hardcode non-existent directories.
14676 if test "$hardcode_direct_FC" != no
&&
14677 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14678 # have to relink, otherwise we might link with an installed library
14679 # when we should be linking with a yet-to-be-installed one
14680 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14681 test "$hardcode_minus_L_FC" != no
; then
14682 # Linking always hardcodes the temporary library directory.
14683 hardcode_action_FC
=relink
14685 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14686 hardcode_action_FC
=immediate
14689 # We cannot hardcode anything, or else we can only hardcode existing
14691 hardcode_action_FC
=unsupported
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14694 $as_echo "$hardcode_action_FC" >&6; }
14696 if test "$hardcode_action_FC" = relink ||
14697 test "$inherit_rpath_FC" = yes; then
14698 # Fast installation is not supported
14699 enable_fast_install
=no
14700 elif test "$shlibpath_overrides_runpath" = yes ||
14701 test "$enable_shared" = no
; then
14702 # Fast installation is not necessary
14703 enable_fast_install
=needless
14712 fi # test -n "$compiler"
14716 fi # test "$_lt_disable_FC" != yes
14719 ac_cpp
='$CPP $CPPFLAGS'
14720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14725 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14727 # For libtool versioning info, format is CURRENT:REVISION:AGE
14728 libtool_VERSION
=1:0:0
14731 # Check header files.
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14733 $as_echo_n "checking for ANSI C header files... " >&6; }
14734 if ${ac_cv_header_stdc+:} false
; then :
14735 $as_echo_n "(cached) " >&6
14737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14739 #include <stdlib.h>
14740 #include <stdarg.h>
14741 #include <string.h>
14752 if ac_fn_c_try_compile
"$LINENO"; then :
14753 ac_cv_header_stdc
=yes
14755 ac_cv_header_stdc
=no
14757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14759 if test $ac_cv_header_stdc = yes; then
14760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 #include <string.h>
14766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14767 $EGREP "memchr" >/dev
/null
2>&1; then :
14770 ac_cv_header_stdc
=no
14776 if test $ac_cv_header_stdc = yes; then
14777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14780 #include <stdlib.h>
14783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14784 $EGREP "free" >/dev
/null
2>&1; then :
14787 ac_cv_header_stdc
=no
14793 if test $ac_cv_header_stdc = yes; then
14794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14795 if test "$cross_compiling" = yes; then :
14798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14801 #include <stdlib.h>
14802 #if ((' ' & 0x0FF) == 0x020)
14803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14806 # define ISLOWER(c) \
14807 (('a' <= (c) && (c) <= 'i') \
14808 || ('j' <= (c) && (c) <= 'r') \
14809 || ('s' <= (c) && (c) <= 'z'))
14810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14818 for (i = 0; i < 256; i++)
14819 if (XOR (islower (i), ISLOWER (i))
14820 || toupper (i) != TOUPPER (i))
14825 if ac_fn_c_try_run
"$LINENO"; then :
14828 ac_cv_header_stdc
=no
14830 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14831 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14837 $as_echo "$ac_cv_header_stdc" >&6; }
14838 if test $ac_cv_header_stdc = yes; then
14840 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14845 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14846 if ${ac_cv_header_time+:} false
; then :
14847 $as_echo_n "(cached) " >&6
14849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14851 #include <sys/types.h>
14852 #include <sys/time.h>
14858 if ((struct tm *) 0)
14864 if ac_fn_c_try_compile
"$LINENO"; then :
14865 ac_cv_header_time
=yes
14867 ac_cv_header_time
=no
14869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14872 $as_echo "$ac_cv_header_time" >&6; }
14873 if test $ac_cv_header_time = yes; then
14875 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14880 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14881 if ${gcc_cv_header_string+:} false
; then :
14882 $as_echo_n "(cached) " >&6
14884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 #include <string.h>
14887 #include <strings.h>
14896 if ac_fn_c_try_compile
"$LINENO"; then :
14897 gcc_cv_header_string
=yes
14899 gcc_cv_header_string
=no
14901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14904 $as_echo "$gcc_cv_header_string" >&6; }
14905 if test $gcc_cv_header_string = yes; then
14907 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14911 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14913 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14914 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14915 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14916 cat >>confdefs.h
<<_ACEOF
14917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14928 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14930 nvptx
*-*-* | amdgcn
*-*-*)
14931 # NVPTX does not support Pthreads, has its own code replacement.
14932 libgomp_use_pthreads
=no
14933 # NVPTX is an accelerator-only target
14934 libgomp_offloaded_only
=yes
14937 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14938 # In case the pthread.h system header is not found, this test will fail.
14939 CFLAGS
="$CFLAGS -pthread"
14940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942 #include <pthread.h>
14943 void *g(void *d) { return NULL; }
14947 pthread_t t; pthread_create(&t,NULL,g,NULL);
14952 if ac_fn_c_try_link
"$LINENO"; then :
14953 XPCFLAGS
=" -Wc,-pthread"
14955 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
14956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14958 #include <pthread.h>
14959 void *g(void *d) { return NULL; }
14963 pthread_t t; pthread_create(&t,NULL,g,NULL);
14968 if ac_fn_c_try_link
"$LINENO"; then :
14971 as_fn_error $?
"Pthreads are required to build libgomp" "$LINENO" 5
14973 rm -f core conftest.err conftest.
$ac_objext \
14974 conftest
$ac_exeext conftest.
$ac_ext
14976 rm -f core conftest.err conftest.
$ac_objext \
14977 conftest
$ac_exeext conftest.
$ac_ext
14980 if test x
$libgomp_use_pthreads != xno
; then
14982 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
14986 if test x
$libgomp_offloaded_only = xyes
; then
14988 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
14992 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
14994 # Copyright (C) 2014-2019 Free Software Foundation, Inc.
14996 # Contributed by Mentor Embedded.
14998 # This file is part of the GNU Offloading and Multi Processing Library
15001 # Libgomp is free software; you can redistribute it and/or modify it
15002 # under the terms of the GNU General Public License as published by
15003 # the Free Software Foundation; either version 3, or (at your option)
15004 # any later version.
15006 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15007 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15008 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15011 # Under Section 7 of GPL version 3, you are granted additional
15012 # permissions described in the GCC Runtime Library Exception, version
15013 # 3.1, as published by the Free Software Foundation.
15015 # You should have received a copy of the GNU General Public License and
15016 # a copy of the GCC Runtime Library Exception along with this program;
15017 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15018 # <http://www.gnu.org/licenses/>.
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15022 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15023 if ${ac_cv_lib_dl_dlsym+:} false
; then :
15024 $as_echo_n "(cached) " >&6
15026 ac_check_lib_save_LIBS
=$LIBS
15028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15031 /* Override any GCC internal prototype to avoid an error.
15032 Use char because int might match the return type of a GCC
15033 builtin and then its argument prototype would still apply. */
15046 if ac_fn_c_try_link
"$LINENO"; then :
15047 ac_cv_lib_dl_dlsym
=yes
15049 ac_cv_lib_dl_dlsym
=no
15051 rm -f core conftest.err conftest.
$ac_objext \
15052 conftest
$ac_exeext conftest.
$ac_ext
15053 LIBS
=$ac_check_lib_save_LIBS
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15056 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15057 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
15058 cat >>confdefs.h
<<_ACEOF
15059 #define HAVE_LIBDL 1
15068 if test x
"$plugin_support" = xyes
; then
15070 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15072 elif test "x${enable_offload_targets-no}" != xno
; then
15073 as_fn_error $?
"Can't support offloading without support for plugins" "$LINENO" 5
15078 for ac_header
in $ac_header_list
15080 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15081 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15083 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15084 cat >>confdefs.h
<<_ACEOF
15085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15098 for ac_func
in $ac_func_list
15100 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15101 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15102 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15103 cat >>confdefs.h
<<_ACEOF
15104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15125 # Look for the CUDA driver package.
15126 CUDA_DRIVER_INCLUDE
=
15130 CUDA_DRIVER_CPPFLAGS
=
15131 CUDA_DRIVER_LDFLAGS
=
15133 # Check whether --with-cuda-driver was given.
15134 if test "${with_cuda_driver+set}" = set; then :
15135 withval
=$with_cuda_driver;
15139 # Check whether --with-cuda-driver-include was given.
15140 if test "${with_cuda_driver_include+set}" = set; then :
15141 withval
=$with_cuda_driver_include;
15145 # Check whether --with-cuda-driver-lib was given.
15146 if test "${with_cuda_driver_lib+set}" = set; then :
15147 withval
=$with_cuda_driver_lib;
15150 case "x$with_cuda_driver" in
15153 CUDA_DRIVER_INCLUDE
=no
15156 *) CUDA_DRIVER_INCLUDE
=$with_cuda_driver/include
15157 CUDA_DRIVER_LIB
=$with_cuda_driver/lib
15160 if test "x$with_cuda_driver_include" != x
; then
15161 CUDA_DRIVER_INCLUDE
=$with_cuda_driver_include
15163 if test "x$with_cuda_driver_lib" != x
; then
15164 CUDA_DRIVER_LIB
=$with_cuda_driver_lib
15166 if test "x$CUDA_DRIVER_INCLUDE" != x \
15167 && test "x$CUDA_DRIVER_INCLUDE" != xno
; then
15168 CUDA_DRIVER_CPPFLAGS
=-I$CUDA_DRIVER_INCLUDE
15170 if test "x$CUDA_DRIVER_LIB" != x \
15171 && test "x$CUDA_DRIVER_LIB" != xno
; then
15172 CUDA_DRIVER_LDFLAGS
=-L$CUDA_DRIVER_LIB
15176 PLUGIN_NVPTX_CPPFLAGS
=
15177 PLUGIN_NVPTX_LDFLAGS
=
15179 PLUGIN_NVPTX_DYNAMIC
=0
15185 # Look for HSA run-time, its includes and libraries
15187 HSA_RUNTIME_INCLUDE
=
15191 HSA_RUNTIME_CPPFLAGS
=
15192 HSA_RUNTIME_LDFLAGS
=
15195 # Check whether --with-hsa-runtime was given.
15196 if test "${with_hsa_runtime+set}" = set; then :
15197 withval
=$with_hsa_runtime;
15201 # Check whether --with-hsa-runtime-include was given.
15202 if test "${with_hsa_runtime_include+set}" = set; then :
15203 withval
=$with_hsa_runtime_include;
15207 # Check whether --with-hsa-runtime-lib was given.
15208 if test "${with_hsa_runtime_lib+set}" = set; then :
15209 withval
=$with_hsa_runtime_lib;
15212 if test "x$with_hsa_runtime" != x
; then
15213 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime/include
15214 HSA_RUNTIME_LIB
=$with_hsa_runtime/lib
15216 if test "x$with_hsa_runtime_include" != x
; then
15217 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime_include
15219 if test "x$with_hsa_runtime_lib" != x
; then
15220 HSA_RUNTIME_LIB
=$with_hsa_runtime_lib
15222 if test "x$HSA_RUNTIME_INCLUDE" != x
; then
15223 HSA_RUNTIME_CPPFLAGS
=-I$HSA_RUNTIME_INCLUDE
15225 if test "x$HSA_RUNTIME_LIB" != x
; then
15226 HSA_RUNTIME_LDFLAGS
=-L$HSA_RUNTIME_LIB
15230 PLUGIN_HSA_CPPFLAGS
=
15231 PLUGIN_HSA_LDFLAGS
=
15239 PLUGIN_GCN_CPPFLAGS
=
15240 PLUGIN_GCN_LDFLAGS
=
15247 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15248 # plugins, and configure to find the corresponding offload compilers.
15249 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15254 offload_additional_options
=
15255 offload_additional_lib_paths
=
15258 if test x
"$enable_offload_targets" != x
; then
15259 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15260 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15261 tgt
=`echo $tgt | sed 's/=.*//'`
15264 *-intelmic-* |
*-intelmicemul-*)
15265 tgt_plugin
=intelmic
15270 if test "x$CUDA_DRIVER_LIB" != xno \
15271 && test "x$CUDA_DRIVER_LIB" != xno
; then
15272 PLUGIN_NVPTX_CPPFLAGS
=$CUDA_DRIVER_CPPFLAGS
15273 PLUGIN_NVPTX_LDFLAGS
=$CUDA_DRIVER_LDFLAGS
15274 PLUGIN_NVPTX_LIBS
='-lcuda'
15276 PLUGIN_NVPTX_save_CPPFLAGS
=$CPPFLAGS
15277 CPPFLAGS
="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15278 PLUGIN_NVPTX_save_LDFLAGS
=$LDFLAGS
15279 LDFLAGS
="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15280 PLUGIN_NVPTX_save_LIBS
=$LIBS
15281 LIBS
="$PLUGIN_NVPTX_LIBS $LIBS"
15282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15288 CUresult r = cuCtxPushCurrent (NULL);
15293 if ac_fn_c_try_link
"$LINENO"; then :
15296 rm -f core conftest.err conftest.
$ac_objext \
15297 conftest
$ac_exeext conftest.
$ac_ext
15298 CPPFLAGS
=$PLUGIN_NVPTX_save_CPPFLAGS
15299 LDFLAGS
=$PLUGIN_NVPTX_save_LDFLAGS
15300 LIBS
=$PLUGIN_NVPTX_save_LIBS
15302 case $PLUGIN_NVPTX in
15304 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15305 ||
test "x$CUDA_DRIVER_INCLUDE" = xno
) \
15306 && (test "x$CUDA_DRIVER_LIB" = x \
15307 ||
test "x$CUDA_DRIVER_LIB" = xno
); then
15309 PLUGIN_NVPTX_CPPFLAGS
='-I$(srcdir)/plugin/cuda'
15310 PLUGIN_NVPTX_LIBS
='-ldl'
15311 PLUGIN_NVPTX_DYNAMIC
=1
15314 as_fn_error $?
"CUDA driver package required for nvptx support" "$LINENO" 5
15320 case "${target}" in
15322 case " ${CC} ${CFLAGS} " in
15329 PLUGIN_HSA_CPPFLAGS
=$HSA_RUNTIME_CPPFLAGS
15330 PLUGIN_HSA_LDFLAGS
="$HSA_RUNTIME_LDFLAGS"
15331 PLUGIN_HSA_LIBS
="-ldl"
15333 PLUGIN_HSA_save_CPPFLAGS
=$CPPFLAGS
15334 CPPFLAGS
="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15335 PLUGIN_HSA_save_LDFLAGS
=$LDFLAGS
15336 LDFLAGS
="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15337 PLUGIN_HSA_save_LIBS
=$LIBS
15338 LIBS
="$PLUGIN_HSA_LIBS $LIBS"
15341 CPPFLAGS
=$PLUGIN_HSA_save_CPPFLAGS
15342 LDFLAGS
=$PLUGIN_HSA_save_LDFLAGS
15343 LIBS
=$PLUGIN_HSA_save_LIBS
15344 case $PLUGIN_HSA in
15347 as_fn_error $?
"HSA run-time package required for HSA support" "$LINENO" 5
15360 case "${target}" in
15362 case " ${CC} ${CFLAGS} " in
15369 PLUGIN_GCN_CPPFLAGS
=$HSA_RUNTIME_CPPFLAGS
15370 PLUGIN_GCN_LDFLAGS
="$HSA_RUNTIME_LDFLAGS"
15371 PLUGIN_GCN_LIBS
="-ldl"
15382 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
15385 if test x
"$tgt_plugin" = x
; then
15386 # Not configuring libgomp for this offload target if we're not building
15387 # the corresponding offload plugin.
15389 elif test x
"$offload_plugins" = x
; then
15390 offload_plugins
=$tgt_plugin
15391 offload_targets
=$tgt
15393 offload_plugins
=$offload_plugins,$tgt_plugin
15394 offload_targets
=$offload_targets,$tgt
15396 # Configure additional search paths.
15397 if test "$tgt_plugin" = hsa
; then
15398 # Offloading compilation is all handled by the target compiler.
15400 elif test x
"$tgt_dir" != x
; then
15401 offload_additional_options
="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15402 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15404 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15405 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15410 cat >>confdefs.h
<<_ACEOF
15411 #define OFFLOAD_PLUGINS "$offload_plugins"
15414 if test $PLUGIN_NVPTX = 1; then
15416 PLUGIN_NVPTX_FALSE
='#'
15418 PLUGIN_NVPTX_TRUE
='#'
15419 PLUGIN_NVPTX_FALSE
=
15423 cat >>confdefs.h
<<_ACEOF
15424 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15428 cat >>confdefs.h
<<_ACEOF
15429 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15432 if test $PLUGIN_HSA = 1; then
15434 PLUGIN_HSA_FALSE
='#'
15436 PLUGIN_HSA_TRUE
='#'
15441 cat >>confdefs.h
<<_ACEOF
15442 #define PLUGIN_HSA $PLUGIN_HSA
15445 if test $PLUGIN_GCN = 1; then
15447 PLUGIN_GCN_FALSE
='#'
15449 PLUGIN_GCN_TRUE
='#'
15454 cat >>confdefs.h
<<_ACEOF
15455 #define PLUGIN_GCN $PLUGIN_GCN
15459 if test "$HSA_RUNTIME_LIB" != ""; then
15460 HSA_RUNTIME_LIB
="$HSA_RUNTIME_LIB/"
15464 cat >>confdefs.h
<<_ACEOF
15465 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15470 # Check for functions needed.
15471 for ac_func
in getloadavg clock_gettime strtoull
15473 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15474 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15475 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15476 cat >>confdefs.h
<<_ACEOF
15477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15483 for ac_func
in aligned_alloc posix_memalign memalign _aligned_malloc
15485 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15486 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15487 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15488 cat >>confdefs.h
<<_ACEOF
15489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15496 # Check for broken semaphore implementation on darwin.
15497 # sem_init returns: sem_init error: Function not implemented.
15501 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15506 # RTEMS specific checks
15509 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15511 if test "x$ac_cv_type_struct__Mutex_Control" = xyes
; then :
15513 cat >>confdefs.h
<<_ACEOF
15514 #define HAVE_STRUCT__MUTEX_CONTROL 1
15523 # Check whether --enable-linux-futex was given.
15524 if test "${enable_linux_futex+set}" = set; then :
15525 enableval
=$enable_linux_futex;
15526 case "$enableval" in
15528 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15532 enable_linux_futex
=default
15537 *-linux* |
*-uclinux*)
15538 case "$enable_linux_futex" in
15540 # If headers don't have gettid/futex syscalls definition, then
15541 # default to no, otherwise there will be compile time failures.
15542 # Otherwise, default to yes. If we don't detect we are
15543 # compiled/linked against NPTL and not cross-compiling, check
15544 # if programs are run by default against NPTL and if not, issue
15546 enable_linux_futex
=no
15547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549 #include <sys/syscall.h>
15550 #include <unistd.h>
15555 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15560 if ac_fn_c_try_link
"$LINENO"; then :
15562 LIBS
="-lpthread $LIBS"
15563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 #ifndef _GNU_SOURCE
15566 #define _GNU_SOURCE 1
15568 #include <pthread.h>
15569 pthread_t th; void *status;
15573 pthread_tryjoin_np (th, &status);
15578 if ac_fn_c_try_link
"$LINENO"; then :
15579 enable_linux_futex
=yes
15581 if test x
$cross_compiling = xno
; then
15582 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15583 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15585 If so, please configure with --disable-linux-futex" >&5
15586 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15587 If so, please configure with --disable-linux-futex" >&2;}
15590 enable_linux_futex
=yes
15592 rm -f core conftest.err conftest.
$ac_objext \
15593 conftest
$ac_exeext conftest.
$ac_ext
15596 rm -f core conftest.err conftest.
$ac_objext \
15597 conftest
$ac_exeext conftest.
$ac_ext
15600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 #include <sys/syscall.h>
15603 #include <unistd.h>
15608 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15613 if ac_fn_c_try_link
"$LINENO"; then :
15616 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15618 rm -f core conftest.err conftest.
$ac_objext \
15619 conftest
$ac_exeext conftest.
$ac_ext
15624 enable_linux_futex
=no
15627 if test x
$enable_linux_futex = xyes
; then
15632 # Check for pthread_{,attr_}[sg]etaffinity_np.
15633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 #define _GNU_SOURCE
15636 #include <pthread.h>
15641 pthread_attr_t attr;
15642 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15643 if (CPU_ISSET (0, &cpuset))
15644 CPU_SET (1, &cpuset);
15646 CPU_ZERO (&cpuset);
15647 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15648 pthread_attr_init (&attr);
15649 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15650 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15655 if ac_fn_c_try_link
"$LINENO"; then :
15657 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15660 rm -f core conftest.err conftest.
$ac_objext \
15661 conftest
$ac_exeext conftest.
$ac_ext
15663 # At least for glibc, clock_gettime is in librt. But don't pull that
15664 # in if it still doesn't give us the function we want.
15665 if test $ac_cv_func_clock_gettime = no
; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15667 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15668 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
15669 $as_echo_n "(cached) " >&6
15671 ac_check_lib_save_LIBS
=$LIBS
15673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15676 /* Override any GCC internal prototype to avoid an error.
15677 Use char because int might match the return type of a GCC
15678 builtin and then its argument prototype would still apply. */
15682 char clock_gettime ();
15686 return clock_gettime ();
15691 if ac_fn_c_try_link
"$LINENO"; then :
15692 ac_cv_lib_rt_clock_gettime
=yes
15694 ac_cv_lib_rt_clock_gettime
=no
15696 rm -f core conftest.err conftest.
$ac_objext \
15697 conftest
$ac_exeext conftest.
$ac_ext
15698 LIBS
=$ac_check_lib_save_LIBS
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15701 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15702 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
15705 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h. */
15714 #include <string.h>
15715 #include <stdlib.h>
15716 #include <sys/utsname.h>
15720 struct utsname buf;
15721 volatile size_t len = 0;
15723 len = strlen (buf.nodename);
15728 if ac_fn_c_try_compile
"$LINENO"; then :
15730 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15735 # Check for gethostname.
15736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15738 #include <unistd.h>
15744 if (gethostname (buf, sizeof (buf) - 1) == 0)
15751 if ac_fn_c_try_compile
"$LINENO"; then :
15753 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15758 # Check for getpid.
15759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 #include <unistd.h>
15765 int pid = getpid ();
15770 if ac_fn_c_try_compile
"$LINENO"; then :
15772 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15777 # See if we support thread-local storage.
15780 # Check whether --enable-tls was given.
15781 if test "${enable_tls+set}" = set; then :
15782 enableval
=$enable_tls;
15783 case "$enableval" in
15785 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15794 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15795 if ${gcc_cv_have_tls+:} false
; then :
15796 $as_echo_n "(cached) " >&6
15799 if test "$cross_compiling" = yes; then :
15800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15802 __thread int a; int b; int main() { return a = b; }
15804 if ac_fn_c_try_link
"$LINENO"; then :
15805 chktls_save_LDFLAGS
="$LDFLAGS"
15807 *-*-linux* |
-*-uclinuxfdpic*)
15808 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15811 chktls_save_CFLAGS
="$CFLAGS"
15812 CFLAGS
="-fPIC $CFLAGS"
15813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15815 int f() { return 0; }
15817 if ac_fn_c_try_link
"$LINENO"; then :
15818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15820 __thread int a; int b; int f() { return a = b; }
15822 if ac_fn_c_try_link
"$LINENO"; then :
15823 gcc_cv_have_tls
=yes
15827 rm -f core conftest.err conftest.
$ac_objext \
15828 conftest
$ac_exeext conftest.
$ac_ext
15830 gcc_cv_have_tls
=yes
15832 rm -f core conftest.err conftest.
$ac_objext \
15833 conftest
$ac_exeext conftest.
$ac_ext
15834 CFLAGS
="$chktls_save_CFLAGS"
15835 LDFLAGS
="$chktls_save_LDFLAGS"
15839 rm -f core conftest.err conftest.
$ac_objext \
15840 conftest
$ac_exeext conftest.
$ac_ext
15844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15846 __thread int a; int b; int main() { return a = b; }
15848 if ac_fn_c_try_run
"$LINENO"; then :
15849 chktls_save_LDFLAGS
="$LDFLAGS"
15850 LDFLAGS
="-static $LDFLAGS"
15851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15853 int main() { return 0; }
15855 if ac_fn_c_try_link
"$LINENO"; then :
15856 if test "$cross_compiling" = yes; then :
15857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15859 as_fn_error $?
"cannot run test program while cross compiling
15860 See \`config.log' for more details" "$LINENO" 5; }
15862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 __thread int a; int b; int main() { return a = b; }
15866 if ac_fn_c_try_run
"$LINENO"; then :
15867 gcc_cv_have_tls
=yes
15871 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15872 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15876 gcc_cv_have_tls
=yes
15878 rm -f core conftest.err conftest.
$ac_objext \
15879 conftest
$ac_exeext conftest.
$ac_ext
15880 LDFLAGS
="$chktls_save_LDFLAGS"
15881 if test $gcc_cv_have_tls = yes; then
15882 chktls_save_CFLAGS
="$CFLAGS"
15883 thread_CFLAGS
=failed
15884 for flag
in '' '-pthread' '-lpthread'; do
15885 CFLAGS
="$flag $chktls_save_CFLAGS"
15886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 #include <pthread.h>
15889 void *g(void *d) { return NULL; }
15893 pthread_t t; pthread_create(&t,NULL,g,NULL);
15898 if ac_fn_c_try_link
"$LINENO"; then :
15899 thread_CFLAGS
="$flag"
15901 rm -f core conftest.err conftest.
$ac_objext \
15902 conftest
$ac_exeext conftest.
$ac_ext
15903 if test "X$thread_CFLAGS" != Xfailed
; then
15907 CFLAGS
="$chktls_save_CFLAGS"
15908 if test "X$thread_CFLAGS" != Xfailed
; then
15909 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15910 if test "$cross_compiling" = yes; then :
15911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15913 as_fn_error $?
"cannot run test program while cross compiling
15914 See \`config.log' for more details" "$LINENO" 5; }
15916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15918 #include <pthread.h>
15920 static int *volatile a_in_other_thread;
15922 thread_func (void *arg)
15924 a_in_other_thread = &a;
15931 void *thread_retval;
15932 int *volatile a_in_main_thread;
15933 a_in_main_thread = &a;
15934 if (pthread_create (&thread, (pthread_attr_t *)0,
15935 thread_func, (void *)0))
15937 if (pthread_join (thread, &thread_retval))
15939 return (a_in_other_thread == a_in_main_thread);
15944 if ac_fn_c_try_run
"$LINENO"; then :
15945 gcc_cv_have_tls
=yes
15949 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15950 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15953 CFLAGS
="$chktls_save_CFLAGS"
15959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15965 $as_echo "$gcc_cv_have_tls" >&6; }
15966 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15968 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15972 # See if we have emulated thread-local storage.
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15975 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15976 if ${gcc_cv_use_emutls+:} false
; then :
15977 $as_echo_n "(cached) " >&6
15980 gcc_cv_use_emutls
=no
15981 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15982 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15984 (eval $ac_try) 2>&5
15986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15987 test $ac_status = 0; }; }; then
15988 if grep __emutls_get_address conftest.s
> /dev
/null
; then
15989 gcc_cv_use_emutls
=yes
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15996 $as_echo "$gcc_cv_use_emutls" >&6; }
15997 if test "$gcc_cv_use_emutls" = "yes" ; then
15999 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16003 # See what sort of export controls are available.
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16006 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16007 if ${libgomp_cv_have_attribute_visibility+:} false
; then :
16008 $as_echo_n "(cached) " >&6
16011 save_CFLAGS
="$CFLAGS"
16012 CFLAGS
="$CFLAGS -Werror"
16013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 void __attribute__((visibility("hidden"))) foo(void) { }
16024 if ac_fn_c_try_compile
"$LINENO"; then :
16025 libgomp_cv_have_attribute_visibility
=yes
16027 libgomp_cv_have_attribute_visibility
=no
16029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16030 CFLAGS
="$save_CFLAGS"
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16033 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16034 if test $libgomp_cv_have_attribute_visibility = yes; then
16036 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16041 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16042 if ${libgomp_cv_have_attribute_dllexport+:} false
; then :
16043 $as_echo_n "(cached) " >&6
16046 save_CFLAGS
="$CFLAGS"
16047 CFLAGS
="$CFLAGS -Werror"
16048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16050 void __attribute__((dllexport)) foo(void) { }
16059 if ac_fn_c_try_compile
"$LINENO"; then :
16060 libgomp_cv_have_attribute_dllexport
=yes
16062 libgomp_cv_have_attribute_dllexport
=no
16064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16065 CFLAGS
="$save_CFLAGS"
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16068 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16069 if test $libgomp_cv_have_attribute_dllexport = yes; then
16071 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16076 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16077 if ${libgomp_cv_have_attribute_alias+:} false
; then :
16078 $as_echo_n "(cached) " >&6
16081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16085 extern void bar(void) __attribute__((alias("foo")));
16094 if ac_fn_c_try_link
"$LINENO"; then :
16095 libgomp_cv_have_attribute_alias
=yes
16097 libgomp_cv_have_attribute_alias
=no
16099 rm -f core conftest.err conftest.
$ac_objext \
16100 conftest
$ac_exeext conftest.
$ac_ext
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16103 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16104 if test $libgomp_cv_have_attribute_alias = yes; then
16106 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16111 # Check whether --with-gnu-ld was given.
16112 if test "${with_gnu_ld+set}" = set; then :
16113 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16119 if test "$GCC" = yes; then
16120 # Check if gcc -print-prog-name=ld gives a path.
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16122 $as_echo_n "checking for ld used by $CC... " >&6; }
16125 # gcc leaves a trailing carriage return which upsets mingw
16126 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16128 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16131 # Accept absolute paths.
16133 re_direlt
='/[^/][^/]*/\.\./'
16134 # Canonicalize the pathname of ld
16135 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16136 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16137 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16139 test -z "$LD" && LD
="$ac_prog"
16142 # If it fails, then pretend we aren't using GCC.
16146 # If it is relative, then search for the first ld in PATH.
16147 with_gnu_ld
=unknown
16150 elif test "$with_gnu_ld" = yes; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16152 $as_echo_n "checking for GNU ld... " >&6; }
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16155 $as_echo_n "checking for non-GNU ld... " >&6; }
16157 if ${lt_cv_path_LD+:} false
; then :
16158 $as_echo_n "(cached) " >&6
16160 if test -z "$LD"; then
16161 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16162 for ac_dir
in $PATH; do
16164 test -z "$ac_dir" && ac_dir
=.
16165 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16166 lt_cv_path_LD
="$ac_dir/$ac_prog"
16167 # Check to see if the program is GNU ld. I'd rather use --version,
16168 # but apparently some variants of GNU ld only accept -v.
16169 # Break only if it was the GNU/non-GNU ld that we prefer.
16170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16171 *GNU
* |
*'with BFD'*)
16172 test "$with_gnu_ld" != no
&& break
16175 test "$with_gnu_ld" != yes && break
16182 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16186 LD
="$lt_cv_path_LD"
16187 if test -n "$LD"; then
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16189 $as_echo "$LD" >&6; }
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192 $as_echo "no" >&6; }
16194 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16196 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16197 if ${lt_cv_prog_gnu_ld+:} false
; then :
16198 $as_echo_n "(cached) " >&6
16200 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16201 case `$LD -v 2>&1 </dev/null` in
16202 *GNU
* |
*'with BFD'*)
16203 lt_cv_prog_gnu_ld
=yes
16206 lt_cv_prog_gnu_ld
=no
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16211 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16212 with_gnu_ld
=$lt_cv_prog_gnu_ld
16220 # If we're not using GNU ld, then there's no point in even trying these
16221 # tests. Check for that first. We should have already tested for gld
16222 # by now (in libtool), but require it now just to be safe...
16223 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16224 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16228 # The name set by libtool depends on the version of libtool. Shame on us
16229 # for depending on an impl detail, but c'est la vie. Older versions used
16230 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16231 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16232 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16233 # set (hence we're using an older libtool), then set it.
16234 if test x
${with_gnu_ld+set} != xset
; then
16235 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16236 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16239 with_gnu_ld
=$ac_cv_prog_gnu_ld
16243 # Start by getting the version number. I think the libtool test already
16244 # does some of this, but throws away the result.
16245 libgomp_ld_is_gold
=no
16246 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16247 libgomp_ld_is_gold
=yes
16250 ldver
=`$LD --version 2>/dev/null |
16251 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16253 libgomp_gnu_ld_version
=`echo $ldver | \
16254 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16256 # Set --gc-sections.
16257 if test "$with_gnu_ld" = "notbroken"; then
16258 # GNU ld it is! Joy and bunny rabbits!
16260 # All these tests are for C++; save the language and the compiler flags.
16261 # Need to do this so that g++ won't try to link in libstdc++
16262 ac_test_CFLAGS
="${CFLAGS+set}"
16263 ac_save_CFLAGS
="$CFLAGS"
16264 CFLAGS
='-x c++ -Wl,--gc-sections'
16266 # Check for -Wl,--gc-sections
16267 # XXX This test is broken at the moment, as symbols required for linking
16268 # are now in libsupc++ (not built yet). In addition, this test has
16269 # cored on solaris in the past. In addition, --gc-sections doesn't
16270 # really work at the moment (keeps on discarding used sections, first
16271 # .eh_frame and now some of the glibc sections for iconv).
16272 # Bzzzzt. Thanks for playing, maybe next time.
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16274 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16275 if test "$cross_compiling" = yes; then :
16276 ac_sectionLDflags
=yes
16278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16289 if ac_fn_c_try_run
"$LINENO"; then :
16290 ac_sectionLDflags
=yes
16292 ac_sectionLDflags
=no
16294 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16295 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16298 if test "$ac_test_CFLAGS" = set; then
16299 CFLAGS
="$ac_save_CFLAGS"
16301 # this is the suspicious part
16304 if test "$ac_sectionLDflags" = "yes"; then
16305 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16308 $as_echo "$ac_sectionLDflags" >&6; }
16311 # Set linker optimization flags.
16312 if test x
"$with_gnu_ld" = x
"yes"; then
16313 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16321 # Check whether --enable-symvers was given.
16322 if test "${enable_symvers+set}" = set; then :
16323 enableval
=$enable_symvers;
16324 case "$enableval" in
16325 yes|no|gnu
*|sun
) ;;
16326 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16335 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16336 # don't know enough about $LD to do tricks...
16339 # Turn a 'yes' into a suitable default.
16340 if test x
$enable_symvers = xyes
; then
16341 # FIXME The following test is too strict, in theory.
16342 if test $enable_shared = no ||
test "x$LD" = x
; then
16345 if test $with_gnu_ld = yes ; then
16348 case ${target_os} in
16349 # Sun symbol versioning exists since Solaris 2.5.
16350 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16351 enable_symvers
=sun
;;
16353 enable_symvers
=no
;;
16359 # Check if 'sun' was requested on non-Solaris 2 platforms.
16360 if test x
$enable_symvers = xsun
; then
16361 case ${target_os} in
16366 # Unlikely to work.
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16368 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16370 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16372 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16378 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16379 if test $enable_symvers != no
; then
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16381 $as_echo_n "checking for shared libgcc... " >&6; }
16382 ac_save_CFLAGS
="$CFLAGS"
16384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16395 if ac_fn_c_try_link
"$LINENO"; then :
16396 libgomp_shared_libgcc
=yes
16398 libgomp_shared_libgcc
=no
16400 rm -f core conftest.err conftest.
$ac_objext \
16401 conftest
$ac_exeext conftest.
$ac_ext
16402 CFLAGS
="$ac_save_CFLAGS"
16403 if test $libgomp_shared_libgcc = no
; then
16404 cat > conftest.c
<<EOF
16405 int main (void) { return 0; }
16407 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16408 -shared -shared-libgcc -o conftest.so \
16409 conftest.c -v 2>&1 >/dev/null \
16410 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16411 rm -f conftest.c conftest.so
16412 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16413 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16425 if ac_fn_c_try_link
"$LINENO"; then :
16426 libgomp_shared_libgcc
=yes
16428 rm -f core conftest.err conftest.
$ac_objext \
16429 conftest
$ac_exeext conftest.
$ac_ext
16430 CFLAGS
="$ac_save_CFLAGS"
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16434 $as_echo "$libgomp_shared_libgcc" >&6; }
16437 # For GNU ld, we need at least this version. The format is described in
16438 # LIBGOMP_CHECK_LINKER_FEATURES above.
16439 libgomp_min_gnu_ld_version
=21400
16440 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16442 # Check to see if unspecified "yes" value can win, given results above.
16443 # Change "yes" into either "no" or a style name.
16444 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16445 if test $with_gnu_ld = yes; then
16446 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16448 elif test $libgomp_ld_is_gold = yes ; then
16451 # The right tools, the right setup, but too old. Fallbacks?
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16453 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16455 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16457 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16459 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16460 if test $libgomp_gnu_ld_version -ge 21200 ; then
16461 # Globbing fix is present, proper block support is not.
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16463 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16468 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16472 elif test $enable_symvers = sun
; then
16473 : All interesting versions of Sun ld support sun style symbol versioning.
16475 # just fail for now
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16477 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16479 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16481 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16483 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16489 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16490 if ${libgomp_cv_have_as_symver_directive+:} false
; then :
16491 $as_echo_n "(cached) " >&6
16494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16496 void foo (void); __asm (".symver foo, bar@SYMVER");
16505 if ac_fn_c_try_compile
"$LINENO"; then :
16506 libgomp_cv_have_as_symver_directive
=yes
16508 libgomp_cv_have_as_symver_directive
=no
16510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16513 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16514 if test $libgomp_cv_have_as_symver_directive = yes; then
16516 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16520 if test $enable_symvers != no
; then
16521 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16522 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16524 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16525 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16528 if test $enable_symvers = gnu
; then
16529 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16530 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16532 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16533 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16536 if test $enable_symvers = sun
; then
16537 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16538 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16540 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16541 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16545 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16547 if test $enable_symvers != no
; then
16548 case ${target_os} in
16549 # The Solaris 2 runtime linker doesn't support the GNU extension of
16550 # binding the same symbol to different versions
16553 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16556 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16563 if test $enable_symvers = gnu
; then
16565 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16569 # Determine cpu count to limit testsuite parallelism.
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16571 $as_echo_n "checking the number of available CPUs... " >&6; }
16574 # Try generic methods
16576 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16577 # 'NPROCESSORS_ONLN' are platform-specific
16578 command -v getconf
>/dev
/null
2>&1 && \
16579 CPU_COUNT
=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT
="0"
16580 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v nproc
>/dev
/null
2>&1; then :
16583 # 'nproc' is part of GNU Coreutils and is widely available
16584 CPU_COUNT
=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT
=`nproc 2>/dev/null` || CPU_COUNT
="0"
16587 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16590 # Try platform-specific preferred methods
16591 case $host_os in #(
16593 CPU_COUNT
=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT
="0" ;; #(
16595 CPU_COUNT
=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT
="0" ;; #(
16597 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT
="0" ;; #(
16599 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT
="0" ;; #(
16601 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" ;; #(
16603 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16605 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16607 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16612 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v sysctl
>/dev
/null
2>&1; then :
16615 # Try less preferred generic method
16616 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16617 CPU_COUNT
=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT
="0"
16620 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16623 # Try platform-specific fallback methods
16624 # They can be less accurate and slower then preferred methods
16625 case $host_os in #(
16627 CPU_COUNT
=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT
="0" ;; #(
16629 CPU_COUNT
=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT
="0" ;; #(
16631 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16633 CPU_COUNT
=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16634 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16636 command -v kstat
>/dev
/null
2>&1 && CPU_COUNT
=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16637 CPU_COUNT
=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT
="0" ;; #(
16639 if CPU_COUNT
=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16642 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS"
16645 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16647 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16652 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev
/null
; then :
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16654 $as_echo "$CPU_COUNT" >&6; }
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16659 $as_echo "unable to detect (assuming 1)" >&6; }
16664 # Get target configury.
16665 .
${srcdir}/configure.tgt
16666 CFLAGS
="$save_CFLAGS $XCFLAGS"
16668 # Check for __sync_val_compare_and_swap, but only after the target has
16669 # had a chance to set XCFLAGS.
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16672 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16673 if ${libgomp_cv_have_sync_builtins+:} false
; then :
16674 $as_echo_n "(cached) " >&6
16677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h. */
16683 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16688 if ac_fn_c_try_link
"$LINENO"; then :
16689 libgomp_cv_have_sync_builtins
=yes
16691 libgomp_cv_have_sync_builtins
=no
16693 rm -f core conftest.err conftest.
$ac_objext \
16694 conftest
$ac_exeext conftest.
$ac_ext
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16697 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16698 if test $libgomp_cv_have_sync_builtins = yes; then
16700 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16704 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16706 # Add CET specific flags if CET is enabled
16707 # Check whether --enable-cet was given.
16708 if test "${enable_cet+set}" = set; then :
16709 enableval
=$enable_cet;
16710 case "$enableval" in
16712 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16721 $as_echo_n "checking for CET support... " >&6; }
16724 i
[34567]86-*-linux* | x86_64-
*-linux*)
16725 case "$enable_cet" in
16727 # Check if target supports multi-byte NOPs
16728 # and if assembler supports CET insn.
16729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16736 #if !defined(__SSE2__)
16737 #error target does not support multi-byte NOPs
16746 if ac_fn_c_try_compile
"$LINENO"; then :
16751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16754 # Check if assembler supports CET.
16755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16766 if ac_fn_c_try_compile
"$LINENO"; then :
16769 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
16771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16779 if test x
$enable_cet = xyes
; then
16780 CET_FLAGS
="-fcf-protection -mshstk"
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16782 $as_echo "yes" >&6; }
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16785 $as_echo "no" >&6; }
16788 XCFLAGS
="$XCFLAGS $CET_FLAGS"
16789 FCFLAGS
="$FCFLAGS $CET_FLAGS"
16795 # Cleanup and exit.
16796 CFLAGS
="$save_CFLAGS"
16797 cat >confcache
<<\_ACEOF
16798 # This file is a shell script that caches the results of configure
16799 # tests run on this system so they can be shared between configure
16800 # scripts and configure runs, see configure's option --config-cache.
16801 # It is not useful on other systems. If it contains results you don't
16802 # want to keep, you may remove or edit it.
16804 # config.status only pays attention to the cache file if you give it
16805 # the --recheck option to rerun configure.
16807 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16808 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16809 # following values.
16813 # The following way of writing the cache mishandles newlines in values,
16814 # but we know of no workaround that is simple, portable, and efficient.
16815 # So, we kill variables containing newlines.
16816 # Ultrix sh set writes to stderr and can't be redirected directly,
16817 # and sets the high bit in the cache file unless we assign to the vars.
16819 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16820 eval ac_val
=\$
$ac_var
16824 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16828 _ | IFS | as_nl
) ;; #(
16829 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16830 *) { eval $ac_var=; unset $ac_var;} ;;
16836 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16837 *${as_nl}ac_space
=\
*)
16838 # `set' does not quote correctly, so add quotes: double-quote
16839 # substitution turns \\\\ into \\, and sed turns \\ into \.
16842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16845 # `set' quotes correctly as required by POSIX, so do not add quotes.
16846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16857 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16859 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16860 if test -w "$cache_file"; then
16861 if test "x$cache_file" != "x/dev/null"; then
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16863 $as_echo "$as_me: updating cache $cache_file" >&6;}
16864 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16865 cat confcache
>"$cache_file"
16867 case $cache_file in #(
16869 mv -f confcache
"$cache_file"$$
&&
16870 mv -f "$cache_file"$$
"$cache_file" ;; #(
16872 mv -f confcache
"$cache_file" ;;
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16878 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16883 if test ${multilib} = yes; then
16884 multilib_arg
="--enable-multilib"
16889 # Set up the set of libraries that we need to link against for libgomp.
16890 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16891 # which will force linkage against -lpthread (or equivalent for the system).
16892 # That's not 100% ideal, but about the best we can do easily.
16893 if test $enable_shared = yes; then
16894 link_gomp
="-lgomp %{static: $LIBS}"
16896 link_gomp
="-lgomp $LIBS"
16900 if test "$ac_cv_fc_compiler_gnu" = yes; then
16902 USE_FORTRAN_FALSE
='#'
16904 USE_FORTRAN_TRUE
='#'
16909 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16910 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16911 # the underscore here and update the PREREQ. If it doesn't, then we'll
16912 # need to copy this macro to our acinclude.m4.
16913 save_CFLAGS
="$CFLAGS"
16914 for i
in $config_path; do
16915 if test -f $srcdir/config
/$i/omp-lock.h
; then
16916 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16921 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16924 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16928 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16933 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16938 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16943 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16946 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16950 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16955 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16960 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16966 # If the lock fits in an integer, then arrange for Fortran to use that
16967 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16968 # Except that we don't have a way at present to multi-lib the installed
16969 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16971 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16972 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16973 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16976 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16977 OMP_NEST_LOCK_KIND
=8
16979 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16980 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16981 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16984 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16985 OMP_NEST_LOCK_25_KIND
=8
17000 CFLAGS
="$save_CFLAGS"
17002 # Determine what GCC version number to use in filesystem paths.
17004 get_gcc_base_ver
="cat"
17006 # Check whether --with-gcc-major-version-only was given.
17007 if test "${with_gcc_major_version_only+set}" = set; then :
17008 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
17009 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
17017 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17019 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17021 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17023 cat >confcache
<<\_ACEOF
17024 # This file is a shell script that caches the results of configure
17025 # tests run on this system so they can be shared between configure
17026 # scripts and configure runs, see configure's option --config-cache.
17027 # It is not useful on other systems. If it contains results you don't
17028 # want to keep, you may remove or edit it.
17030 # config.status only pays attention to the cache file if you give it
17031 # the --recheck option to rerun configure.
17033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17035 # following values.
17039 # The following way of writing the cache mishandles newlines in values,
17040 # but we know of no workaround that is simple, portable, and efficient.
17041 # So, we kill variables containing newlines.
17042 # Ultrix sh set writes to stderr and can't be redirected directly,
17043 # and sets the high bit in the cache file unless we assign to the vars.
17045 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17046 eval ac_val
=\$
$ac_var
17050 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17054 _ | IFS | as_nl
) ;; #(
17055 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17056 *) { eval $ac_var=; unset $ac_var;} ;;
17062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17063 *${as_nl}ac_space
=\
*)
17064 # `set' does not quote correctly, so add quotes: double-quote
17065 # substitution turns \\\\ into \\, and sed turns \\ into \.
17068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17071 # `set' quotes correctly as required by POSIX, so do not add quotes.
17072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17085 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17086 if test -w "$cache_file"; then
17087 if test "x$cache_file" != "x/dev/null"; then
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17089 $as_echo "$as_me: updating cache $cache_file" >&6;}
17090 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17091 cat confcache
>"$cache_file"
17093 case $cache_file in #(
17095 mv -f confcache
"$cache_file"$$
&&
17096 mv -f "$cache_file"$$
"$cache_file" ;; #(
17098 mv -f confcache
"$cache_file" ;;
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17104 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17109 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17110 # Let make expand exec_prefix.
17111 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17113 DEFS
=-DHAVE_CONFIG_H
17118 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17119 # 1. Remove the extension, and $U if already installed.
17120 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17121 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17122 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17123 # will be set to the directory where LIBOBJS objects are built.
17124 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17125 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17127 LIBOBJS
=$ac_libobjs
17129 LTLIBOBJS
=$ac_ltlibobjs
17132 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17133 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
17134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17137 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17138 if test -n "$am_sleep_pid"; then
17139 # Hide warnings about reused PIDs.
17140 wait $am_sleep_pid 2>/dev
/null
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17143 $as_echo "done" >&6; }
17144 if test -n "$EXEEXT"; then
17146 am__EXEEXT_FALSE
='#'
17148 am__EXEEXT_TRUE
='#'
17152 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17153 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17156 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17157 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17160 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17161 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17164 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17165 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17168 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17169 as_fn_error $?
"conditional \"PLUGIN_NVPTX\" was never defined.
17170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17172 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17173 as_fn_error $?
"conditional \"PLUGIN_HSA\" was never defined.
17174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17176 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17177 as_fn_error $?
"conditional \"PLUGIN_GCN\" was never defined.
17178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17180 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17181 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17184 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17185 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17188 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17189 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17192 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17193 as_fn_error $?
"conditional \"USE_FORTRAN\" was never defined.
17194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17197 : "${CONFIG_STATUS=./config.status}"
17199 ac_clean_files_save
=$ac_clean_files
17200 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17202 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17204 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17206 # Generated by $as_me.
17207 # Run this file to recreate the current configuration.
17208 # Compiler output produced by configure, useful for debugging
17209 # configure, is in config.log if it exists.
17212 ac_cs_recheck=false
17215 SHELL=\${CONFIG_SHELL-$SHELL}
17218 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17219 ## -------------------- ##
17220 ## M4sh Initialization. ##
17221 ## -------------------- ##
17223 # Be more Bourne compatible
17224 DUALCASE
=1; export DUALCASE
# for MKS sh
17225 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17228 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17229 # is contrary to our usage. Disable this feature.
17230 alias -g '${1+"$@"}'='"$@"'
17231 setopt NO_GLOB_SUBST
17233 case `(set -o) 2>/dev/null` in #(
17245 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17246 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17249 # Prefer a ksh shell builtin over an external printf program on Solaris,
17250 # but without wasting forks for bash or zsh.
17251 if test -z "$BASH_VERSION$ZSH_VERSION" \
17252 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17253 as_echo='print
-r --'
17254 as_echo_n='print
-rn --'
17255 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17256 as_echo='printf %s
\n'
17257 as_echo_n='printf %s
'
17259 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17260 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17261 as_echo_n='/usr
/ucb
/echo -n'
17263 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17264 as_echo_n_body='eval
17268 expr "X$arg" : "X\\(.*\\)$as_nl";
17269 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17271 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17273 export as_echo_n_body
17274 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17276 export as_echo_body
17277 as_echo='sh
-c $as_echo_body as_echo
'
17280 # The user is always right.
17281 if test "${PATH_SEPARATOR+set}" != set; then
17283 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17284 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17291 # We need space, tab and new line, in precisely that order. Quoting is
17292 # there to prevent editors from complaining about space-tab.
17293 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17294 # splitting by setting IFS to empty value.)
17297 # Find who we are. Look in the path if we contain no directory separator.
17300 *[\\/]* ) as_myself=$0 ;;
17301 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17302 for as_dir in $PATH
17305 test -z "$as_dir" && as_dir=.
17306 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17312 # We did not find ourselves, most probably we were run as `sh COMMAND'
17313 # in which case we are not to be found in the path.
17314 if test "x$as_myself" = x
; then
17317 if test ! -f "$as_myself"; then
17318 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17322 # Unset variables that we do not need and which cause bugs (e.g. in
17323 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17324 # suppresses any "Segmentation fault" message there. '((' could
17325 # trigger a bug in pdksh 5.2.14.
17326 for as_var
in BASH_ENV ENV MAIL MAILPATH
17327 do eval test x\
${$as_var+set} = xset \
17328 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17341 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17344 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17345 # ----------------------------------------
17346 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17347 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17348 # script with STATUS, using 1 if that was 0.
17351 as_status
=$1; test $as_status -eq 0 && as_status
=1
17353 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17354 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17356 $as_echo "$as_me: error: $2" >&2
17357 as_fn_exit
$as_status
17361 # as_fn_set_status STATUS
17362 # -----------------------
17363 # Set $? to STATUS, without forking.
17364 as_fn_set_status
()
17367 } # as_fn_set_status
17369 # as_fn_exit STATUS
17370 # -----------------
17371 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17375 as_fn_set_status
$1
17381 # Portably unset VAR.
17384 { eval $1=; unset $1;}
17386 as_unset
=as_fn_unset
17387 # as_fn_append VAR VALUE
17388 # ----------------------
17389 # Append the text in VALUE to the end of the definition contained in VAR. Take
17390 # advantage of any shell optimizations that allow amortized linear growth over
17391 # repeated appends, instead of the typical quadratic growth present in naive
17393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17394 eval 'as_fn_append ()
17405 # as_fn_arith ARG...
17406 # ------------------
17407 # Perform arithmetic evaluation on the ARGs, and store the result in the
17408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17409 # must be portable across $(()) and expr.
17410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17411 eval 'as_fn_arith ()
17418 as_val
=`expr "$@" || test $? -eq 1`
17423 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17424 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17430 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17431 as_basename
=basename
17436 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17442 as_me
=`$as_basename -- "$0" ||
17443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17444 X"$0" : 'X\(//\)$' \| \
17445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17447 sed '/^.*\/\([^/][^/]*\)\/*$/{
17461 # Avoid depending upon Character Ranges.
17462 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17463 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17464 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17465 as_cr_digits
='0123456789'
17466 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17468 ECHO_C
= ECHO_N
= ECHO_T
=
17469 case `echo -n x` in #(((((
17471 case `echo 'xy\c'` in
17472 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17474 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17481 rm -f conf$$ conf$$.exe conf$$.
file
17482 if test -d conf$$.dir
; then
17483 rm -f conf$$.dir
/conf$$.
file
17486 mkdir conf$$.dir
2>/dev
/null
17488 if (echo >conf$$.
file) 2>/dev
/null
; then
17489 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17491 # ... but there are two gotchas:
17492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17494 # In both cases, we have to default to `cp -pR'.
17495 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17497 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17505 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17506 rmdir conf$$.dir
2>/dev
/null
17511 # Create "$as_dir" as a directory, including parents if necessary.
17516 -*) as_dir
=.
/$as_dir;;
17518 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17522 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17523 *) as_qdir
=$as_dir;;
17525 as_dirs
="'$as_qdir' $as_dirs"
17526 as_dir
=`$as_dirname -- "$as_dir" ||
17527 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17528 X"$as_dir" : 'X\(//\)[^/]' \| \
17529 X"$as_dir" : 'X\(//\)$' \| \
17530 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17531 $as_echo X"$as_dir" |
17532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17536 /^X\(\/\/\)[^/].*/{
17549 test -d "$as_dir" && break
17551 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17552 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17556 if mkdir
-p .
2>/dev
/null
; then
17557 as_mkdir_p
='mkdir -p "$as_dir"'
17559 test -d .
/-p && rmdir .
/-p
17564 # as_fn_executable_p FILE
17565 # -----------------------
17566 # Test if FILE is an executable regular file.
17567 as_fn_executable_p
()
17569 test -f "$1" && test -x "$1"
17570 } # as_fn_executable_p
17571 as_test_x
='test -x'
17572 as_executable_p
=as_fn_executable_p
17574 # Sed expression to map a string onto a valid CPP name.
17575 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17577 # Sed expression to map a string onto a valid variable name.
17578 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17582 ## ----------------------------------- ##
17583 ## Main body of $CONFIG_STATUS script. ##
17584 ## ----------------------------------- ##
17586 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17589 # Save the log message, to keep $0 and so on meaningful, and to
17590 # report actual input values of CONFIG_FILES etc. instead of their
17591 # values after options handling.
17593 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17594 generated by GNU Autoconf 2.69. Invocation command line was
17596 CONFIG_FILES = $CONFIG_FILES
17597 CONFIG_HEADERS = $CONFIG_HEADERS
17598 CONFIG_LINKS = $CONFIG_LINKS
17599 CONFIG_COMMANDS = $CONFIG_COMMANDS
17602 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17607 case $ac_config_files in *"
17608 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17611 case $ac_config_headers in *"
17612 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17617 # Files that config.status was made for.
17618 config_files="$ac_config_files"
17619 config_headers="$ac_config_headers"
17620 config_commands="$ac_config_commands"
17624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17626 \`$as_me' instantiates files and other configuration actions
17627 from templates according to the current configuration. Unless the files
17628 and actions are specified as TAGs, all are instantiated by default.
17630 Usage: $0 [OPTION]... [TAG]...
17632 -h, --help print this help, then exit
17633 -V, --version print version number and configuration settings, then exit
17634 --config print configuration, then exit
17635 -q, --quiet, --silent
17636 do not print progress messages
17637 -d, --debug don't remove temporary files
17638 --recheck update $as_me by reconfiguring in the same conditions
17639 --file=FILE[:TEMPLATE]
17640 instantiate the configuration file FILE
17641 --header=FILE[:TEMPLATE]
17642 instantiate the configuration header FILE
17644 Configuration files:
17647 Configuration headers:
17650 Configuration commands:
17653 Report bugs to the package provider.
17654 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17655 General help using GNU software: <http://www.gnu.org/gethelp/>."
17658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17659 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17661 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17662 configured by $0, generated by GNU Autoconf 2.69,
17663 with options \\"\$ac_cs_config\\"
17665 Copyright (C) 2012 Free Software Foundation, Inc.
17666 This config.status script is free software; the Free Software Foundation
17667 gives unlimited permission to copy, distribute and modify it."
17674 test -n "\$AWK" || AWK=awk
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17678 # The default lists apply if the user does not specify any file.
17684 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17685 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17689 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17701 # Handling of the options.
17702 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17704 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17705 $as_echo "$ac_cs_version"; exit ;;
17706 --config |
--confi |
--conf |
--con |
--co |
--c )
17707 $as_echo "$ac_cs_config"; exit ;;
17708 --debug |
--debu |
--deb |
--de |
--d |
-d )
17710 --file |
--fil |
--fi |
--f )
17713 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17714 '') as_fn_error $?
"missing file argument" ;;
17716 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17717 ac_need_defaults
=false
;;
17718 --header |
--heade |
--head |
--hea )
17721 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17723 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17724 ac_need_defaults
=false
;;
17726 # Conflict between --help and --header
17727 as_fn_error $?
"ambiguous option: \`$1'
17728 Try \`$0 --help' for more information.";;
17729 --help |
--hel |
-h )
17730 $as_echo "$ac_cs_usage"; exit ;;
17731 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17732 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17735 # This is an error.
17736 -*) as_fn_error $?
"unrecognized option: \`$1'
17737 Try \`$0 --help' for more information." ;;
17739 *) as_fn_append ac_config_targets
" $1"
17740 ac_need_defaults
=false
;;
17746 ac_configure_extra_args
=
17748 if $ac_cs_silent; then
17750 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755 if \$ac_cs_recheck; then
17756 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17758 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17759 CONFIG_SHELL='$SHELL'
17760 export CONFIG_SHELL
17765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17770 ## Running $as_me. ##
17776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17784 with_multisubdir="$with_multisubdir"
17785 with_multisrctop="$with_multisrctop"
17786 with_target_subdir="$with_target_subdir"
17787 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17788 multi_basedir="$multi_basedir"
17789 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17792 GFORTRAN="$GFORTRAN"
17794 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17797 # The HP-UX ksh and POSIX shell print the target directory to stdout
17798 # if CDPATH is set.
17799 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17801 sed_quote_subst='$sed_quote_subst'
17802 double_quote_subst='$double_quote_subst'
17803 delay_variable_subst='$delay_variable_subst'
17804 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17805 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17806 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17807 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17808 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17809 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17810 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17811 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17812 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17813 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17814 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17815 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17816 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17817 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17818 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17819 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17820 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17821 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17822 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17823 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17824 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17825 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17826 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17827 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17828 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17829 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17830 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17831 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17832 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17833 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17834 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17835 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17836 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17837 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17838 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17839 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17840 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17841 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17842 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17843 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17844 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17845 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17846 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17847 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17848 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17849 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17850 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17851 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17852 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"`'
17853 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17854 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17855 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17856 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17857 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17858 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17859 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17860 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17861 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17862 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17863 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17864 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17865 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17866 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17867 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17868 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17869 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17870 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17871 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17872 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17873 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17874 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17875 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17876 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17877 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17878 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17879 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17880 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17881 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17882 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17883 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17884 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17885 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17886 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17887 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17888 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17889 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17890 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17891 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17892 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17893 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17894 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17895 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17896 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17897 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17898 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17899 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17900 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17901 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17902 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17903 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17904 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17905 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17906 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17907 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17908 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17909 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17910 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17911 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17912 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17913 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17914 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17915 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17916 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17917 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17918 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17919 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17920 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17921 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17922 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17923 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17924 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17925 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17926 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17927 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17928 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17929 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17930 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17931 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17932 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17933 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17934 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17935 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17936 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17937 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17938 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17939 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17940 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17941 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17942 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17943 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17944 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17945 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17946 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17947 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17948 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17949 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17950 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17951 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17952 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17953 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17954 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17955 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17956 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17957 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17958 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17959 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17960 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17961 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17962 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17963 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17964 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17965 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17966 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17967 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17968 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17969 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17970 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17971 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17972 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17973 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17974 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17975 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17976 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17977 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17978 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17981 LTCFLAGS='$LTCFLAGS'
17982 compiler='$compiler_DEFAULT'
17984 # A function that is used when there is no print builtin or printf.
17985 func_fallback_echo ()
17987 eval 'cat <<_LTECHO_EOF
17992 # Quote evaled strings.
18006 deplibs_check_method \
18015 lt_cv_sys_global_symbol_pipe \
18016 lt_cv_sys_global_symbol_to_cdecl \
18017 lt_cv_sys_global_symbol_to_c_name_address \
18018 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18019 lt_prog_compiler_no_builtin_flag \
18020 lt_prog_compiler_wl \
18021 lt_prog_compiler_pic \
18022 lt_prog_compiler_static \
18023 lt_cv_prog_compiler_c_o \
18031 export_dynamic_flag_spec \
18032 whole_archive_flag_spec \
18033 compiler_needs_object \
18035 allow_undefined_flag \
18036 no_undefined_flag \
18037 hardcode_libdir_flag_spec \
18038 hardcode_libdir_flag_spec_ld \
18039 hardcode_libdir_separator \
18044 variables_saved_for_relink \
18046 library_names_spec \
18048 install_override_mode \
18052 compiler_lib_search_dirs \
18057 compiler_lib_search_path \
18061 lt_prog_compiler_no_builtin_flag_FC \
18062 lt_prog_compiler_wl_FC \
18063 lt_prog_compiler_pic_FC \
18064 lt_prog_compiler_static_FC \
18065 lt_cv_prog_compiler_c_o_FC \
18066 export_dynamic_flag_spec_FC \
18067 whole_archive_flag_spec_FC \
18068 compiler_needs_object_FC \
18070 allow_undefined_flag_FC \
18071 no_undefined_flag_FC \
18072 hardcode_libdir_flag_spec_FC \
18073 hardcode_libdir_flag_spec_ld_FC \
18074 hardcode_libdir_separator_FC \
18075 fix_srcfile_path_FC \
18076 exclude_expsyms_FC \
18077 include_expsyms_FC \
18078 file_list_spec_FC \
18079 compiler_lib_search_dirs_FC \
18080 predep_objects_FC \
18081 postdep_objects_FC \
18084 compiler_lib_search_path_FC; do
18085 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18086 *[\\\\\\\`\\"\\\$]*)
18087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18095 # Double-quote double-evaled strings.
18096 for var in reload_cmds \
18097 old_postinstall_cmds \
18098 old_postuninstall_cmds \
18100 extract_expsyms_cmds \
18101 old_archive_from_new_cmds \
18102 old_archive_from_expsyms_cmds \
18104 archive_expsym_cmds \
18106 module_expsym_cmds \
18107 export_symbols_cmds \
18110 postuninstall_cmds \
18112 sys_lib_search_path_spec \
18113 sys_lib_dlsearch_path_spec \
18115 old_archive_cmds_FC \
18116 old_archive_from_new_cmds_FC \
18117 old_archive_from_expsyms_cmds_FC \
18119 archive_expsym_cmds_FC \
18121 module_expsym_cmds_FC \
18122 export_symbols_cmds_FC \
18123 prelink_cmds_FC; do
18124 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18125 *[\\\\\\\`\\"\\\$]*)
18126 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18129 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18134 ac_aux_dir='$ac_aux_dir'
18135 xsi_shell='$xsi_shell'
18136 lt_shell_append='$lt_shell_append'
18138 # See if we are running on zsh, and set the options which allow our
18139 # commands through without removal of \ escapes INIT.
18140 if test -n "\${ZSH_VERSION+set}" ; then
18141 setopt NO_GLOB_SUBST
18147 TIMESTAMP='$TIMESTAMP'
18158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18160 # Handling of arguments.
18161 for ac_config_target
in $ac_config_targets
18163 case $ac_config_target in
18164 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18165 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18166 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18167 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18168 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
18169 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
18170 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
18171 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
18172 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18173 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18174 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
18175 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18177 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18182 # If the user did not use the arguments to specify the items to instantiate,
18183 # then the envvar interface is used. Set only those that are not.
18184 # We use the long form for the default assignment because of an extremely
18185 # bizarre bug on SunOS 4.1.3.
18186 if $ac_need_defaults; then
18187 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18188 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18192 # Have a temporary directory for convenience. Make it in the build tree
18193 # simply because there is no reason against having it here, and in addition,
18194 # creating and moving files from /tmp can sometimes cause problems.
18195 # Hook for its removal unless debugging.
18196 # Note that there is a small window in which the directory will not be cleaned:
18197 # after its creation but before its name has been assigned to `$tmp'.
18201 trap 'exit_status=$?
18202 : "${ac_tmp:=$tmp}"
18203 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18205 trap 'as_fn_exit 1' 1 2 13 15
18207 # Create a (secure) tmp directory for tmp files.
18210 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18214 tmp
=.
/conf$$
-$RANDOM
18215 (umask 077 && mkdir
"$tmp")
18216 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18219 # Set up the scripts for CONFIG_FILES section.
18220 # No need to generate them if there are no CONFIG_FILES.
18221 # This happens for instance with `./config.status config.h'.
18222 if test -n "$CONFIG_FILES"; then
18225 ac_cr
=`echo X | tr X '\015'`
18226 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18227 # But we know of no other shell where ac_cr would be empty at this
18228 # point, so we can use a bashism as a fallback.
18229 if test "x$ac_cr" = x
; then
18230 eval ac_cr
=\$
\'\\r
\'
18232 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18233 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18236 ac_cs_awk_cr
=$ac_cr
18239 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18244 echo "cat >conf$$subs.awk <<_ACEOF" &&
18245 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18247 } >conf$$subs.sh ||
18248 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18249 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18251 for ac_last_try in false false false false false :; do
18252 . ./conf$$subs.sh ||
18253 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18255 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18256 if test $ac_delim_n = $ac_delim_num; then
18258 elif $ac_last_try; then
18259 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18261 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18264 rm -f conf$$subs.sh
18266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18267 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18271 s/^/S["/; s
/!.
*/"]=/
18281 s/\(.\{148\}\)..*/\1/
18283 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18288 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18295 s/\(.\{148\}\)..*/\1/
18297 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18301 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18306 ' <conf$$subs.awk | sed '
18311 ' >>$CONFIG_STATUS || ac_write_fail=1
18312 rm -f conf$$subs.awk
18313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18315 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18316 for (key in S) S_is_set[key] = 1
18322 nfields = split(line, field, "@
")
18324 len = length(field[1])
18325 for (i = 2; i < nfields; i++) {
18327 keylen = length(key)
18328 if (S_is_set[key]) {
18330 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18331 len += length(value) + length(field[++i])
18342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18343 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18344 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18347 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18348 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18351 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18352 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18353 # trailing colons and then remove the whole line if VPATH becomes empty
18354 # (actually we leave an empty line to preserve line numbers).
18355 if test "x
$srcdir" = x.; then
18356 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18375 fi # test -n "$CONFIG_FILES"
18377 # Set up the scripts for CONFIG_HEADERS section.
18378 # No need to generate them if there are no CONFIG_HEADERS.
18379 # This happens for instance with `./config.status Makefile'.
18380 if test -n "$CONFIG_HEADERS"; then
18381 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18385 # Transform confdefs.h into an awk script `defines.awk', embedded as
18386 # here-document in config.status, that substitutes the proper values into
18387 # config.h.in to produce config.h.
18389 # Create a delimiter string that does not exist in confdefs.h, to ease
18390 # handling of long lines.
18392 for ac_last_try in false false :; do
18393 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18394 if test -z "$ac_tt"; then
18396 elif $ac_last_try; then
18397 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18399 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18403 # For the awk script, D is an array of macro values keyed by name,
18404 # likewise P contains macro parameters if any. Preserve backslash
18405 # newline sequences.
18407 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18409 s/.\{148\}/&'"$ac_delim"'/g
18412 s/^[ ]*#[ ]*define[ ][ ]*/ /
18419 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18421 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18426 D["\
1"]=" \
3\\\\\\n
"\\/p
18428 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18433 s/.\{148\}/&'"$ac_delim"'/g
18438 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18441 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18443 ' <confdefs.h | sed '
18444 s/'"$ac_delim"'/"\\\
18445 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18448 for (key in D) D_is_set[key] = 1
18451 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18453 split(line, arg, " ")
18454 if (arg[1] == "#") {
18458 defundef
= substr
(arg
[1], 2)
18461 split(mac1
, mac2
, "(") #)
18463 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18464 if (D_is_set
[macro
]) {
18465 # Preserve the white space surrounding the "#".
18466 print prefix
"define", macro P
[macro
] D
[macro
]
18469 # Replace #undef with comments. This is necessary, for example,
18470 # in the case of _POSIX_SOURCE, which is predefined and required
18471 # on some systems where configure will not decide to define it.
18472 if (defundef
== "undef") {
18473 print
"/*", prefix defundef
, macro
, "*/"
18481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18482 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18483 fi # test -n "$CONFIG_HEADERS"
18486 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18491 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18493 case $ac_mode$ac_tag in
18495 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18496 :[FH
]-) ac_tag
=-:-;;
18497 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18514 -) ac_f
="$ac_tmp/stdin";;
18515 *) # Look for the file first in the build tree, then in the source tree
18516 # (if the path is not absolute). The absolute path cannot be DOS-style,
18517 # because $ac_f cannot contain `:'.
18521 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18523 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18525 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18526 as_fn_append ac_file_inputs
" '$ac_f'"
18529 # Let's still pretend it is `configure' which instantiates (i.e., don't
18530 # use $as_me), people would be surprised to read:
18531 # /* config.h. Generated by config.status. */
18532 configure_input
='Generated from '`
18533 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18535 if test x
"$ac_file" != x-
; then
18536 configure_input
="$ac_file. $configure_input"
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18538 $as_echo "$as_me: creating $ac_file" >&6;}
18540 # Neutralize special characters interpreted by sed in replacement strings.
18541 case $configure_input in #(
18542 *\
&* |
*\|
* |
*\\* )
18543 ac_sed_conf_input
=`$as_echo "$configure_input" |
18544 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18545 *) ac_sed_conf_input
=$configure_input;;
18549 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18550 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18555 ac_dir
=`$as_dirname -- "$ac_file" ||
18556 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18557 X"$ac_file" : 'X\(//\)[^/]' \| \
18558 X"$ac_file" : 'X\(//\)$' \| \
18559 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18560 $as_echo X"$ac_file" |
18561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18565 /^X\(\/\/\)[^/].*/{
18578 as_dir
="$ac_dir"; as_fn_mkdir_p
18582 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18584 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18585 # A ".." for each directory in $ac_dir_suffix.
18586 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18587 case $ac_top_builddir_sub in
18588 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18589 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18592 ac_abs_top_builddir
=$ac_pwd
18593 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18594 # for backward compatibility:
18595 ac_top_builddir
=$ac_top_build_prefix
18598 .
) # We are building in place.
18600 ac_top_srcdir
=$ac_top_builddir_sub
18601 ac_abs_top_srcdir
=$ac_pwd ;;
18602 [\\/]* | ?
:[\\/]* ) # Absolute name.
18603 ac_srcdir
=$srcdir$ac_dir_suffix;
18604 ac_top_srcdir
=$srcdir
18605 ac_abs_top_srcdir
=$srcdir ;;
18606 *) # Relative name.
18607 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18608 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18609 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18611 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18621 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18622 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18624 ac_MKDIR_P
=$MKDIR_P
18626 [\\/$
]* | ?
:[\\/]* ) ;;
18627 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18632 # If the template does not know about datarootdir, expand it.
18633 # FIXME: This hack should be removed a few years after 2.60.
18634 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18645 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18646 *datarootdir
*) ac_datarootdir_seen
=yes;;
18647 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18649 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18652 ac_datarootdir_hack='
18653 s&@datadir@&$datadir&g
18654 s&@docdir@&$docdir&g
18655 s&@infodir@&$infodir&g
18656 s&@localedir@&$localedir&g
18657 s&@mandir@&$mandir&g
18658 s&\\\${datarootdir}&$datarootdir&g' ;;
18662 # Neutralize VPATH when `$srcdir' = `.'.
18663 # Shell code in configure.ac might set extrasub.
18664 # FIXME: do we really want to maintain this feature?
18665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18666 ac_sed_extra="$ac_vpsub
18669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18671 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18672 s|@configure_input@|
$ac_sed_conf_input|
;t t
18673 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18674 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18675 s
&@srcdir@
&$ac_srcdir&;t t
18676 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18677 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18678 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18679 s
&@builddir@
&$ac_builddir&;t t
18680 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18681 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18682 s
&@INSTALL@
&$ac_INSTALL&;t t
18683 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18684 $ac_datarootdir_hack
18686 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18687 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18689 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18690 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18691 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18692 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18694 which seems to be undefined. Please make sure it is defined" >&5
18695 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18696 which seems to be undefined. Please make sure it is defined" >&2;}
18698 rm -f "$ac_tmp/stdin"
18700 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18701 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18709 if test x"$ac_file" != x-; then
18711 $as_echo "/* $configure_input */" \
18712 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18713 } >"$ac_tmp/config.h" \
18714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18715 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18717 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18720 mv "$ac_tmp/config.h" "$ac_file" \
18721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18724 $as_echo "/* $configure_input */" \
18725 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18726 || as_fn_error $? "could not create -" "$LINENO" 5
18728 # Compute "$ac_file"'s index
in $config_headers.
18731 for _am_header
in $config_headers :; do
18732 case $_am_header in
18733 $_am_arg |
$_am_arg:* )
18736 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18739 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18740 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18741 X"$_am_arg" : 'X\(//\)[^/]' \| \
18742 X"$_am_arg" : 'X\(//\)$' \| \
18743 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18744 $as_echo X"$_am_arg" |
18745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18749 /^X\(\/\/\)[^/].*/{
18761 s/.*/./; q'`/stamp-h
$_am_stamp_count
18764 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18765 $as_echo "$as_me: executing $ac_file commands" >&6;}
18770 case $ac_file$ac_mode in
18772 # Only add multilib support code if we just rebuilt the top-level
18774 case " $CONFIG_FILES " in
18776 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18779 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18780 # Older Autoconf quotes --file arguments for eval, but not when files
18781 # are listed without --file. Let's play safe and only enable the eval
18782 # if we detect the quoting.
18783 case $CONFIG_FILES in
18784 *\'*) eval set x
"$CONFIG_FILES" ;;
18785 *) set x
$CONFIG_FILES ;;
18790 # Strip MF so we end up with the name of the file.
18791 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18792 # Check whether this is an Automake generated Makefile or not.
18793 # We used to match only the files named 'Makefile.in', but
18794 # some people rename them; so instead we look at the file content.
18795 # Grep'ing the first line is not enough: some people post-process
18796 # each Makefile.in and add a new line on top of each file to say so.
18797 # Grep'ing the whole file is not good either: AIX grep has a line
18798 # limit of 2048, but all sed's we know have understand at least 4000.
18799 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18800 dirpart
=`$as_dirname -- "$mf" ||
18801 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18802 X"$mf" : 'X\(//\)[^/]' \| \
18803 X"$mf" : 'X\(//\)$' \| \
18804 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18810 /^X\(\/\/\)[^/].*/{
18826 # Extract the definition of DEPDIR, am__include, and am__quote
18827 # from the Makefile without running 'make'.
18828 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18829 test -z "$DEPDIR" && continue
18830 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18831 test -z "$am__include" && continue
18832 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18833 # Find all dependency output files, they are included files with
18834 # $(DEPDIR) in their names. We invoke sed twice because it is the
18835 # simplest approach to changing $(DEPDIR) to its actual value in the
18837 for file in `sed -n "
18838 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18839 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18840 # Make sure the directory exists.
18841 test -f "$dirpart/$file" && continue
18842 fdir
=`$as_dirname -- "$file" ||
18843 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18844 X"$file" : 'X\(//\)[^/]' \| \
18845 X"$file" : 'X\(//\)$' \| \
18846 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18847 $as_echo X"$file" |
18848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18852 /^X\(\/\/\)[^/].*/{
18865 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18866 # echo "creating $dirpart/$file"
18867 echo '# dummy' > "$dirpart/$file"
18874 # See if we are running on zsh, and set the options which allow our
18875 # commands through without removal of \ escapes.
18876 if test -n "${ZSH_VERSION+set}" ; then
18877 setopt NO_GLOB_SUBST
18880 cfgfile
="${ofile}T"
18881 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18884 cat <<_LT_EOF >> "$cfgfile"
18887 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18888 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18890 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18892 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18893 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18894 # Written by Gordon Matzigkeit, 1996
18896 # This file is part of GNU Libtool.
18898 # GNU Libtool is free software; you can redistribute it and/or
18899 # modify it under the terms of the GNU General Public License as
18900 # published by the Free Software Foundation; either version 2 of
18901 # the License, or (at your option) any later version.
18903 # As a special exception to the GNU General Public License,
18904 # if you distribute this file as part of a program or library that
18905 # is built using GNU Libtool, you may include this file under the
18906 # same distribution terms that you use for the rest of that program.
18908 # GNU Libtool is distributed in the hope that it will be useful,
18909 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18910 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18911 # GNU General Public License for more details.
18913 # You should have received a copy of the GNU General Public License
18914 # along with GNU Libtool; see the file COPYING. If not, a copy
18915 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18916 # obtained by writing to the Free Software Foundation, Inc.,
18917 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18920 # The names of the tagged configurations supported by this script.
18921 available_tags="FC "
18923 # ### BEGIN LIBTOOL CONFIG
18925 # Which release of libtool.m4 was used?
18926 macro_version=$macro_version
18927 macro_revision=$macro_revision
18929 # Whether or not to build shared libraries.
18930 build_libtool_libs=$enable_shared
18932 # Whether or not to build static libraries.
18933 build_old_libs=$enable_static
18935 # What type of objects to build.
18938 # Whether or not to optimize for fast installation.
18939 fast_install=$enable_fast_install
18941 # Shell to use when invoking shell scripts.
18944 # An echo program that protects backslashes.
18948 host_alias=$host_alias
18952 # The build system.
18953 build_alias=$build_alias
18957 # A sed program that does not truncate output.
18960 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18961 Xsed="\$SED -e 1s/^X//"
18963 # A grep program that handles long lines.
18969 # A literal string matcher.
18972 # A BSD- or MS-compatible name lister.
18975 # Whether we need soft or hard links.
18978 # What is the maximum length of a command?
18979 max_cmd_len=$max_cmd_len
18981 # Object file suffix (normally "o").
18984 # Executable file suffix (normally "").
18987 # whether the shell understands "unset".
18990 # turn spaces into newlines.
18993 # turn newlines into spaces.
18996 # An object symbol dumper.
18997 OBJDUMP=$lt_OBJDUMP
18999 # Method to check whether dependent libraries are shared objects.
19000 deplibs_check_method=$lt_deplibs_check_method
19002 # Command to use when deplibs_check_method == "file_magic".
19003 file_magic_cmd=$lt_file_magic_cmd
19007 AR_FLAGS=$lt_AR_FLAGS
19009 # A symbol stripping program.
19012 # Commands used to install an old-style archive.
19014 old_postinstall_cmds=$lt_old_postinstall_cmds
19015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19017 # Whether to use a lock for old archive extraction.
19018 lock_old_archive_extraction=$lock_old_archive_extraction
19023 # LTCC compiler flags.
19024 LTCFLAGS=$lt_CFLAGS
19026 # Take the output of nm and produce a listing of raw symbols and C names.
19027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19029 # Transform the output of nm in a proper C declaration.
19030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19032 # Transform the output of nm in a C name address pair.
19033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19035 # Transform the output of nm in a C name address pair when lib prefix is needed.
19036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19038 # The name of the directory that contains temporary libtool files.
19041 # Used to examine libraries when file_magic_cmd begins with "file".
19042 MAGIC_CMD=$MAGIC_CMD
19044 # Must we lock files when doing compilation?
19045 need_locks=$lt_need_locks
19047 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19048 DSYMUTIL=$lt_DSYMUTIL
19050 # Tool to change global to local symbols on Mac OS X.
19053 # Tool to manipulate fat objects and archives on Mac OS X.
19056 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19059 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19060 OTOOL64=$lt_OTOOL64
19062 # Old archive suffix (normally "a").
19065 # Shared library suffix (normally ".so").
19066 shrext_cmds=$lt_shrext_cmds
19068 # The commands to extract the exported symbol list from a shared archive.
19069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19071 # Variables whose values should be saved in libtool wrapper scripts and
19072 # restored at link time.
19073 variables_saved_for_relink=$lt_variables_saved_for_relink
19075 # Do we need the "lib" prefix for modules?
19076 need_lib_prefix=$need_lib_prefix
19078 # Do we need a version for libraries?
19079 need_version=$need_version
19081 # Library versioning type.
19082 version_type=$version_type
19084 # Shared library runtime path variable.
19085 runpath_var=$runpath_var
19087 # Shared library path variable.
19088 shlibpath_var=$shlibpath_var
19090 # Is shlibpath searched before the hard-coded library search path?
19091 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19093 # Format of library name prefix.
19094 libname_spec=$lt_libname_spec
19096 # List of archive names. First name is the real one, the rest are links.
19097 # The last name is the one that the linker finds with -lNAME
19098 library_names_spec=$lt_library_names_spec
19100 # The coded name of the library, if different from the real name.
19101 soname_spec=$lt_soname_spec
19103 # Permission mode override for installation of shared libraries.
19104 install_override_mode=$lt_install_override_mode
19106 # Command to use after installation of a shared archive.
19107 postinstall_cmds=$lt_postinstall_cmds
19109 # Command to use after uninstallation of a shared archive.
19110 postuninstall_cmds=$lt_postuninstall_cmds
19112 # Commands used to finish a libtool library installation in a directory.
19113 finish_cmds=$lt_finish_cmds
19115 # As "finish_cmds", except a single script fragment to be evaled but
19117 finish_eval=$lt_finish_eval
19119 # Whether we should hardcode library paths into libraries.
19120 hardcode_into_libs=$hardcode_into_libs
19122 # Compile-time system search path for libraries.
19123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19125 # Run-time system search path for libraries.
19126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19128 # Whether dlopen is supported.
19129 dlopen_support=$enable_dlopen
19131 # Whether dlopen of programs is supported.
19132 dlopen_self=$enable_dlopen_self
19134 # Whether dlopen of statically linked programs is supported.
19135 dlopen_self_static=$enable_dlopen_self_static
19137 # Commands to strip libraries.
19138 old_striplib=$lt_old_striplib
19139 striplib=$lt_striplib
19142 # The linker used to build libraries.
19145 # How to create reloadable object files.
19146 reload_flag=$lt_reload_flag
19147 reload_cmds=$lt_reload_cmds
19149 # Commands used to build an old-style archive.
19150 old_archive_cmds=$lt_old_archive_cmds
19152 # A language specific compiler.
19155 # Is the compiler the GNU compiler?
19158 # Compiler flag to turn off builtin functions.
19159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19161 # How to pass a linker flag through the compiler.
19162 wl=$lt_lt_prog_compiler_wl
19164 # Additional compiler flags for building library objects.
19165 pic_flag=$lt_lt_prog_compiler_pic
19167 # Compiler flag to prevent dynamic linking.
19168 link_static_flag=$lt_lt_prog_compiler_static
19170 # Does compiler simultaneously support -c and -o options?
19171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19173 # Whether or not to add -lc for building shared libraries.
19174 build_libtool_need_lc=$archive_cmds_need_lc
19176 # Whether or not to disallow shared libs when runtime libs are static.
19177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19179 # Compiler flag to allow reflexive dlopens.
19180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19182 # Compiler flag to generate shared objects directly from archives.
19183 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19185 # Whether the compiler copes with passing no objects directly.
19186 compiler_needs_object=$lt_compiler_needs_object
19188 # Create an old-style archive from a shared archive.
19189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19191 # Create a temporary old-style archive to link instead of a shared archive.
19192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19194 # Commands used to build a shared archive.
19195 archive_cmds=$lt_archive_cmds
19196 archive_expsym_cmds=$lt_archive_expsym_cmds
19198 # Commands used to build a loadable module if different from building
19199 # a shared archive.
19200 module_cmds=$lt_module_cmds
19201 module_expsym_cmds=$lt_module_expsym_cmds
19203 # Whether we are building with GNU ld or not.
19204 with_gnu_ld=$lt_with_gnu_ld
19206 # Flag that allows shared libraries with undefined symbols to be built.
19207 allow_undefined_flag=$lt_allow_undefined_flag
19209 # Flag that enforces no undefined symbols.
19210 no_undefined_flag=$lt_no_undefined_flag
19212 # Flag to hardcode \$libdir into a binary during linking.
19213 # This must work even if \$libdir does not exist
19214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19216 # If ld is used when linking, flag to hardcode \$libdir into a binary
19217 # during linking. This must work even if \$libdir does not exist.
19218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19220 # Whether we need a single "-rpath" flag with a separated argument.
19221 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19223 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19224 # DIR into the resulting binary.
19225 hardcode_direct=$hardcode_direct
19227 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19228 # DIR into the resulting binary and the resulting library dependency is
19229 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19230 # library is relocated.
19231 hardcode_direct_absolute=$hardcode_direct_absolute
19233 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19234 # into the resulting binary.
19235 hardcode_minus_L=$hardcode_minus_L
19237 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19238 # into the resulting binary.
19239 hardcode_shlibpath_var=$hardcode_shlibpath_var
19241 # Set to "yes" if building a shared library automatically hardcodes DIR
19242 # into the library and all subsequent libraries and executables linked
19244 hardcode_automatic=$hardcode_automatic
19246 # Set to yes if linker adds runtime paths of dependent libraries
19247 # to runtime path list.
19248 inherit_rpath=$inherit_rpath
19250 # Whether libtool must link a program against all its dependency libraries.
19251 link_all_deplibs=$link_all_deplibs
19253 # Fix the shell variable \$srcfile for the compiler.
19254 fix_srcfile_path=$lt_fix_srcfile_path
19256 # Set to "yes" if exported symbols are required.
19257 always_export_symbols=$always_export_symbols
19259 # The commands to list exported symbols.
19260 export_symbols_cmds=$lt_export_symbols_cmds
19262 # Symbols that should not be listed in the preloaded symbols.
19263 exclude_expsyms=$lt_exclude_expsyms
19265 # Symbols that must always be exported.
19266 include_expsyms=$lt_include_expsyms
19268 # Commands necessary for linking programs (against libraries) with templates.
19269 prelink_cmds=$lt_prelink_cmds
19271 # Specify filename containing input files.
19272 file_list_spec=$lt_file_list_spec
19274 # How to hardcode a shared library path into an executable.
19275 hardcode_action=$hardcode_action
19277 # The directories searched by this compiler when creating a shared library.
19278 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19280 # Dependencies to place before and after the objects being linked to
19281 # create a shared library.
19282 predep_objects=$lt_predep_objects
19283 postdep_objects=$lt_postdep_objects
19284 predeps=$lt_predeps
19285 postdeps=$lt_postdeps
19287 # The library search path used internally by the compiler when linking
19288 # a shared library.
19289 compiler_lib_search_path=$lt_compiler_lib_search_path
19291 # ### END LIBTOOL CONFIG
19297 cat <<\_LT_EOF
>> "$cfgfile"
19298 # AIX sometimes has problems with the GCC collect2 program. For some
19299 # reason, if we set the COLLECT_NAMES environment variable, the problems
19300 # vanish in a puff of smoke.
19301 if test "X${COLLECT_NAMES+set}" != Xset
; then
19303 export COLLECT_NAMES
19310 ltmain
="$ac_aux_dir/ltmain.sh"
19313 # We use sed instead of cat because bash on DJGPP gets confused if
19314 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19315 # text mode, it properly converts lines to CR/LF. This bash problem
19316 # is reportedly fixed, but why not run on old versions too?
19317 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19318 ||
(rm -f "$cfgfile"; exit 1)
19322 cat << \_LT_EOF
>> "$cfgfile"
19324 # func_dirname file append nondir_replacement
19325 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19326 # otherwise set result to NONDIR_REPLACEMENT.
19330 */*) func_dirname_result
="${1%/*}${2}" ;;
19331 * ) func_dirname_result
="${3}" ;;
19335 # func_basename file
19338 func_basename_result
="${1##*/}"
19341 # func_dirname_and_basename file append nondir_replacement
19342 # perform func_basename and func_dirname in a single function
19344 # dirname: Compute the dirname of FILE. If nonempty,
19345 # add APPEND to the result, otherwise set result
19346 # to NONDIR_REPLACEMENT.
19347 # value returned in "$func_dirname_result"
19348 # basename: Compute filename of FILE.
19349 # value retuned in "$func_basename_result"
19350 # Implementation must be kept synchronized with func_dirname
19351 # and func_basename. For efficiency, we do not delegate to
19352 # those functions but instead duplicate the functionality here.
19353 func_dirname_and_basename
()
19356 */*) func_dirname_result
="${1%/*}${2}" ;;
19357 * ) func_dirname_result
="${3}" ;;
19359 func_basename_result
="${1##*/}"
19362 # func_stripname prefix suffix name
19363 # strip PREFIX and SUFFIX off of NAME.
19364 # PREFIX and SUFFIX must not contain globbing or regex special
19365 # characters, hashes, percent signs, but SUFFIX may contain a leading
19366 # dot (in which case that matches only a dot).
19369 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19370 # positional parameters, so assign one to ordinary parameter first.
19371 func_stripname_result
=${3}
19372 func_stripname_result
=${func_stripname_result#"${1}"}
19373 func_stripname_result
=${func_stripname_result%"${2}"}
19379 func_opt_split_opt
=${1%%=*}
19380 func_opt_split_arg
=${1#*=}
19387 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19388 *) func_lo2o_result
=${1} ;;
19392 # func_xform libobj-or-source
19395 func_xform_result
=${1%.*}.lo
19398 # func_arith arithmetic-term...
19401 func_arith_result
=$
(( $
* ))
19405 # STRING may not start with a hyphen.
19408 func_len_result
=${#1}
19413 *) # Bourne compatible functions.
19414 cat << \_LT_EOF
>> "$cfgfile"
19416 # func_dirname file append nondir_replacement
19417 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19418 # otherwise set result to NONDIR_REPLACEMENT.
19421 # Extract subdirectory from the argument.
19422 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19423 if test "X$func_dirname_result" = "X${1}"; then
19424 func_dirname_result
="${3}"
19426 func_dirname_result
="$func_dirname_result${2}"
19430 # func_basename file
19433 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19437 # func_stripname prefix suffix name
19438 # strip PREFIX and SUFFIX off of NAME.
19439 # PREFIX and SUFFIX must not contain globbing or regex special
19440 # characters, hashes, percent signs, but SUFFIX may contain a leading
19441 # dot (in which case that matches only a dot).
19442 # func_strip_suffix prefix name
19446 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19447 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19452 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19453 my_sed_long_arg
='1s/^-[^=]*=//'
19458 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19459 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19465 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19468 # func_xform libobj-or-source
19471 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19474 # func_arith arithmetic-term...
19477 func_arith_result
=`expr "$@"`
19481 # STRING may not start with a hyphen.
19484 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19490 case $lt_shell_append in
19492 cat << \_LT_EOF
>> "$cfgfile"
19494 # func_append var value
19495 # Append VALUE to the end of shell variable VAR.
19503 cat << \_LT_EOF
>> "$cfgfile"
19505 # func_append var value
19506 # Append VALUE to the end of shell variable VAR.
19517 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19518 ||
(rm -f "$cfgfile"; exit 1)
19520 mv -f "$cfgfile" "$ofile" ||
19521 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19525 cat <<_LT_EOF >> "$ofile"
19527 # ### BEGIN LIBTOOL TAG CONFIG: FC
19529 # The linker used to build libraries.
19532 # How to create reloadable object files.
19533 reload_flag=$lt_reload_flag_FC
19534 reload_cmds=$lt_reload_cmds_FC
19536 # Commands used to build an old-style archive.
19537 old_archive_cmds=$lt_old_archive_cmds_FC
19539 # A language specific compiler.
19542 # Is the compiler the GNU compiler?
19545 # Compiler flag to turn off builtin functions.
19546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19548 # How to pass a linker flag through the compiler.
19549 wl=$lt_lt_prog_compiler_wl_FC
19551 # Additional compiler flags for building library objects.
19552 pic_flag=$lt_lt_prog_compiler_pic_FC
19554 # Compiler flag to prevent dynamic linking.
19555 link_static_flag=$lt_lt_prog_compiler_static_FC
19557 # Does compiler simultaneously support -c and -o options?
19558 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19560 # Whether or not to add -lc for building shared libraries.
19561 build_libtool_need_lc=$archive_cmds_need_lc_FC
19563 # Whether or not to disallow shared libs when runtime libs are static.
19564 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19566 # Compiler flag to allow reflexive dlopens.
19567 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19569 # Compiler flag to generate shared objects directly from archives.
19570 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19572 # Whether the compiler copes with passing no objects directly.
19573 compiler_needs_object=$lt_compiler_needs_object_FC
19575 # Create an old-style archive from a shared archive.
19576 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19578 # Create a temporary old-style archive to link instead of a shared archive.
19579 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19581 # Commands used to build a shared archive.
19582 archive_cmds=$lt_archive_cmds_FC
19583 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19585 # Commands used to build a loadable module if different from building
19586 # a shared archive.
19587 module_cmds=$lt_module_cmds_FC
19588 module_expsym_cmds=$lt_module_expsym_cmds_FC
19590 # Whether we are building with GNU ld or not.
19591 with_gnu_ld=$lt_with_gnu_ld_FC
19593 # Flag that allows shared libraries with undefined symbols to be built.
19594 allow_undefined_flag=$lt_allow_undefined_flag_FC
19596 # Flag that enforces no undefined symbols.
19597 no_undefined_flag=$lt_no_undefined_flag_FC
19599 # Flag to hardcode \$libdir into a binary during linking.
19600 # This must work even if \$libdir does not exist
19601 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19603 # If ld is used when linking, flag to hardcode \$libdir into a binary
19604 # during linking. This must work even if \$libdir does not exist.
19605 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19607 # Whether we need a single "-rpath" flag with a separated argument.
19608 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19610 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19611 # DIR into the resulting binary.
19612 hardcode_direct=$hardcode_direct_FC
19614 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19615 # DIR into the resulting binary and the resulting library dependency is
19616 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19617 # library is relocated.
19618 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19620 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19621 # into the resulting binary.
19622 hardcode_minus_L=$hardcode_minus_L_FC
19624 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19625 # into the resulting binary.
19626 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19628 # Set to "yes" if building a shared library automatically hardcodes DIR
19629 # into the library and all subsequent libraries and executables linked
19631 hardcode_automatic=$hardcode_automatic_FC
19633 # Set to yes if linker adds runtime paths of dependent libraries
19634 # to runtime path list.
19635 inherit_rpath=$inherit_rpath_FC
19637 # Whether libtool must link a program against all its dependency libraries.
19638 link_all_deplibs=$link_all_deplibs_FC
19640 # Fix the shell variable \$srcfile for the compiler.
19641 fix_srcfile_path=$lt_fix_srcfile_path_FC
19643 # Set to "yes" if exported symbols are required.
19644 always_export_symbols=$always_export_symbols_FC
19646 # The commands to list exported symbols.
19647 export_symbols_cmds=$lt_export_symbols_cmds_FC
19649 # Symbols that should not be listed in the preloaded symbols.
19650 exclude_expsyms=$lt_exclude_expsyms_FC
19652 # Symbols that must always be exported.
19653 include_expsyms=$lt_include_expsyms_FC
19655 # Commands necessary for linking programs (against libraries) with templates.
19656 prelink_cmds=$lt_prelink_cmds_FC
19658 # Specify filename containing input files.
19659 file_list_spec=$lt_file_list_spec_FC
19661 # How to hardcode a shared library path into an executable.
19662 hardcode_action=$hardcode_action_FC
19664 # The directories searched by this compiler when creating a shared library.
19665 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19667 # Dependencies to place before and after the objects being linked to
19668 # create a shared library.
19669 predep_objects=$lt_predep_objects_FC
19670 postdep_objects=$lt_postdep_objects_FC
19671 predeps=$lt_predeps_FC
19672 postdeps=$lt_postdeps_FC
19674 # The library search path used internally by the compiler when linking
19675 # a shared library.
19676 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19678 # ### END LIBTOOL TAG CONFIG: FC
19689 ac_clean_files
=$ac_clean_files_save
19691 test $ac_write_fail = 0 ||
19692 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19695 # configure is writing to config.log, and then calls config.status.
19696 # config.status does its own redirection, appending to config.log.
19697 # Unfortunately, on DOS this fails, as config.log is still kept open
19698 # by configure, so config.status won't be able to write to it; its
19699 # output is simply discarded. So we exec the FD to /dev/null,
19700 # effectively closing config.log, so it can be properly (re)opened and
19701 # appended to by config.status. When coming back to configure, we
19702 # need to make the FD available again.
19703 if test "$no_create" != yes; then
19705 ac_config_status_args
=
19706 test "$silent" = yes &&
19707 ac_config_status_args
="$ac_config_status_args --quiet"
19709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19712 # would make configure fail if this is the last instruction.
19713 $ac_cs_success || as_fn_exit
1
19715 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19717 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}