2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME
='libgomp'
590 PACKAGE_VERSION
='1.0'
591 PACKAGE_STRING
='GNU Offloading and Multi Processing Runtime Library 1.0'
593 PACKAGE_URL
='http://www.gnu.org/software/libgomp/'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
633 ac_subst_vars
='am__EXEEXT_FALSE
639 OMP_NEST_LOCK_25_KIND
641 OMP_NEST_LOCK_25_ALIGN
642 OMP_NEST_LOCK_25_SIZE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
663 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
664 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
665 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
666 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
673 offload_additional_lib_paths
674 offload_additional_options
684 MAINTAINER_MODE_FALSE
742 INSTALL_STRIP_PROGRAM
798 program_transform_name
811 enable_option_checking
812 enable_version_specific_runtime_libs
813 enable_generated_files_in_srcdir
817 enable_dependency_tracking
825 enable_maintainer_mode
830 with_gcc_major_version_only
832 ac_precious_vars
='build_alias
843 # Initialize some variables set by options.
845 ac_init_version
=false
846 ac_unrecognized_opts
=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
857 program_transform_name
=s
,x
,x
,
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir
='${exec_prefix}/bin'
872 sbindir
='${exec_prefix}/sbin'
873 libexecdir
='${exec_prefix}/libexec'
874 datarootdir
='${prefix}/share'
875 datadir
='${datarootdir}'
876 sysconfdir
='${prefix}/etc'
877 sharedstatedir
='${prefix}/com'
878 localstatedir
='${prefix}/var'
879 includedir
='${prefix}/include'
880 oldincludedir
='/usr/include'
881 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir
='${datarootdir}/info'
887 libdir
='${exec_prefix}/lib'
888 localedir
='${datarootdir}/locale'
889 mandir
='${datarootdir}/man'
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\
$ac_option
903 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
914 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
916 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
919 -build |
--build |
--buil |
--bui |
--bu)
920 ac_prev
=build_alias
;;
921 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
922 build_alias
=$ac_optarg ;;
924 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
925 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
926 ac_prev
=cache_file
;;
927 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
928 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
929 cache_file
=$ac_optarg ;;
932 cache_file
=config.cache
;;
934 -datadir |
--datadir |
--datadi |
--datad)
936 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
937 datadir
=$ac_optarg ;;
939 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
940 |
--dataroo |
--dataro |
--datar)
941 ac_prev
=datarootdir
;;
942 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
943 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
944 datarootdir
=$ac_optarg ;;
946 -disable-* |
--disable-*)
947 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
950 as_fn_error $?
"invalid feature name: $ac_useropt"
951 ac_useropt_orig
=$ac_useropt
952 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
957 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep
=', ';;
960 eval enable_
$ac_useropt=no
;;
962 -docdir |
--docdir |
--docdi |
--doc |
--do)
964 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
967 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
969 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
972 -enable-* |
--enable-*)
973 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
976 as_fn_error $?
"invalid feature name: $ac_useropt"
977 ac_useropt_orig
=$ac_useropt
978 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep
=', ';;
986 eval enable_
$ac_useropt=\
$ac_optarg ;;
988 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
989 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
990 |
--exec |
--exe |
--ex)
991 ac_prev
=exec_prefix
;;
992 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
993 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
994 |
--exec=* |
--exe=* |
--ex=*)
995 exec_prefix
=$ac_optarg ;;
997 -gas |
--gas |
--ga |
--g)
998 # Obsolete; use --with-gas.
1001 -help |
--help |
--hel |
--he |
-h)
1002 ac_init_help
=long
;;
1003 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1004 ac_init_help
=recursive
;;
1005 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1006 ac_init_help
=short
;;
1008 -host |
--host |
--hos |
--ho)
1009 ac_prev
=host_alias
;;
1010 -host=* |
--host=* |
--hos=* |
--ho=*)
1011 host_alias
=$ac_optarg ;;
1013 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1015 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1017 htmldir
=$ac_optarg ;;
1019 -includedir |
--includedir |
--includedi |
--included |
--include \
1020 |
--includ |
--inclu |
--incl |
--inc)
1021 ac_prev
=includedir
;;
1022 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1023 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1024 includedir
=$ac_optarg ;;
1026 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1028 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1029 infodir
=$ac_optarg ;;
1031 -libdir |
--libdir |
--libdi |
--libd)
1033 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1034 libdir
=$ac_optarg ;;
1036 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1037 |
--libexe |
--libex |
--libe)
1038 ac_prev
=libexecdir
;;
1039 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1040 |
--libexe=* |
--libex=* |
--libe=*)
1041 libexecdir
=$ac_optarg ;;
1043 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1044 ac_prev
=localedir
;;
1045 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1046 localedir
=$ac_optarg ;;
1048 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1049 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1050 ac_prev
=localstatedir
;;
1051 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1052 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1053 localstatedir
=$ac_optarg ;;
1055 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1057 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1058 mandir
=$ac_optarg ;;
1060 -nfp |
--nfp |
--nf)
1061 # Obsolete; use --without-fp.
1064 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1065 |
--no-cr |
--no-c |
-n)
1068 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1069 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1072 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1073 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1074 |
--oldin |
--oldi |
--old |
--ol |
--o)
1075 ac_prev
=oldincludedir
;;
1076 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1077 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1078 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1079 oldincludedir
=$ac_optarg ;;
1081 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1083 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1084 prefix
=$ac_optarg ;;
1086 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1087 |
--program-pre |
--program-pr |
--program-p)
1088 ac_prev
=program_prefix
;;
1089 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1090 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1091 program_prefix
=$ac_optarg ;;
1093 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1094 |
--program-suf |
--program-su |
--program-s)
1095 ac_prev
=program_suffix
;;
1096 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1097 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1098 program_suffix
=$ac_optarg ;;
1100 -program-transform-name |
--program-transform-name \
1101 |
--program-transform-nam |
--program-transform-na \
1102 |
--program-transform-n |
--program-transform- \
1103 |
--program-transform |
--program-transfor \
1104 |
--program-transfo |
--program-transf \
1105 |
--program-trans |
--program-tran \
1106 |
--progr-tra |
--program-tr |
--program-t)
1107 ac_prev
=program_transform_name
;;
1108 -program-transform-name=* |
--program-transform-name=* \
1109 |
--program-transform-nam=* |
--program-transform-na=* \
1110 |
--program-transform-n=* |
--program-transform-=* \
1111 |
--program-transform=* |
--program-transfor=* \
1112 |
--program-transfo=* |
--program-transf=* \
1113 |
--program-trans=* |
--program-tran=* \
1114 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1115 program_transform_name
=$ac_optarg ;;
1117 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1119 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1120 pdfdir
=$ac_optarg ;;
1122 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1124 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1127 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1128 |
-silent |
--silent |
--silen |
--sile |
--sil)
1131 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1133 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1135 sbindir
=$ac_optarg ;;
1137 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1138 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1139 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1141 ac_prev
=sharedstatedir
;;
1142 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1143 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1144 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1146 sharedstatedir
=$ac_optarg ;;
1148 -site |
--site |
--sit)
1150 -site=* |
--site=* |
--sit=*)
1153 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1155 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1156 srcdir
=$ac_optarg ;;
1158 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1159 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1160 ac_prev
=sysconfdir
;;
1161 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1162 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1163 sysconfdir
=$ac_optarg ;;
1165 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1166 ac_prev
=target_alias
;;
1167 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1168 target_alias
=$ac_optarg ;;
1170 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1173 -version |
--version |
--versio |
--versi |
--vers |
-V)
1174 ac_init_version
=: ;;
1177 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1180 as_fn_error $?
"invalid package name: $ac_useropt"
1181 ac_useropt_orig
=$ac_useropt
1182 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1187 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep
=', ';;
1190 eval with_
$ac_useropt=\
$ac_optarg ;;
1192 -without-* |
--without-*)
1193 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1196 as_fn_error $?
"invalid package name: $ac_useropt"
1197 ac_useropt_orig
=$ac_useropt
1198 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1203 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep
=', ';;
1206 eval with_
$ac_useropt=no
;;
1209 # Obsolete; use --with-x.
1212 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1213 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1214 ac_prev
=x_includes
;;
1215 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1216 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1217 x_includes
=$ac_optarg ;;
1219 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1220 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1221 ac_prev
=x_libraries
;;
1222 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1223 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1224 x_libraries
=$ac_optarg ;;
1226 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1231 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1235 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1237 eval $ac_envvar=\
$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251 if test -n "$ac_prev"; then
1252 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $?
"missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1259 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 # Check all directory arguments for consistency.
1265 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val
=\$
$ac_var
1271 # Remove trailing slashes.
1274 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\
$ac_val;;
1277 # Be sure to have absolute directory names.
1279 [\\/$
]* | ?
:[\\/]* ) continue;;
1280 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1282 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1290 target
=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x
; then
1294 if test "x$build_alias" = x
; then
1295 cross_compiling
=maybe
1296 elif test "x$build_alias" != "x$host_alias"; then
1302 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1304 test "$silent" = yes && exec 6>/dev
/null
1307 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di
=`ls -di .` &&
1309 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error $?
"working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error $?
"pwd does not report name of working directory"
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted
=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir
=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1347 ac_srcdir_defaulted
=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1351 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1353 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1365 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 for ac_var
in $ac_precious_vars; do
1368 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1370 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1381 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking ...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1444 --build=BUILD configure
for building on BUILD
[guessed
]
1445 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1446 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1457 --disable-option-checking ignore unrecognized
--enable/--with options
1458 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1459 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1460 --enable-version-specific-runtime-libs
1461 Specify that runtime libraries should be installed
1462 in a compiler-specific directory
[default
=no
]
1463 --enable-generated-files-in-srcdir
1464 put copies of generated files
in source dir intended
1465 for creating
source tarballs
for users without
1466 texinfo bison or flex.
[default
=no
]
1467 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1468 --disable-silent-rules verbose build output
(undo
: "make V=0")
1469 --enable-multilib build many library versions
(default
)
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
1474 --disable-werror disable building with
-Werror
1475 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1476 --enable-static[=PKGS
] build static libraries
[default
=yes]
1477 --enable-fast-install[=PKGS
]
1478 optimize
for fast installation
[default
=yes]
1479 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful
(and
1482 sometimes confusing
) to the casual installer
1483 --enable-linux-futex use the Linux futex system call
[default
=default
]
1484 --enable-tls Use thread-local storage
[default
=yes]
1485 --enable-symvers=STYLE enables symbol versioning of the shared library
1487 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1490 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1491 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1492 --with-toolexeclibdir=DIR
1493 install libraries built with a cross compiler within
1495 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1497 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1498 --with-gcc-major-version-only
1499 use only GCC major number
in filesystem paths
1501 Some influential environment variables
:
1502 CC C compiler
command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1505 nonstandard directory
<lib dir
>
1506 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1507 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1508 you have headers
in a nonstandard directory
<include dir
>
1510 FC Fortran compiler
command
1511 FCFLAGS Fortran compiler flags
1513 Use these variables to override the choices made by
`configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1516 Report bugs to the package provider.
1517 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1518 General help using GNU software: <http://www.gnu.org/gethelp/>.
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1548 .) # We are building in place.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1581 GNU Offloading and Multi Processing Runtime Library configure 1.0
1582 generated by GNU Autoconf 2.69
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1605 *) ac_try_echo
=$ac_try;;
1607 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1611 if test -s conftest.err
; then
1612 grep -v '^ *+' conftest.err
>conftest.er1
1613 cat conftest.er1
>&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.
$ac_objext; then :
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.
$ac_ext >&5
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status
$ac_retval
1631 } # ac_fn_c_try_compile
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1638 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1639 rm -f conftest.
$ac_objext conftest
$ac_exeext
1640 if { { ac_try
="$ac_link"
1642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1669 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1670 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1671 # interfere with the next link command; also delete a directory that is
1672 # left behind by Apple's compiler. We do this before executing the actions.
1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_link
1679 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists and can be compiled using the include files in
1682 # INCLUDES, setting the cache variable VAR accordingly.
1683 ac_fn_c_check_header_compile ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1696 if ac_fn_c_try_compile "$LINENO"; then :
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 } # ac_fn_c_check_header_compile
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1719 *) ac_try_echo
=$ac_try;;
1721 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725 if test -s conftest.err
; then
1726 grep -v '^ *+' conftest.err
>conftest.er1
1727 cat conftest.er1
>&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i
&& {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.
$ac_ext >&5
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status
$ac_retval
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1753 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1754 if { { ac_try
="$ac_link"
1756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>&5
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765 { { case "(($ac_try" in
1766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1767 *) ac_try_echo
=$ac_try;;
1769 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_try") 2>&5
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; }; }; then :
1777 $as_echo "$as_me: program exited with status $ac_status" >&5
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.
$ac_ext >&5
1781 ac_retval
=$ac_status
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status
$ac_retval
1789 # ac_fn_c_check_func LINENO FUNC VAR
1790 # ----------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_c_check_func
()
1794 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \
${$3+:} false
; then :
1798 $as_echo_n "(cached) " >&6
1800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1812 # include <limits.h>
1814 # include <assert.h>
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1841 if ac_fn_c_try_link
"$LINENO"; then :
1846 rm -f core conftest.err conftest.
$ac_objext \
1847 conftest
$ac_exeext conftest.
$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_func
1856 # ac_fn_fc_try_compile LINENO
1857 # ---------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_fc_try_compile
()
1861 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1862 rm -f conftest.
$ac_objext
1863 if { { ac_try
="$ac_compile"
1865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_fc_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.$ac_objext; then :
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_fc_try_compile
1894 # ac_fn_fc_try_link LINENO
1895 # ------------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_fc_try_link ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1904 *) ac_try_echo
=$ac_try;;
1906 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1910 if test -s conftest.err
; then
1911 grep -v '^ *+' conftest.err
>conftest.er1
1912 cat conftest.er1
>&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_fc_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest
$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest
$ac_exeext
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.
$ac_ext >&5
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status
$ac_retval
1938 } # ac_fn_fc_try_link
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1945 ac_fn_c_check_header_mongrel
()
1947 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1948 if eval \
${$3+:} false
; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \
${$3+:} false
; then :
1952 $as_echo_n "(cached) " >&6
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1966 if ac_fn_c_try_compile
"$LINENO"; then :
1967 ac_header_compiler
=yes
1969 ac_header_compiler
=no
1971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1982 if ac_fn_c_try_cpp
"$LINENO"; then :
1983 ac_header_preproc
=yes
1985 ac_header_preproc
=no
1987 rm -f conftest.err conftest.i conftest.
$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1991 # So? What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \
${$3+:} false
; then :
2015 $as_echo_n "(cached) " >&6
2017 eval "$3=\$ac_header_compiler"
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_header_mongrel
2027 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2028 # --------------------------------------------
2029 # Tries to find the compile-time value of EXPR in a program that includes
2030 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2032 ac_fn_c_compute_int
()
2034 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2035 if test "$cross_compiling" = yes; then
2036 # Depending upon the size, compute the lo and hi bounds.
2037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2043 static int test_array [1 - 2 * !(($2) >= 0)];
2045 return test_array [0];
2051 if ac_fn_c_try_compile
"$LINENO"; then :
2054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2060 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2062 return test_array [0];
2068 if ac_fn_c_try_compile
"$LINENO"; then :
2069 ac_hi
=$ac_mid; break
2071 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2072 if test $ac_lo -le $ac_mid; then
2076 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) < 0)];
2089 return test_array [0];
2095 if ac_fn_c_try_compile
"$LINENO"; then :
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106 return test_array [0];
2112 if ac_fn_c_try_compile
"$LINENO"; then :
2113 ac_lo
=$ac_mid; break
2115 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2116 if test $ac_mid -le $ac_hi; then
2120 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2130 # Binary search between lo and hi bounds.
2131 while test "x$ac_lo" != "x$ac_hi"; do
2132 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 return test_array [0];
2147 if ac_fn_c_try_compile
"$LINENO"; then :
2150 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2155 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2162 static long int longval () { return $2; }
2163 static unsigned long int ulongval () { return $2; }
2170 FILE *f = fopen ("conftest.val", "w");
2175 long int i = longval ();
2178 fprintf (f, "%ld", i);
2182 unsigned long int i = ulongval ();
2185 fprintf (f, "%lu", i);
2187 /* Do not output a trailing newline, as this causes \r\n confusion
2188 on some platforms. */
2189 return ferror (f) || fclose (f) != 0;
2195 if ac_fn_c_try_run
"$LINENO"; then :
2196 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2200 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2201 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 as_fn_set_status
$ac_retval
2208 } # ac_fn_c_compute_int
2210 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2211 # -------------------------------------------
2212 # Tests whether TYPE exists after having included INCLUDES, setting cache
2213 # variable VAR accordingly.
2214 ac_fn_c_check_type
()
2216 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \
${$3+:} false
; then :
2220 $as_echo_n "(cached) " >&6
2223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2235 if ac_fn_c_try_compile
"$LINENO"; then :
2236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2248 if ac_fn_c_try_compile
"$LINENO"; then :
2253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 } # ac_fn_c_check_type
2263 cat >config.log
<<_ACEOF
2264 This file contains any messages produced by compilers while
2265 running configure, to aid debugging if configure makes a mistake.
2267 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2268 generated by GNU Autoconf 2.69. Invocation command line was
2280 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2281 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2282 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2283 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2284 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2286 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2287 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2289 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2290 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2291 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2292 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2293 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2294 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2295 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2303 test -z "$as_dir" && as_dir
=.
2304 $as_echo "PATH: $as_dir"
2320 # Keep a trace of the command line.
2321 # Strip out --no-create and --no-recursion so they do not pile up.
2322 # Strip out --silent because we don't want to record it for future runs.
2323 # Also quote any args containing shell meta-characters.
2324 # Make two passes to allow for proper duplicate-argument suppression.
2328 ac_must_keep_next
=false
2334 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2335 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2336 |
-silent |
--silent |
--silen |
--sile |
--sil)
2339 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2342 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2344 as_fn_append ac_configure_args1
" '$ac_arg'"
2345 if test $ac_must_keep_next = true
; then
2346 ac_must_keep_next
=false
# Got value, back to normal.
2349 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2350 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2351 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2352 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2353 case "$ac_configure_args0 " in
2354 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2357 -* ) ac_must_keep_next
=true
;;
2360 as_fn_append ac_configure_args
" '$ac_arg'"
2365 { ac_configure_args0
=; unset ac_configure_args0
;}
2366 { ac_configure_args1
=; unset ac_configure_args1
;}
2368 # When interrupted or exit'd, cleanup temporary files, and complete
2369 # config.log. We remove comments because anyway the quotes in there
2370 # would cause problems or look ugly.
2371 # WARNING: Use '\'' to represent an apostrophe within the trap.
2372 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2373 trap 'exit_status=$?
2374 # Save into config.log some information that might help in debugging.
2378 $as_echo "## ---------------- ##
2379 ## Cache variables. ##
2380 ## ---------------- ##"
2382 # The following way of writing the cache mishandles newlines in values,
2384 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2385 eval ac_val=\$$ac_var
2389 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2390 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2393 _ | IFS | as_nl) ;; #(
2394 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2395 *) { eval $ac_var=; unset $ac_var;} ;;
2400 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2401 *${as_nl}ac_space=\ *)
2403 "s/'\''/'\''\\\\'\'''\''/g;
2404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2414 $as_echo "## ----------------- ##
2415 ## Output variables. ##
2416 ## ----------------- ##"
2418 for ac_var in $ac_subst_vars
2420 eval ac_val=\$$ac_var
2422 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 $as_echo "$ac_var='\''$ac_val'\''"
2428 if test -n "$ac_subst_files"; then
2429 $as_echo "## ------------------- ##
2430 ## File substitutions. ##
2431 ## ------------------- ##"
2433 for ac_var
in $ac_subst_files
2435 eval ac_val
=\$
$ac_var
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2439 $as_echo "$ac_var='\''$ac_val'\''"
2444 if test -s confdefs.h; then
2445 $as_echo "## ----------- ##
2452 test "$ac_signal" != 0 &&
2453 $as_echo "$as_me: caught signal $ac_signal"
2454 $as_echo "$as_me: exit $exit_status"
2456 rm -f core *.core core.conftest.* &&
2457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2460 for ac_signal
in 1 2 13 15; do
2461 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2466 rm -f -r conftest
* confdefs.h
2468 $as_echo "/* confdefs.h */" > confdefs.h
2470 # Predefined preprocessor variables.
2472 cat >>confdefs.h
<<_ACEOF
2473 #define PACKAGE_NAME "$PACKAGE_NAME"
2476 cat >>confdefs.h
<<_ACEOF
2477 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480 cat >>confdefs.h
<<_ACEOF
2481 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2484 cat >>confdefs.h
<<_ACEOF
2485 #define PACKAGE_STRING "$PACKAGE_STRING"
2488 cat >>confdefs.h
<<_ACEOF
2489 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492 cat >>confdefs.h
<<_ACEOF
2493 #define PACKAGE_URL "$PACKAGE_URL"
2497 # Let the site file select an alternate cache file if it wants to.
2498 # Prefer an explicitly selected file to automatically selected ones.
2501 if test -n "$CONFIG_SITE"; then
2502 # We do not want a PATH search for config.site.
2503 case $CONFIG_SITE in #((
2504 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2505 */*) ac_site_file1
=$CONFIG_SITE;;
2506 *) ac_site_file1
=.
/$CONFIG_SITE;;
2508 elif test "x$prefix" != xNONE
; then
2509 ac_site_file1
=$prefix/share
/config.site
2510 ac_site_file2
=$prefix/etc
/config.site
2512 ac_site_file1
=$ac_default_prefix/share
/config.site
2513 ac_site_file2
=$ac_default_prefix/etc
/config.site
2515 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2517 test "x$ac_site_file" = xNONE
&& continue
2518 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2520 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2521 sed 's/^/| /' "$ac_site_file" >&5
2523 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 as_fn_error $?
"failed to load site script $ac_site_file
2526 See \`config.log' for more details" "$LINENO" 5; }
2530 if test -r "$cache_file"; then
2531 # Some versions of bash will fail to source /dev/null (special files
2532 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2533 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2535 $as_echo "$as_me: loading cache $cache_file" >&6;}
2537 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2538 *) .
"./$cache_file";;
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2543 $as_echo "$as_me: creating cache $cache_file" >&6;}
2547 as_fn_append ac_header_list
" unistd.h"
2548 as_fn_append ac_func_list
" secure_getenv"
2549 as_fn_append ac_func_list
" __secure_getenv"
2550 as_fn_append ac_func_list
" getuid"
2551 as_fn_append ac_func_list
" geteuid"
2552 as_fn_append ac_func_list
" getgid"
2553 as_fn_append ac_func_list
" getegid"
2554 # Check that the precious variables saved in the cache have kept the same
2556 ac_cache_corrupted
=false
2557 for ac_var
in $ac_precious_vars; do
2558 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2559 eval ac_new_set
=\
$ac_env_${ac_var}_set
2560 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2561 eval ac_new_val
=\
$ac_env_${ac_var}_value
2562 case $ac_old_set,$ac_new_set in
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2566 ac_cache_corrupted
=: ;;
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2569 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2570 ac_cache_corrupted
=: ;;
2573 if test "x$ac_old_val" != "x$ac_new_val"; then
2574 # differences in whitespace do not lead to failure.
2575 ac_old_val_w
=`echo x $ac_old_val`
2576 ac_new_val_w
=`echo x $ac_new_val`
2577 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2579 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2580 ac_cache_corrupted
=:
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2583 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2584 eval $ac_var=\
$ac_old_val
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2587 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2589 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2592 # Pass precious variables to config.status.
2593 if test "$ac_new_set" = set; then
2595 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2596 *) ac_arg
=$ac_var=$ac_new_val ;;
2598 case " $ac_configure_args " in
2599 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2600 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2604 if $ac_cache_corrupted; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2608 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2609 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2611 ## -------------------- ##
2612 ## Main body of script. ##
2613 ## -------------------- ##
2616 ac_cpp
='$CPP $CPPFLAGS'
2617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2625 ac_config_headers
="$ac_config_headers config.h"
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2633 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2634 # Check whether --enable-version-specific-runtime-libs was given.
2635 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2636 enableval
=$enable_version_specific_runtime_libs;
2637 case "$enableval" in
2639 *) as_fn_error $?
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2643 enable_version_specific_runtime_libs
=no
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2648 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2650 # We would like our source tree to be readonly. However when releases or
2651 # pre-releases are generated, the flex/bison generated files as well as the
2652 # various formats of manuals need to be included along with the rest of the
2653 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2656 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2657 # Check whether --enable-generated-files-in-srcdir was given.
2658 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2659 enableval
=$enable_generated_files_in_srcdir;
2660 case "$enableval" in
2662 *) as_fn_error $?
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2666 enable_generated_files_in_srcdir
=no
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2671 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2672 if test "$enable_generated_files_in_srcdir" = yes; then
2685 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2687 # You will slowly go insane if you do not grok the following fact: when
2688 # building this library, the top-level /target/ becomes the library's /host/.
2690 # configure then causes --target to default to --host, exactly like any
2691 # other package using autoconf. Therefore, 'target' and 'host' will
2692 # always be the same. This makes sense both for native and cross compilers
2693 # just think about it for a little while. :-)
2695 # Also, if this library is being configured as part of a cross compiler, the
2696 # top-level configure script will pass the "real" host as $with_cross_host.
2698 # Do not delete or change the following two lines. For why, see
2699 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2701 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2702 if test -f "$ac_dir/install-sh"; then
2704 ac_install_sh
="$ac_aux_dir/install-sh -c"
2706 elif test -f "$ac_dir/install.sh"; then
2708 ac_install_sh
="$ac_aux_dir/install.sh -c"
2710 elif test -f "$ac_dir/shtool"; then
2712 ac_install_sh
="$ac_aux_dir/shtool install -c"
2716 if test -z "$ac_aux_dir"; then
2717 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2720 # These three variables are undocumented and unsupported,
2721 # and are intended to be withdrawn in a future Autoconf release.
2722 # They can cause serious problems if a builder's source tree is in a directory
2723 # whose full name contains unusual characters.
2724 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2725 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2726 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2729 # Make sure we can run config.sub.
2730 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2731 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2734 $as_echo_n "checking build system type... " >&6; }
2735 if ${ac_cv_build+:} false
; then :
2736 $as_echo_n "(cached) " >&6
2738 ac_build_alias
=$build_alias
2739 test "x$ac_build_alias" = x
&&
2740 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2741 test "x$ac_build_alias" = x
&&
2742 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2743 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2744 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2748 $as_echo "$ac_cv_build" >&6; }
2749 case $ac_cv_build in
2751 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2754 ac_save_IFS
=$IFS; IFS
='-'
2760 # Remember, the first character of IFS is used to create $*,
2761 # except with old shells:
2764 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2768 $as_echo_n "checking host system type... " >&6; }
2769 if ${ac_cv_host+:} false
; then :
2770 $as_echo_n "(cached) " >&6
2772 if test "x$host_alias" = x
; then
2773 ac_cv_host
=$ac_cv_build
2775 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2776 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2781 $as_echo "$ac_cv_host" >&6; }
2784 *) as_fn_error $?
"invalid value of canonical host" "$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 $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2801 $as_echo_n "checking target system type... " >&6; }
2802 if ${ac_cv_target+:} false
; then :
2803 $as_echo_n "(cached) " >&6
2805 if test "x$target_alias" = x
; then
2806 ac_cv_target
=$ac_cv_host
2808 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2809 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2814 $as_echo "$ac_cv_target" >&6; }
2815 case $ac_cv_target in
2817 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2819 target
=$ac_cv_target
2820 ac_save_IFS
=$IFS; IFS
='-'
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2830 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2833 # The aliases save the names the user supplied, while $host etc.
2834 # will get canonicalized.
2835 test -n "$target_alias" &&
2836 test "$program_prefix$program_suffix$program_transform_name" = \
2838 program_prefix
=${target_alias}-
2840 target_alias
=${target_alias-$host_alias}
2842 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2843 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2844 # 1.9.0: minimum required version
2845 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2846 # of other PACKAGE_* variables will, however, and there's nothing
2847 # we can do about that; they come from AC_INIT).
2848 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2849 # file in the top srcdir, etc, etc), so stop complaining.
2850 # no-dist: we don't want 'dist' and related rules.
2851 # -Wall: turns on all automake warnings...
2852 # -Wno-portability: ...except this one, since GNU make is required.
2853 # -Wno-override: ... and this one, since we do want this in testsuite.
2854 am__api_version
='1.15'
2856 # Find a good install program. We prefer a C program (faster),
2857 # so one script is as good as another. But avoid the broken or
2858 # incompatible versions:
2859 # SysV /etc/install, /usr/sbin/install
2860 # SunOS /usr/etc/install
2861 # IRIX /sbin/install
2863 # AmigaOS /C/install, which installs bootblocks on floppy discs
2864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2867 # OS/2's system install, which has a completely different semantic
2868 # ./install, which can be erroneously created by make from ./install.sh.
2869 # Reject install programs that cannot install multiple files.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2871 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2872 if test -z "$INSTALL"; then
2873 if ${ac_cv_path_install+:} false
; then :
2874 $as_echo_n "(cached) " >&6
2876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir
=.
2881 # Account for people who put trailing slashes in PATH elements.
2882 case $as_dir/ in #((
2883 .
/ | .
// |
/[cC
]/* | \
2884 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2885 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2888 # OSF1 and SCO ODT 3.0 have their own names for install.
2889 # Don't use installbsd from OSF since it installs stuff as root
2891 for ac_prog
in ginstall scoinst
install; do
2892 for ac_exec_ext
in '' $ac_executable_extensions; do
2893 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2894 if test $ac_prog = install &&
2895 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2896 # AIX install. It has an incompatible calling convention.
2898 elif test $ac_prog = install &&
2899 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2900 # program-specific install script used by HP pwplus--don't use.
2903 rm -rf conftest.one conftest.two conftest.dir
2904 echo one
> conftest.one
2905 echo two
> conftest.two
2907 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2908 test -s conftest.one
&& test -s conftest.two
&&
2909 test -s conftest.dir
/conftest.one
&&
2910 test -s conftest.dir
/conftest.two
2912 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2925 rm -rf conftest.one conftest.two conftest.dir
2928 if test "${ac_cv_path_install+set}" = set; then
2929 INSTALL
=$ac_cv_path_install
2931 # As a last resort, use the slow shell script. Don't cache a
2932 # value for INSTALL within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the value is a relative name.
2935 INSTALL
=$ac_install_sh
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2939 $as_echo "$INSTALL" >&6; }
2941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2942 # It thinks the first close brace ends the variable substitution.
2943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2947 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2950 $as_echo_n "checking whether build environment is sane... " >&6; }
2951 # Reject unsafe characters in $srcdir or the absolute working directory
2952 # name. Accept space and tab only in the latter.
2956 *[\\\"\
#\$\&\'\`$am_lf]*)
2957 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2960 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2961 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2964 # Do 'set' in a subshell so we don't clobber the current shell's
2965 # arguments. Must try -L first in case configure is actually a
2966 # symlink; some systems play weird games with the mod time of symlinks
2967 # (eg FreeBSD returns the mod time of the symlink's containing
2971 for am_try
in 1 2; do
2972 echo "timestamp, slept: $am_has_slept" > conftest.
file
2973 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2974 if test "$*" = "X"; then
2976 set X
`ls -t "$srcdir/configure" conftest.file`
2978 if test "$*" != "X $srcdir/configure conftest.file" \
2979 && test "$*" != "X conftest.file $srcdir/configure"; then
2981 # If neither matched, then we have a broken ls. This can happen
2982 # if, for instance, CONFIG_SHELL is bash and it inherits a
2983 # broken ls alias from the environment. This has actually
2984 # happened. Such a system could not be considered "sane".
2985 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2986 alias in your environment" "$LINENO" 5
2988 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2995 test "$2" = conftest.
file
3001 as_fn_error $?
"newly created file is older than distributed files!
3002 Check your system clock" "$LINENO" 5
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3006 # If we didn't sleep, we still need to ensure time stamps of config.status and
3007 # generated files are strictly newer.
3009 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3016 test "$program_prefix" != NONE
&&
3017 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3018 # Use a double $ so make ignores it.
3019 test "$program_suffix" != NONE
&&
3020 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3021 # Double any \ or $.
3022 # By default was `s,x,x', remove it if useless.
3023 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3024 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3026 # Expand $ac_aux_dir to an absolute path.
3027 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3029 if test x
"${MISSING+set}" != xset
; then
3032 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3034 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3037 # Use eval to expand $SHELL
3038 if eval "$MISSING --is-lightweight"; then
3039 am_missing_run
="$MISSING "
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3043 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3046 if test x
"${install_sh+set}" != xset
; then
3049 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3051 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3055 # Installed binaries are usually stripped using 'strip' when the user
3056 # run "make install-strip". However 'strip' might not be the right
3057 # tool to use in cross-compilation environments, therefore Automake
3058 # will honor the 'STRIP' environment variable to overrule this program.
3059 if test "$cross_compiling" != no
; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3062 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_STRIP+:} false
; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$STRIP"; then
3069 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir
=.
3076 for ac_exec_ext
in '' $ac_executable_extensions; do
3077 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 STRIP
=$ac_cv_prog_STRIP
3089 if test -n "$STRIP"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3091 $as_echo "$STRIP" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3099 if test -z "$ac_cv_prog_STRIP"; then
3101 # Extract the first word of "strip", so it can be a program name with args.
3102 set dummy strip
; ac_word
=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3106 $as_echo_n "(cached) " >&6
3108 if test -n "$ac_ct_STRIP"; then
3109 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir
=.
3116 for ac_exec_ext
in '' $ac_executable_extensions; do
3117 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_STRIP
="strip"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3129 if test -n "$ac_ct_STRIP"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3131 $as_echo "$ac_ct_STRIP" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3137 if test "x$ac_ct_STRIP" = x
; then
3140 case $cross_compiling:$ac_tool_warned in
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned
=yes ;;
3149 STRIP
="$ac_cv_prog_STRIP"
3153 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3156 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3157 if test -z "$MKDIR_P"; then
3158 if ${ac_cv_path_mkdir+:} false
; then :
3159 $as_echo_n "(cached) " >&6
3161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3162 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3165 test -z "$as_dir" && as_dir
=.
3166 for ac_prog
in mkdir gmkdir
; do
3167 for ac_exec_ext
in '' $ac_executable_extensions; do
3168 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3170 'mkdir (GNU coreutils) '* | \
3171 'mkdir (coreutils) '* | \
3172 'mkdir (fileutils) '4.1*)
3173 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3183 test -d .
/--version && rmdir .
/--version
3184 if test "${ac_cv_path_mkdir+set}" = set; then
3185 MKDIR_P
="$ac_cv_path_mkdir -p"
3187 # As a last resort, use the slow shell script. Don't cache a
3188 # value for MKDIR_P within a source directory, because that will
3189 # break other packages using the cache if that directory is
3190 # removed, or if the value is a relative name.
3191 MKDIR_P
="$ac_install_sh -d"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3195 $as_echo "$MKDIR_P" >&6; }
3197 for ac_prog
in gawk mawk nawk
awk
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy
$ac_prog; ac_word
=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_AWK+:} false
; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$AWK"; then
3207 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir
=.
3214 for ac_exec_ext
in '' $ac_executable_extensions; do
3215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_AWK
="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 if test -n "$AWK"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3229 $as_echo "$AWK" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3236 test -n "$AWK" && break
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3242 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3243 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3244 $as_echo_n "(cached) " >&6
3246 cat >conftest.
make <<\_ACEOF
3249 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3251 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3254 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3256 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3260 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 SET_MAKE
="MAKE=${MAKE-make}"
3270 rm -rf .tst
2>/dev
/null
3271 mkdir .tst
2>/dev
/null
3272 if test -d .tst
; then
3277 rmdir .tst
2>/dev
/null
3279 # Check whether --enable-silent-rules was given.
3280 if test "${enable_silent_rules+set}" = set; then :
3281 enableval
=$enable_silent_rules;
3284 case $enable_silent_rules in # (((
3285 yes) AM_DEFAULT_VERBOSITY
=0;;
3286 no
) AM_DEFAULT_VERBOSITY
=1;;
3287 *) AM_DEFAULT_VERBOSITY
=1;;
3289 am_make
=${MAKE-make}
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3291 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3292 if ${am_cv_make_support_nested_variables+:} false
; then :
3293 $as_echo_n "(cached) " >&6
3295 if $as_echo 'TRUE=$(BAR$(V))
3301 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3302 am_cv_make_support_nested_variables
=yes
3304 am_cv_make_support_nested_variables
=no
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3308 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3309 if test $am_cv_make_support_nested_variables = yes; then
3311 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3313 AM_V
=$AM_DEFAULT_VERBOSITY
3314 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3318 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3319 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3320 # is not polluted with repeated "-I."
3321 am__isrc
=' -I$(srcdir)'
3322 # test to see if srcdir already configured
3323 if test -f $srcdir/config.status
; then
3324 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3328 # test whether we have cygpath
3329 if test -z "$CYGPATH_W"; then
3330 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3331 CYGPATH_W
='cygpath -w'
3338 # Define the identity of the package.
3343 cat >>confdefs.h
<<_ACEOF
3344 #define PACKAGE "$PACKAGE"
3348 cat >>confdefs.h
<<_ACEOF
3349 #define VERSION "$VERSION"
3352 # Some tools Automake needs.
3354 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3357 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3360 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3363 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3366 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3368 # For better backward compatibility. To be removed once Automake 1.9.x
3369 # dies out for good. For more background, see:
3370 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3371 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3372 mkdir_p
='$(MKDIR_P)'
3374 # We need awk for the "check" target (and possibly the TAP driver). The
3375 # system "awk" is bad on some platforms.
3376 # Always define AMTAR for backward compatibility. Yes, it's still used
3377 # in the wild :-( We should find a proper way to deprecate it ...
3381 # We'll loop over all known methods to create a tar archive until one works.
3382 _am_tools
='gnutar pax cpio none'
3384 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3391 # POSIX will say in a future version that running "rm -f" with no argument
3392 # is OK; and we want to be able to make that assumption in our Makefile
3393 # recipes. So use an aggressive probe to check that the usage we want is
3394 # actually supported "in the wild" to an acceptable degree.
3395 # See automake bug#10828.
3396 # To make any issue more visible, cause the running configure to be aborted
3397 # by default if the 'rm' program in use doesn't match our expectations; the
3398 # user can still override this though.
3399 if rm -f && rm -fr && rm -rf; then : OK
; else
3403 Your 'rm' program seems unable to run without file operands specified
3404 on the command line, even when the '-f' option is present. This is contrary
3405 to the behaviour of most rm programs out there, and not conforming with
3406 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3408 Please tell bug-automake@gnu.org about your system, including the value
3409 of your $PATH and any error possibly output before this message. This
3410 can help us improve future automake versions.
3413 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3414 echo 'Configuration will proceed anyway, since you have set the' >&2
3415 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3419 Aborting the configuration process, to ensure you take notice of the issue.
3421 You can download and install GNU coreutils to get an 'rm' implementation
3422 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3424 If you want to complete the configuration process using your problematic
3425 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3426 to "yes", and re-run configure.
3429 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3433 # Default to --enable-multilib
3434 # Check whether --enable-multilib was given.
3435 if test "${enable_multilib+set}" = set; then :
3436 enableval
=$enable_multilib; case "$enableval" in
3437 yes) multilib
=yes ;;
3439 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3446 # We may get other options which we leave undocumented:
3447 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3448 # See config-ml.in if you want the gory details.
3450 if test "$srcdir" = "."; then
3451 if test "$with_target_subdir" != "."; then
3452 multi_basedir
="$srcdir/$with_multisrctop../.."
3454 multi_basedir
="$srcdir/$with_multisrctop.."
3457 multi_basedir
="$srcdir/.."
3461 # Even if the default multilib is not a cross compilation,
3462 # it may be that some of the other multilibs are.
3463 if test $cross_compiling = no
&& test $multilib = yes \
3464 && test "x${with_multisubdir}" != x
; then
3465 cross_compiling
=maybe
3468 ac_config_commands
="$ac_config_commands default-1"
3472 # Check whether --with-toolexeclibdir was given.
3473 if test "${with_toolexeclibdir+set}" = set; then :
3474 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3478 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
3482 with_toolexeclibdir
=no
3487 # Calculate toolexeclibdir
3488 # Also toolexecdir, though it's only used in toolexeclibdir
3489 case ${enable_version_specific_runtime_libs} in
3491 # Need the gcc compiler version to know where to install libraries
3492 # and header files if --enable-version-specific-runtime-libs option
3494 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3495 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3498 if test -n "$with_cross_host" &&
3499 test x
"$with_cross_host" != x
"no"; then
3500 # Install a library built with a cross compiler in tooldir, not libdir.
3501 toolexecdir
='$(exec_prefix)/$(target_alias)'
3502 case ${with_toolexeclibdir} in
3504 toolexeclibdir
='$(toolexecdir)/lib'
3507 toolexeclibdir
=${with_toolexeclibdir}
3511 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3512 toolexeclibdir
='$(libdir)'
3514 multi_os_directory
=`$CC -print-multi-os-directory`
3515 case $multi_os_directory in
3516 .
) ;; # Avoid trailing /.
3517 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3524 # Check the compiler.
3525 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3526 # We must force CC to /not/ be precious variables; otherwise
3527 # the wrong, non-multilib-adjusted value will be used in multilibs.
3528 # As a side effect, we have to subst CFLAGS ourselves.
3533 ac_cpp
='$CPP $CPPFLAGS'
3534 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3537 if test -n "$ac_tool_prefix"; then
3538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3539 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if ${ac_cv_prog_CC+:} false
; then :
3543 $as_echo_n "(cached) " >&6
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC
="$CC" # Let the user override the test.
3548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir
=.
3553 for ac_exec_ext
in '' $ac_executable_extensions; do
3554 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 if test -n "$CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 $as_echo "$CC" >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3576 if test -z "$ac_cv_prog_CC"; then
3578 # Extract the first word of "gcc", so it can be a program name with args.
3579 set dummy gcc
; ac_word
=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3583 $as_echo_n "(cached) " >&6
3585 if test -n "$ac_ct_CC"; then
3586 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir
=.
3593 for ac_exec_ext
in '' $ac_executable_extensions; do
3594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_ac_ct_CC
="gcc"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3606 if test -n "$ac_ct_CC"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3608 $as_echo "$ac_ct_CC" >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3614 if test "x$ac_ct_CC" = x
; then
3617 case $cross_compiling:$ac_tool_warned in
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621 ac_tool_warned
=yes ;;
3629 if test -z "$CC"; then
3630 if test -n "$ac_tool_prefix"; then
3631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3632 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_CC+:} false
; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC
="$CC" # Let the user override the test.
3641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir
=.
3646 for ac_exec_ext
in '' $ac_executable_extensions; do
3647 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 if test -n "$CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661 $as_echo "$CC" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3670 if test -z "$CC"; then
3671 # Extract the first word of "cc", so it can be a program name with args.
3672 set dummy cc
; ac_word
=$2
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674 $as_echo_n "checking for $ac_word... " >&6; }
3675 if ${ac_cv_prog_CC+:} false
; then :
3676 $as_echo_n "(cached) " >&6
3678 if test -n "$CC"; then
3679 ac_cv_prog_CC
="$CC" # Let the user override the test.
3682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir
=.
3687 for ac_exec_ext
in '' $ac_executable_extensions; do
3688 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3690 ac_prog_rejected
=yes
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 if test $ac_prog_rejected = yes; then
3702 # We found a bogon in the path, so make sure we never use it.
3703 set dummy
$ac_cv_prog_CC
3705 if test $# != 0; then
3706 # We chose a different compiler from the bogus one.
3707 # However, it has the same basename, so the bogon will be chosen
3708 # first if we set CC to just the basename; use the full file name.
3710 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3716 if test -n "$CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 $as_echo "$CC" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3726 if test -z "$CC"; then
3727 if test -n "$ac_tool_prefix"; then
3728 for ac_prog
in cl.exe
3730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3731 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if ${ac_cv_prog_CC+:} false
; then :
3735 $as_echo_n "(cached) " >&6
3737 if test -n "$CC"; then
3738 ac_cv_prog_CC
="$CC" # Let the user override the test.
3740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir
=.
3745 for ac_exec_ext
in '' $ac_executable_extensions; do
3746 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 if test -n "$CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3760 $as_echo "$CC" >&6; }
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3767 test -n "$CC" && break
3770 if test -z "$CC"; then
3772 for ac_prog
in cl.exe
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy
$ac_prog; ac_word
=$2
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3779 $as_echo_n "(cached) " >&6
3781 if test -n "$ac_ct_CC"; then
3782 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir
=.
3789 for ac_exec_ext
in '' $ac_executable_extensions; do
3790 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_ac_ct_CC
="$ac_prog"
3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3802 if test -n "$ac_ct_CC"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3804 $as_echo "$ac_ct_CC" >&6; }
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3811 test -n "$ac_ct_CC" && break
3814 if test "x$ac_ct_CC" = x
; then
3817 case $cross_compiling:$ac_tool_warned in
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3821 ac_tool_warned
=yes ;;
3830 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $?
"no acceptable C compiler found in \$PATH
3833 See \`config.log' for more details" "$LINENO" 5; }
3835 # Provide some information about the compiler.
3836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3839 for ac_option
in --version -v -V -qversion; do
3840 { { ac_try
="$ac_compiler $ac_option >&5"
3842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3849 if test -s conftest.err; then
3851 ... rest of stderr output deleted ...
3852 10q' conftest.err >conftest.er1
3853 cat conftest.er1 >&5
3855 rm -f conftest.er1 conftest.err
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3871 ac_clean_files_save=$ac_clean_files
3872 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3873 # Try to create an executable without -o first, disregard a.out.
3874 # It will help us diagnose broken compilers, and finding out an intuition
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3877 $as_echo_n "checking whether the C compiler works... " >&6; }
3878 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3880 # The possible output files:
3881 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3884 for ac_file in $ac_files
3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3888 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3893 if { { ac_try="$ac_link_default"
3895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3896 *) ac_try_echo
=$ac_try;;
3898 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_link_default") 2>&5
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3905 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3906 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3907 # so that the user can short-circuit this test for compilers unknown to
3909 for ac_file
in $ac_files ''
3911 test -f "$ac_file" ||
continue
3913 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3916 # We found the default executable, but exeext='' is most
3920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3922 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3924 # We set ac_cv_exeext here because the later test for it is not
3925 # safe: cross compilers may not add the suffix if given an `-o'
3926 # argument, so we may need to know it at that point already.
3927 # Even if this section looks crufty: it has the advantage of
3934 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3939 if test -z "$ac_file"; then :
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 $as_echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.
$ac_ext >&5
3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error
77 "C compiler cannot create executables
3948 See \`config.log' for more details" "$LINENO" 5; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3951 $as_echo "yes" >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3954 $as_echo_n "checking for C compiler default output file name... " >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3956 $as_echo "$ac_file" >&6; }
3957 ac_exeext
=$ac_cv_exeext
3959 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3960 ac_clean_files
=$ac_clean_files_save
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3962 $as_echo_n "checking for suffix of executables... " >&6; }
3963 if { { ac_try
="$ac_link"
3965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link") 2>&5
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3975 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3976 # work properly (i.e., refer to `conftest.exe'), while it won't with
3978 for ac_file
in conftest.exe conftest conftest.
*; do
3979 test -f "$ac_file" ||
continue
3981 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3982 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3991 See \`config.log' for more details" "$LINENO" 5; }
3993 rm -f conftest conftest
$ac_cv_exeext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3995 $as_echo "$ac_cv_exeext" >&6; }
3997 rm -f conftest.
$ac_ext
3998 EXEEXT
=$ac_cv_exeext
4000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4006 FILE *f = fopen ("conftest.out", "w");
4007 return ferror (f) || fclose (f) != 0;
4013 ac_clean_files
="$ac_clean_files conftest.out"
4014 # Check that the compiler produces executables we can run. If not, either
4015 # the compiler is broken, or we cross compile.
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4017 $as_echo_n "checking whether we are cross compiling... " >&6; }
4018 if test "$cross_compiling" != yes; then
4019 { { ac_try
="$ac_link"
4021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_link") 2>&5
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }
4030 if { ac_try='./conftest$ac_cv_exeext'
4031 { { case "(($ac_try" in
4032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4033 *) ac_try_echo
=$ac_try;;
4035 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_try") 2>&5
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; }; then
4043 if test "$cross_compiling" = maybe
; then
4046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error $?
"cannot run C compiled programs.
4049 If you meant to cross compile, use \`--host'.
4050 See \`config.log' for more details" "$LINENO" 5; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4055 $as_echo "$cross_compiling" >&6; }
4057 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4058 ac_clean_files
=$ac_clean_files_save
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4060 $as_echo_n "checking for suffix of object files... " >&6; }
4061 if ${ac_cv_objext+:} false
; then :
4062 $as_echo_n "(cached) " >&6
4064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4075 rm -f conftest.o conftest.obj
4076 if { { ac_try
="$ac_compile"
4078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082 $as_echo "$ac_try_echo"; } >&5
4083 (eval "$ac_compile") 2>&5
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }; then :
4087 for ac_file in conftest.o conftest.obj conftest.*; do
4088 test -f "$ac_file" || continue;
4090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4096 $as_echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4102 See \
`config.log' for more details" "$LINENO" 5; }
4104 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4107 $as_echo "$ac_cv_objext" >&6; }
4108 OBJEXT=$ac_cv_objext
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4111 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4112 if ${ac_cv_c_compiler_gnu+:} false; then :
4113 $as_echo_n "(cached) " >&6
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4129 if ac_fn_c_try_compile "$LINENO"; then :
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4139 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4140 if test $ac_compiler_gnu = yes; then
4145 ac_test_CFLAGS=${CFLAGS+set}
4146 ac_save_CFLAGS=$CFLAGS
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4148 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4149 if ${ac_cv_prog_cc_g+:} false; then :
4150 $as_echo_n "(cached) " >&6
4152 ac_save_c_werror_flag=$ac_c_werror_flag
4153 ac_c_werror_flag=yes
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4167 if ac_fn_c_try_compile "$LINENO"; then :
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4182 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_c_werror_flag=$ac_save_c_werror_flag
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4198 if ac_fn_c_try_compile "$LINENO"; then :
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4209 $as_echo "$ac_cv_prog_cc_g" >&6; }
4210 if test "$ac_test_CFLAGS" = set; then
4211 CFLAGS=$ac_save_CFLAGS
4212 elif test $ac_cv_prog_cc_g = yes; then
4213 if test "$GCC" = yes; then
4219 if test "$GCC" = yes; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4227 if ${ac_cv_prog_cc_c89+:} false; then :
4228 $as_echo_n "(cached) " >&6
4230 ac_cv_prog_cc_c89=no
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4238 struct buf { int x; };
4239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4240 static char *e (p, i)
4246 static char *f (char * (*g) (char **, int), char **p, ...)
4251 s = g (p, va_arg (v,int));
4256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4257 function prototypes and stuff, but not '\xHH' hex character constants.
4258 These don't provoke an error unfortunately, instead are silently treated
4259 as 'x'. The following induces an error, until -std is added to get
4260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4261 array size at least. It's necessary to write '\x00'==0 to get something
4262 that's true only with -std. */
4263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4266 inside strings and character constants. */
4268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4270 int test (int i, double x);
4271 struct s1 {int (*f) (int a);};
4272 struct s2 {int (*f) (double a);};
4273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4279 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4287 CC="$ac_save_CC $ac_arg"
4288 if ac_fn_c_try_compile "$LINENO"; then :
4289 ac_cv_prog_cc_c89=$ac_arg
4291 rm -f core conftest.err conftest.$ac_objext
4292 test "x$ac_cv_prog_cc_c89" != "xno" && break
4294 rm -f conftest.$ac_ext
4299 case "x$ac_cv_prog_cc_c89" in
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4302 $as_echo "none needed" >&6; } ;;
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4305 $as_echo "unsupported" >&6; } ;;
4307 CC="$CC $ac_cv_prog_cc_c89"
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4309 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4311 if test "x$ac_cv_prog_cc_c89" != xno; then :
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4327 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4328 if ${am_cv_prog_cc_c_o+:} false; then :
4329 $as_echo_n "(cached) " >&6
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4342 # Make sure it works both with $CC and with simple cc.
4343 # Following AC_PROG_CC_C_O, we do the test twice because some
4344 # compilers refuse to overwrite an existing .o file with -o,
4345 # though they will create one.
4346 am_cv_prog_cc_c_o=yes
4348 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4349 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } \
4353 && test -f conftest2.$ac_objext; then
4356 am_cv_prog_cc_c_o=no
4360 rm -f core conftest*
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4364 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4365 if test "$am_cv_prog_cc_c_o" != yes; then
4366 # Losing compiler, so override with the script.
4367 # FIXME: It is wrong to rewrite CC.
4368 # But if we don't then we get into trouble of one sort or another.
4369 # A longer-term fix would be to have automake use am__CC in this case,
4370 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4371 CC="$am_aux_dir/compile $CC"
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379 DEPDIR="${am__leading_dot}deps"
4381 ac_config_commands="$ac_config_commands depfiles"
4384 am_make=${MAKE-make}
4385 cat > confinc << 'END'
4387 @echo this is the am__doit target
4390 # If we don't find an include directive, just comment out the code.
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4392 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4396 # First try GNU make style include.
4397 echo "include confinc" > confmf
4398 # Ignore all kinds of additional output from 'make'.
4399 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4400 *the\ am__doit\ target*)
4406 # Now try BSD make style include.
4407 if test "$am__include" = "#"; then
4408 echo '.include "confinc"' > confmf
4409 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4410 *the\ am__doit\ target*)
4411 am__include=.include
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4420 $as_echo "$_am_result" >&6; }
4421 rm -f confinc confmf
4423 # Check whether --enable-dependency-tracking was given.
4424 if test "${enable_dependency_tracking+set}" = set; then :
4425 enableval=$enable_dependency_tracking;
4428 if test "x$enable_dependency_tracking" != xno; then
4429 am_depcomp="$ac_aux_dir/depcomp"
4433 if test "x$enable_dependency_tracking" != xno; then
4443 depcc="$CC" am_compiler_list=
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4446 $as_echo_n "checking dependency style of $depcc... " >&6; }
4447 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4448 $as_echo_n "(cached) " >&6
4450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4451 # We make a subdir and do the tests there. Otherwise we can end up
4452 # making bogus files that we don't know about and never remove. For
4453 # instance it was reported that on HP-UX the gcc test will end up
4454 # making a dummy file named 'D' -- because '-MD' means "put the output
4458 # Copy depcomp to subdir because otherwise we won't find it if we're
4459 # using a relative directory.
4460 cp "$am_depcomp" conftest.dir
4462 # We will build objects and dependencies in a subdirectory because
4463 # it helps to detect inapplicable dependency modes. For instance
4464 # both Tru64's cc and ICC support -MD to output dependencies as a
4465 # side effect of compilation, but ICC will put the dependencies in
4466 # the current directory while Tru64 will put them in the object
4470 am_cv_CC_dependencies_compiler_type=none
4471 if test "$am_compiler_list" = ""; then
4472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4475 case " $depcc " in #(
4476 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4479 for depmode in $am_compiler_list; do
4480 # Setup a source with many dependencies, because some compilers
4481 # like to wrap large dependency lists on column 80 (with \), and
4482 # we should not choose a depcomp mode which is confused by this.
4484 # We need to recreate these files for each test, as the compiler may
4485 # overwrite some of them when testing with obscure command lines.
4486 # This happens at least with the AIX C compiler.
4488 for i in 1 2 3 4 5 6; do
4489 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4490 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4491 # Solaris 10 /bin/sh.
4492 echo '/* dummy */' > sub/conftst$i.h
4494 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4496 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4497 # mode. It turns out that the SunPro C++ compiler does not properly
4498 # handle '-M -o', and we need to detect this. Also, some Intel
4499 # versions had trouble with output in subdirs.
4500 am__obj=sub/conftest.${OBJEXT-o}
4501 am__minus_obj="-o $am__obj"
4504 # This depmode causes a compiler race in universal mode.
4505 test "$am__universal" = false || continue
4508 # After this tag, mechanisms are not by side-effect, so they'll
4509 # only be used when explicitly requested.
4510 if test "x$enable_dependency_tracking" = xyes; then
4516 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4517 # This compiler won't grok '-c -o', but also, the minuso test has
4518 # not run yet. These depmodes are late enough in the game, and
4519 # so weak that their functioning should not be impacted.
4520 am__obj=conftest.${OBJEXT-o}
4525 if depmode=$depmode \
4526 source=sub/conftest.c object=$am__obj \
4527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4528 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4529 >/dev/null 2>conftest.err &&
4530 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4532 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4534 # icc doesn't choke on unknown options, it will just issue warnings
4535 # or remarks (even with -Werror). So we grep stderr for any message
4536 # that says an option was ignored or not supported.
4537 # When given -MP, icc 7.0 and 7.1 complain thusly:
4538 # icc: Command line warning: ignoring option '-M'; no argument required
4539 # The diagnosis changed in icc 8.0:
4540 # icc: Command line remark: option '-MP' not supported
4541 if (grep 'ignoring option' conftest.err ||
4542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4543 am_cv_CC_dependencies_compiler_type=$depmode
4552 am_cv_CC_dependencies_compiler_type=none
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4557 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4561 test "x$enable_dependency_tracking" != xno \
4562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4564 am__fastdepCC_FALSE='#'
4566 am__fastdepCC_TRUE='#'
4567 am__fastdepCC_FALSE=
4575 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4576 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4577 # in both places for now and restore CFLAGS at the end of config.
4578 save_CFLAGS="$CFLAGS"
4580 # Check whether --enable-werror was given.
4581 if test "${enable_werror+set}" = set; then :
4582 enableval=$enable_werror;
4585 # Add -Wall -Werror if we are using GCC.
4586 if test "x$GCC" = "xyes"; then :
4587 XCFLAGS="$XCFLAGS -Wall"
4589 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
4590 XCFLAGS="$XCFLAGS -Werror"
4593 # Find other programs we need.
4594 if test -n "$ac_tool_prefix"; then
4595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4596 set dummy ${ac_tool_prefix}ar; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_prog_AR+:} false; then :
4600 $as_echo_n "(cached) " >&6
4602 if test -n "$AR"; then
4603 ac_cv_prog_AR="$AR" # Let the user override the test.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_prog_AR="${ac_tool_prefix}ar"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 if test -n "$AR"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4625 $as_echo "$AR" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4633 if test -z "$ac_cv_prog_AR"; then
4635 # Extract the first word of "ar", so it can be a program name with args.
4636 set dummy ar; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4640 $as_echo_n "(cached) " >&6
4642 if test -n "$ac_ct_AR"; then
4643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652 ac_cv_prog_ac_ct_AR="ar"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4663 if test -n "$ac_ct_AR"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4665 $as_echo "$ac_ct_AR" >&6; }
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4671 if test "x$ac_ct_AR" = x; then
4674 case $cross_compiling:$ac_tool_warned in
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678 ac_tool_warned=yes ;;
4686 if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_RANLIB+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$RANLIB"; then
4695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 RANLIB=$ac_cv_prog_RANLIB
4715 if test -n "$RANLIB"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4717 $as_echo "$RANLIB" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4725 if test -z "$ac_cv_prog_RANLIB"; then
4726 ac_ct_RANLIB=$RANLIB
4727 # Extract the first word of "ranlib", so it can be a program name with args.
4728 set dummy ranlib; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4732 $as_echo_n "(cached) " >&6
4734 if test -n "$ac_ct_RANLIB"; then
4735 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 ac_cv_prog_ac_ct_RANLIB="ranlib"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4755 if test -n "$ac_ct_RANLIB"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4757 $as_echo "$ac_ct_RANLIB" >&6; }
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4763 if test "x$ac_ct_RANLIB" = x; then
4764 RANLIB="ranlib-not-found-in-path-error"
4766 case $cross_compiling:$ac_tool_warned in
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770 ac_tool_warned=yes ;;
4772 RANLIB=$ac_ct_RANLIB
4775 RANLIB="$ac_cv_prog_RANLIB"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4779 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4781 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4782 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4783 $as_echo_n "(cached) " >&6
4785 cat >conftest.make <<\_ACEOF
4788 @echo '@@@%%%=$(MAKE)=@@@%%%'
4790 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4791 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4793 eval ac_cv_prog_make_${ac_make}_set=yes;;
4795 eval ac_cv_prog_make_${ac_make}_set=no;;
4799 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4801 $as_echo "yes" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 SET_MAKE="MAKE=${MAKE-make}"
4811 # See if makeinfo has been installed and is modern enough
4812 # that we can use it.
4814 # Extract the first word of "makeinfo", so it can be a program name with args.
4815 set dummy makeinfo; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_MAKEINFO+:} false; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -n "$MAKEINFO"; then
4822 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_MAKEINFO="makeinfo"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 MAKEINFO=$ac_cv_prog_MAKEINFO
4842 if test -n "$MAKEINFO"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4844 $as_echo "$MAKEINFO" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4851 if test -n "$MAKEINFO"; then
4852 # Found it, now check the version.
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4854 $as_echo_n "checking for modern makeinfo... " >&6; }
4855 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4856 $as_echo_n "(cached) " >&6
4858 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4859 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4861 case $ac_prog_version in
4862 '') gcc_cv_prog_makeinfo_modern=no;;
4863 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4864 *) gcc_cv_prog_makeinfo_modern=no;;
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4869 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4871 gcc_cv_prog_makeinfo_modern=no
4873 if test $gcc_cv_prog_makeinfo_modern = no; then
4874 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4877 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4879 BUILD_INFO_FALSE='#'
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4891 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4896 macro_version='2.2.7a'
4897 macro_revision='1.3134'
4911 ltmain="$ac_aux_dir/ltmain.sh"
4913 # Backslashify metacharacters that are still active within
4914 # double-quoted strings.
4915 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4917 # Same as above, but do not quote variable references.
4918 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4920 # Sed substitution to delay expansion of an escaped shell variable in a
4921 # double_quote_subst'ed string.
4922 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4924 # Sed substitution to delay expansion of an escaped single quote.
4925 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4927 # Sed substitution to avoid accidental globbing in evaled expressions
4928 no_glob_subst='s/\*/\\\*/g'
4930 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4931 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4932 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4935 $as_echo_n "checking how to print
strings...
" >&6; }
4936 # Test print first, because it will be a builtin if present.
4937 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
4938 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4940 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4943 # Use this function as a fallback that always works.
4944 func_fallback_echo ()
4946 eval 'cat <<_LTECHO_EOF
4950 ECHO='func_fallback_echo'
4953 # func_echo_all arg...
4954 # Invoke $ECHO with all args, space-separated.
4961 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4962 $as_echo "printf" >&6; } ;;
4963 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4964 $as_echo "print
-r" >&6; } ;;
4965 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4966 $as_echo "cat" >&6; } ;;
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4983 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4984 if ${ac_cv_path_SED+:} false; then :
4985 $as_echo_n "(cached
) " >&6
4987 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4988 for ac_i in 1 2 3 4 5 6 7; do
4989 ac_script="$ac_script$as_nl$ac_script"
4991 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4992 { ac_script=; unset ac_script;}
4993 if test -z "$SED"; then
4994 ac_path_SED_found=false
4995 # Loop through the user's path and test for each of PROGNAME-LIST
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir=.
5001 for ac_prog in sed gsed; do
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5004 as_fn_executable_p "$ac_path_SED" || continue
5005 # Check for GNU ac_path_SED and select it if it is found.
5006 # Check for GNU $ac_path_SED
5007 case `"$ac_path_SED" --version 2>&1` in
5009 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5012 $as_echo_n 0123456789 >"conftest.
in"
5015 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5016 mv "conftest.tmp
" "conftest.
in"
5017 cp "conftest.
in" "conftest.
nl"
5018 $as_echo '' >> "conftest.
nl"
5019 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5020 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5021 as_fn_arith $ac_count + 1 && ac_count=$as_val
5022 if test $ac_count -gt ${ac_path_SED_max-0}; then
5023 # Best one so far, save it but keep looking for a better one
5024 ac_cv_path_SED="$ac_path_SED"
5025 ac_path_SED_max=$ac_count
5027 # 10*(2^10) chars as input seems more than enough
5028 test $ac_count -gt 10 && break
5030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033 $ac_path_SED_found && break 3
5038 if test -z "$ac_cv_path_SED"; then
5039 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5047 $as_echo "$ac_cv_path_SED" >&6; }
5048 SED="$ac_cv_path_SED"
5051 test -z "$SED" && SED=sed
5052 Xsed="$SED -e 1s
/^X
//"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5065 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5066 if ${ac_cv_path_GREP+:} false; then :
5067 $as_echo_n "(cached
) " >&6
5069 if test -z "$GREP"; then
5070 ac_path_GREP_found=false
5071 # Loop through the user's path and test for each of PROGNAME-LIST
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5076 test -z "$as_dir" && as_dir=.
5077 for ac_prog in grep ggrep; do
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5080 as_fn_executable_p "$ac_path_GREP" || continue
5081 # Check for GNU ac_path_GREP and select it if it is found.
5082 # Check for GNU $ac_path_GREP
5083 case `"$ac_path_GREP" --version 2>&1` in
5085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5088 $as_echo_n 0123456789 >"conftest.
in"
5091 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5092 mv "conftest.tmp
" "conftest.
in"
5093 cp "conftest.
in" "conftest.
nl"
5094 $as_echo 'GREP' >> "conftest.
nl"
5095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5096 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5097 as_fn_arith $ac_count + 1 && ac_count=$as_val
5098 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5099 # Best one so far, save it but keep looking for a better one
5100 ac_cv_path_GREP="$ac_path_GREP"
5101 ac_path_GREP_max=$ac_count
5103 # 10*(2^10) chars as input seems more than enough
5104 test $ac_count -gt 10 && break
5106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109 $ac_path_GREP_found && break 3
5114 if test -z "$ac_cv_path_GREP"; then
5115 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5118 ac_cv_path_GREP=$GREP
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5123 $as_echo "$ac_cv_path_GREP" >&6; }
5124 GREP="$ac_cv_path_GREP"
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5128 $as_echo_n "checking
for egrep...
" >&6; }
5129 if ${ac_cv_path_EGREP+:} false; then :
5130 $as_echo_n "(cached
) " >&6
5132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5133 then ac_cv_path_EGREP="$GREP -E"
5135 if test -z "$EGREP"; then
5136 ac_path_EGREP_found=false
5137 # Loop through the user's path and test for each of PROGNAME-LIST
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5142 test -z "$as_dir" && as_dir=.
5143 for ac_prog in egrep; do
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5146 as_fn_executable_p "$ac_path_EGREP" || continue
5147 # Check for GNU ac_path_EGREP and select it if it is found.
5148 # Check for GNU $ac_path_EGREP
5149 case `"$ac_path_EGREP" --version 2>&1` in
5151 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5154 $as_echo_n 0123456789 >"conftest.
in"
5157 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5158 mv "conftest.tmp
" "conftest.
in"
5159 cp "conftest.
in" "conftest.
nl"
5160 $as_echo 'EGREP' >> "conftest.
nl"
5161 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5162 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5163 as_fn_arith $ac_count + 1 && ac_count=$as_val
5164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5165 # Best one so far, save it but keep looking for a better one
5166 ac_cv_path_EGREP="$ac_path_EGREP"
5167 ac_path_EGREP_max=$ac_count
5169 # 10*(2^10) chars as input seems more than enough
5170 test $ac_count -gt 10 && break
5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5175 $ac_path_EGREP_found && break 3
5180 if test -z "$ac_cv_path_EGREP"; then
5181 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5184 ac_cv_path_EGREP=$EGREP
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5190 $as_echo "$ac_cv_path_EGREP" >&6; }
5191 EGREP="$ac_cv_path_EGREP"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5195 $as_echo_n "checking
for fgrep...
" >&6; }
5196 if ${ac_cv_path_FGREP+:} false; then :
5197 $as_echo_n "(cached
) " >&6
5199 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5200 then ac_cv_path_FGREP="$GREP -F"
5202 if test -z "$FGREP"; then
5203 ac_path_FGREP_found=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5209 test -z "$as_dir" && as_dir=.
5210 for ac_prog in fgrep; do
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5213 as_fn_executable_p "$ac_path_FGREP" || continue
5214 # Check for GNU ac_path_FGREP and select it if it is found.
5215 # Check for GNU $ac_path_FGREP
5216 case `"$ac_path_FGREP" --version 2>&1` in
5218 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5221 $as_echo_n 0123456789 >"conftest.
in"
5224 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5225 mv "conftest.tmp
" "conftest.
in"
5226 cp "conftest.
in" "conftest.
nl"
5227 $as_echo 'FGREP' >> "conftest.
nl"
5228 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5229 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5230 as_fn_arith $ac_count + 1 && ac_count=$as_val
5231 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5232 # Best one so far, save it but keep looking for a better one
5233 ac_cv_path_FGREP="$ac_path_FGREP"
5234 ac_path_FGREP_max=$ac_count
5236 # 10*(2^10) chars as input seems more than enough
5237 test $ac_count -gt 10 && break
5239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5242 $ac_path_FGREP_found && break 3
5247 if test -z "$ac_cv_path_FGREP"; then
5248 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5251 ac_cv_path_FGREP=$FGREP
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5257 $as_echo "$ac_cv_path_FGREP" >&6; }
5258 FGREP="$ac_cv_path_FGREP"
5261 test -z "$GREP" && GREP=grep
5281 # Check whether --with-gnu-ld was given.
5282 if test "${with_gnu_ld+set}" = set; then :
5283 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5289 if test "$GCC" = yes; then
5290 # Check if gcc -print-prog-name=ld gives a path.
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5292 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5295 # gcc leaves a trailing carriage return which upsets mingw
5296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5301 # Accept absolute paths.
5303 re_direlt='/[^/][^/]*/\.\./'
5304 # Canonicalize the pathname of ld
5305 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5306 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5307 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5309 test -z "$LD" && LD="$ac_prog"
5312 # If it fails, then pretend we aren't using GCC.
5316 # If it is relative, then search for the first ld in PATH.
5320 elif test "$with_gnu_ld" = yes; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5322 $as_echo_n "checking
for GNU ld...
" >&6; }
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5325 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5327 if ${lt_cv_path_LD+:} false; then :
5328 $as_echo_n "(cached
) " >&6
5330 if test -z "$LD"; then
5331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5332 for ac_dir in $PATH; do
5334 test -z "$ac_dir" && ac_dir=.
5335 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5336 lt_cv_path_LD="$ac_dir/$ac_prog"
5337 # Check to see if the program is GNU ld. I'd rather use --version,
5338 # but apparently some variants of GNU ld only accept -v.
5339 # Break only if it was the GNU/non-GNU ld that we prefer.
5340 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5341 *GNU* | *'with BFD'*)
5342 test "$with_gnu_ld" != no && break
5345 test "$with_gnu_ld" != yes && break
5352 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5357 if test -n "$LD"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5359 $as_echo "$LD" >&6; }
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5362 $as_echo "no
" >&6; }
5364 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5366 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5367 if ${lt_cv_prog_gnu_ld+:} false; then :
5368 $as_echo_n "(cached
) " >&6
5370 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5371 case `$LD -v 2>&1 </dev/null` in
5372 *GNU* | *'with BFD'*)
5373 lt_cv_prog_gnu_ld=yes
5376 lt_cv_prog_gnu_ld=no
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5381 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5382 with_gnu_ld=$lt_cv_prog_gnu_ld
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5393 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5394 if ${lt_cv_path_NM+:} false; then :
5395 $as_echo_n "(cached
) " >&6
5397 if test -n "$NM"; then
5398 # Let the user override the nm to test.
5399 lt_nm_to_check="$NM"
5401 lt_nm_to_check="${ac_tool_prefix}nm
"
5402 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5403 lt_nm_to_check="$lt_nm_to_check nm
"
5406 for lt_tmp_nm in $lt_nm_to_check; do
5407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5408 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5410 test -z "$ac_dir" && ac_dir=.
5411 case "$lt_tmp_nm" in
5412 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5413 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5415 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5416 # Check to see if the nm accepts a BSD-compat flag.
5417 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5418 # nm: unknown option "B
" ignored
5419 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5420 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5424 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5426 lt_cv_path_NM="$tmp_nm -p"
5430 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5431 continue # so that we can try to find one that supports BSD flags
5440 : ${lt_cv_path_NM=no}
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5443 $as_echo "$lt_cv_path_NM" >&6; }
5444 if test "$lt_cv_path_NM" != "no
"; then
5447 # Didn't find any BSD compatible name lister, look for dumpbin.
5448 if test -n "$DUMPBIN"; then :
5449 # Let the user override the test.
5451 if test -n "$ac_tool_prefix"; then
5452 for ac_prog in dumpbin "link
-dump"
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5457 $as_echo_n "checking
for $ac_word...
" >&6; }
5458 if ${ac_cv_prog_DUMPBIN+:} false; then :
5459 $as_echo_n "(cached
) " >&6
5461 if test -n "$DUMPBIN"; then
5462 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5481 DUMPBIN=$ac_cv_prog_DUMPBIN
5482 if test -n "$DUMPBIN"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5484 $as_echo "$DUMPBIN" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5487 $as_echo "no
" >&6; }
5491 test -n "$DUMPBIN" && break
5494 if test -z "$DUMPBIN"; then
5495 ac_ct_DUMPBIN=$DUMPBIN
5496 for ac_prog in dumpbin "link
-dump"
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5501 $as_echo_n "checking
for $ac_word...
" >&6; }
5502 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5503 $as_echo_n "(cached
) " >&6
5505 if test -n "$ac_ct_DUMPBIN"; then
5506 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5525 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5526 if test -n "$ac_ct_DUMPBIN"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5528 $as_echo "$ac_ct_DUMPBIN" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5531 $as_echo "no
" >&6; }
5535 test -n "$ac_ct_DUMPBIN" && break
5538 if test "x
$ac_ct_DUMPBIN" = x; then
5541 case $cross_compiling:$ac_tool_warned in
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5544 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5545 ac_tool_warned=yes ;;
5547 DUMPBIN=$ac_ct_DUMPBIN
5551 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5553 DUMPBIN="$DUMPBIN -symbols"
5561 if test "$DUMPBIN" != ":"; then
5565 test -z "$NM" && NM=nm
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5573 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5574 if ${lt_cv_nm_interface+:} false; then :
5575 $as_echo_n "(cached
) " >&6
5577 lt_cv_nm_interface="BSD nm
"
5578 echo "int some_variable
= 0;" > conftest.$ac_ext
5579 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5580 (eval "$ac_compile" 2>conftest.err)
5581 cat conftest.err >&5
5582 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5583 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5584 cat conftest.err >&5
5585 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5586 cat conftest.out >&5
5587 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5588 lt_cv_nm_interface="MS dumpbin
"
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5593 $as_echo "$lt_cv_nm_interface" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5596 $as_echo_n "checking whether
ln -s works...
" >&6; }
5598 if test "$LN_S" = "ln -s"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5600 $as_echo "yes" >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5603 $as_echo "no
, using
$LN_S" >&6; }
5606 # find the maximum length of command line arguments
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5608 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5609 if ${lt_cv_sys_max_cmd_len+:} false; then :
5610 $as_echo_n "(cached
) " >&6
5617 # On DJGPP, this test can blow up pretty badly due to problems in libc
5618 # (any single argument exceeding 2000 bytes causes a buffer overrun
5619 # during glob expansion). Even if it were fixed, the result of this
5620 # check would be larger than it should be.
5621 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5625 # Under GNU Hurd, this test is not required because there is
5626 # no limit to the length of command line arguments.
5627 # Libtool will interpret -1 as no limit whatsoever
5628 lt_cv_sys_max_cmd_len=-1;
5631 cygwin* | mingw* | cegcc*)
5632 # On Win9x/ME, this test blows up -- it succeeds, but takes
5633 # about 5 minutes as the teststring grows exponentially.
5634 # Worse, since 9x/ME are not pre-emptively multitasking,
5635 # you end up with a "frozen
" computer, even though with patience
5636 # the test eventually succeeds (with a max line length of 256k).
5637 # Instead, let's just punt: use the minimum linelength reported by
5638 # all of the supported platforms: 8192 (on NT/2K/XP).
5639 lt_cv_sys_max_cmd_len=8192;
5643 # On MiNT this can take a long time and run out of memory.
5644 lt_cv_sys_max_cmd_len=8192;
5648 # On AmigaOS with pdksh, this test takes hours, literally.
5649 # So we just punt and use a minimum line length of 8192.
5650 lt_cv_sys_max_cmd_len=8192;
5653 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5654 # This has been around since 386BSD, at least. Likely further.
5655 if test -x /sbin/sysctl; then
5656 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5657 elif test -x /usr/sbin/sysctl; then
5658 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5660 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5662 # And add a safety zone
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5668 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5669 lt_cv_sys_max_cmd_len=196608
5673 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5674 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5675 # nice to cause kernel panics so lets avoid the loop below.
5676 # First set a reasonable default.
5677 lt_cv_sys_max_cmd_len=16384
5679 if test -x /sbin/sysconfig; then
5680 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5681 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5686 lt_cv_sys_max_cmd_len=102400
5688 sysv5* | sco5v6* | sysv4.2uw2*)
5689 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5690 if test -n "$kargmax"; then
5691 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5693 lt_cv_sys_max_cmd_len=32768
5697 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5698 if test -n "$lt_cv_sys_max_cmd_len"; then
5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5702 # Make teststring a little bigger before we do anything with it.
5703 # a 1K string should be a reasonable start.
5704 for i in 1 2 3 4 5 6 7 8 ; do
5705 teststring=$teststring$teststring
5707 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5708 # If test is not a shell built-in, we'll probably end up computing a
5709 # maximum length that is only half of the actual maximum length, but
5711 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5712 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5713 test $i != 17 # 1/2 MB should be enough
5716 teststring=$teststring$teststring
5718 # Only check the string length outside the loop.
5719 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5721 # Add a significant safety factor because C++ compilers can tack on
5722 # massive amounts of additional arguments before passing them to the
5723 # linker. It appears as though 1/2 is a usable value.
5724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5731 if test -n $lt_cv_sys_max_cmd_len ; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5733 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5736 $as_echo "none
" >&6; }
5738 max_cmd_len=$lt_cv_sys_max_cmd_len
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5750 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5751 # Try some XSI features
5754 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5756 && eval 'test $(( 1 + 1 )) -eq 2 \
5757 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5760 $as_echo "$xsi_shell" >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5764 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5766 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5768 && lt_shell_append
=yes
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5770 $as_echo "$lt_shell_append" >&6; }
5773 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5783 # test EBCDIC or ASCII
5784 case `echo X|tr X '\101'` in
5785 A
) # ASCII based system
5786 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5787 lt_SP2NL
='tr \040 \012'
5788 lt_NL2SP
='tr \015\012 \040\040'
5790 *) # EBCDIC based system
5791 lt_SP2NL
='tr \100 \n'
5792 lt_NL2SP
='tr \r\n \100\100'
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5805 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5806 if ${lt_cv_ld_reload_flag+:} false
; then :
5807 $as_echo_n "(cached) " >&6
5809 lt_cv_ld_reload_flag
='-r'
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5812 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5813 reload_flag
=$lt_cv_ld_reload_flag
5814 case $reload_flag in
5816 *) reload_flag
=" $reload_flag" ;;
5818 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5821 if test "$GCC" = yes; then
5822 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5824 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5837 if test -n "$ac_tool_prefix"; then
5838 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5839 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5843 $as_echo_n "(cached) " >&6
5845 if test -n "$OBJDUMP"; then
5846 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir
=.
5853 for ac_exec_ext
in '' $ac_executable_extensions; do
5854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 OBJDUMP
=$ac_cv_prog_OBJDUMP
5866 if test -n "$OBJDUMP"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5868 $as_echo "$OBJDUMP" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5876 if test -z "$ac_cv_prog_OBJDUMP"; then
5877 ac_ct_OBJDUMP
=$OBJDUMP
5878 # Extract the first word of "objdump", so it can be a program name with args.
5879 set dummy objdump
; ac_word
=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5883 $as_echo_n "(cached) " >&6
5885 if test -n "$ac_ct_OBJDUMP"; then
5886 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5892 test -z "$as_dir" && as_dir
=.
5893 for ac_exec_ext
in '' $ac_executable_extensions; do
5894 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5906 if test -n "$ac_ct_OBJDUMP"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5908 $as_echo "$ac_ct_OBJDUMP" >&6; }
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5914 if test "x$ac_ct_OBJDUMP" = x
; then
5917 case $cross_compiling:$ac_tool_warned in
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned
=yes ;;
5923 OBJDUMP
=$ac_ct_OBJDUMP
5926 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5929 test -z "$OBJDUMP" && OBJDUMP
=objdump
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5940 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5941 if ${lt_cv_deplibs_check_method+:} false
; then :
5942 $as_echo_n "(cached) " >&6
5944 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5945 lt_cv_file_magic_test_file
=
5946 lt_cv_deplibs_check_method
='unknown'
5947 # Need to set the preceding variable on all platforms that support
5948 # interlibrary dependencies.
5949 # 'none' -- dependencies not supported.
5950 # `unknown' -- same as none, but documents that we really don't know.
5951 # 'pass_all' -- all dependencies passed with no checks.
5952 # 'test_compile' -- check by making test program.
5953 # 'file_magic [[regex]]' -- check by looking for files in library path
5954 # which responds to the $file_magic_cmd with a given extended regex.
5955 # If you have `file' or equivalent on your system and you're not sure
5956 # whether `pass_all' will *always* work, you probably want this one.
5960 lt_cv_deplibs_check_method
=pass_all
5964 lt_cv_deplibs_check_method
=pass_all
5968 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5969 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5970 lt_cv_file_magic_test_file
=/shlib
/libc.so
5974 # func_win32_libid is a shell function defined in ltmain.sh
5975 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5976 lt_cv_file_magic_cmd
='func_win32_libid'
5980 # Base MSYS/MinGW do not provide the 'file' command needed by
5981 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5982 # unless we find 'file', for example because we are cross-compiling.
5983 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5984 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
5985 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5986 lt_cv_file_magic_cmd
='func_win32_libid'
5988 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
5989 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5994 # use the weaker test based on 'objdump'. See mingw*.
5995 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5996 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5999 darwin
* | rhapsody
*)
6000 lt_cv_deplibs_check_method
=pass_all
6003 freebsd
* | dragonfly
*)
6004 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6007 # Not sure whether the presence of OpenBSD here was a mistake.
6008 # Let's accept both of them until this is cleared up.
6009 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6010 lt_cv_file_magic_cmd
=/usr
/bin
/file
6011 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6015 lt_cv_deplibs_check_method
=pass_all
6020 lt_cv_deplibs_check_method
=pass_all
6024 lt_cv_deplibs_check_method
=pass_all
6027 hpux10.20
* | hpux11
*)
6028 lt_cv_file_magic_cmd
=/usr
/bin
/file
6031 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6032 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6035 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]'
6036 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6039 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6040 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6046 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6047 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6050 irix5
* | irix6
* | nonstopux
*)
6052 *-32|
*"-32 ") libmagic
=32-bit;;
6053 *-n32|
*"-n32 ") libmagic
=N32
;;
6054 *-64|
*"-64 ") libmagic
=64-bit;;
6055 *) libmagic
=never-match
;;
6057 lt_cv_deplibs_check_method
=pass_all
6060 # This must be Linux ELF.
6061 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
6062 lt_cv_deplibs_check_method
=pass_all
6066 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6067 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6069 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6074 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6075 lt_cv_file_magic_cmd
=/usr
/bin
/file
6076 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6080 lt_cv_deplibs_check_method
=pass_all
6084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6085 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6087 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6091 osf3
* | osf4
* | osf5
*)
6092 lt_cv_deplibs_check_method
=pass_all
6096 lt_cv_deplibs_check_method
=pass_all
6100 lt_cv_deplibs_check_method
=pass_all
6103 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6104 lt_cv_deplibs_check_method
=pass_all
6108 case $host_vendor in
6110 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]'
6111 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6114 lt_cv_deplibs_check_method
=pass_all
6117 lt_cv_file_magic_cmd
='/bin/file'
6118 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6121 lt_cv_file_magic_cmd
='/bin/file'
6122 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6123 lt_cv_file_magic_test_file
=/lib
/libc.so
6126 lt_cv_deplibs_check_method
=pass_all
6129 lt_cv_deplibs_check_method
=pass_all
6135 lt_cv_deplibs_check_method
=pass_all
6138 # Assume VxWorks cross toolchains are built on Linux, possibly
6139 # as canadian for Windows hosts.
6140 lt_cv_deplibs_check_method
=pass_all
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6146 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6147 file_magic_cmd
=$lt_cv_file_magic_cmd
6148 deplibs_check_method
=$lt_cv_deplibs_check_method
6149 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6163 plugin_names
="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6164 for plugin
in $plugin_names; do
6165 plugin_so
=`${CC} ${CFLAGS} --print-prog-name $plugin`
6166 if test x
$plugin_so = x
$plugin; then
6167 plugin_so
=`${CC} ${CFLAGS} --print-file-name $plugin`
6169 if test x
$plugin_so != x
$plugin; then
6170 plugin_option
="--plugin $plugin_so"
6175 if test -n "$ac_tool_prefix"; then
6176 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6177 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_prog_AR+:} false
; then :
6181 $as_echo_n "(cached) " >&6
6183 if test -n "$AR"; then
6184 ac_cv_prog_AR
="$AR" # Let the user override the test.
6186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir
=.
6191 for ac_exec_ext
in '' $ac_executable_extensions; do
6192 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6193 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 if test -n "$AR"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6206 $as_echo "$AR" >&6; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6214 if test -z "$ac_cv_prog_AR"; then
6216 # Extract the first word of "ar", so it can be a program name with args.
6217 set dummy
ar; ac_word
=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6221 $as_echo_n "(cached) " >&6
6223 if test -n "$ac_ct_AR"; then
6224 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir
=.
6231 for ac_exec_ext
in '' $ac_executable_extensions; do
6232 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_ac_ct_AR
="ar"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6244 if test -n "$ac_ct_AR"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6246 $as_echo "$ac_ct_AR" >&6; }
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6252 if test "x$ac_ct_AR" = x
; then
6255 case $cross_compiling:$ac_tool_warned in
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6259 ac_tool_warned
=yes ;;
6267 test -z "$AR" && AR
=ar
6268 if test -n "$plugin_option"; then
6269 if $AR --help 2>&1 |
grep -q "\--plugin"; then
6271 $AR $plugin_option rc conftest.a conftest.c
6272 if test "$?" != 0; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6274 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6276 AR
="$AR $plugin_option"
6281 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6293 if test -n "$ac_tool_prefix"; then
6294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6295 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_prog_STRIP+:} false
; then :
6299 $as_echo_n "(cached) " >&6
6301 if test -n "$STRIP"; then
6302 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir
=.
6309 for ac_exec_ext
in '' $ac_executable_extensions; do
6310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 STRIP
=$ac_cv_prog_STRIP
6322 if test -n "$STRIP"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6324 $as_echo "$STRIP" >&6; }
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6332 if test -z "$ac_cv_prog_STRIP"; then
6334 # Extract the first word of "strip", so it can be a program name with args.
6335 set dummy strip
; ac_word
=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6339 $as_echo_n "(cached) " >&6
6341 if test -n "$ac_ct_STRIP"; then
6342 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir
=.
6349 for ac_exec_ext
in '' $ac_executable_extensions; do
6350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_ac_ct_STRIP
="strip"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6362 if test -n "$ac_ct_STRIP"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6364 $as_echo "$ac_ct_STRIP" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6370 if test "x$ac_ct_STRIP" = x
; then
6373 case $cross_compiling:$ac_tool_warned in
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6377 ac_tool_warned
=yes ;;
6382 STRIP
="$ac_cv_prog_STRIP"
6385 test -z "$STRIP" && STRIP
=:
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6394 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_RANLIB+:} false
; then :
6398 $as_echo_n "(cached) " >&6
6400 if test -n "$RANLIB"; then
6401 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir
=.
6408 for ac_exec_ext
in '' $ac_executable_extensions; do
6409 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 RANLIB
=$ac_cv_prog_RANLIB
6421 if test -n "$RANLIB"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6423 $as_echo "$RANLIB" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6431 if test -z "$ac_cv_prog_RANLIB"; then
6432 ac_ct_RANLIB
=$RANLIB
6433 # Extract the first word of "ranlib", so it can be a program name with args.
6434 set dummy ranlib
; ac_word
=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6438 $as_echo_n "(cached) " >&6
6440 if test -n "$ac_ct_RANLIB"; then
6441 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir
=.
6448 for ac_exec_ext
in '' $ac_executable_extensions; do
6449 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6461 if test -n "$ac_ct_RANLIB"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6463 $as_echo "$ac_ct_RANLIB" >&6; }
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6469 if test "x$ac_ct_RANLIB" = x
; then
6472 case $cross_compiling:$ac_tool_warned in
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned
=yes ;;
6478 RANLIB
=$ac_ct_RANLIB
6481 RANLIB
="$ac_cv_prog_RANLIB"
6484 test -z "$RANLIB" && RANLIB
=:
6485 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6486 if $RANLIB --help 2>&1 |
grep -q "\--plugin"; then
6487 RANLIB
="$RANLIB $plugin_option"
6496 # Determine commands to create old-style static archives.
6497 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6498 old_postinstall_cmds
='chmod 644 $oldlib'
6499 old_postuninstall_cmds
=
6501 if test -n "$RANLIB"; then
6504 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6507 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6510 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6515 lock_old_archive_extraction
=yes ;;
6517 lock_old_archive_extraction
=no
;;
6558 # If no C compiler was specified, use CC.
6561 # If no C compiler flags were specified, use CFLAGS.
6562 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6564 # Allow CC to be a program name with arguments.
6568 # Check for command to grab the raw symbol name followed by C symbol from nm.
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6570 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6571 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6572 $as_echo_n "(cached) " >&6
6575 # These are sane defaults that work on at least a few old systems.
6576 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6578 # Character class describing NM global symbol codes.
6579 symcode
='[BCDEGRST]'
6581 # Regexp to match symbols that can be accessed directly from C.
6582 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6584 # Define system-specific variables.
6589 cygwin
* | mingw
* | pw32
* | cegcc
*)
6590 symcode
='[ABCDGISTW]'
6593 if test "$host_cpu" = ia64
; then
6594 symcode
='[ABCDEGRST]'
6598 symcode
='[BCDEGRST]'
6601 symcode
='[BCDEGQRST]'
6612 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6620 # If we're using GNU nm, then use its standard symbol codes.
6621 case `$NM -V 2>&1` in
6622 *GNU
* |
*'with BFD'*)
6623 symcode
='[ABCDGIRSTW]' ;;
6626 # Transform an extracted symbol line into a proper C declaration.
6627 # Some systems (esp. on ia64) link data and code symbols differently,
6628 # so use this general approach.
6629 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6631 # Transform an extracted symbol line into symbol name and symbol address
6632 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6633 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'"
6635 # Handle CRLF in mingw tool chain
6639 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6643 # Try without a prefix underscore, then with it.
6644 for ac_symprfx
in "" "_"; do
6646 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6647 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6649 # Write the raw and C identifiers.
6650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6651 # Fake it for dumpbin and say T for any non-static function
6652 # and D for any global variable.
6653 # Also find C++ and __fastcall symbols from MSVC++,
6654 # which start with @ or ?.
6655 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6656 " {last_section=section; section=\$ 3};"\
6657 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6658 " \$ 0!~/External *\|/{next};"\
6659 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6660 " {if(hide[section]) next};"\
6661 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6662 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6663 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6664 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6665 " ' prfx=^$ac_symprfx"
6667 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6670 # Check to see that the pipe works correctly.
6674 cat > conftest.
$ac_ext <<_LT_EOF
6679 void nm_test_func(void);
6680 void nm_test_func(void){}
6684 int main(){nm_test_var='a';nm_test_func();return(0);}
6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6688 (eval $ac_compile) 2>&5
6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691 test $ac_status = 0; }; then
6692 # Now try to grab the symbols.
6694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6695 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; } && test -s "$nlist"; then
6699 # Try sorting and uniquifying the output.
6700 if sort "$nlist" |
uniq > "$nlist"T
; then
6701 mv -f "$nlist"T
"$nlist"
6706 # Make sure that we snagged all the symbols we need.
6707 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6708 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6709 cat <<_LT_EOF > conftest.$ac_ext
6715 # Now generate the symbol file.
6716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6718 cat <<_LT_EOF >> conftest.$ac_ext
6720 /* The mapping between symbol names and symbols. */
6725 lt__PROGRAM__LTX_preloaded_symbols[] =
6727 { "@PROGRAM@", (void *) 0 },
6729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6730 cat <<\_LT_EOF
>> conftest.
$ac_ext
6734 /* This works around a problem
in FreeBSD linker
*/
6735 #ifdef FREEBSD_WORKAROUND
6736 static const void
*lt_preloaded_setup
() {
6737 return lt__PROGRAM__LTX_preloaded_symbols
;
6745 # Now try linking the two files.
6746 mv conftest.
$ac_objext conftstm.
$ac_objext
6747 lt_save_LIBS
="$LIBS"
6748 lt_save_CFLAGS
="$CFLAGS"
6749 LIBS
="conftstm.$ac_objext"
6750 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6752 (eval $ac_link) 2>&5
6754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6755 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6758 LIBS
="$lt_save_LIBS"
6759 CFLAGS
="$lt_save_CFLAGS"
6761 echo "cannot find nm_test_func in $nlist" >&5
6764 echo "cannot find nm_test_var in $nlist" >&5
6767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6770 echo "$progname: failed program was:" >&5
6771 cat conftest.
$ac_ext >&5
6773 rm -rf conftest
* conftst
*
6775 # Do not use the global_symbol_pipe unless it works.
6776 if test "$pipe_works" = yes; then
6779 lt_cv_sys_global_symbol_pipe
=
6785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6786 lt_cv_sys_global_symbol_to_cdecl
=
6788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6790 $as_echo "failed" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6793 $as_echo "ok" >&6; }
6818 # Check whether --enable-libtool-lock was given.
6819 if test "${enable_libtool_lock+set}" = set; then :
6820 enableval
=$enable_libtool_lock;
6823 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6825 # Some flags need to be propagated to the compiler or linker for good
6829 # Find out which ABI we are using.
6830 echo 'int i;' > conftest.
$ac_ext
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.$ac_objext` in
6848 # Find out which ABI we are using.
6849 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851 (eval $ac_compile) 2>&5
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }; then
6855 if test "$lt_cv_prog_gnu_ld" = yes; then
6856 case `/usr/bin/file conftest.$ac_objext` in
6858 LD
="${LD-ld} -melf32bsmip"
6861 LD
="${LD-ld} -melf32bmipn32"
6864 LD
="${LD-ld} -melf64bmip"
6868 case `/usr/bin/file conftest.$ac_objext` in
6884 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6885 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6886 # Find out which ABI we are using.
6887 echo 'int i;' > conftest.
$ac_ext
6888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6889 (eval $ac_compile) 2>&5
6891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892 test $ac_status = 0; }; then
6893 case `/usr/bin/file conftest.o` in
6896 x86_64-
*kfreebsd
*-gnu)
6897 LD
="${LD-ld} -m elf_i386_fbsd"
6900 case `/usr/bin/file conftest.o` in
6902 LD
="${LD-ld} -m elf32_x86_64"
6905 LD
="${LD-ld} -m elf_i386"
6909 powerpc64le-
*linux
*)
6910 LD
="${LD-ld} -m elf32lppclinux"
6913 LD
="${LD-ld} -m elf32ppclinux"
6916 LD
="${LD-ld} -m elf_s390"
6919 LD
="${LD-ld} -m elf32_sparc"
6925 x86_64-
*kfreebsd
*-gnu)
6926 LD
="${LD-ld} -m elf_x86_64_fbsd"
6929 LD
="${LD-ld} -m elf_x86_64"
6932 LD
="${LD-ld} -m elf64lppc"
6935 LD
="${LD-ld} -m elf64ppc"
6937 s390
*-*linux
*|s390
*-*tpf
*)
6938 LD
="${LD-ld} -m elf64_s390"
6941 LD
="${LD-ld} -m elf64_sparc"
6951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6952 SAVE_CFLAGS
="$CFLAGS"
6953 CFLAGS
="$CFLAGS -belf"
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6955 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6956 if ${lt_cv_cc_needs_belf+:} false
; then :
6957 $as_echo_n "(cached) " >&6
6960 ac_cpp
='$CPP $CPPFLAGS'
6961 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6976 if ac_fn_c_try_link
"$LINENO"; then :
6977 lt_cv_cc_needs_belf
=yes
6979 lt_cv_cc_needs_belf
=no
6981 rm -f core conftest.err conftest.
$ac_objext \
6982 conftest
$ac_exeext conftest.
$ac_ext
6984 ac_cpp
='$CPP $CPPFLAGS'
6985 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6991 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6992 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6993 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6994 CFLAGS
="$SAVE_CFLAGS"
6998 # Find out which ABI we are using.
6999 echo 'int i;' > conftest.
$ac_ext
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 case `/usr/bin/file conftest.o` in
7007 case $lt_cv_prog_gnu_ld in
7008 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7010 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7022 need_locks
="$enable_libtool_lock"
7026 rhapsody
* | darwin
*)
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7029 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7033 $as_echo_n "(cached) " >&6
7035 if test -n "$DSYMUTIL"; then
7036 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir
=.
7043 for ac_exec_ext
in '' $ac_executable_extensions; do
7044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7056 if test -n "$DSYMUTIL"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7058 $as_echo "$DSYMUTIL" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7066 if test -z "$ac_cv_prog_DSYMUTIL"; then
7067 ac_ct_DSYMUTIL
=$DSYMUTIL
7068 # Extract the first word of "dsymutil", so it can be a program name with args.
7069 set dummy dsymutil
; ac_word
=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7073 $as_echo_n "(cached) " >&6
7075 if test -n "$ac_ct_DSYMUTIL"; then
7076 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir
=.
7083 for ac_exec_ext
in '' $ac_executable_extensions; do
7084 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7096 if test -n "$ac_ct_DSYMUTIL"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7098 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7104 if test "x$ac_ct_DSYMUTIL" = x
; then
7107 case $cross_compiling:$ac_tool_warned in
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned
=yes ;;
7113 DSYMUTIL
=$ac_ct_DSYMUTIL
7116 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7121 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_NMEDIT+:} false
; then :
7125 $as_echo_n "(cached) " >&6
7127 if test -n "$NMEDIT"; then
7128 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir
=.
7135 for ac_exec_ext
in '' $ac_executable_extensions; do
7136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 NMEDIT
=$ac_cv_prog_NMEDIT
7148 if test -n "$NMEDIT"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7150 $as_echo "$NMEDIT" >&6; }
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7158 if test -z "$ac_cv_prog_NMEDIT"; then
7159 ac_ct_NMEDIT
=$NMEDIT
7160 # Extract the first word of "nmedit", so it can be a program name with args.
7161 set dummy nmedit
; ac_word
=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7165 $as_echo_n "(cached) " >&6
7167 if test -n "$ac_ct_NMEDIT"; then
7168 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir
=.
7175 for ac_exec_ext
in '' $ac_executable_extensions; do
7176 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7188 if test -n "$ac_ct_NMEDIT"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7190 $as_echo "$ac_ct_NMEDIT" >&6; }
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7196 if test "x$ac_ct_NMEDIT" = x
; then
7199 case $cross_compiling:$ac_tool_warned in
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned
=yes ;;
7205 NMEDIT
=$ac_ct_NMEDIT
7208 NMEDIT
="$ac_cv_prog_NMEDIT"
7211 if test -n "$ac_tool_prefix"; then
7212 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7213 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_LIPO+:} false
; then :
7217 $as_echo_n "(cached) " >&6
7219 if test -n "$LIPO"; then
7220 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir
=.
7227 for ac_exec_ext
in '' $ac_executable_extensions; do
7228 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 LIPO
=$ac_cv_prog_LIPO
7240 if test -n "$LIPO"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7242 $as_echo "$LIPO" >&6; }
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7250 if test -z "$ac_cv_prog_LIPO"; then
7252 # Extract the first word of "lipo", so it can be a program name with args.
7253 set dummy lipo
; ac_word
=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7257 $as_echo_n "(cached) " >&6
7259 if test -n "$ac_ct_LIPO"; then
7260 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir
=.
7267 for ac_exec_ext
in '' $ac_executable_extensions; do
7268 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_LIPO
="lipo"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7280 if test -n "$ac_ct_LIPO"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7282 $as_echo "$ac_ct_LIPO" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7288 if test "x$ac_ct_LIPO" = x
; then
7291 case $cross_compiling:$ac_tool_warned in
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295 ac_tool_warned
=yes ;;
7300 LIPO
="$ac_cv_prog_LIPO"
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7305 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_OTOOL+:} false
; then :
7309 $as_echo_n "(cached) " >&6
7311 if test -n "$OTOOL"; then
7312 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir
=.
7319 for ac_exec_ext
in '' $ac_executable_extensions; do
7320 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 OTOOL
=$ac_cv_prog_OTOOL
7332 if test -n "$OTOOL"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7334 $as_echo "$OTOOL" >&6; }
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7342 if test -z "$ac_cv_prog_OTOOL"; then
7344 # Extract the first word of "otool", so it can be a program name with args.
7345 set dummy otool
; ac_word
=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7349 $as_echo_n "(cached) " >&6
7351 if test -n "$ac_ct_OTOOL"; then
7352 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir
=.
7359 for ac_exec_ext
in '' $ac_executable_extensions; do
7360 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_ac_ct_OTOOL
="otool"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7372 if test -n "$ac_ct_OTOOL"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7374 $as_echo "$ac_ct_OTOOL" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7380 if test "x$ac_ct_OTOOL" = x
; then
7383 case $cross_compiling:$ac_tool_warned in
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned
=yes ;;
7392 OTOOL
="$ac_cv_prog_OTOOL"
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7397 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_OTOOL64+:} false
; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$OTOOL64"; then
7404 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir
=.
7411 for ac_exec_ext
in '' $ac_executable_extensions; do
7412 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 OTOOL64
=$ac_cv_prog_OTOOL64
7424 if test -n "$OTOOL64"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7426 $as_echo "$OTOOL64" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7434 if test -z "$ac_cv_prog_OTOOL64"; then
7435 ac_ct_OTOOL64
=$OTOOL64
7436 # Extract the first word of "otool64", so it can be a program name with args.
7437 set dummy otool64
; ac_word
=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7441 $as_echo_n "(cached) " >&6
7443 if test -n "$ac_ct_OTOOL64"; then
7444 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir
=.
7451 for ac_exec_ext
in '' $ac_executable_extensions; do
7452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7464 if test -n "$ac_ct_OTOOL64"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7466 $as_echo "$ac_ct_OTOOL64" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7472 if test "x$ac_ct_OTOOL64" = x
; then
7475 case $cross_compiling:$ac_tool_warned in
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned
=yes ;;
7481 OTOOL64
=$ac_ct_OTOOL64
7484 OTOOL64
="$ac_cv_prog_OTOOL64"
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7514 $as_echo_n "checking for -single_module linker flag... " >&6; }
7515 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7516 $as_echo_n "(cached) " >&6
7518 lt_cv_apple_cc_single_mod
=no
7519 if test -z "${LT_MULTI_MODULE}"; then
7520 # By default we will add the -single_module flag. You can override
7521 # by either setting the environment variable LT_MULTI_MODULE
7522 # non-empty at configure time, or by adding -multi_module to the
7524 rm -rf libconftest.dylib
*
7525 echo "int foo(void){return 1;}" > conftest.c
7526 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7527 -dynamiclib -Wl,-single_module conftest.c" >&5
7528 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7529 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7531 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7532 lt_cv_apple_cc_single_mod
=yes
7534 cat conftest.err
>&5
7536 rm -rf libconftest.dylib
*
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7541 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7543 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7544 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7545 $as_echo_n "(cached) " >&6
7547 lt_cv_ld_exported_symbols_list
=no
7548 save_LDFLAGS
=$LDFLAGS
7549 echo "_main" > conftest.sym
7550 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7562 if ac_fn_c_try_link
"$LINENO"; then :
7563 lt_cv_ld_exported_symbols_list
=yes
7565 lt_cv_ld_exported_symbols_list
=no
7567 rm -f core conftest.err conftest.
$ac_objext \
7568 conftest
$ac_exeext conftest.
$ac_ext
7569 LDFLAGS
="$save_LDFLAGS"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7573 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7575 $as_echo_n "checking for -force_load linker flag... " >&6; }
7576 if ${lt_cv_ld_force_load+:} false
; then :
7577 $as_echo_n "(cached) " >&6
7579 lt_cv_ld_force_load
=no
7580 cat > conftest.c
<< _LT_EOF
7581 int forced_loaded() { return 2;}
7583 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7584 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7585 echo "$AR cru libconftest.a conftest.o" >&5
7586 $AR cru libconftest.a conftest.o
2>&5
7587 cat > conftest.c
<< _LT_EOF
7588 int main() { return 0;}
7590 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7591 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7593 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7594 lt_cv_ld_force_load
=yes
7596 cat conftest.err
>&5
7598 rm -f conftest.err libconftest.a conftest conftest.c
7599 rm -rf conftest.dSYM
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7603 $as_echo "$lt_cv_ld_force_load" >&6; }
7604 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7605 # build without first building modern cctools / linker.
7606 case $host_cpu-$host_os in
7607 *-rhapsody* |
*-darwin1.
[012])
7608 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7610 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7612 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7613 # deployment target is forced to an earlier version.
7614 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7615 UNSET
,*-darwin[89]*|UNSET
,*-darwin[12][0123456789]*)
7618 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7625 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7626 _lt_dar_single_mod
='$single_module'
7628 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7629 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7631 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7633 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7634 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7642 ac_cpp
='$CPP $CPPFLAGS'
7643 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7647 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7648 # On Suns, sometimes $CPP names a directory.
7649 if test -n "$CPP" && test -d "$CPP"; then
7652 if test -z "$CPP"; then
7653 if ${ac_cv_prog_CPP+:} false
; then :
7654 $as_echo_n "(cached) " >&6
7656 # Double quotes because CPP needs to be expanded
7657 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7660 for ac_c_preproc_warn_flag
in '' yes
7662 # Use a header file that comes with gcc, so configuring glibc
7663 # with a fresh cross-compiler works.
7664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7665 # <limits.h> exists even on freestanding compilers.
7666 # On the NeXT, cc -E runs the code through the compiler's parser,
7667 # not just through cpp. "Syntax error" is here to catch this case.
7668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7671 # include <limits.h>
7673 # include <assert.h>
7677 if ac_fn_c_try_cpp
"$LINENO"; then :
7680 # Broken: fails on valid input.
7683 rm -f conftest.err conftest.i conftest.
$ac_ext
7685 # OK, works on sane cases. Now check whether nonexistent headers
7686 # can be detected and how.
7687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689 #include <ac_nonexistent.h>
7691 if ac_fn_c_try_cpp
"$LINENO"; then :
7692 # Broken: success on invalid input.
7695 # Passes both tests.
7699 rm -f conftest.err conftest.i conftest.
$ac_ext
7702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7703 rm -f conftest.i conftest.err conftest.
$ac_ext
7704 if $ac_preproc_ok; then :
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7717 $as_echo "$CPP" >&6; }
7719 for ac_c_preproc_warn_flag
in '' yes
7721 # Use a header file that comes with gcc, so configuring glibc
7722 # with a fresh cross-compiler works.
7723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7724 # <limits.h> exists even on freestanding compilers.
7725 # On the NeXT, cc -E runs the code through the compiler's parser,
7726 # not just through cpp. "Syntax error" is here to catch this case.
7727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7730 # include <limits.h>
7732 # include <assert.h>
7736 if ac_fn_c_try_cpp
"$LINENO"; then :
7739 # Broken: fails on valid input.
7742 rm -f conftest.err conftest.i conftest.
$ac_ext
7744 # OK, works on sane cases. Now check whether nonexistent headers
7745 # can be detected and how.
7746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #include <ac_nonexistent.h>
7750 if ac_fn_c_try_cpp
"$LINENO"; then :
7751 # Broken: success on invalid input.
7754 # Passes both tests.
7758 rm -f conftest.err conftest.i conftest.
$ac_ext
7761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7762 rm -f conftest.i conftest.err conftest.
$ac_ext
7763 if $ac_preproc_ok; then :
7766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7768 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7769 See \`config.log' for more details" "$LINENO" 5; }
7773 ac_cpp
='$CPP $CPPFLAGS'
7774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7780 $as_echo_n "checking for ANSI C header files... " >&6; }
7781 if ${ac_cv_header_stdc+:} false
; then :
7782 $as_echo_n "(cached) " >&6
7784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7799 if ac_fn_c_try_compile
"$LINENO"; then :
7800 ac_cv_header_stdc
=yes
7802 ac_cv_header_stdc
=no
7804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7806 if test $ac_cv_header_stdc = yes; then
7807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814 $EGREP "memchr" >/dev
/null
2>&1; then :
7817 ac_cv_header_stdc
=no
7823 if test $ac_cv_header_stdc = yes; then
7824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7831 $EGREP "free" >/dev
/null
2>&1; then :
7834 ac_cv_header_stdc
=no
7840 if test $ac_cv_header_stdc = yes; then
7841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7842 if test "$cross_compiling" = yes; then :
7845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7849 #if ((' ' & 0x0FF) == 0x020)
7850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7853 # define ISLOWER(c) \
7854 (('a' <= (c) && (c) <= 'i') \
7855 || ('j' <= (c) && (c) <= 'r') \
7856 || ('s' <= (c) && (c) <= 'z'))
7857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7865 for (i = 0; i < 256; i++)
7866 if (XOR (islower (i), ISLOWER (i))
7867 || toupper (i) != TOUPPER (i))
7872 if ac_fn_c_try_run
"$LINENO"; then :
7875 ac_cv_header_stdc
=no
7877 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7878 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7884 $as_echo "$ac_cv_header_stdc" >&6; }
7885 if test $ac_cv_header_stdc = yes; then
7887 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7891 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7892 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7893 inttypes.h stdint.h unistd.h
7895 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7896 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7898 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7899 cat >>confdefs.h
<<_ACEOF
7900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7908 for ac_header
in dlfcn.h
7910 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7912 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7913 cat >>confdefs.h
<<_ACEOF
7914 #define HAVE_DLFCN_H 1
7935 # Check whether --enable-shared was given.
7936 if test "${enable_shared+set}" = set; then :
7937 enableval
=$enable_shared; p
=${PACKAGE-default}
7939 yes) enable_shared
=yes ;;
7940 no
) enable_shared
=no
;;
7943 # Look at the argument we got. We use all the common list separators.
7944 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7945 for pkg
in $enableval; do
7947 if test "X$pkg" = "X$p"; then
7966 # Check whether --enable-static was given.
7967 if test "${enable_static+set}" = set; then :
7968 enableval
=$enable_static; p
=${PACKAGE-default}
7970 yes) enable_static
=yes ;;
7971 no
) enable_static
=no
;;
7974 # Look at the argument we got. We use all the common list separators.
7975 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7976 for pkg
in $enableval; do
7978 if test "X$pkg" = "X$p"; then
7998 # Check whether --with-pic was given.
7999 if test "${with_pic+set}" = set; then :
8000 withval
=$with_pic; pic_mode
="$withval"
8006 test -z "$pic_mode" && pic_mode
=default
8014 # Check whether --enable-fast-install was given.
8015 if test "${enable_fast_install+set}" = set; then :
8016 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8018 yes) enable_fast_install
=yes ;;
8019 no
) enable_fast_install
=no
;;
8021 enable_fast_install
=no
8022 # Look at the argument we got. We use all the common list separators.
8023 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8024 for pkg
in $enableval; do
8026 if test "X$pkg" = "X$p"; then
8027 enable_fast_install
=yes
8034 enable_fast_install
=yes
8047 # This can be used to rebuild libtool when needed
8048 LIBTOOL_DEPS
="$ltmain"
8050 # Always use our own libtool.
8051 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8078 test -z "$LN_S" && LN_S
="ln -s"
8093 if test -n "${ZSH_VERSION+set}" ; then
8094 setopt NO_GLOB_SUBST
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8098 $as_echo_n "checking for objdir... " >&6; }
8099 if ${lt_cv_objdir+:} false
; then :
8100 $as_echo_n "(cached) " >&6
8102 rm -f .libs
2>/dev
/null
8103 mkdir .libs
2>/dev
/null
8104 if test -d .libs
; then
8107 # MS-DOS does not allow filenames that begin with a dot.
8110 rmdir .libs
2>/dev
/null
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8113 $as_echo "$lt_cv_objdir" >&6; }
8114 objdir
=$lt_cv_objdir
8120 cat >>confdefs.h
<<_ACEOF
8121 #define LT_OBJDIR "$lt_cv_objdir/"
8129 # AIX sometimes has problems with the GCC collect2 program. For some
8130 # reason, if we set the COLLECT_NAMES environment variable, the problems
8131 # vanish in a puff of smoke.
8132 if test "X${COLLECT_NAMES+set}" != Xset
; then
8134 export COLLECT_NAMES
8141 can_build_shared
=yes
8143 # All known linkers require a `.a' archive for static linking (except MSVC,
8144 # which needs '.lib').
8147 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8150 old_CFLAGS
="$CFLAGS"
8152 # Set sane defaults for various variables
8153 test -z "$CC" && CC
=cc
8154 test -z "$LTCC" && LTCC
=$CC
8155 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8156 test -z "$LD" && LD
=ld
8157 test -z "$ac_objext" && ac_objext
=o
8159 for cc_temp
in $compiler""; do
8161 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8162 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8167 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8170 # Only perform the check for file, if the check method requires it
8171 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8172 case $deplibs_check_method in
8174 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8176 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8177 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8178 $as_echo_n "(cached) " >&6
8182 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8185 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8186 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8187 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8188 for ac_dir
in $ac_dummy; do
8190 test -z "$ac_dir" && ac_dir
=.
8191 if test -f $ac_dir/${ac_tool_prefix}file; then
8192 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8193 if test -n "$file_magic_test_file"; then
8194 case $deplibs_check_method in
8196 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8197 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8198 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8199 $EGREP "$file_magic_regex" > /dev
/null
; then
8204 *** Warning: the command libtool uses to detect shared libraries,
8205 *** $file_magic_cmd, produces output that libtool cannot recognize.
8206 *** The result is that libtool may fail to recognize shared libraries
8207 *** as such. This will affect the creation of libtool libraries that
8208 *** depend on shared libraries, but programs linked with such libtool
8209 *** libraries will work regardless of this problem. Nevertheless, you
8210 *** may want to report the problem to your system manager and/or to
8211 *** bug-libtool@gnu.org
8221 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8226 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8227 if test -n "$MAGIC_CMD"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8229 $as_echo "$MAGIC_CMD" >&6; }
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8239 if test -z "$lt_cv_path_MAGIC_CMD"; then
8240 if test -n "$ac_tool_prefix"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8242 $as_echo_n "checking for file... " >&6; }
8243 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8244 $as_echo_n "(cached) " >&6
8248 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8251 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8252 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8253 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8254 for ac_dir
in $ac_dummy; do
8256 test -z "$ac_dir" && ac_dir
=.
8257 if test -f $ac_dir/file; then
8258 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8259 if test -n "$file_magic_test_file"; then
8260 case $deplibs_check_method in
8262 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8264 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8265 $EGREP "$file_magic_regex" > /dev
/null
; then
8270 *** Warning: the command libtool uses to detect shared libraries,
8271 *** $file_magic_cmd, produces output that libtool cannot recognize.
8272 *** The result is that libtool may fail to recognize shared libraries
8273 *** as such. This will affect the creation of libtool libraries that
8274 *** depend on shared libraries, but programs linked with such libtool
8275 *** libraries will work regardless of this problem. Nevertheless, you
8276 *** may want to report the problem to your system manager and/or to
8277 *** bug-libtool@gnu.org
8287 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8292 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8293 if test -n "$MAGIC_CMD"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8295 $as_echo "$MAGIC_CMD" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8311 # Use C for the default configuration in the libtool script
8315 ac_cpp
='$CPP $CPPFLAGS'
8316 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8321 # Source file extension for C test sources.
8324 # Object file extension for compiled C test sources.
8328 # Code to be used in simple compile tests
8329 lt_simple_compile_test_code
="int some_variable = 0;"
8331 # Code to be used in simple link tests
8332 lt_simple_link_test_code
='int main(){return(0);}'
8340 # If no C compiler was specified, use CC.
8343 # If no C compiler flags were specified, use CFLAGS.
8344 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8346 # Allow CC to be a program name with arguments.
8349 # Save the default compiler, since it gets overwritten when the other
8350 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8351 compiler_DEFAULT
=$CC
8353 # save warnings/boilerplate of simple test code
8354 ac_outfile
=conftest.
$ac_objext
8355 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8356 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8357 _lt_compiler_boilerplate
=`cat conftest.err`
8360 ac_outfile
=conftest.
$ac_objext
8361 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8362 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8363 _lt_linker_boilerplate
=`cat conftest.err`
8368 ## There is no encapsulation within the following macros, do not change
8369 ## the running order or otherwise move them around unless you know exactly
8370 ## what you are doing...
8371 if test -n "$compiler"; then
8373 lt_prog_compiler_no_builtin_flag
=
8375 if test "$GCC" = yes; then
8376 case $cc_basename in
8378 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8380 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8384 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8385 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8386 $as_echo_n "(cached) " >&6
8388 lt_cv_prog_compiler_rtti_exceptions
=no
8389 ac_outfile
=conftest.
$ac_objext
8390 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8391 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8392 # Insert the option either (1) after the last *FLAGS variable, or
8393 # (2) before a word containing "conftest.", or (3) at the end.
8394 # Note that $ac_compile itself does not contain backslashes and begins
8395 # with a dollar sign (not a hyphen), so the echo should work correctly.
8396 # The option is referenced via a variable to avoid confusing sed.
8397 lt_compile
=`echo "$ac_compile" | $SED \
8398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8400 -e 's:$: $lt_compiler_flag:'`
8401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8402 (eval "$lt_compile" 2>conftest.err
)
8404 cat conftest.err
>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 if (exit $ac_status) && test -s "$ac_outfile"; then
8407 # The compiler can only warn and ignore the option if not recognized
8408 # So say no if there are warnings other than the usual output.
8409 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8410 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8411 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8412 lt_cv_prog_compiler_rtti_exceptions
=yes
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8419 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8421 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8422 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8434 lt_prog_compiler_wl
=
8435 lt_prog_compiler_pic
=
8436 lt_prog_compiler_static
=
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8439 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8441 if test "$GCC" = yes; then
8442 lt_prog_compiler_wl
='-Wl,'
8443 lt_prog_compiler_static
='-static'
8447 # All AIX code is PIC.
8448 if test "$host_cpu" = ia64
; then
8449 # AIX 5 now supports IA64 processor
8450 lt_prog_compiler_static
='-Bstatic'
8452 lt_prog_compiler_pic
='-fPIC'
8458 # see comment about AmigaOS4 .so support
8459 lt_prog_compiler_pic
='-fPIC'
8462 # FIXME: we need at least 68020 code to build shared libraries, but
8463 # adding the `-m68020' flag to GCC prevents building anything better,
8465 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8470 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8471 # PIC is the default for these OSes.
8474 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8475 # This hack is so that the source file can tell whether it is being
8476 # built for inclusion in a dll (and should export symbols for example).
8477 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8478 # (--disable-auto-import) libraries
8479 lt_prog_compiler_pic
='-DDLL_EXPORT'
8482 darwin
* | rhapsody
*)
8483 # PIC is the default on this platform
8484 # Common symbols not allowed in MH_DYLIB files
8485 lt_prog_compiler_pic
='-fno-common'
8489 # PIC is the default for Haiku.
8490 # The "-static" flag exists, but is broken.
8491 lt_prog_compiler_static
=
8495 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8496 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8497 # sets the default TLS model and affects inlining.
8503 lt_prog_compiler_pic
='-fPIC'
8509 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8510 # Instead, we relocate shared libraries at runtime.
8514 # Just because we use GCC doesn't mean we suddenly get shared libraries
8515 # on systems that don't support them.
8516 lt_prog_compiler_can_build_shared
=no
8521 # QNX uses GNU C++, but need to define -shared option too, otherwise
8523 lt_prog_compiler_pic
='-fPIC -shared'
8527 if test -d /usr
/nec
; then
8528 lt_prog_compiler_pic
=-Kconform_pic
8533 lt_prog_compiler_pic
='-fPIC'
8537 case $cc_basename in
8538 nvcc
*) # Cuda Compiler Driver 2.2
8539 lt_prog_compiler_wl
='-Xlinker '
8540 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8544 # PORTME Check for flag to pass linker flags through the system compiler.
8547 lt_prog_compiler_wl
='-Wl,'
8548 if test "$host_cpu" = ia64
; then
8549 # AIX 5 now supports IA64 processor
8550 lt_prog_compiler_static
='-Bstatic'
8552 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8556 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8557 # This hack is so that the source file can tell whether it is being
8558 # built for inclusion in a dll (and should export symbols for example).
8559 lt_prog_compiler_pic
='-DDLL_EXPORT'
8562 hpux9
* | hpux10
* | hpux11
*)
8563 lt_prog_compiler_wl
='-Wl,'
8564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8571 lt_prog_compiler_pic
='+Z'
8574 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8575 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8578 irix5
* | irix6
* | nonstopux
*)
8579 lt_prog_compiler_wl
='-Wl,'
8580 # PIC (with -KPIC) is the default.
8581 lt_prog_compiler_static
='-non_shared'
8584 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8585 case $cc_basename in
8586 # old Intel for x86_64 which still supported -KPIC.
8588 lt_prog_compiler_wl
='-Wl,'
8589 lt_prog_compiler_pic
='-KPIC'
8590 lt_prog_compiler_static
='-static'
8592 # icc used to be incompatible with GCC.
8593 # ICC 10 doesn't accept -KPIC any more.
8595 lt_prog_compiler_wl
='-Wl,'
8596 lt_prog_compiler_pic
='-fPIC'
8597 lt_prog_compiler_static
='-static'
8599 # Lahey Fortran 8.1.
8601 lt_prog_compiler_wl
='-Wl,'
8602 lt_prog_compiler_pic
='--shared'
8603 lt_prog_compiler_static
='--static'
8605 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8606 # Portland Group compilers (*not* the Pentium gcc compiler,
8607 # which looks to be a dead project)
8608 lt_prog_compiler_wl
='-Wl,'
8609 lt_prog_compiler_pic
='-fpic'
8610 lt_prog_compiler_static
='-Bstatic'
8613 lt_prog_compiler_wl
='-Wl,'
8614 # All Alpha code is PIC.
8615 lt_prog_compiler_static
='-non_shared'
8617 xl
* | bgxl
* | bgf
* | mpixl
*)
8618 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8619 lt_prog_compiler_wl
='-Wl,'
8620 lt_prog_compiler_pic
='-qpic'
8621 lt_prog_compiler_static
='-qstaticlink'
8624 case `$CC -V 2>&1 | sed 5q` in
8625 *Sun\ F
* |
*Sun
*Fortran
*)
8626 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8627 lt_prog_compiler_pic
='-KPIC'
8628 lt_prog_compiler_static
='-Bstatic'
8629 lt_prog_compiler_wl
=''
8633 lt_prog_compiler_pic
='-KPIC'
8634 lt_prog_compiler_static
='-Bstatic'
8635 lt_prog_compiler_wl
='-Wl,'
8643 lt_prog_compiler_pic
='-KPIC'
8644 lt_prog_compiler_static
='-Bstatic'
8648 # QNX uses GNU C++, but need to define -shared option too, otherwise
8650 lt_prog_compiler_pic
='-fPIC -shared'
8653 osf3
* | osf4
* | osf5
*)
8654 lt_prog_compiler_wl
='-Wl,'
8655 # All OSF/1 code is PIC.
8656 lt_prog_compiler_static
='-non_shared'
8660 lt_prog_compiler_static
='-non_shared'
8664 lt_prog_compiler_pic
='-KPIC'
8665 lt_prog_compiler_static
='-Bstatic'
8666 case $cc_basename in
8668 lt_prog_compiler_wl
='-Qoption ld ';;
8670 lt_prog_compiler_wl
='-Wl,';;
8675 lt_prog_compiler_wl
='-Qoption ld '
8676 lt_prog_compiler_pic
='-PIC'
8677 lt_prog_compiler_static
='-Bstatic'
8680 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8681 lt_prog_compiler_wl
='-Wl,'
8682 lt_prog_compiler_pic
='-KPIC'
8683 lt_prog_compiler_static
='-Bstatic'
8687 if test -d /usr
/nec
;then
8688 lt_prog_compiler_pic
='-Kconform_pic'
8689 lt_prog_compiler_static
='-Bstatic'
8693 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8694 lt_prog_compiler_wl
='-Wl,'
8695 lt_prog_compiler_pic
='-KPIC'
8696 lt_prog_compiler_static
='-Bstatic'
8700 lt_prog_compiler_wl
='-Wl,'
8701 lt_prog_compiler_can_build_shared
=no
8705 lt_prog_compiler_pic
='-pic'
8706 lt_prog_compiler_static
='-Bstatic'
8710 lt_prog_compiler_can_build_shared
=no
8716 # For platforms which do not support PIC, -DPIC is meaningless:
8718 lt_prog_compiler_pic
=
8721 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8725 $as_echo "$lt_prog_compiler_pic" >&6; }
8733 # Check to make sure the PIC flag actually works.
8735 if test -n "$lt_prog_compiler_pic"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8737 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8738 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8739 $as_echo_n "(cached) " >&6
8741 lt_cv_prog_compiler_pic_works
=no
8742 ac_outfile
=conftest.
$ac_objext
8743 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8744 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8745 # Insert the option either (1) after the last *FLAGS variable, or
8746 # (2) before a word containing "conftest.", or (3) at the end.
8747 # Note that $ac_compile itself does not contain backslashes and begins
8748 # with a dollar sign (not a hyphen), so the echo should work correctly.
8749 # The option is referenced via a variable to avoid confusing sed.
8750 lt_compile
=`echo "$ac_compile" | $SED \
8751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8753 -e 's:$: $lt_compiler_flag:'`
8754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8755 (eval "$lt_compile" 2>conftest.err
)
8757 cat conftest.err
>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 if (exit $ac_status) && test -s "$ac_outfile"; then
8760 # The compiler can only warn and ignore the option if not recognized
8761 # So say no if there are warnings other than the usual output.
8762 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8763 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8764 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8765 lt_cv_prog_compiler_pic_works
=yes
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8772 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8774 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8775 case $lt_prog_compiler_pic in
8777 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8780 lt_prog_compiler_pic
=
8781 lt_prog_compiler_can_build_shared
=no
8792 # Check to make sure the static flag actually works.
8794 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8796 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8797 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8798 $as_echo_n "(cached) " >&6
8800 lt_cv_prog_compiler_static_works
=no
8801 save_LDFLAGS
="$LDFLAGS"
8802 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8803 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8804 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8805 # The linker can only warn and ignore the option if not recognized
8806 # So say no if there are warnings
8807 if test -s conftest.err
; then
8808 # Append any errors to the config.log.
8809 cat conftest.err
1>&5
8810 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8811 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8812 if diff conftest.exp conftest.er2
>/dev
/null
; then
8813 lt_cv_prog_compiler_static_works
=yes
8816 lt_cv_prog_compiler_static_works
=yes
8820 LDFLAGS
="$save_LDFLAGS"
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8824 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8826 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8829 lt_prog_compiler_static
=
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8840 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8841 $as_echo_n "(cached) " >&6
8843 lt_cv_prog_compiler_c_o
=no
8844 $RM -r conftest
2>/dev
/null
8848 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8850 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile
=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>out
/conftest.err
)
8862 cat out
/conftest.err
>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8870 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8871 lt_cv_prog_compiler_c_o
=yes
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8879 $RM out
/* && rmdir out
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8894 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8895 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8896 $as_echo_n "(cached) " >&6
8898 lt_cv_prog_compiler_c_o
=no
8899 $RM -r conftest
2>/dev
/null
8903 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8905 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8906 # Insert the option either (1) after the last *FLAGS variable, or
8907 # (2) before a word containing "conftest.", or (3) at the end.
8908 # Note that $ac_compile itself does not contain backslashes and begins
8909 # with a dollar sign (not a hyphen), so the echo should work correctly.
8910 lt_compile
=`echo "$ac_compile" | $SED \
8911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8913 -e 's:$: $lt_compiler_flag:'`
8914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8915 (eval "$lt_compile" 2>out
/conftest.err
)
8917 cat out
/conftest.err
>&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8921 # The compiler can only warn and ignore the option if not recognized
8922 # So say no if there are warnings
8923 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8924 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8925 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8926 lt_cv_prog_compiler_c_o
=yes
8931 # SGI C++ compiler will create directory out/ii_files/ for
8932 # template instantiation
8933 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8934 $RM out
/* && rmdir out
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8946 hard_links
="nottested"
8947 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8948 # do not overwrite the value of need_locks provided by the user
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8950 $as_echo_n "checking if we can lock with hard links... " >&6; }
8953 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8955 ln conftest.a conftest.b
2>&5 || hard_links
=no
8956 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8958 $as_echo "$hard_links" >&6; }
8959 if test "$hard_links" = no
; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8961 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8974 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8977 allow_undefined_flag
=
8978 always_export_symbols
=no
8980 archive_expsym_cmds
=
8981 compiler_needs_object
=no
8982 enable_shared_with_static_runtimes
=no
8983 export_dynamic_flag_spec
=
8984 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8985 hardcode_automatic
=no
8987 hardcode_direct_absolute
=no
8988 hardcode_libdir_flag_spec
=
8989 hardcode_libdir_flag_spec_ld
=
8990 hardcode_libdir_separator
=
8992 hardcode_shlibpath_var
=unsupported
8994 link_all_deplibs
=unknown
8997 old_archive_from_new_cmds
=
8998 old_archive_from_expsyms_cmds
=
8999 thread_safe_flag_spec
=
9000 whole_archive_flag_spec
=
9001 # include_expsyms should be a list of space-separated symbols to be *always*
9002 # included in the symbol list
9004 # exclude_expsyms can be an extended regexp of symbols to exclude
9005 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9006 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9007 # as well as any symbol that contains `d'.
9008 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9010 # platforms (ab)use it in PIC code, but their linkers get confused if
9011 # the symbol is explicitly referenced. Since portable code cannot
9012 # rely on this symbol name, it's probably fine to never include it in
9013 # preloaded symbol tables.
9014 # Exclude shared library initialization/finalization symbols.
9015 extract_expsyms_cmds
=
9018 cygwin
* | mingw
* | pw32
* | cegcc
*)
9019 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9020 # When not using gcc, we currently assume that we are using
9021 # Microsoft Visual C++.
9022 if test "$GCC" != yes; then
9027 # we just hope/assume this is gcc and not c89 (= MSVC++)
9037 # On some targets, GNU ld is compatible enough with the native linker
9038 # that we're better off using the native interface for both.
9039 lt_use_gnu_ld_interface
=no
9040 if test "$with_gnu_ld" = yes; then
9043 # The AIX port of GNU ld has always aspired to compatibility
9044 # with the native linker. However, as the warning in the GNU ld
9045 # block says, versions before 2.19.5* couldn't really create working
9046 # shared libraries, regardless of the interface used.
9047 case `$LD -v 2>&1` in
9048 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9049 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9050 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9052 lt_use_gnu_ld_interface
=yes
9057 lt_use_gnu_ld_interface
=yes
9062 if test "$lt_use_gnu_ld_interface" = yes; then
9063 # If archive_cmds runs LD, not CC, wlarc should be empty
9066 # Set some defaults for GNU ld with shared library support. These
9067 # are reset later if shared libraries are not supported. Putting them
9068 # here allows them to be overridden if necessary.
9069 runpath_var
=LD_RUN_PATH
9070 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9071 export_dynamic_flag_spec
='${wl}--export-dynamic'
9072 # ancient GNU ld didn't support --whole-archive et. al.
9073 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9074 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9076 whole_archive_flag_spec
=
9078 supports_anon_versioning
=no
9079 case `$LD -v 2>&1` in
9080 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9081 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9082 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9083 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9084 *\
2.11.
*) ;; # other 2.11 versions
9085 *) supports_anon_versioning
=yes ;;
9088 # See if GNU ld supports shared libraries.
9091 # On AIX/PPC, the GNU linker is very broken
9092 if test "$host_cpu" != ia64
; then
9096 *** Warning: the GNU linker, at least up to release 2.19, is reported
9097 *** to be unable to reliably create shared libraries on AIX.
9098 *** Therefore, libtool is disabling shared libraries support. If you
9099 *** really care for shared libraries, you may want to install binutils
9100 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9101 *** You will then need to restart the configuration process.
9110 # see comment about AmigaOS4 .so support
9111 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112 archive_expsym_cmds
=''
9115 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)'
9116 hardcode_libdir_flag_spec
='-L$libdir'
9117 hardcode_minus_L
=yes
9123 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9124 allow_undefined_flag
=unsupported
9125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9126 # support --undefined. This deserves some investigation. FIXME
9127 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9133 cygwin
* | mingw
* | pw32
* | cegcc
*)
9134 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9135 # as there is no search path for DLLs.
9136 hardcode_libdir_flag_spec
='-L$libdir'
9137 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9138 allow_undefined_flag
=unsupported
9139 always_export_symbols
=no
9140 enable_shared_with_static_runtimes
=yes
9141 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9143 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9144 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9145 # If the export-symbols file already is a .def file (1st line
9146 # is EXPORTS), use it as is; otherwise, prepend...
9147 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9148 cp $export_symbols $output_objdir/$soname.def;
9150 echo EXPORTS > $output_objdir/$soname.def;
9151 cat $export_symbols >> $output_objdir/$soname.def;
9153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9160 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161 link_all_deplibs
=yes
9166 hardcode_shlibpath_var
=no
9167 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9168 export_dynamic_flag_spec
='${wl}-E'
9169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9170 # Instead, shared libraries are loaded at an image base (0x10000000 by
9171 # default) and relocated if they conflict, which is a slow very memory
9172 # consuming and fragmenting process. To avoid this, we pick a random,
9173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9174 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9175 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9176 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'
9179 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9181 if test "$host_os" = linux-dietlibc
; then
9182 case $cc_basename in
9183 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9186 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9187 && test "$tmp_diet" = no
9189 tmp_addflag
=' $pic_flag'
9190 tmp_sharedflag
='-shared'
9191 case $cc_basename,$host_cpu in
9192 pgcc
*) # Portland Group C compiler
9193 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'
9194 tmp_addflag
=' $pic_flag'
9196 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9197 # Portland Group f77 and f90 compilers
9198 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'
9199 tmp_addflag
=' $pic_flag -Mnomain' ;;
9200 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9201 tmp_addflag
=' -i_dynamic' ;;
9202 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9203 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9204 ifc
* | ifort
*) # Intel Fortran compiler
9205 tmp_addflag
=' -nofor_main' ;;
9206 lf95
*) # Lahey Fortran 8.1
9207 whole_archive_flag_spec
=
9208 tmp_sharedflag
='--shared' ;;
9209 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9210 tmp_sharedflag
='-qmkshrobj'
9212 nvcc
*) # Cuda Compiler Driver 2.2
9213 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'
9214 compiler_needs_object
=yes
9217 case `$CC -V 2>&1 | sed 5q` in
9218 *Sun\ C
*) # Sun C 5.9
9219 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'
9220 compiler_needs_object
=yes
9221 tmp_sharedflag
='-G' ;;
9222 *Sun\ F
*) # Sun Fortran 8.3
9223 tmp_sharedflag
='-G' ;;
9225 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227 if test "x$supports_anon_versioning" = xyes
; then
9228 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9230 echo "local: *; };" >> $output_objdir/$libname.ver~
9231 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9234 case $cc_basename in
9235 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9236 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9237 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9238 hardcode_libdir_flag_spec
=
9239 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9240 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9241 if test "x$supports_anon_versioning" = xyes
; then
9242 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9244 echo "local: *; };" >> $output_objdir/$libname.ver~
9245 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9255 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9256 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9259 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9265 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9269 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9270 *** create shared libraries on Solaris systems. Therefore, libtool
9271 *** is disabling shared libraries support. We urge you to upgrade GNU
9272 *** binutils to release 2.9.1 or newer. Another option is to modify
9273 *** your PATH or compiler configuration so that the native linker is
9274 *** used, and then restart.
9277 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9278 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9285 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9286 case `$LD -v 2>&1` in
9287 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9291 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9292 *** reliably create shared libraries on SCO systems. Therefore, libtool
9293 *** is disabling shared libraries support. We urge you to upgrade GNU
9294 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9295 *** your PATH or compiler configuration so that the native linker is
9296 *** used, and then restart.
9301 # For security reasons, it is highly recommended that you always
9302 # use absolute paths for naming shared libraries, and exclude the
9303 # DT_RUNPATH tag from executables and libraries. But doing so
9304 # requires that you compile everything twice, which is a pain.
9305 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9306 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9307 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9317 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_shlibpath_var
=no
9324 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9325 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9333 if test "$ld_shlibs" = no
; then
9335 hardcode_libdir_flag_spec
=
9336 export_dynamic_flag_spec
=
9337 whole_archive_flag_spec
=
9340 # PORTME fill in a description of your system's linker (not GNU ld)
9343 allow_undefined_flag
=unsupported
9344 always_export_symbols
=yes
9345 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'
9346 # Note: this linker hardcodes the directories in LIBPATH if there
9347 # are no directories specified by -L.
9348 hardcode_minus_L
=yes
9349 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9350 # Neither direct hardcoding nor static linking is supported with a
9352 hardcode_direct
=unsupported
9357 if test "$host_cpu" = ia64
; then
9358 # On IA64, the linker does run time linking by default, so we don't
9359 # have to do anything special.
9360 aix_use_runtimelinking
=no
9361 exp_sym_flag
='-Bexport'
9364 # If we're using GNU nm, then we don't want the "-C" option.
9365 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9366 # Also, AIX nm treats weak defined symbols like other global
9367 # defined symbols, whereas GNU nm marks them as "W".
9368 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9369 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'
9371 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'
9373 aix_use_runtimelinking
=no
9375 # Test if we are trying to use run time linking or normal
9376 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9377 # need to do runtime linking.
9378 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9379 for ld_flag
in $LDFLAGS; do
9380 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9381 aix_use_runtimelinking
=yes
9388 exp_sym_flag
='-bexport'
9389 no_entry_flag
='-bnoentry'
9392 # When large executables or shared objects are built, AIX ld can
9393 # have problems creating the table of contents. If linking a library
9394 # or program results in "error TOC overflow" add -mminimal-toc to
9395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9400 hardcode_direct_absolute
=yes
9401 hardcode_libdir_separator
=':'
9402 link_all_deplibs
=yes
9403 file_list_spec
='${wl}-f,'
9405 if test "$GCC" = yes; then
9406 case $host_os in aix4.
[012]|aix4.
[012].
*)
9407 # We only want to do this on AIX 4.2 and lower, the check
9408 # below for broken collect2 doesn't work under 4.3+
9409 collect2name
=`${CC} -print-prog-name=collect2`
9410 if test -f "$collect2name" &&
9411 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9413 # We have reworked collect2
9416 # We have old collect2
9417 hardcode_direct
=unsupported
9418 # It fails to find uninstalled libraries when the uninstalled
9419 # path is not listed in the libpath. Setting hardcode_minus_L
9420 # to unsupported forces relinking
9421 hardcode_minus_L
=yes
9422 hardcode_libdir_flag_spec
='-L$libdir'
9423 hardcode_libdir_separator
=
9427 shared_flag
='-shared'
9428 if test "$aix_use_runtimelinking" = yes; then
9429 shared_flag
="$shared_flag "'${wl}-G'
9433 if test "$host_cpu" = ia64
; then
9434 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9435 # chokes on -Wl,-G. The following line is correct:
9438 if test "$aix_use_runtimelinking" = yes; then
9439 shared_flag
='${wl}-G'
9441 shared_flag
='${wl}-bM:SRE'
9446 export_dynamic_flag_spec
='${wl}-bexpall'
9447 # It seems that -bexpall does not export symbols beginning with
9448 # underscore (_), so it is better to generate a list of symbols to export.
9449 always_export_symbols
=yes
9450 if test "$aix_use_runtimelinking" = yes; then
9451 # Warning - without using the other runtime loading flags (-brtl),
9452 # -berok will link without error, but may produce a broken library.
9453 allow_undefined_flag
='-berok'
9454 # Determine the default libpath from the value encoded in an
9456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9467 if ac_fn_c_try_link
"$LINENO"; then :
9469 lt_aix_libpath_sed
='
9470 /Import File Strings/,/^$/ {
9476 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9477 # Check for a 64-bit object if we didn't find anything.
9478 if test -z "$aix_libpath"; then
9479 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9482 rm -f core conftest.err conftest.
$ac_objext \
9483 conftest
$ac_exeext conftest.
$ac_ext
9484 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9486 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9487 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"
9489 if test "$host_cpu" = ia64
; then
9490 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9491 allow_undefined_flag
="-z nodefs"
9492 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"
9494 # Determine the default libpath from the value encoded in an
9496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9507 if ac_fn_c_try_link
"$LINENO"; then :
9509 lt_aix_libpath_sed
='
9510 /Import File Strings/,/^$/ {
9516 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9517 # Check for a 64-bit object if we didn't find anything.
9518 if test -z "$aix_libpath"; then
9519 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9522 rm -f core conftest.err conftest.
$ac_objext \
9523 conftest
$ac_exeext conftest.
$ac_ext
9524 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9526 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9527 # Warning - without using the other run time loading flags,
9528 # -berok will link without error, but may produce a broken library.
9529 no_undefined_flag
=' ${wl}-bernotok'
9530 allow_undefined_flag
=' ${wl}-berok'
9531 if test "$with_gnu_ld" = yes; then
9532 # We only use this code for GNU lds that support --whole-archive.
9533 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9535 # Exported symbols can be pulled into shared objects from archives
9536 whole_archive_flag_spec
='$convenience'
9538 archive_cmds_need_lc
=yes
9539 # This is similar to how AIX traditionally builds its shared libraries.
9540 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'
9548 # see comment about AmigaOS4 .so support
9549 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 archive_expsym_cmds
=''
9553 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)'
9554 hardcode_libdir_flag_spec
='-L$libdir'
9555 hardcode_minus_L
=yes
9561 export_dynamic_flag_spec
=-rdynamic
9564 cygwin
* | mingw
* | pw32
* | cegcc
*)
9565 # When not using gcc, we currently assume that we are using
9566 # Microsoft Visual C++.
9567 # hardcode_libdir_flag_spec is actually meaningless, as there is
9568 # no search path for DLLs.
9569 hardcode_libdir_flag_spec
=' '
9570 allow_undefined_flag
=unsupported
9571 # Tell ltmain to make .lib files, not .a files.
9573 # Tell ltmain to make .dll files, not .so files.
9575 # FIXME: Setting linknames here is a bad hack.
9576 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9577 # The linker will automatically build a .lib file if we build a DLL.
9578 old_archive_from_new_cmds
='true'
9579 # FIXME: Should let the user specify the lib program.
9580 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9581 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9582 enable_shared_with_static_runtimes
=yes
9585 darwin
* | rhapsody
*)
9588 archive_cmds_need_lc
=no
9590 hardcode_automatic
=yes
9591 hardcode_shlibpath_var
=unsupported
9592 if test "$lt_cv_ld_force_load" = "yes"; then
9593 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\"`'
9595 whole_archive_flag_spec
=''
9597 link_all_deplibs
=yes
9598 allow_undefined_flag
="$_lt_dar_allow_undefined"
9599 case $cc_basename in
9600 ifort
*) _lt_dar_can_shared
=yes ;;
9601 *) _lt_dar_can_shared
=$GCC ;;
9603 if test "$_lt_dar_can_shared" = "yes"; then
9604 output_verbose_link_cmd
=func_echo_all
9605 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9606 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9607 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}"
9608 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}"
9617 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618 hardcode_libdir_flag_spec
='-L$libdir'
9619 hardcode_shlibpath_var
=no
9622 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9623 # support. Future versions do this automatically, but an explicit c++rt0.o
9624 # does not break anything, and helps significantly (at the cost of a little
9627 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9628 hardcode_libdir_flag_spec
='-R$libdir'
9630 hardcode_shlibpath_var
=no
9633 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9635 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_minus_L
=yes
9638 hardcode_shlibpath_var
=no
9641 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9642 freebsd
* | dragonfly
*)
9643 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9644 hardcode_libdir_flag_spec
='-R$libdir'
9646 hardcode_shlibpath_var
=no
9650 if test "$GCC" = yes; then
9651 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'
9653 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'
9655 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9656 hardcode_libdir_separator
=:
9659 # hardcode_minus_L: Not really in the search PATH,
9660 # but as the default location of the library.
9661 hardcode_minus_L
=yes
9662 export_dynamic_flag_spec
='${wl}-E'
9666 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9667 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9669 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9671 if test "$with_gnu_ld" = no
; then
9672 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9673 hardcode_libdir_flag_spec_ld
='+b $libdir'
9674 hardcode_libdir_separator
=:
9676 hardcode_direct_absolute
=yes
9677 export_dynamic_flag_spec
='${wl}-E'
9678 # hardcode_minus_L: Not really in the search PATH,
9679 # but as the default location of the library.
9680 hardcode_minus_L
=yes
9685 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9688 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9691 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9707 # Older versions of the 11.00 compiler do not understand -b yet
9708 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9710 $as_echo_n "checking if $CC understands -b... " >&6; }
9711 if ${lt_cv_prog_compiler__b+:} false
; then :
9712 $as_echo_n "(cached) " >&6
9714 lt_cv_prog_compiler__b
=no
9715 save_LDFLAGS
="$LDFLAGS"
9716 LDFLAGS
="$LDFLAGS -b"
9717 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9718 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9719 # The linker can only warn and ignore the option if not recognized
9720 # So say no if there are warnings
9721 if test -s conftest.err
; then
9722 # Append any errors to the config.log.
9723 cat conftest.err
1>&5
9724 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9725 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9726 if diff conftest.exp conftest.er2
>/dev
/null
; then
9727 lt_cv_prog_compiler__b
=yes
9730 lt_cv_prog_compiler__b
=yes
9734 LDFLAGS
="$save_LDFLAGS"
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9738 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9740 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9741 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9749 if test "$with_gnu_ld" = no
; then
9750 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9751 hardcode_libdir_separator
=:
9756 hardcode_shlibpath_var
=no
9760 hardcode_direct_absolute
=yes
9761 export_dynamic_flag_spec
='${wl}-E'
9763 # hardcode_minus_L: Not really in the search PATH,
9764 # but as the default location of the library.
9765 hardcode_minus_L
=yes
9771 irix5
* | irix6
* | nonstopux
*)
9772 if test "$GCC" = yes; then
9773 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'
9774 # Try to use the -exported_symbol ld option, if it does not
9775 # work, assume that -exports_file does not work either and
9776 # implicitly export all symbols.
9777 save_LDFLAGS
="$LDFLAGS"
9778 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9783 if ac_fn_c_try_link
"$LINENO"; then :
9784 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'
9787 rm -f core conftest.err conftest.
$ac_objext \
9788 conftest
$ac_exeext conftest.
$ac_ext
9789 LDFLAGS
="$save_LDFLAGS"
9791 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'
9792 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'
9794 archive_cmds_need_lc
='no'
9795 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9796 hardcode_libdir_separator
=:
9798 link_all_deplibs
=yes
9802 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9803 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9805 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9807 hardcode_libdir_flag_spec
='-R$libdir'
9809 hardcode_shlibpath_var
=no
9813 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9816 hardcode_libdir_separator
=:
9817 hardcode_shlibpath_var
=no
9824 if test -f /usr
/libexec
/ld.so
; then
9826 hardcode_shlibpath_var
=no
9827 hardcode_direct_absolute
=yes
9828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9829 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9831 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9832 export_dynamic_flag_spec
='${wl}-E'
9835 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9836 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9837 hardcode_libdir_flag_spec
='-R$libdir'
9840 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9841 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9851 hardcode_libdir_flag_spec
='-L$libdir'
9852 hardcode_minus_L
=yes
9853 allow_undefined_flag
=unsupported
9854 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'
9855 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9859 if test "$GCC" = yes; then
9860 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9861 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'
9863 allow_undefined_flag
=' -expect_unresolved \*'
9864 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'
9866 archive_cmds_need_lc
='no'
9867 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9868 hardcode_libdir_separator
=:
9871 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9872 if test "$GCC" = yes; then
9873 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9874 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'
9875 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9877 allow_undefined_flag
=' -expect_unresolved \*'
9878 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'
9879 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~
9880 $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'
9882 # Both c and cxx compiler support -rpath directly
9883 hardcode_libdir_flag_spec
='-rpath $libdir'
9885 archive_cmds_need_lc
='no'
9886 hardcode_libdir_separator
=:
9890 no_undefined_flag
=' -z defs'
9891 if test "$GCC" = yes; then
9893 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9894 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9895 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9897 case `$CC -V 2>&1` in
9900 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9902 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9906 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9907 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9908 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9912 hardcode_libdir_flag_spec
='-R$libdir'
9913 hardcode_shlibpath_var
=no
9915 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9917 # The compiler driver will combine and reorder linker options,
9918 # but understands `-z linker_flag'. GCC discards it without `$wl',
9919 # but is careful enough not to reorder.
9920 # Supported since Solaris 2.6 (maybe 2.5.1?)
9921 if test "$GCC" = yes; then
9922 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9924 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9928 link_all_deplibs
=yes
9932 if test "x$host_vendor" = xsequent
; then
9933 # Use $CC to link under sequent, because it throws in some extra .o
9934 # files that make .init and .fini sections work.
9935 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9937 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_libdir_flag_spec
='-L$libdir'
9941 hardcode_minus_L
=yes
9942 hardcode_shlibpath_var
=no
9946 case $host_vendor in
9948 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9949 hardcode_direct
=yes # is this really true???
9952 ## LD is ld it makes a PLAMLIB
9953 ## CC just makes a GrossModule.
9954 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9955 reload_cmds
='$CC -r -o $output$reload_objs'
9959 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9963 runpath_var
='LD_RUN_PATH'
9964 hardcode_shlibpath_var
=no
9968 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969 hardcode_shlibpath_var
=no
9970 export_dynamic_flag_spec
='-Bexport'
9974 if test -d /usr
/nec
; then
9975 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_shlibpath_var
=no
9977 runpath_var
=LD_RUN_PATH
9978 hardcode_runpath_var
=yes
9983 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9984 no_undefined_flag
='${wl}-z,text'
9985 archive_cmds_need_lc
=no
9986 hardcode_shlibpath_var
=no
9987 runpath_var
='LD_RUN_PATH'
9989 if test "$GCC" = yes; then
9990 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 sysv5
* | sco3.2v5
* | sco5v6
*)
9999 # Note: We can NOT use -z defs as we might desire, because we do not
10000 # link with -lc, and that would cause any symbols used from libc to
10001 # always be unresolved, which means just about no library would
10002 # ever link correctly. If we're not using GNU ld we use -z text
10003 # though, which does catch some bad symbols but isn't as heavy-handed
10005 no_undefined_flag
='${wl}-z,text'
10006 allow_undefined_flag
='${wl}-z,nodefs'
10007 archive_cmds_need_lc
=no
10008 hardcode_shlibpath_var
=no
10009 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10010 hardcode_libdir_separator
=':'
10011 link_all_deplibs
=yes
10012 export_dynamic_flag_spec
='${wl}-Bexport'
10013 runpath_var
='LD_RUN_PATH'
10015 if test "$GCC" = yes; then
10016 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026 hardcode_libdir_flag_spec
='-L$libdir'
10027 hardcode_shlibpath_var
=no
10035 if test x
$host_vendor = xsni
; then
10037 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10038 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10045 $as_echo "$ld_shlibs" >&6; }
10046 test "$ld_shlibs" = no
&& can_build_shared
=no
10048 with_gnu_ld
=$with_gnu_ld
10065 # Do we need to explicitly link libc?
10067 case "x$archive_cmds_need_lc" in
10069 # Assume -lc should be added
10070 archive_cmds_need_lc
=yes
10072 if test "$enable_shared" = yes && test "$GCC" = yes; then
10073 case $archive_cmds in
10075 # FIXME: we may have to deal with multi-command sequences.
10078 # Test whether the compiler implicitly links with -lc since on some
10079 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10080 # to ld, don't add -lc before -lgcc.
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10082 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10083 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10084 $as_echo_n "(cached) " >&6
10087 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10090 (eval $ac_compile) 2>&5
10092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10093 test $ac_status = 0; } 2>conftest.err
; then
10096 libobjs
=conftest.
$ac_objext
10098 wl
=$lt_prog_compiler_wl
10099 pic_flag
=$lt_prog_compiler_pic
10105 lt_save_allow_undefined_flag
=$allow_undefined_flag
10106 allow_undefined_flag
=
10107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10108 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10111 test $ac_status = 0; }
10113 lt_cv_archive_cmds_need_lc
=no
10115 lt_cv_archive_cmds_need_lc
=yes
10117 allow_undefined_flag
=$lt_save_allow_undefined_flag
10119 cat conftest.err
1>&5
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10125 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10126 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10290 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10292 if test "$GCC" = yes; then
10294 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10295 *) lt_awk_arg
="/^libraries:/" ;;
10298 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10299 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10301 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10302 case $lt_search_path_spec in
10304 # if the path contains ";" then we assume it to be the separator
10305 # otherwise default to the standard path separator (i.e. ":") - it is
10306 # assumed that no part of a normal pathname contains ";" but that should
10307 # okay in the real world where ";" in dirpaths is itself problematic.
10308 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10311 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10314 # Ok, now we have the path, separated by spaces, we can step through it
10315 # and add multilib dir if necessary.
10316 lt_tmp_lt_search_path_spec
=
10317 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10318 for lt_sys_path
in $lt_search_path_spec; do
10319 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10320 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10322 test -d "$lt_sys_path" && \
10323 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10326 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10327 BEGIN {RS=" "; FS="/|\n";} {
10330 for (lt_i = NF; lt_i > 0; lt_i--) {
10331 if ($lt_i != "" && $lt_i != ".") {
10332 if ($lt_i == "..") {
10335 if (lt_count == 0) {
10336 lt_foo="/" $lt_i lt_foo;
10343 if (lt_foo != "") { lt_freq[lt_foo]++; }
10344 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10346 # AWK program above erroneously prepends '/' to C:/dos/paths
10349 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10350 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10352 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10354 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10356 library_names_spec
=
10357 libname_spec
='lib$name'
10361 postuninstall_cmds
=
10365 shlibpath_overrides_runpath
=unknown
10367 dynamic_linker
="$host_os ld.so"
10368 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10369 need_lib_prefix
=unknown
10370 hardcode_into_libs
=no
10372 # when you set need_version to no, make sure it does not cause -set_version
10373 # flags to be left without arguments
10374 need_version
=unknown
10379 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10380 shlibpath_var
=LIBPATH
10382 # AIX 3 has no versioning support, so we append a major version to the name.
10383 soname_spec
='${libname}${release}${shared_ext}$major'
10390 hardcode_into_libs
=yes
10391 if test "$host_cpu" = ia64
; then
10392 # AIX 5 supports IA64
10393 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10394 shlibpath_var
=LD_LIBRARY_PATH
10396 # With GCC up to 2.95.x, collect2 would create an import file
10397 # for dependence libraries. The import file would start with
10398 # the line `#! .'. This would cause the generated library to
10399 # depend on `.', always an invalid library. This was fixed in
10400 # development snapshots of GCC prior to 3.0.
10402 aix4 | aix4.
[01] | aix4.
[01].
*)
10403 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10405 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10408 can_build_shared
=no
10412 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10413 # soname into executable. Probably we can add versioning support to
10414 # collect2, so additional links can be useful in future.
10415 if test "$aix_use_runtimelinking" = yes; then
10416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10417 # instead of lib<name>.a to let people know that these are not
10418 # typical AIX shared libraries.
10419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 # We preserve .a as extension for shared libraries through AIX4.2
10422 # and later when we are not doing run time linking.
10423 library_names_spec
='${libname}${release}.a $libname.a'
10424 soname_spec
='${libname}${release}${shared_ext}$major'
10426 shlibpath_var
=LIBPATH
10433 # Since July 2007 AmigaOS4 officially supports .so libraries.
10434 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 library_names_spec
='$libname.ixlibrary $libname.a'
10439 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10440 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'
10446 library_names_spec
='${libname}${shared_ext}'
10447 dynamic_linker
="$host_os ld.so"
10448 shlibpath_var
=LIBRARY_PATH
10454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec
='${libname}${release}${shared_ext}$major'
10456 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10457 shlibpath_var
=LD_LIBRARY_PATH
10458 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10459 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10460 # the default ld.so.conf also contains /usr/contrib/lib and
10461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10462 # libtool to hard-code these into programs
10465 cygwin
* | mingw
* | pw32
* | cegcc
*)
10466 version_type
=windows
10471 case $GCC,$host_os in
10472 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10473 library_names_spec
='$libname.dll.a'
10474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10475 postinstall_cmds
='base_file=`basename \${file}`~
10476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10477 dldir=$destdir/`dirname \$dlpath`~
10478 test -d \$dldir || mkdir -p \$dldir~
10479 $install_prog $dir/$dlname \$dldir/$dlname~
10480 chmod a+x \$dldir/$dlname~
10481 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10482 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10484 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10485 dlpath=$dir/\$dldll~
10487 shlibpath_overrides_runpath
=yes
10491 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10492 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10494 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10497 # MinGW DLLs use traditional 'lib' prefix
10498 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10501 # pw32 DLLs use 'pw' prefix rather than 'lib'
10502 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10508 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10511 dynamic_linker
='Win32 ld.exe'
10512 # FIXME: first we should search . and the directory the executable is in
10516 darwin
* | rhapsody
*)
10517 dynamic_linker
="$host_os dyld"
10518 version_type
=darwin
10521 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10522 soname_spec
='${libname}${release}${major}$shared_ext'
10523 shlibpath_overrides_runpath
=yes
10524 shlibpath_var
=DYLD_LIBRARY_PATH
10525 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10527 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10528 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10536 soname_spec
='${libname}${release}${shared_ext}$major'
10537 shlibpath_var
=LD_LIBRARY_PATH
10540 freebsd
* | dragonfly
*)
10541 # DragonFly does not have aout. When/if they implement a new
10542 # versioning mechanism, adjust this.
10543 if test -x /usr
/bin
/objformat
; then
10544 objformat
=`/usr/bin/objformat`
10547 freebsd
[23].
*) objformat
=aout
;;
10548 *) objformat
=elf
;;
10551 version_type
=freebsd-
$objformat
10552 case $version_type in
10554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10559 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10563 shlibpath_var
=LD_LIBRARY_PATH
10566 shlibpath_overrides_runpath
=yes
10568 freebsd3.
[01]* | freebsdelf3.
[01]*)
10569 shlibpath_overrides_runpath
=yes
10570 hardcode_into_libs
=yes
10572 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10573 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10574 shlibpath_overrides_runpath
=no
10575 hardcode_into_libs
=yes
10577 *) # from 4.6 on, and DragonFly
10578 shlibpath_overrides_runpath
=yes
10579 hardcode_into_libs
=yes
10588 dynamic_linker
="$host_os runtime_loader"
10589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10590 soname_spec
='${libname}${release}${shared_ext}$major'
10591 shlibpath_var
=LIBRARY_PATH
10592 shlibpath_overrides_runpath
=yes
10593 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10594 hardcode_into_libs
=yes
10597 hpux9
* | hpux10
* | hpux11
*)
10598 # Give a soname corresponding to the major version so that dld.sl refuses to
10599 # link against other versions.
10606 hardcode_into_libs
=yes
10607 dynamic_linker
="$host_os dld.so"
10608 shlibpath_var
=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec
='${libname}${release}${shared_ext}$major'
10612 if test "X$HPUX_IA64_MODE" = X32
; then
10613 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10615 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10617 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10621 hardcode_into_libs
=yes
10622 dynamic_linker
="$host_os dld.sl"
10623 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10624 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 soname_spec
='${libname}${release}${shared_ext}$major'
10627 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10628 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10632 dynamic_linker
="$host_os dld.sl"
10633 shlibpath_var
=SHLIB_PATH
10634 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec
='${libname}${release}${shared_ext}$major'
10639 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10640 postinstall_cmds
='chmod 555 $lib'
10641 # or fails outright, so override atomically:
10642 install_override_mode
=555
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'
10651 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10652 shlibpath_var
=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath
=no
10654 hardcode_into_libs
=yes
10657 irix5
* | irix6
* | nonstopux
*)
10659 nonstopux
*) version_type
=nonstopux
;;
10661 if test "$lt_cv_prog_gnu_ld" = yes; then
10669 soname_spec
='${libname}${release}${shared_ext}$major'
10670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10672 irix5
* | nonstopux
*)
10673 libsuff
= shlibsuff
=
10676 case $LD in # libtool.m4 will add one of these switches to LD
10677 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10678 libsuff
= shlibsuff
= libmagic
=32-bit;;
10679 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10680 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10681 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10682 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10683 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10687 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10688 shlibpath_overrides_runpath
=no
10689 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10690 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10691 hardcode_into_libs
=yes
10694 # No shared lib support for Linux oldld, aout, or coff.
10695 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10699 # This must be Linux ELF.
10701 # uclinux* changes (here and below) have been submitted to the libtool
10702 # project, but have not yet been accepted: they are GCC-local changes
10703 # for the time being. (See
10704 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10705 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10709 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710 soname_spec
='${libname}${release}${shared_ext}$major'
10711 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10712 shlibpath_var
=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath
=no
10715 # Some binutils ld are patched to set DT_RUNPATH
10716 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10717 $as_echo_n "(cached) " >&6
10719 lt_cv_shlibpath_overrides_runpath
=no
10720 save_LDFLAGS
=$LDFLAGS
10721 save_libdir
=$libdir
10722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10735 if ac_fn_c_try_link
"$LINENO"; then :
10736 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10737 lt_cv_shlibpath_overrides_runpath
=yes
10740 rm -f core conftest.err conftest.
$ac_objext \
10741 conftest
$ac_exeext conftest.
$ac_ext
10742 LDFLAGS
=$save_LDFLAGS
10743 libdir
=$save_libdir
10747 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10749 # This implies no fast_install, which is unacceptable.
10750 # Some rework will be needed to allow for fast_install
10751 # before this can be enabled.
10752 hardcode_into_libs
=yes
10754 # Append ld.so.conf contents to the search path
10755 if test -f /etc
/ld.so.conf
; then
10756 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' ' '`
10757 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10760 # We used to test for /lib/ld.so.1 and disable shared libraries on
10761 # powerpc, because MkLinux only supported shared libraries with the
10762 # GNU dynamic linker. Since this was broken with cross compilers,
10763 # most powerpc-linux boxes support dynamic linking these days and
10764 # people can always --disable-shared, the test was removed, and we
10765 # assume the GNU/Linux dynamic linker is in use.
10766 dynamic_linker
='GNU/Linux ld.so'
10773 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10774 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10775 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10776 dynamic_linker
='NetBSD (a.out) ld.so'
10778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10779 soname_spec
='${libname}${release}${shared_ext}$major'
10780 dynamic_linker
='NetBSD ld.elf_so'
10782 shlibpath_var
=LD_LIBRARY_PATH
10783 shlibpath_overrides_runpath
=yes
10784 hardcode_into_libs
=yes
10789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 shlibpath_var
=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath
=yes
10798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec
='${libname}${release}${shared_ext}$major'
10800 shlibpath_var
=LD_LIBRARY_PATH
10801 shlibpath_overrides_runpath
=no
10802 hardcode_into_libs
=yes
10803 dynamic_linker
='ldqnx.so'
10808 sys_lib_dlsearch_path_spec
="/usr/lib"
10810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10812 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10813 *) need_version
=no
;;
10815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10816 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10817 shlibpath_var
=LD_LIBRARY_PATH
10818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10820 openbsd2.
[89] | openbsd2.
[89].
*)
10821 shlibpath_overrides_runpath
=no
10824 shlibpath_overrides_runpath
=yes
10828 shlibpath_overrides_runpath
=yes
10833 libname_spec
='$name'
10836 library_names_spec
='$libname${shared_ext} $libname.a'
10837 dynamic_linker
='OS/2 ld.exe'
10838 shlibpath_var
=LIBPATH
10841 osf3
* | osf4
* | osf5
*)
10845 soname_spec
='${libname}${release}${shared_ext}$major'
10846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 shlibpath_var
=LD_LIBRARY_PATH
10848 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10849 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 soname_spec
='${libname}${release}${shared_ext}$major'
10862 shlibpath_var
=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath
=yes
10864 hardcode_into_libs
=yes
10865 # ldd complains unless libraries are executable
10866 postinstall_cmds
='chmod +x $lib'
10871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10872 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10873 shlibpath_var
=LD_LIBRARY_PATH
10874 shlibpath_overrides_runpath
=yes
10875 if test "$with_gnu_ld" = yes; then
10883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 soname_spec
='${libname}${release}${shared_ext}$major'
10885 shlibpath_var
=LD_LIBRARY_PATH
10886 case $host_vendor in
10888 shlibpath_overrides_runpath
=no
10890 runpath_var
=LD_RUN_PATH
10898 shlibpath_overrides_runpath
=no
10899 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10905 if test -d /usr
/nec
;then
10907 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10908 soname_spec
='$libname${shared_ext}.$major'
10909 shlibpath_var
=LD_LIBRARY_PATH
10913 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10914 version_type
=freebsd-elf
10917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10918 soname_spec
='${libname}${release}${shared_ext}$major'
10919 shlibpath_var
=LD_LIBRARY_PATH
10920 shlibpath_overrides_runpath
=yes
10921 hardcode_into_libs
=yes
10922 if test "$with_gnu_ld" = yes; then
10923 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10925 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10928 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10932 sys_lib_dlsearch_path_spec
='/usr/lib'
10936 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 shlibpath_var
=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath
=no
10943 hardcode_into_libs
=yes
10948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 soname_spec
='${libname}${release}${shared_ext}$major'
10950 shlibpath_var
=LD_LIBRARY_PATH
10953 # Shared libraries for VwWorks, >= 7 only at this stage
10954 # and (fpic) still incompatible with "large" code models
10955 # in a few configurations. Only for RTP mode in any case,
10956 # and upon explicit request at configure time.
10959 case ${with_multisubdir}-${enable_shared} in
10966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec
='${libname}${release}${shared_ext}$major'
10968 dynamic_linker
="$host_os module_loader"
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10977 $as_echo "$dynamic_linker" >&6; }
10978 test "$dynamic_linker" = no
&& can_build_shared
=no
10980 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10981 if test "$GCC" = yes; then
10982 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10985 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10986 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10988 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10989 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11084 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11086 if test -n "$hardcode_libdir_flag_spec" ||
11087 test -n "$runpath_var" ||
11088 test "X$hardcode_automatic" = "Xyes" ; then
11090 # We can hardcode non-existent directories.
11091 if test "$hardcode_direct" != no
&&
11092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11093 # have to relink, otherwise we might link with an installed library
11094 # when we should be linking with a yet-to-be-installed one
11095 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11096 test "$hardcode_minus_L" != no
; then
11097 # Linking always hardcodes the temporary library directory.
11098 hardcode_action
=relink
11100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11101 hardcode_action
=immediate
11104 # We cannot hardcode anything, or else we can only hardcode existing
11106 hardcode_action
=unsupported
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11109 $as_echo "$hardcode_action" >&6; }
11111 if test "$hardcode_action" = relink ||
11112 test "$inherit_rpath" = yes; then
11113 # Fast installation is not supported
11114 enable_fast_install
=no
11115 elif test "$shlibpath_overrides_runpath" = yes ||
11116 test "$enable_shared" = no
; then
11117 # Fast installation is not necessary
11118 enable_fast_install
=needless
11126 if test "x$enable_dlopen" != xyes
; then
11127 enable_dlopen
=unknown
11128 enable_dlopen_self
=unknown
11129 enable_dlopen_self_static
=unknown
11136 lt_cv_dlopen
="load_add_on"
11138 lt_cv_dlopen_self
=yes
11141 mingw
* | pw32
* | cegcc
*)
11142 lt_cv_dlopen
="LoadLibrary"
11147 lt_cv_dlopen
="dlopen"
11152 # if libdl is installed we need to link against it
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11154 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11155 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11156 $as_echo_n "(cached) " >&6
11158 ac_check_lib_save_LIBS
=$LIBS
11160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11163 /* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
11165 builtin and then its argument prototype would still apply. */
11178 if ac_fn_c_try_link
"$LINENO"; then :
11179 ac_cv_lib_dl_dlopen
=yes
11181 ac_cv_lib_dl_dlopen
=no
11183 rm -f core conftest.err conftest.
$ac_objext \
11184 conftest
$ac_exeext conftest.
$ac_ext
11185 LIBS
=$ac_check_lib_save_LIBS
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11188 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11189 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11190 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11193 lt_cv_dlopen
="dyld"
11195 lt_cv_dlopen_self
=yes
11202 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11203 if test "x$ac_cv_func_shl_load" = xyes
; then :
11204 lt_cv_dlopen
="shl_load"
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11207 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11208 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11209 $as_echo_n "(cached) " >&6
11211 ac_check_lib_save_LIBS
=$LIBS
11213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11216 /* Override any GCC internal prototype to avoid an error.
11217 Use char because int might match the return type of a GCC
11218 builtin and then its argument prototype would still apply. */
11226 return shl_load ();
11231 if ac_fn_c_try_link
"$LINENO"; then :
11232 ac_cv_lib_dld_shl_load
=yes
11234 ac_cv_lib_dld_shl_load
=no
11236 rm -f core conftest.err conftest.
$ac_objext \
11237 conftest
$ac_exeext conftest.
$ac_ext
11238 LIBS
=$ac_check_lib_save_LIBS
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11241 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11242 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11243 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11245 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11246 if test "x$ac_cv_func_dlopen" = xyes
; then :
11247 lt_cv_dlopen
="dlopen"
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11250 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11251 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11252 $as_echo_n "(cached) " >&6
11254 ac_check_lib_save_LIBS
=$LIBS
11256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11259 /* Override any GCC internal prototype to avoid an error.
11260 Use char because int might match the return type of a GCC
11261 builtin and then its argument prototype would still apply. */
11274 if ac_fn_c_try_link
"$LINENO"; then :
11275 ac_cv_lib_dl_dlopen
=yes
11277 ac_cv_lib_dl_dlopen
=no
11279 rm -f core conftest.err conftest.
$ac_objext \
11280 conftest
$ac_exeext conftest.
$ac_ext
11281 LIBS
=$ac_check_lib_save_LIBS
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11285 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11286 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11289 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11290 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11291 $as_echo_n "(cached) " >&6
11293 ac_check_lib_save_LIBS
=$LIBS
11294 LIBS
="-lsvld $LIBS"
11295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11298 /* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11313 if ac_fn_c_try_link
"$LINENO"; then :
11314 ac_cv_lib_svld_dlopen
=yes
11316 ac_cv_lib_svld_dlopen
=no
11318 rm -f core conftest.err conftest.
$ac_objext \
11319 conftest
$ac_exeext conftest.
$ac_ext
11320 LIBS
=$ac_check_lib_save_LIBS
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11323 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11324 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11325 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11328 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11329 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11330 $as_echo_n "(cached) " >&6
11332 ac_check_lib_save_LIBS
=$LIBS
11334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11337 /* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11347 return dld_link ();
11352 if ac_fn_c_try_link
"$LINENO"; then :
11353 ac_cv_lib_dld_dld_link
=yes
11355 ac_cv_lib_dld_dld_link
=no
11357 rm -f core conftest.err conftest.
$ac_objext \
11358 conftest
$ac_exeext conftest.
$ac_ext
11359 LIBS
=$ac_check_lib_save_LIBS
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11362 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11363 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11364 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11385 if test "x$lt_cv_dlopen" != xno
; then
11391 case $lt_cv_dlopen in
11393 save_CPPFLAGS
="$CPPFLAGS"
11394 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11396 save_LDFLAGS
="$LDFLAGS"
11397 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11400 LIBS
="$lt_cv_dlopen_libs $LIBS"
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11403 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11404 if ${lt_cv_dlopen_self+:} false
; then :
11405 $as_echo_n "(cached) " >&6
11407 if test "$cross_compiling" = yes; then :
11408 lt_cv_dlopen_self
=cross
11410 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11411 lt_status
=$lt_dlunknown
11412 cat > conftest.
$ac_ext <<_LT_EOF
11413 #line 11413 "configure"
11414 #include "confdefs.h"
11423 # define LT_DLGLOBAL RTLD_GLOBAL
11426 # define LT_DLGLOBAL DL_GLOBAL
11428 # define LT_DLGLOBAL 0
11432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11433 find out it does not work in some platform. */
11434 #ifndef LT_DLLAZY_OR_NOW
11436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11439 # define LT_DLLAZY_OR_NOW DL_LAZY
11442 # define LT_DLLAZY_OR_NOW RTLD_NOW
11445 # define LT_DLLAZY_OR_NOW DL_NOW
11447 # define LT_DLLAZY_OR_NOW 0
11454 /* When -fvisbility=hidden is used, assume the code has been annotated
11455 correspondingly for the symbols needed. */
11456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11457 void fnord () __attribute__((visibility("default")));
11460 void fnord () { int i=42; }
11463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11464 int status = $lt_dlunknown;
11468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11472 else puts (dlerror ());
11474 /* dlclose (self); */
11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11483 (eval $ac_link) 2>&5
11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11487 (.
/conftest
; exit; ) >&5 2>/dev
/null
11489 case x
$lt_status in
11490 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11491 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11492 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11495 # compilation failed
11496 lt_cv_dlopen_self
=no
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11504 $as_echo "$lt_cv_dlopen_self" >&6; }
11506 if test "x$lt_cv_dlopen_self" = xyes
; then
11507 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11509 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11510 if ${lt_cv_dlopen_self_static+:} false
; then :
11511 $as_echo_n "(cached) " >&6
11513 if test "$cross_compiling" = yes; then :
11514 lt_cv_dlopen_self_static
=cross
11516 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11517 lt_status
=$lt_dlunknown
11518 cat > conftest.
$ac_ext <<_LT_EOF
11519 #line 11519 "configure"
11520 #include "confdefs.h"
11529 # define LT_DLGLOBAL RTLD_GLOBAL
11532 # define LT_DLGLOBAL DL_GLOBAL
11534 # define LT_DLGLOBAL 0
11538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11539 find out it does not work in some platform. */
11540 #ifndef LT_DLLAZY_OR_NOW
11542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11545 # define LT_DLLAZY_OR_NOW DL_LAZY
11548 # define LT_DLLAZY_OR_NOW RTLD_NOW
11551 # define LT_DLLAZY_OR_NOW DL_NOW
11553 # define LT_DLLAZY_OR_NOW 0
11560 /* When -fvisbility=hidden is used, assume the code has been annotated
11561 correspondingly for the symbols needed. */
11562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11563 void fnord () __attribute__((visibility("default")));
11566 void fnord () { int i=42; }
11569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11570 int status = $lt_dlunknown;
11574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11578 else puts (dlerror ());
11580 /* dlclose (self); */
11588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11589 (eval $ac_link) 2>&5
11591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11592 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11593 (.
/conftest
; exit; ) >&5 2>/dev
/null
11595 case x
$lt_status in
11596 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11597 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11598 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11601 # compilation failed
11602 lt_cv_dlopen_self_static
=no
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11610 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11613 CPPFLAGS
="$save_CPPFLAGS"
11614 LDFLAGS
="$save_LDFLAGS"
11619 case $lt_cv_dlopen_self in
11620 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11621 *) enable_dlopen_self
=unknown
;;
11624 case $lt_cv_dlopen_self_static in
11625 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11626 *) enable_dlopen_self_static
=unknown
;;
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11649 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11650 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11651 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11652 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654 $as_echo "yes" >&6; }
11656 # FIXME - insert some real tests, host_os isn't really good enough
11659 if test -n "$STRIP" ; then
11660 striplib
="$STRIP -x"
11661 old_striplib
="$STRIP -S"
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11663 $as_echo "yes" >&6; }
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671 $as_echo "no" >&6; }
11687 # Report which library types will actually be built
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11689 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11691 $as_echo "$can_build_shared" >&6; }
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11694 $as_echo_n "checking whether to build shared libraries... " >&6; }
11695 test "$can_build_shared" = "no" && enable_shared
=no
11697 # On AIX, shared libraries and static libraries use the same namespace, and
11698 # are all built from PIC.
11701 test "$enable_shared" = yes && enable_static
=no
11702 if test -n "$RANLIB"; then
11703 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11704 postinstall_cmds
='$RANLIB $lib'
11709 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11710 test "$enable_shared" = yes && enable_static
=no
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11715 $as_echo "$enable_shared" >&6; }
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11718 $as_echo_n "checking whether to build static libraries... " >&6; }
11719 # Make sure either enable_shared or enable_static is yes.
11720 test "$enable_shared" = yes || enable_static
=yes
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11722 $as_echo "$enable_static" >&6; }
11729 ac_cpp
='$CPP $CPPFLAGS'
11730 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11731 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11732 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11748 ac_config_commands
="$ac_config_commands libtool"
11753 # Only expand once:
11760 *-cygwin* |
*-mingw*)
11761 # 'host' will be top-level target in the case of a target lib,
11762 # we must compare to with_cross_host to decide if this is a native
11763 # or cross-compiler and select where to install dlls appropriately.
11764 if test -n "$with_cross_host" &&
11765 test x
"$with_cross_host" != x
"no"; then
11766 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11768 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11783 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11784 # Check whether --enable-maintainer-mode was given.
11785 if test "${enable_maintainer_mode+set}" = set; then :
11786 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11788 USE_MAINTAINER_MODE
=no
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11792 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11793 if test $USE_MAINTAINER_MODE = yes; then
11794 MAINTAINER_MODE_TRUE
=
11795 MAINTAINER_MODE_FALSE
='#'
11797 MAINTAINER_MODE_TRUE
='#'
11798 MAINTAINER_MODE_FALSE
=
11801 MAINT
=$MAINTAINER_MODE_TRUE
11805 # We optionally test libgomp C++ support, and for that want to use the proper
11806 # C++ driver, 'g++' (or 'xg++' for build-tree testing). Given that build of
11807 # target libstdc++-v3 depends on target libgomp (see '../Makefile.def'), we
11808 # cannot make build of target libgomp depend on target libstdc++-v3: circular
11809 # dependency. We thus cannot instantiate 'AC_PROG_CXX' here: we'd get
11810 # '-funconfigured-libstdc++-v3' (see '../configure.ac'). Therefore, just
11811 # capture 'CXX', and we'll fix this up at 'make check' time (see
11812 # 'testsuite/lib/libgomp.exp:libgomp_init').
11815 # Create a spec file, so that compile/link tests don't fail
11816 test -f libgfortran.spec ||
touch libgfortran.spec
11817 FCFLAGS
="$FCFLAGS -L."
11819 # We need 'gfortran' to compile parts of the library, and test libgomp Fortran
11821 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11822 #AC_PROG_FC(gfortran)
11823 case `echo $GFORTRAN` in
11827 set dummy
$GFORTRAN; ac_word
=$2
11828 if test -x "$ac_word"; then
11834 ac_ext
=${ac_fc_srcext-f}
11835 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11836 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11837 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11838 if test -n "$ac_tool_prefix"; then
11839 for ac_prog
in gfortran
11841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11842 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if ${ac_cv_prog_FC+:} false
; then :
11846 $as_echo_n "(cached) " >&6
11848 if test -n "$FC"; then
11849 ac_cv_prog_FC
="$FC" # Let the user override the test.
11851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11852 for as_dir
in $PATH
11855 test -z "$as_dir" && as_dir
=.
11856 for ac_exec_ext
in '' $ac_executable_extensions; do
11857 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11858 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 if test -n "$FC"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11871 $as_echo "$FC" >&6; }
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11878 test -n "$FC" && break
11881 if test -z "$FC"; then
11883 for ac_prog
in gfortran
11885 # Extract the first word of "$ac_prog", so it can be a program name with args.
11886 set dummy
$ac_prog; ac_word
=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if ${ac_cv_prog_ac_ct_FC+:} false
; then :
11890 $as_echo_n "(cached) " >&6
11892 if test -n "$ac_ct_FC"; then
11893 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11896 for as_dir
in $PATH
11899 test -z "$as_dir" && as_dir
=.
11900 for ac_exec_ext
in '' $ac_executable_extensions; do
11901 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11902 ac_cv_prog_ac_ct_FC
="$ac_prog"
11903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11913 if test -n "$ac_ct_FC"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11915 $as_echo "$ac_ct_FC" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11922 test -n "$ac_ct_FC" && break
11925 if test "x$ac_ct_FC" = x
; then
11928 case $cross_compiling:$ac_tool_warned in
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11932 ac_tool_warned
=yes ;;
11939 # Provide some information about the compiler.
11940 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11943 for ac_option
in --version -v -V -qversion; do
11944 { { ac_try
="$ac_compiler $ac_option >&5"
11945 case "(($ac_try" in
11946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11950 $as_echo "$ac_try_echo"; } >&5
11951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11953 if test -s conftest.err; then
11955 ... rest of stderr output deleted ...
11956 10q' conftest.err >conftest.er1
11957 cat conftest.er1 >&5
11959 rm -f conftest.er1 conftest.err
11960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11961 test $ac_status = 0; }
11965 # If we don't use `.F
' as extension, the preprocessor is not run on the
11966 # input file. (Note that this only needs to work for GNU compilers.)
11967 ac_save_ext=$ac_ext
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11970 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11971 if ${ac_cv_fc_compiler_gnu+:} false; then :
11972 $as_echo_n "(cached) " >&6
11974 cat > conftest.$ac_ext <<_ACEOF
11982 if ac_fn_fc_try_compile "$LINENO"; then :
11983 ac_compiler_gnu=yes
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11992 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11993 ac_ext=$ac_save_ext
11994 ac_test_FCFLAGS=${FCFLAGS+set}
11995 ac_save_FCFLAGS=$FCFLAGS
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11998 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11999 if ${ac_cv_prog_fc_g+:} false; then :
12000 $as_echo_n "(cached) " >&6
12003 cat > conftest.$ac_ext <<_ACEOF
12008 if ac_fn_fc_try_compile "$LINENO"; then :
12009 ac_cv_prog_fc_g=yes
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12017 $as_echo "$ac_cv_prog_fc_g" >&6; }
12018 if test "$ac_test_FCFLAGS" = set; then
12019 FCFLAGS=$ac_save_FCFLAGS
12020 elif test $ac_cv_prog_fc_g = yes; then
12021 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12027 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12034 if test $ac_compiler_gnu = yes; then
12040 ac_cpp='$CPP $CPPFLAGS'
12041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12042 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12045 ac_ext=${ac_fc_srcext-f}
12046 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
12047 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
12048 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12051 if test -z "$FC" || test "X$FC" = "Xno"; then
12055 archive_cmds_need_lc_FC=no
12056 allow_undefined_flag_FC=
12057 always_export_symbols_FC=no
12058 archive_expsym_cmds_FC=
12059 export_dynamic_flag_spec_FC=
12060 hardcode_direct_FC=no
12061 hardcode_direct_absolute_FC=no
12062 hardcode_libdir_flag_spec_FC=
12063 hardcode_libdir_flag_spec_ld_FC=
12064 hardcode_libdir_separator_FC=
12065 hardcode_minus_L_FC=no
12066 hardcode_automatic_FC=no
12067 inherit_rpath_FC=no
12069 module_expsym_cmds_FC=
12070 link_all_deplibs_FC=unknown
12071 old_archive_cmds_FC=$old_archive_cmds
12072 reload_flag_FC=$reload_flag
12073 reload_cmds_FC=$reload_cmds
12074 no_undefined_flag_FC=
12075 whole_archive_flag_spec_FC=
12076 enable_shared_with_static_runtimes_FC=no
12078 # Source file extension for fc test sources.
12079 ac_ext=${ac_fc_srcext-f}
12081 # Object file extension for compiled fc test sources.
12085 # No sense in running all these tests if we already determined that
12086 # the FC compiler isn't working. Some variables
(like enable_shared
)
12087 # are currently assumed to apply to all compilers on this platform,
12088 # and will be corrupted by setting them based on a non-working compiler.
12089 if test "$_lt_disable_FC" != yes; then
12090 # Code to be used in simple compile tests
12091 lt_simple_compile_test_code
="\
12097 # Code to be used in simple link tests
12098 lt_simple_link_test_code
="\
12103 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12110 # If no C compiler was specified, use CC.
12113 # If no C compiler flags were specified, use CFLAGS.
12114 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12116 # Allow CC to be a program name with arguments.
12120 # save warnings/boilerplate of simple test code
12121 ac_outfile
=conftest.
$ac_objext
12122 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12123 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12124 _lt_compiler_boilerplate
=`cat conftest.err`
12127 ac_outfile
=conftest.
$ac_objext
12128 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12129 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12130 _lt_linker_boilerplate
=`cat conftest.err`
12134 # Allow CC to be a program name with arguments.
12139 GCC
=$ac_cv_fc_compiler_gnu
12142 for cc_temp
in $compiler""; do
12144 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12145 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12150 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12153 if test -n "$compiler"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12155 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12157 $as_echo "$can_build_shared" >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12160 $as_echo_n "checking whether to build shared libraries... " >&6; }
12161 test "$can_build_shared" = "no" && enable_shared
=no
12163 # On AIX, shared libraries and static libraries use the same namespace, and
12164 # are all built from PIC.
12167 test "$enable_shared" = yes && enable_static
=no
12168 if test -n "$RANLIB"; then
12169 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12170 postinstall_cmds
='$RANLIB $lib'
12174 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12175 test "$enable_shared" = yes && enable_static
=no
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12180 $as_echo "$enable_shared" >&6; }
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12183 $as_echo_n "checking whether to build static libraries... " >&6; }
12184 # Make sure either enable_shared or enable_static is yes.
12185 test "$enable_shared" = yes || enable_static
=yes
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12187 $as_echo "$enable_static" >&6; }
12189 GCC_FC
="$ac_cv_fc_compiler_gnu"
12193 ## There is no encapsulation within the following macros, do not change
12194 ## the running order or otherwise move them around unless you know exactly
12195 ## what you are doing...
12196 # Dependencies to place before and after the object being linked:
12198 postdep_objects_FC
=
12201 compiler_lib_search_path_FC
=
12203 cat > conftest.
$ac_ext <<_LT_EOF
12212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12213 (eval $ac_compile) 2>&5
12215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12216 test $ac_status = 0; }; then
12217 # Parse the compiler output and extract the necessary
12218 # objects, libraries and library flags.
12220 # Sentinel used to keep track of whether or not we are before
12221 # the conftest object file.
12222 pre_test_object_deps_done
=no
12224 for p
in `eval "$output_verbose_link_cmd"`; do
12228 # Some compilers place space between "-{L,R}" and the path.
12229 # Remove the space.
12230 if test $p = "-L" ||
12231 test $p = "-R"; then
12238 if test "$pre_test_object_deps_done" = no
; then
12241 # Internal compiler library paths should come after those
12242 # provided the user. The postdeps already come after the
12243 # user supplied libs so there is no need to process them.
12244 if test -z "$compiler_lib_search_path_FC"; then
12245 compiler_lib_search_path_FC
="${prev}${p}"
12247 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
12250 # The "-l" case would never come before the object being
12251 # linked, so don't bother handling this case.
12254 if test -z "$postdeps_FC"; then
12255 postdeps_FC
="${prev}${p}"
12257 postdeps_FC
="${postdeps_FC} ${prev}${p}"
12263 # This assumes that the test object file only shows up
12264 # once in the compiler output.
12265 if test "$p" = "conftest.$objext"; then
12266 pre_test_object_deps_done
=yes
12270 if test "$pre_test_object_deps_done" = no
; then
12271 if test -z "$predep_objects_FC"; then
12272 predep_objects_FC
="$p"
12274 predep_objects_FC
="$predep_objects_FC $p"
12277 if test -z "$postdep_objects_FC"; then
12278 postdep_objects_FC
="$p"
12280 postdep_objects_FC
="$postdep_objects_FC $p"
12285 *) ;; # Ignore the rest.
12293 echo "libtool.m4: error: problem compiling FC test program"
12296 $RM -f confest.
$objext
12298 # PORTME: override above test on systems where it is broken
12301 case " $postdeps_FC " in
12302 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12304 compiler_lib_search_dirs_FC
=
12305 if test -n "${compiler_lib_search_path_FC}"; then
12306 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12339 lt_prog_compiler_wl_FC
=
12340 lt_prog_compiler_pic_FC
=
12341 lt_prog_compiler_static_FC
=
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12344 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12346 if test "$GCC" = yes; then
12347 lt_prog_compiler_wl_FC
='-Wl,'
12348 lt_prog_compiler_static_FC
='-static'
12352 # All AIX code is PIC.
12353 if test "$host_cpu" = ia64
; then
12354 # AIX 5 now supports IA64 processor
12355 lt_prog_compiler_static_FC
='-Bstatic'
12357 lt_prog_compiler_pic_FC
='-fPIC'
12363 # see comment about AmigaOS4 .so support
12364 lt_prog_compiler_pic_FC
='-fPIC'
12367 # FIXME: we need at least 68020 code to build shared libraries, but
12368 # adding the `-m68020' flag to GCC prevents building anything better,
12370 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12375 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12376 # PIC is the default for these OSes.
12379 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12380 # This hack is so that the source file can tell whether it is being
12381 # built for inclusion in a dll (and should export symbols for example).
12382 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12383 # (--disable-auto-import) libraries
12384 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12387 darwin
* | rhapsody
*)
12388 # PIC is the default on this platform
12389 # Common symbols not allowed in MH_DYLIB files
12390 lt_prog_compiler_pic_FC
='-fno-common'
12394 # PIC is the default for Haiku.
12395 # The "-static" flag exists, but is broken.
12396 lt_prog_compiler_static_FC
=
12400 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12401 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12402 # sets the default TLS model and affects inlining.
12408 lt_prog_compiler_pic_FC
='-fPIC'
12414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12415 # Instead, we relocate shared libraries at runtime.
12419 # Just because we use GCC doesn't mean we suddenly get shared libraries
12420 # on systems that don't support them.
12421 lt_prog_compiler_can_build_shared_FC
=no
12426 # QNX uses GNU C++, but need to define -shared option too, otherwise
12427 # it will coredump.
12428 lt_prog_compiler_pic_FC
='-fPIC -shared'
12432 if test -d /usr
/nec
; then
12433 lt_prog_compiler_pic_FC
=-Kconform_pic
12438 lt_prog_compiler_pic_FC
='-fPIC'
12442 case $cc_basename in
12443 nvcc
*) # Cuda Compiler Driver 2.2
12444 lt_prog_compiler_wl_FC
='-Xlinker '
12445 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12449 # PORTME Check for flag to pass linker flags through the system compiler.
12452 lt_prog_compiler_wl_FC
='-Wl,'
12453 if test "$host_cpu" = ia64
; then
12454 # AIX 5 now supports IA64 processor
12455 lt_prog_compiler_static_FC
='-Bstatic'
12457 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12461 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12462 # This hack is so that the source file can tell whether it is being
12463 # built for inclusion in a dll (and should export symbols for example).
12464 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12467 hpux9
* | hpux10
* | hpux11
*)
12468 lt_prog_compiler_wl_FC
='-Wl,'
12469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12470 # not for PA HP-UX.
12476 lt_prog_compiler_pic_FC
='+Z'
12479 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12480 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12483 irix5
* | irix6
* | nonstopux
*)
12484 lt_prog_compiler_wl_FC
='-Wl,'
12485 # PIC (with -KPIC) is the default.
12486 lt_prog_compiler_static_FC
='-non_shared'
12489 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12490 case $cc_basename in
12491 # old Intel for x86_64 which still supported -KPIC.
12493 lt_prog_compiler_wl_FC
='-Wl,'
12494 lt_prog_compiler_pic_FC
='-KPIC'
12495 lt_prog_compiler_static_FC
='-static'
12497 # icc used to be incompatible with GCC.
12498 # ICC 10 doesn't accept -KPIC any more.
12500 lt_prog_compiler_wl_FC
='-Wl,'
12501 lt_prog_compiler_pic_FC
='-fPIC'
12502 lt_prog_compiler_static_FC
='-static'
12504 # Lahey Fortran 8.1.
12506 lt_prog_compiler_wl_FC
='-Wl,'
12507 lt_prog_compiler_pic_FC
='--shared'
12508 lt_prog_compiler_static_FC
='--static'
12510 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12511 # Portland Group compilers (*not* the Pentium gcc compiler,
12512 # which looks to be a dead project)
12513 lt_prog_compiler_wl_FC
='-Wl,'
12514 lt_prog_compiler_pic_FC
='-fpic'
12515 lt_prog_compiler_static_FC
='-Bstatic'
12518 lt_prog_compiler_wl_FC
='-Wl,'
12519 # All Alpha code is PIC.
12520 lt_prog_compiler_static_FC
='-non_shared'
12522 xl
* | bgxl
* | bgf
* | mpixl
*)
12523 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12524 lt_prog_compiler_wl_FC
='-Wl,'
12525 lt_prog_compiler_pic_FC
='-qpic'
12526 lt_prog_compiler_static_FC
='-qstaticlink'
12529 case `$CC -V 2>&1 | sed 5q` in
12530 *Sun\ F
* |
*Sun
*Fortran
*)
12531 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12532 lt_prog_compiler_pic_FC
='-KPIC'
12533 lt_prog_compiler_static_FC
='-Bstatic'
12534 lt_prog_compiler_wl_FC
=''
12538 lt_prog_compiler_pic_FC
='-KPIC'
12539 lt_prog_compiler_static_FC
='-Bstatic'
12540 lt_prog_compiler_wl_FC
='-Wl,'
12548 lt_prog_compiler_pic_FC
='-KPIC'
12549 lt_prog_compiler_static_FC
='-Bstatic'
12553 # QNX uses GNU C++, but need to define -shared option too, otherwise
12554 # it will coredump.
12555 lt_prog_compiler_pic_FC
='-fPIC -shared'
12558 osf3
* | osf4
* | osf5
*)
12559 lt_prog_compiler_wl_FC
='-Wl,'
12560 # All OSF/1 code is PIC.
12561 lt_prog_compiler_static_FC
='-non_shared'
12565 lt_prog_compiler_static_FC
='-non_shared'
12569 lt_prog_compiler_pic_FC
='-KPIC'
12570 lt_prog_compiler_static_FC
='-Bstatic'
12571 case $cc_basename in
12572 f77
* | f90
* | f95
*)
12573 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12575 lt_prog_compiler_wl_FC
='-Wl,';;
12580 lt_prog_compiler_wl_FC
='-Qoption ld '
12581 lt_prog_compiler_pic_FC
='-PIC'
12582 lt_prog_compiler_static_FC
='-Bstatic'
12585 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12586 lt_prog_compiler_wl_FC
='-Wl,'
12587 lt_prog_compiler_pic_FC
='-KPIC'
12588 lt_prog_compiler_static_FC
='-Bstatic'
12592 if test -d /usr
/nec
;then
12593 lt_prog_compiler_pic_FC
='-Kconform_pic'
12594 lt_prog_compiler_static_FC
='-Bstatic'
12598 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12599 lt_prog_compiler_wl_FC
='-Wl,'
12600 lt_prog_compiler_pic_FC
='-KPIC'
12601 lt_prog_compiler_static_FC
='-Bstatic'
12605 lt_prog_compiler_wl_FC
='-Wl,'
12606 lt_prog_compiler_can_build_shared_FC
=no
12610 lt_prog_compiler_pic_FC
='-pic'
12611 lt_prog_compiler_static_FC
='-Bstatic'
12615 lt_prog_compiler_can_build_shared_FC
=no
12621 # For platforms which do not support PIC, -DPIC is meaningless:
12623 lt_prog_compiler_pic_FC
=
12626 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12630 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12635 # Check to make sure the PIC flag actually works.
12637 if test -n "$lt_prog_compiler_pic_FC"; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12639 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12640 if ${lt_cv_prog_compiler_pic_works_FC+:} false
; then :
12641 $as_echo_n "(cached) " >&6
12643 lt_cv_prog_compiler_pic_works_FC
=no
12644 ac_outfile
=conftest.
$ac_objext
12645 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12646 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12647 # Insert the option either (1) after the last *FLAGS variable, or
12648 # (2) before a word containing "conftest.", or (3) at the end.
12649 # Note that $ac_compile itself does not contain backslashes and begins
12650 # with a dollar sign (not a hyphen), so the echo should work correctly.
12651 # The option is referenced via a variable to avoid confusing sed.
12652 lt_compile
=`echo "$ac_compile" | $SED \
12653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12655 -e 's:$: $lt_compiler_flag:'`
12656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12657 (eval "$lt_compile" 2>conftest.err
)
12659 cat conftest.err
>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 if (exit $ac_status) && test -s "$ac_outfile"; then
12662 # The compiler can only warn and ignore the option if not recognized
12663 # So say no if there are warnings other than the usual output.
12664 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12665 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12666 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12667 lt_cv_prog_compiler_pic_works_FC
=yes
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12674 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12676 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12677 case $lt_prog_compiler_pic_FC in
12679 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12682 lt_prog_compiler_pic_FC
=
12683 lt_prog_compiler_can_build_shared_FC
=no
12691 # Check to make sure the static flag actually works.
12693 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12695 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12696 if ${lt_cv_prog_compiler_static_works_FC+:} false
; then :
12697 $as_echo_n "(cached) " >&6
12699 lt_cv_prog_compiler_static_works_FC
=no
12700 save_LDFLAGS
="$LDFLAGS"
12701 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12702 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12703 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12704 # The linker can only warn and ignore the option if not recognized
12705 # So say no if there are warnings
12706 if test -s conftest.err
; then
12707 # Append any errors to the config.log.
12708 cat conftest.err
1>&5
12709 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12710 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12711 if diff conftest.exp conftest.er2
>/dev
/null
; then
12712 lt_cv_prog_compiler_static_works_FC
=yes
12715 lt_cv_prog_compiler_static_works_FC
=yes
12719 LDFLAGS
="$save_LDFLAGS"
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12723 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12725 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12728 lt_prog_compiler_static_FC
=
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12735 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12736 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12737 $as_echo_n "(cached) " >&6
12739 lt_cv_prog_compiler_c_o_FC
=no
12740 $RM -r conftest
2>/dev
/null
12744 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12746 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12747 # Insert the option either (1) after the last *FLAGS variable, or
12748 # (2) before a word containing "conftest.", or (3) at the end.
12749 # Note that $ac_compile itself does not contain backslashes and begins
12750 # with a dollar sign (not a hyphen), so the echo should work correctly.
12751 lt_compile
=`echo "$ac_compile" | $SED \
12752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12754 -e 's:$: $lt_compiler_flag:'`
12755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12756 (eval "$lt_compile" 2>out
/conftest.err
)
12758 cat out
/conftest.err
>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12762 # The compiler can only warn and ignore the option if not recognized
12763 # So say no if there are warnings
12764 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12765 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12766 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12767 lt_cv_prog_compiler_c_o_FC
=yes
12772 # SGI C++ compiler will create directory out/ii_files/ for
12773 # template instantiation
12774 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12775 $RM out
/* && rmdir out
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12782 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12788 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12789 $as_echo_n "(cached) " >&6
12791 lt_cv_prog_compiler_c_o_FC
=no
12792 $RM -r conftest
2>/dev
/null
12796 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12798 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12799 # Insert the option either (1) after the last *FLAGS variable, or
12800 # (2) before a word containing "conftest.", or (3) at the end.
12801 # Note that $ac_compile itself does not contain backslashes and begins
12802 # with a dollar sign (not a hyphen), so the echo should work correctly.
12803 lt_compile
=`echo "$ac_compile" | $SED \
12804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12806 -e 's:$: $lt_compiler_flag:'`
12807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12808 (eval "$lt_compile" 2>out
/conftest.err
)
12810 cat out
/conftest.err
>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12814 # The compiler can only warn and ignore the option if not recognized
12815 # So say no if there are warnings
12816 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12817 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12818 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12819 lt_cv_prog_compiler_c_o_FC
=yes
12824 # SGI C++ compiler will create directory out/ii_files/ for
12825 # template instantiation
12826 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12827 $RM out
/* && rmdir out
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12834 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12839 hard_links
="nottested"
12840 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12841 # do not overwrite the value of need_locks provided by the user
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12843 $as_echo_n "checking if we can lock with hard links... " >&6; }
12846 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12848 ln conftest.a conftest.b
2>&5 || hard_links
=no
12849 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12851 $as_echo "$hard_links" >&6; }
12852 if test "$hard_links" = no
; then
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12854 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12864 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12867 allow_undefined_flag_FC
=
12868 always_export_symbols_FC
=no
12870 archive_expsym_cmds_FC
=
12871 compiler_needs_object_FC
=no
12872 enable_shared_with_static_runtimes_FC
=no
12873 export_dynamic_flag_spec_FC
=
12874 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12875 hardcode_automatic_FC
=no
12876 hardcode_direct_FC
=no
12877 hardcode_direct_absolute_FC
=no
12878 hardcode_libdir_flag_spec_FC
=
12879 hardcode_libdir_flag_spec_ld_FC
=
12880 hardcode_libdir_separator_FC
=
12881 hardcode_minus_L_FC
=no
12882 hardcode_shlibpath_var_FC
=unsupported
12883 inherit_rpath_FC
=no
12884 link_all_deplibs_FC
=unknown
12886 module_expsym_cmds_FC
=
12887 old_archive_from_new_cmds_FC
=
12888 old_archive_from_expsyms_cmds_FC
=
12889 thread_safe_flag_spec_FC
=
12890 whole_archive_flag_spec_FC
=
12891 # include_expsyms should be a list of space-separated symbols to be *always*
12892 # included in the symbol list
12893 include_expsyms_FC
=
12894 # exclude_expsyms can be an extended regexp of symbols to exclude
12895 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12896 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12897 # as well as any symbol that contains `d'.
12898 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12899 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12900 # platforms (ab)use it in PIC code, but their linkers get confused if
12901 # the symbol is explicitly referenced. Since portable code cannot
12902 # rely on this symbol name, it's probably fine to never include it in
12903 # preloaded symbol tables.
12904 # Exclude shared library initialization/finalization symbols.
12905 extract_expsyms_cmds
=
12908 cygwin
* | mingw
* | pw32
* | cegcc
*)
12909 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12910 # When not using gcc, we currently assume that we are using
12911 # Microsoft Visual C++.
12912 if test "$GCC" != yes; then
12917 # we just hope/assume this is gcc and not c89 (= MSVC++)
12927 # On some targets, GNU ld is compatible enough with the native linker
12928 # that we're better off using the native interface for both.
12929 lt_use_gnu_ld_interface
=no
12930 if test "$with_gnu_ld" = yes; then
12933 # The AIX port of GNU ld has always aspired to compatibility
12934 # with the native linker. However, as the warning in the GNU ld
12935 # block says, versions before 2.19.5* couldn't really create working
12936 # shared libraries, regardless of the interface used.
12937 case `$LD -v 2>&1` in
12938 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12939 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12940 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12942 lt_use_gnu_ld_interface
=yes
12947 lt_use_gnu_ld_interface
=yes
12952 if test "$lt_use_gnu_ld_interface" = yes; then
12953 # If archive_cmds runs LD, not CC, wlarc should be empty
12956 # Set some defaults for GNU ld with shared library support. These
12957 # are reset later if shared libraries are not supported. Putting them
12958 # here allows them to be overridden if necessary.
12959 runpath_var
=LD_RUN_PATH
12960 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12961 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12962 # ancient GNU ld didn't support --whole-archive et. al.
12963 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12964 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12966 whole_archive_flag_spec_FC
=
12968 supports_anon_versioning
=no
12969 case `$LD -v 2>&1` in
12970 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12971 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12972 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12973 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12974 *\
2.11.
*) ;; # other 2.11 versions
12975 *) supports_anon_versioning
=yes ;;
12978 # See if GNU ld supports shared libraries.
12981 # On AIX/PPC, the GNU linker is very broken
12982 if test "$host_cpu" != ia64
; then
12986 *** Warning: the GNU linker, at least up to release 2.19, is reported
12987 *** to be unable to reliably create shared libraries on AIX.
12988 *** Therefore, libtool is disabling shared libraries support. If you
12989 *** really care for shared libraries, you may want to install binutils
12990 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12991 *** You will then need to restart the configuration process.
13000 # see comment about AmigaOS4 .so support
13001 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13002 archive_expsym_cmds_FC
=''
13005 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)'
13006 hardcode_libdir_flag_spec_FC
='-L$libdir'
13007 hardcode_minus_L_FC
=yes
13013 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13014 allow_undefined_flag_FC
=unsupported
13015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13016 # support --undefined. This deserves some investigation. FIXME
13017 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023 cygwin
* | mingw
* | pw32
* | cegcc
*)
13024 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13025 # as there is no search path for DLLs.
13026 hardcode_libdir_flag_spec_FC
='-L$libdir'
13027 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
13028 allow_undefined_flag_FC
=unsupported
13029 always_export_symbols_FC
=no
13030 enable_shared_with_static_runtimes_FC
=yes
13031 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13033 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13034 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13035 # If the export-symbols file already is a .def file (1st line
13036 # is EXPORTS), use it as is; otherwise, prepend...
13037 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13038 cp $export_symbols $output_objdir/$soname.def;
13040 echo EXPORTS > $output_objdir/$soname.def;
13041 cat $export_symbols >> $output_objdir/$soname.def;
13043 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13050 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13051 link_all_deplibs_FC
=yes
13055 hardcode_direct_FC
=no
13056 hardcode_shlibpath_var_FC
=no
13057 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13058 export_dynamic_flag_spec_FC
='${wl}-E'
13059 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13060 # Instead, shared libraries are loaded at an image base (0x10000000 by
13061 # default) and relocated if they conflict, which is a slow very memory
13062 # consuming and fragmenting process. To avoid this, we pick a random,
13063 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13064 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13065 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'
13066 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'
13069 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
13071 if test "$host_os" = linux-dietlibc
; then
13072 case $cc_basename in
13073 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13076 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13077 && test "$tmp_diet" = no
13079 tmp_addflag
=' $pic_flag'
13080 tmp_sharedflag
='-shared'
13081 case $cc_basename,$host_cpu in
13082 pgcc
*) # Portland Group C compiler
13083 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'
13084 tmp_addflag
=' $pic_flag'
13086 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13087 # Portland Group f77 and f90 compilers
13088 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'
13089 tmp_addflag
=' $pic_flag -Mnomain' ;;
13090 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13091 tmp_addflag
=' -i_dynamic' ;;
13092 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13093 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13094 ifc
* | ifort
*) # Intel Fortran compiler
13095 tmp_addflag
=' -nofor_main' ;;
13096 lf95
*) # Lahey Fortran 8.1
13097 whole_archive_flag_spec_FC
=
13098 tmp_sharedflag
='--shared' ;;
13099 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13100 tmp_sharedflag
='-qmkshrobj'
13102 nvcc
*) # Cuda Compiler Driver 2.2
13103 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'
13104 compiler_needs_object_FC
=yes
13107 case `$CC -V 2>&1 | sed 5q` in
13108 *Sun\ C
*) # Sun C 5.9
13109 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'
13110 compiler_needs_object_FC
=yes
13111 tmp_sharedflag
='-G' ;;
13112 *Sun\ F
*) # Sun Fortran 8.3
13113 tmp_sharedflag
='-G' ;;
13115 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13117 if test "x$supports_anon_versioning" = xyes
; then
13118 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13120 echo "local: *; };" >> $output_objdir/$libname.ver~
13121 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13124 case $cc_basename in
13125 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13126 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13127 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
13128 hardcode_libdir_flag_spec_FC
=
13129 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
13130 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13131 if test "x$supports_anon_versioning" = xyes
; then
13132 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13134 echo "local: *; };" >> $output_objdir/$libname.ver~
13135 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13145 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13146 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13149 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13150 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13155 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13159 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13160 *** create shared libraries on Solaris systems. Therefore, libtool
13161 *** is disabling shared libraries support. We urge you to upgrade GNU
13162 *** binutils to release 2.9.1 or newer. Another option is to modify
13163 *** your PATH or compiler configuration so that the native linker is
13164 *** used, and then restart.
13167 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13168 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13175 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13176 case `$LD -v 2>&1` in
13177 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13181 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13182 *** reliably create shared libraries on SCO systems. Therefore, libtool
13183 *** is disabling shared libraries support. We urge you to upgrade GNU
13184 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13185 *** your PATH or compiler configuration so that the native linker is
13186 *** used, and then restart.
13191 # For security reasons, it is highly recommended that you always
13192 # use absolute paths for naming shared libraries, and exclude the
13193 # DT_RUNPATH tag from executables and libraries. But doing so
13194 # requires that you compile everything twice, which is a pain.
13195 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13196 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13197 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13198 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13207 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13209 hardcode_direct_FC
=yes
13210 hardcode_shlibpath_var_FC
=no
13214 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13215 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13216 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13223 if test "$ld_shlibs_FC" = no
; then
13225 hardcode_libdir_flag_spec_FC
=
13226 export_dynamic_flag_spec_FC
=
13227 whole_archive_flag_spec_FC
=
13230 # PORTME fill in a description of your system's linker (not GNU ld)
13233 allow_undefined_flag_FC
=unsupported
13234 always_export_symbols_FC
=yes
13235 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'
13236 # Note: this linker hardcodes the directories in LIBPATH if there
13237 # are no directories specified by -L.
13238 hardcode_minus_L_FC
=yes
13239 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13240 # Neither direct hardcoding nor static linking is supported with a
13242 hardcode_direct_FC
=unsupported
13247 if test "$host_cpu" = ia64
; then
13248 # On IA64, the linker does run time linking by default, so we don't
13249 # have to do anything special.
13250 aix_use_runtimelinking
=no
13251 exp_sym_flag
='-Bexport'
13254 # If we're using GNU nm, then we don't want the "-C" option.
13255 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13256 # Also, AIX nm treats weak defined symbols like other global
13257 # defined symbols, whereas GNU nm marks them as "W".
13258 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13259 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'
13261 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'
13263 aix_use_runtimelinking
=no
13265 # Test if we are trying to use run time linking or normal
13266 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13267 # need to do runtime linking.
13268 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13269 for ld_flag
in $LDFLAGS; do
13270 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13271 aix_use_runtimelinking
=yes
13278 exp_sym_flag
='-bexport'
13279 no_entry_flag
='-bnoentry'
13282 # When large executables or shared objects are built, AIX ld can
13283 # have problems creating the table of contents. If linking a library
13284 # or program results in "error TOC overflow" add -mminimal-toc to
13285 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13286 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13289 hardcode_direct_FC
=yes
13290 hardcode_direct_absolute_FC
=yes
13291 hardcode_libdir_separator_FC
=':'
13292 link_all_deplibs_FC
=yes
13293 file_list_spec_FC
='${wl}-f,'
13295 if test "$GCC" = yes; then
13296 case $host_os in aix4.
[012]|aix4.
[012].
*)
13297 # We only want to do this on AIX 4.2 and lower, the check
13298 # below for broken collect2 doesn't work under 4.3+
13299 collect2name
=`${CC} -print-prog-name=collect2`
13300 if test -f "$collect2name" &&
13301 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13303 # We have reworked collect2
13306 # We have old collect2
13307 hardcode_direct_FC
=unsupported
13308 # It fails to find uninstalled libraries when the uninstalled
13309 # path is not listed in the libpath. Setting hardcode_minus_L
13310 # to unsupported forces relinking
13311 hardcode_minus_L_FC
=yes
13312 hardcode_libdir_flag_spec_FC
='-L$libdir'
13313 hardcode_libdir_separator_FC
=
13317 shared_flag
='-shared'
13318 if test "$aix_use_runtimelinking" = yes; then
13319 shared_flag
="$shared_flag "'${wl}-G'
13323 if test "$host_cpu" = ia64
; then
13324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13325 # chokes on -Wl,-G. The following line is correct:
13328 if test "$aix_use_runtimelinking" = yes; then
13329 shared_flag
='${wl}-G'
13331 shared_flag
='${wl}-bM:SRE'
13336 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13337 # It seems that -bexpall does not export symbols beginning with
13338 # underscore (_), so it is better to generate a list of symbols to export.
13339 always_export_symbols_FC
=yes
13340 if test "$aix_use_runtimelinking" = yes; then
13341 # Warning - without using the other runtime loading flags (-brtl),
13342 # -berok will link without error, but may produce a broken library.
13343 allow_undefined_flag_FC
='-berok'
13344 # Determine the default libpath from the value encoded in an
13345 # empty executable.
13346 cat > conftest.
$ac_ext <<_ACEOF
13351 if ac_fn_fc_try_link
"$LINENO"; then :
13353 lt_aix_libpath_sed
='
13354 /Import File Strings/,/^$/ {
13360 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13361 # Check for a 64-bit object if we didn't find anything.
13362 if test -z "$aix_libpath"; then
13363 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13366 rm -f core conftest.err conftest.
$ac_objext \
13367 conftest
$ac_exeext conftest.
$ac_ext
13368 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13370 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13371 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"
13373 if test "$host_cpu" = ia64
; then
13374 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13375 allow_undefined_flag_FC
="-z nodefs"
13376 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"
13378 # Determine the default libpath from the value encoded in an
13379 # empty executable.
13380 cat > conftest.
$ac_ext <<_ACEOF
13385 if ac_fn_fc_try_link
"$LINENO"; then :
13387 lt_aix_libpath_sed
='
13388 /Import File Strings/,/^$/ {
13394 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13395 # Check for a 64-bit object if we didn't find anything.
13396 if test -z "$aix_libpath"; then
13397 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13400 rm -f core conftest.err conftest.
$ac_objext \
13401 conftest
$ac_exeext conftest.
$ac_ext
13402 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13404 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13405 # Warning - without using the other run time loading flags,
13406 # -berok will link without error, but may produce a broken library.
13407 no_undefined_flag_FC
=' ${wl}-bernotok'
13408 allow_undefined_flag_FC
=' ${wl}-berok'
13409 if test "$with_gnu_ld" = yes; then
13410 # We only use this code for GNU lds that support --whole-archive.
13411 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13413 # Exported symbols can be pulled into shared objects from archives
13414 whole_archive_flag_spec_FC
='$convenience'
13416 archive_cmds_need_lc_FC
=yes
13417 # This is similar to how AIX traditionally builds its shared libraries.
13418 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'
13426 # see comment about AmigaOS4 .so support
13427 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13428 archive_expsym_cmds_FC
=''
13431 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)'
13432 hardcode_libdir_flag_spec_FC
='-L$libdir'
13433 hardcode_minus_L_FC
=yes
13439 export_dynamic_flag_spec_FC
=-rdynamic
13442 cygwin
* | mingw
* | pw32
* | cegcc
*)
13443 # When not using gcc, we currently assume that we are using
13444 # Microsoft Visual C++.
13445 # hardcode_libdir_flag_spec is actually meaningless, as there is
13446 # no search path for DLLs.
13447 hardcode_libdir_flag_spec_FC
=' '
13448 allow_undefined_flag_FC
=unsupported
13449 # Tell ltmain to make .lib files, not .a files.
13451 # Tell ltmain to make .dll files, not .so files.
13453 # FIXME: Setting linknames here is a bad hack.
13454 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13455 # The linker will automatically build a .lib file if we build a DLL.
13456 old_archive_from_new_cmds_FC
='true'
13457 # FIXME: Should let the user specify the lib program.
13458 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13459 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13460 enable_shared_with_static_runtimes_FC
=yes
13463 darwin
* | rhapsody
*)
13466 archive_cmds_need_lc_FC
=no
13467 hardcode_direct_FC
=no
13468 hardcode_automatic_FC
=yes
13469 hardcode_shlibpath_var_FC
=unsupported
13470 if test "$lt_cv_ld_force_load" = "yes"; then
13471 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\"`'
13473 whole_archive_flag_spec_FC
=''
13475 link_all_deplibs_FC
=yes
13476 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13477 case $cc_basename in
13478 ifort
*) _lt_dar_can_shared
=yes ;;
13479 *) _lt_dar_can_shared
=$GCC ;;
13481 if test "$_lt_dar_can_shared" = "yes"; then
13482 output_verbose_link_cmd
=func_echo_all
13483 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}"
13484 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13485 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}"
13486 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}"
13495 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496 hardcode_libdir_flag_spec_FC
='-L$libdir'
13497 hardcode_shlibpath_var_FC
=no
13500 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13501 # support. Future versions do this automatically, but an explicit c++rt0.o
13502 # does not break anything, and helps significantly (at the cost of a little
13505 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13506 hardcode_libdir_flag_spec_FC
='-R$libdir'
13507 hardcode_direct_FC
=yes
13508 hardcode_shlibpath_var_FC
=no
13511 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13513 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_direct_FC
=yes
13515 hardcode_minus_L_FC
=yes
13516 hardcode_shlibpath_var_FC
=no
13519 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13520 freebsd
* | dragonfly
*)
13521 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13522 hardcode_libdir_flag_spec_FC
='-R$libdir'
13523 hardcode_direct_FC
=yes
13524 hardcode_shlibpath_var_FC
=no
13528 if test "$GCC" = yes; then
13529 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'
13531 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'
13533 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13534 hardcode_libdir_separator_FC
=:
13535 hardcode_direct_FC
=yes
13537 # hardcode_minus_L: Not really in the search PATH,
13538 # but as the default location of the library.
13539 hardcode_minus_L_FC
=yes
13540 export_dynamic_flag_spec_FC
='${wl}-E'
13544 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13545 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13547 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13549 if test "$with_gnu_ld" = no
; then
13550 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13551 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13552 hardcode_libdir_separator_FC
=:
13553 hardcode_direct_FC
=yes
13554 hardcode_direct_absolute_FC
=yes
13555 export_dynamic_flag_spec_FC
='${wl}-E'
13556 # hardcode_minus_L: Not really in the search PATH,
13557 # but as the default location of the library.
13558 hardcode_minus_L_FC
=yes
13563 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13566 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13569 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13572 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13578 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13581 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13584 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13588 if test "$with_gnu_ld" = no
; then
13589 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13590 hardcode_libdir_separator_FC
=:
13594 hardcode_direct_FC
=no
13595 hardcode_shlibpath_var_FC
=no
13598 hardcode_direct_FC
=yes
13599 hardcode_direct_absolute_FC
=yes
13600 export_dynamic_flag_spec_FC
='${wl}-E'
13602 # hardcode_minus_L: Not really in the search PATH,
13603 # but as the default location of the library.
13604 hardcode_minus_L_FC
=yes
13610 irix5
* | irix6
* | nonstopux
*)
13611 if test "$GCC" = yes; then
13612 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'
13613 # Try to use the -exported_symbol ld option, if it does not
13614 # work, assume that -exports_file does not work either and
13615 # implicitly export all symbols.
13616 save_LDFLAGS
="$LDFLAGS"
13617 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13618 cat > conftest.
$ac_ext <<_ACEOF
13621 if ac_fn_fc_try_link
"$LINENO"; then :
13622 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'
13625 rm -f core conftest.err conftest.
$ac_objext \
13626 conftest
$ac_exeext conftest.
$ac_ext
13627 LDFLAGS
="$save_LDFLAGS"
13629 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'
13630 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'
13632 archive_cmds_need_lc_FC
='no'
13633 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13634 hardcode_libdir_separator_FC
=:
13635 inherit_rpath_FC
=yes
13636 link_all_deplibs_FC
=yes
13640 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13641 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13643 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13645 hardcode_libdir_flag_spec_FC
='-R$libdir'
13646 hardcode_direct_FC
=yes
13647 hardcode_shlibpath_var_FC
=no
13651 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13652 hardcode_direct_FC
=yes
13653 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13654 hardcode_libdir_separator_FC
=:
13655 hardcode_shlibpath_var_FC
=no
13662 if test -f /usr
/libexec
/ld.so
; then
13663 hardcode_direct_FC
=yes
13664 hardcode_shlibpath_var_FC
=no
13665 hardcode_direct_absolute_FC
=yes
13666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13667 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13669 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13670 export_dynamic_flag_spec_FC
='${wl}-E'
13673 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13674 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13675 hardcode_libdir_flag_spec_FC
='-R$libdir'
13678 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13679 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13689 hardcode_libdir_flag_spec_FC
='-L$libdir'
13690 hardcode_minus_L_FC
=yes
13691 allow_undefined_flag_FC
=unsupported
13692 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'
13693 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13697 if test "$GCC" = yes; then
13698 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13699 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'
13701 allow_undefined_flag_FC
=' -expect_unresolved \*'
13702 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'
13704 archive_cmds_need_lc_FC
='no'
13705 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13706 hardcode_libdir_separator_FC
=:
13709 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13710 if test "$GCC" = yes; then
13711 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13712 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'
13713 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13715 allow_undefined_flag_FC
=' -expect_unresolved \*'
13716 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'
13717 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~
13718 $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'
13720 # Both c and cxx compiler support -rpath directly
13721 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13723 archive_cmds_need_lc_FC
='no'
13724 hardcode_libdir_separator_FC
=:
13728 no_undefined_flag_FC
=' -z defs'
13729 if test "$GCC" = yes; then
13731 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13732 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13733 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13735 case `$CC -V 2>&1` in
13738 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13739 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13744 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13745 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13746 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13750 hardcode_libdir_flag_spec_FC
='-R$libdir'
13751 hardcode_shlibpath_var_FC
=no
13753 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13755 # The compiler driver will combine and reorder linker options,
13756 # but understands `-z linker_flag'. GCC discards it without `$wl',
13757 # but is careful enough not to reorder.
13758 # Supported since Solaris 2.6 (maybe 2.5.1?)
13759 if test "$GCC" = yes; then
13760 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13762 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13766 link_all_deplibs_FC
=yes
13770 if test "x$host_vendor" = xsequent
; then
13771 # Use $CC to link under sequent, because it throws in some extra .o
13772 # files that make .init and .fini sections work.
13773 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13775 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13777 hardcode_libdir_flag_spec_FC
='-L$libdir'
13778 hardcode_direct_FC
=yes
13779 hardcode_minus_L_FC
=yes
13780 hardcode_shlibpath_var_FC
=no
13784 case $host_vendor in
13786 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_direct_FC
=yes # is this really true???
13790 ## LD is ld it makes a PLAMLIB
13791 ## CC just makes a GrossModule.
13792 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13793 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13794 hardcode_direct_FC
=no
13797 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13801 runpath_var
='LD_RUN_PATH'
13802 hardcode_shlibpath_var_FC
=no
13806 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13807 hardcode_shlibpath_var_FC
=no
13808 export_dynamic_flag_spec_FC
='-Bexport'
13812 if test -d /usr
/nec
; then
13813 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13814 hardcode_shlibpath_var_FC
=no
13815 runpath_var
=LD_RUN_PATH
13816 hardcode_runpath_var
=yes
13821 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13822 no_undefined_flag_FC
='${wl}-z,text'
13823 archive_cmds_need_lc_FC
=no
13824 hardcode_shlibpath_var_FC
=no
13825 runpath_var
='LD_RUN_PATH'
13827 if test "$GCC" = yes; then
13828 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836 sysv5
* | sco3.2v5
* | sco5v6
*)
13837 # Note: We can NOT use -z defs as we might desire, because we do not
13838 # link with -lc, and that would cause any symbols used from libc to
13839 # always be unresolved, which means just about no library would
13840 # ever link correctly. If we're not using GNU ld we use -z text
13841 # though, which does catch some bad symbols but isn't as heavy-handed
13843 no_undefined_flag_FC
='${wl}-z,text'
13844 allow_undefined_flag_FC
='${wl}-z,nodefs'
13845 archive_cmds_need_lc_FC
=no
13846 hardcode_shlibpath_var_FC
=no
13847 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13848 hardcode_libdir_separator_FC
=':'
13849 link_all_deplibs_FC
=yes
13850 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13851 runpath_var
='LD_RUN_PATH'
13853 if test "$GCC" = yes; then
13854 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13855 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13857 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13858 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13864 hardcode_libdir_flag_spec_FC
='-L$libdir'
13865 hardcode_shlibpath_var_FC
=no
13873 if test x
$host_vendor = xsni
; then
13875 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13876 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13883 $as_echo "$ld_shlibs_FC" >&6; }
13884 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13886 with_gnu_ld_FC
=$with_gnu_ld
13894 # Do we need to explicitly link libc?
13896 case "x$archive_cmds_need_lc_FC" in
13898 # Assume -lc should be added
13899 archive_cmds_need_lc_FC
=yes
13901 if test "$enable_shared" = yes && test "$GCC" = yes; then
13902 case $archive_cmds_FC in
13904 # FIXME: we may have to deal with multi-command sequences.
13907 # Test whether the compiler implicitly links with -lc since on some
13908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13909 # to ld, don't add -lc before -lgcc.
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13911 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13912 if ${lt_cv_archive_cmds_need_lc_FC+:} false
; then :
13913 $as_echo_n "(cached) " >&6
13916 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13919 (eval $ac_compile) 2>&5
13921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13922 test $ac_status = 0; } 2>conftest.err
; then
13925 libobjs
=conftest.
$ac_objext
13927 wl
=$lt_prog_compiler_wl_FC
13928 pic_flag
=$lt_prog_compiler_pic_FC
13934 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13935 allow_undefined_flag_FC
=
13936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13937 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13940 test $ac_status = 0; }
13942 lt_cv_archive_cmds_need_lc_FC
=no
13944 lt_cv_archive_cmds_need_lc_FC
=yes
13946 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13948 cat conftest.err
1>&5
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13954 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13955 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14026 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14028 library_names_spec
=
14029 libname_spec
='lib$name'
14033 postuninstall_cmds
=
14037 shlibpath_overrides_runpath
=unknown
14039 dynamic_linker
="$host_os ld.so"
14040 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14041 need_lib_prefix
=unknown
14042 hardcode_into_libs
=no
14044 # when you set need_version to no, make sure it does not cause -set_version
14045 # flags to be left without arguments
14046 need_version
=unknown
14051 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14052 shlibpath_var
=LIBPATH
14054 # AIX 3 has no versioning support, so we append a major version to the name.
14055 soname_spec
='${libname}${release}${shared_ext}$major'
14062 hardcode_into_libs
=yes
14063 if test "$host_cpu" = ia64
; then
14064 # AIX 5 supports IA64
14065 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14066 shlibpath_var
=LD_LIBRARY_PATH
14068 # With GCC up to 2.95.x, collect2 would create an import file
14069 # for dependence libraries. The import file would start with
14070 # the line `#! .'. This would cause the generated library to
14071 # depend on `.', always an invalid library. This was fixed in
14072 # development snapshots of GCC prior to 3.0.
14074 aix4 | aix4.
[01] | aix4.
[01].
*)
14075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14077 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14080 can_build_shared
=no
14084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14085 # soname into executable. Probably we can add versioning support to
14086 # collect2, so additional links can be useful in future.
14087 if test "$aix_use_runtimelinking" = yes; then
14088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14089 # instead of lib<name>.a to let people know that these are not
14090 # typical AIX shared libraries.
14091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093 # We preserve .a as extension for shared libraries through AIX4.2
14094 # and later when we are not doing run time linking.
14095 library_names_spec
='${libname}${release}.a $libname.a'
14096 soname_spec
='${libname}${release}${shared_ext}$major'
14098 shlibpath_var
=LIBPATH
14105 # Since July 2007 AmigaOS4 officially supports .so libraries.
14106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14110 library_names_spec
='$libname.ixlibrary $libname.a'
14111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14112 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'
14118 library_names_spec
='${libname}${shared_ext}'
14119 dynamic_linker
="$host_os ld.so"
14120 shlibpath_var
=LIBRARY_PATH
14126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127 soname_spec
='${libname}${release}${shared_ext}$major'
14128 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14129 shlibpath_var
=LD_LIBRARY_PATH
14130 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14131 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14132 # the default ld.so.conf also contains /usr/contrib/lib and
14133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14134 # libtool to hard-code these into programs
14137 cygwin
* | mingw
* | pw32
* | cegcc
*)
14138 version_type
=windows
14143 case $GCC,$host_os in
14144 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14145 library_names_spec
='$libname.dll.a'
14146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14147 postinstall_cmds
='base_file=`basename \${file}`~
14148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14149 dldir=$destdir/`dirname \$dlpath`~
14150 test -d \$dldir || mkdir -p \$dldir~
14151 $install_prog $dir/$dlname \$dldir/$dlname~
14152 chmod a+x \$dldir/$dlname~
14153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14156 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14157 dlpath=$dir/\$dldll~
14159 shlibpath_overrides_runpath
=yes
14163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14164 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14168 # MinGW DLLs use traditional 'lib' prefix
14169 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14172 # pw32 DLLs use 'pw' prefix rather than 'lib'
14173 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14179 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14182 dynamic_linker
='Win32 ld.exe'
14183 # FIXME: first we should search . and the directory the executable is in
14187 darwin
* | rhapsody
*)
14188 dynamic_linker
="$host_os dyld"
14189 version_type
=darwin
14192 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14193 soname_spec
='${libname}${release}${major}$shared_ext'
14194 shlibpath_overrides_runpath
=yes
14195 shlibpath_var
=DYLD_LIBRARY_PATH
14196 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14198 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14206 soname_spec
='${libname}${release}${shared_ext}$major'
14207 shlibpath_var
=LD_LIBRARY_PATH
14210 freebsd
* | dragonfly
*)
14211 # DragonFly does not have aout. When/if they implement a new
14212 # versioning mechanism, adjust this.
14213 if test -x /usr
/bin
/objformat
; then
14214 objformat
=`/usr/bin/objformat`
14217 freebsd
[23].
*) objformat
=aout
;;
14218 *) objformat
=elf
;;
14221 version_type
=freebsd-
$objformat
14222 case $version_type in
14224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14229 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14233 shlibpath_var
=LD_LIBRARY_PATH
14236 shlibpath_overrides_runpath
=yes
14238 freebsd3.
[01]* | freebsdelf3.
[01]*)
14239 shlibpath_overrides_runpath
=yes
14240 hardcode_into_libs
=yes
14242 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14243 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14244 shlibpath_overrides_runpath
=no
14245 hardcode_into_libs
=yes
14247 *) # from 4.6 on, and DragonFly
14248 shlibpath_overrides_runpath
=yes
14249 hardcode_into_libs
=yes
14258 dynamic_linker
="$host_os runtime_loader"
14259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14260 soname_spec
='${libname}${release}${shared_ext}$major'
14261 shlibpath_var
=LIBRARY_PATH
14262 shlibpath_overrides_runpath
=yes
14263 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14264 hardcode_into_libs
=yes
14267 hpux9
* | hpux10
* | hpux11
*)
14268 # Give a soname corresponding to the major version so that dld.sl refuses to
14269 # link against other versions.
14276 hardcode_into_libs
=yes
14277 dynamic_linker
="$host_os dld.so"
14278 shlibpath_var
=LD_LIBRARY_PATH
14279 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14281 soname_spec
='${libname}${release}${shared_ext}$major'
14282 if test "X$HPUX_IA64_MODE" = X32
; then
14283 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14285 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14287 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14291 hardcode_into_libs
=yes
14292 dynamic_linker
="$host_os dld.sl"
14293 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14294 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14296 soname_spec
='${libname}${release}${shared_ext}$major'
14297 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14298 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14302 dynamic_linker
="$host_os dld.sl"
14303 shlibpath_var
=SHLIB_PATH
14304 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14305 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306 soname_spec
='${libname}${release}${shared_ext}$major'
14309 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14310 postinstall_cmds
='chmod 555 $lib'
14311 # or fails outright, so override atomically:
14312 install_override_mode
=555
14319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14320 soname_spec
='${libname}${release}${shared_ext}$major'
14321 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14322 shlibpath_var
=LD_LIBRARY_PATH
14323 shlibpath_overrides_runpath
=no
14324 hardcode_into_libs
=yes
14327 irix5
* | irix6
* | nonstopux
*)
14329 nonstopux
*) version_type
=nonstopux
;;
14331 if test "$lt_cv_prog_gnu_ld" = yes; then
14339 soname_spec
='${libname}${release}${shared_ext}$major'
14340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14342 irix5
* | nonstopux
*)
14343 libsuff
= shlibsuff
=
14346 case $LD in # libtool.m4 will add one of these switches to LD
14347 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14348 libsuff
= shlibsuff
= libmagic
=32-bit;;
14349 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14350 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14351 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14352 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14353 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14357 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14358 shlibpath_overrides_runpath
=no
14359 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14360 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14361 hardcode_into_libs
=yes
14364 # No shared lib support for Linux oldld, aout, or coff.
14365 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14369 # This must be Linux ELF.
14371 # uclinux* changes (here and below) have been submitted to the libtool
14372 # project, but have not yet been accepted: they are GCC-local changes
14373 # for the time being. (See
14374 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14375 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
14379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380 soname_spec
='${libname}${release}${shared_ext}$major'
14381 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14382 shlibpath_var
=LD_LIBRARY_PATH
14383 shlibpath_overrides_runpath
=no
14385 # Some binutils ld are patched to set DT_RUNPATH
14386 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14387 $as_echo_n "(cached) " >&6
14389 lt_cv_shlibpath_overrides_runpath
=no
14390 save_LDFLAGS
=$LDFLAGS
14391 save_libdir
=$libdir
14392 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14393 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14394 cat > conftest.
$ac_ext <<_ACEOF
14399 if ac_fn_fc_try_link
"$LINENO"; then :
14400 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14401 lt_cv_shlibpath_overrides_runpath
=yes
14404 rm -f core conftest.err conftest.
$ac_objext \
14405 conftest
$ac_exeext conftest.
$ac_ext
14406 LDFLAGS
=$save_LDFLAGS
14407 libdir
=$save_libdir
14411 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14413 # This implies no fast_install, which is unacceptable.
14414 # Some rework will be needed to allow for fast_install
14415 # before this can be enabled.
14416 hardcode_into_libs
=yes
14418 # Append ld.so.conf contents to the search path
14419 if test -f /etc
/ld.so.conf
; then
14420 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' ' '`
14421 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14424 # We used to test for /lib/ld.so.1 and disable shared libraries on
14425 # powerpc, because MkLinux only supported shared libraries with the
14426 # GNU dynamic linker. Since this was broken with cross compilers,
14427 # most powerpc-linux boxes support dynamic linking these days and
14428 # people can always --disable-shared, the test was removed, and we
14429 # assume the GNU/Linux dynamic linker is in use.
14430 dynamic_linker
='GNU/Linux ld.so'
14437 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14438 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14439 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14440 dynamic_linker
='NetBSD (a.out) ld.so'
14442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14443 soname_spec
='${libname}${release}${shared_ext}$major'
14444 dynamic_linker
='NetBSD ld.elf_so'
14446 shlibpath_var
=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath
=yes
14448 hardcode_into_libs
=yes
14453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 shlibpath_var
=LD_LIBRARY_PATH
14455 shlibpath_overrides_runpath
=yes
14462 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec
='${libname}${release}${shared_ext}$major'
14464 shlibpath_var
=LD_LIBRARY_PATH
14465 shlibpath_overrides_runpath
=no
14466 hardcode_into_libs
=yes
14467 dynamic_linker
='ldqnx.so'
14472 sys_lib_dlsearch_path_spec
="/usr/lib"
14474 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14476 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14477 *) need_version
=no
;;
14479 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14480 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14481 shlibpath_var
=LD_LIBRARY_PATH
14482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14484 openbsd2.
[89] | openbsd2.
[89].
*)
14485 shlibpath_overrides_runpath
=no
14488 shlibpath_overrides_runpath
=yes
14492 shlibpath_overrides_runpath
=yes
14497 libname_spec
='$name'
14500 library_names_spec
='$libname${shared_ext} $libname.a'
14501 dynamic_linker
='OS/2 ld.exe'
14502 shlibpath_var
=LIBPATH
14505 osf3
* | osf4
* | osf5
*)
14509 soname_spec
='${libname}${release}${shared_ext}$major'
14510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 shlibpath_var
=LD_LIBRARY_PATH
14512 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14513 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec
='${libname}${release}${shared_ext}$major'
14526 shlibpath_var
=LD_LIBRARY_PATH
14527 shlibpath_overrides_runpath
=yes
14528 hardcode_into_libs
=yes
14529 # ldd complains unless libraries are executable
14530 postinstall_cmds
='chmod +x $lib'
14535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14536 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14537 shlibpath_var
=LD_LIBRARY_PATH
14538 shlibpath_overrides_runpath
=yes
14539 if test "$with_gnu_ld" = yes; then
14547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548 soname_spec
='${libname}${release}${shared_ext}$major'
14549 shlibpath_var
=LD_LIBRARY_PATH
14550 case $host_vendor in
14552 shlibpath_overrides_runpath
=no
14554 runpath_var
=LD_RUN_PATH
14562 shlibpath_overrides_runpath
=no
14563 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14569 if test -d /usr
/nec
;then
14571 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14572 soname_spec
='$libname${shared_ext}.$major'
14573 shlibpath_var
=LD_LIBRARY_PATH
14577 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14578 version_type
=freebsd-elf
14581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14582 soname_spec
='${libname}${release}${shared_ext}$major'
14583 shlibpath_var
=LD_LIBRARY_PATH
14584 shlibpath_overrides_runpath
=yes
14585 hardcode_into_libs
=yes
14586 if test "$with_gnu_ld" = yes; then
14587 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14589 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14592 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14596 sys_lib_dlsearch_path_spec
='/usr/lib'
14600 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605 shlibpath_var
=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath
=no
14607 hardcode_into_libs
=yes
14612 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613 soname_spec
='${libname}${release}${shared_ext}$major'
14614 shlibpath_var
=LD_LIBRARY_PATH
14617 # Shared libraries for VwWorks, >= 7 only at this stage
14618 # and (fpic) still incompatible with "large" code models
14619 # in a few configurations. Only for RTP mode in any case,
14620 # and upon explicit request at configure time.
14623 case ${with_multisubdir}-${enable_shared} in
14630 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14631 soname_spec
='${libname}${release}${shared_ext}$major'
14632 dynamic_linker
="$host_os module_loader"
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14641 $as_echo "$dynamic_linker" >&6; }
14642 test "$dynamic_linker" = no
&& can_build_shared
=no
14644 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14645 if test "$GCC" = yes; then
14646 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14649 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14650 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14652 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14653 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14695 hardcode_action_FC
=
14696 if test -n "$hardcode_libdir_flag_spec_FC" ||
14697 test -n "$runpath_var_FC" ||
14698 test "X$hardcode_automatic_FC" = "Xyes" ; then
14700 # We can hardcode non-existent directories.
14701 if test "$hardcode_direct_FC" != no
&&
14702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14703 # have to relink, otherwise we might link with an installed library
14704 # when we should be linking with a yet-to-be-installed one
14705 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14706 test "$hardcode_minus_L_FC" != no
; then
14707 # Linking always hardcodes the temporary library directory.
14708 hardcode_action_FC
=relink
14710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14711 hardcode_action_FC
=immediate
14714 # We cannot hardcode anything, or else we can only hardcode existing
14716 hardcode_action_FC
=unsupported
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14719 $as_echo "$hardcode_action_FC" >&6; }
14721 if test "$hardcode_action_FC" = relink ||
14722 test "$inherit_rpath_FC" = yes; then
14723 # Fast installation is not supported
14724 enable_fast_install
=no
14725 elif test "$shlibpath_overrides_runpath" = yes ||
14726 test "$enable_shared" = no
; then
14727 # Fast installation is not necessary
14728 enable_fast_install
=needless
14737 fi # test -n "$compiler"
14741 fi # test "$_lt_disable_FC" != yes
14744 ac_cpp
='$CPP $CPPFLAGS'
14745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14750 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14752 # For libtool versioning info, format is CURRENT:REVISION:AGE
14753 libtool_VERSION
=1:0:0
14756 # Check header files.
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14758 $as_echo_n "checking for ANSI C header files... " >&6; }
14759 if ${ac_cv_header_stdc+:} false
; then :
14760 $as_echo_n "(cached) " >&6
14762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 #include <stdlib.h>
14765 #include <stdarg.h>
14766 #include <string.h>
14777 if ac_fn_c_try_compile
"$LINENO"; then :
14778 ac_cv_header_stdc
=yes
14780 ac_cv_header_stdc
=no
14782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14784 if test $ac_cv_header_stdc = yes; then
14785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 #include <string.h>
14791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14792 $EGREP "memchr" >/dev
/null
2>&1; then :
14795 ac_cv_header_stdc
=no
14801 if test $ac_cv_header_stdc = yes; then
14802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 #include <stdlib.h>
14808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14809 $EGREP "free" >/dev
/null
2>&1; then :
14812 ac_cv_header_stdc
=no
14818 if test $ac_cv_header_stdc = yes; then
14819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14820 if test "$cross_compiling" = yes; then :
14823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14826 #include <stdlib.h>
14827 #if ((' ' & 0x0FF) == 0x020)
14828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14831 # define ISLOWER(c) \
14832 (('a' <= (c) && (c) <= 'i') \
14833 || ('j' <= (c) && (c) <= 'r') \
14834 || ('s' <= (c) && (c) <= 'z'))
14835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14843 for (i = 0; i < 256; i++)
14844 if (XOR (islower (i), ISLOWER (i))
14845 || toupper (i) != TOUPPER (i))
14850 if ac_fn_c_try_run
"$LINENO"; then :
14853 ac_cv_header_stdc
=no
14855 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14856 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14862 $as_echo "$ac_cv_header_stdc" >&6; }
14863 if test $ac_cv_header_stdc = yes; then
14865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14870 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14871 if ${ac_cv_header_time+:} false
; then :
14872 $as_echo_n "(cached) " >&6
14874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876 #include <sys/types.h>
14877 #include <sys/time.h>
14883 if ((struct tm *) 0)
14889 if ac_fn_c_try_compile
"$LINENO"; then :
14890 ac_cv_header_time
=yes
14892 ac_cv_header_time
=no
14894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14897 $as_echo "$ac_cv_header_time" >&6; }
14898 if test $ac_cv_header_time = yes; then
14900 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14905 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14906 if ${gcc_cv_header_string+:} false
; then :
14907 $as_echo_n "(cached) " >&6
14909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14911 #include <string.h>
14912 #include <strings.h>
14921 if ac_fn_c_try_compile
"$LINENO"; then :
14922 gcc_cv_header_string
=yes
14924 gcc_cv_header_string
=no
14926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14929 $as_echo "$gcc_cv_header_string" >&6; }
14930 if test $gcc_cv_header_string = yes; then
14932 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14936 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14938 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14939 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14940 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14941 cat >>confdefs.h
<<_ACEOF
14942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14953 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14955 nvptx
*-*-* | amdgcn
*-*-*)
14956 # NVPTX does not support Pthreads, has its own code replacement.
14957 libgomp_use_pthreads
=no
14958 # NVPTX is an accelerator-only target
14959 libgomp_offloaded_only
=yes
14962 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14963 # In case the pthread.h system header is not found, this test will fail.
14964 CFLAGS
="$CFLAGS -pthread"
14965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967 #include <pthread.h>
14968 void *g(void *d) { return NULL; }
14972 pthread_t t; pthread_create(&t,NULL,g,NULL);
14977 if ac_fn_c_try_link
"$LINENO"; then :
14978 XPCFLAGS
=" -Wc,-pthread"
14980 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
14981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14982 /* end confdefs.h. */
14983 #include <pthread.h>
14984 void *g(void *d) { return NULL; }
14988 pthread_t t; pthread_create(&t,NULL,g,NULL);
14993 if ac_fn_c_try_link
"$LINENO"; then :
14996 as_fn_error $?
"Pthreads are required to build libgomp" "$LINENO" 5
14998 rm -f core conftest.err conftest.
$ac_objext \
14999 conftest
$ac_exeext conftest.
$ac_ext
15001 rm -f core conftest.err conftest.
$ac_objext \
15002 conftest
$ac_exeext conftest.
$ac_ext
15005 if test x
$libgomp_use_pthreads != xno
; then
15007 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15011 if test x
$libgomp_offloaded_only = xyes
; then
15013 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15017 if test "x$enable_offload_defaulted" = xyes
; then
15019 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
15023 # The cast to long int works around a bug in the HP C Compiler
15024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15026 # This bug is HP SR number 8606223364.
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15028 $as_echo_n "checking size of void *... " >&6; }
15029 if ${ac_cv_sizeof_void_p+:} false
; then :
15030 $as_echo_n "(cached) " >&6
15032 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15035 if test "$ac_cv_type_void_p" = yes; then
15036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15038 as_fn_error
77 "cannot compute sizeof (void *)
15039 See \`config.log' for more details" "$LINENO" 5; }
15041 ac_cv_sizeof_void_p
=0
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15047 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15051 cat >>confdefs.h
<<_ACEOF
15052 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15057 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15059 # Copyright (C) 2014-2023 Free Software Foundation, Inc.
15061 # Contributed by Mentor Embedded.
15063 # This file is part of the GNU Offloading and Multi Processing Library
15066 # Libgomp is free software; you can redistribute it and/or modify it
15067 # under the terms of the GNU General Public License as published by
15068 # the Free Software Foundation; either version 3, or (at your option)
15069 # any later version.
15071 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15072 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15073 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15076 # Under Section 7 of GPL version 3, you are granted additional
15077 # permissions described in the GCC Runtime Library Exception, version
15078 # 3.1, as published by the Free Software Foundation.
15080 # You should have received a copy of the GNU General Public License and
15081 # a copy of the GCC Runtime Library Exception along with this program;
15082 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15083 # <http://www.gnu.org/licenses/>.
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15089 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15090 if ${ac_cv_lib_dl_dlsym+:} false
; then :
15091 $as_echo_n "(cached) " >&6
15093 ac_check_lib_save_LIBS
=$LIBS
15095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15096 /* end confdefs.h. */
15098 /* Override any GCC internal prototype to avoid an error.
15099 Use char because int might match the return type of a GCC
15100 builtin and then its argument prototype would still apply. */
15113 if ac_fn_c_try_link
"$LINENO"; then :
15114 ac_cv_lib_dl_dlsym
=yes
15116 ac_cv_lib_dl_dlsym
=no
15118 rm -f core conftest.err conftest.
$ac_objext \
15119 conftest
$ac_exeext conftest.
$ac_ext
15120 LIBS
=$ac_check_lib_save_LIBS
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15123 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15124 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
15130 if test x
"$plugin_support" = xyes
; then
15132 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15134 elif test "x${enable_offload_targets-no}" != xno
; then
15135 as_fn_error $?
"Can't support offloading without support for plugins" "$LINENO" 5
15140 for ac_header
in $ac_header_list
15142 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15143 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15145 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15146 cat >>confdefs.h
<<_ACEOF
15147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15160 for ac_func
in $ac_func_list
15162 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15163 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15164 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15165 cat >>confdefs.h
<<_ACEOF
15166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15189 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15190 # plugins, and configure to find the corresponding offload compilers.
15191 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15196 offload_additional_options
=
15197 offload_additional_lib_paths
=
15200 if test x
"$enable_offload_targets" != x
; then
15201 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15202 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15203 tgt
=`echo $tgt | sed 's/=.*//'`
15207 case "${target}" in
15208 aarch64
*-*-* | powerpc64le-
*-* | x86_64-
*-*)
15209 case "$ac_cv_sizeof_void_p" in
15211 # PR libgomp/65099: Currently, we only support offloading in
15212 # 64-bit configurations.
15222 # Target architecture not supported.
15228 case "${target}" in
15230 case "$ac_cv_sizeof_void_p" in
15246 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
15249 if test x
"$tgt_plugin" = x
; then
15250 # Not configuring libgomp for this offload target if we're not building
15251 # the corresponding offload plugin.
15253 elif test x
"$offload_plugins" = x
; then
15254 offload_plugins
=$tgt_plugin
15255 offload_targets
=$tgt
15257 offload_plugins
=$offload_plugins,$tgt_plugin
15258 offload_targets
=$offload_targets,$tgt
15260 # Configure additional search paths.
15261 if test x
"$tgt_dir" != x
; then
15262 offload_additional_options
="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15263 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15265 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15266 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15271 cat >>confdefs.h
<<_ACEOF
15272 #define OFFLOAD_PLUGINS "$offload_plugins"
15275 if test $PLUGIN_NVPTX = 1; then
15277 PLUGIN_NVPTX_FALSE
='#'
15279 PLUGIN_NVPTX_TRUE
='#'
15280 PLUGIN_NVPTX_FALSE
=
15283 if test $PLUGIN_GCN = 1; then
15285 PLUGIN_GCN_FALSE
='#'
15287 PLUGIN_GCN_TRUE
='#'
15293 # Check for functions needed.
15294 for ac_func
in getloadavg clock_gettime strtoull
15296 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15297 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15298 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15299 cat >>confdefs.h
<<_ACEOF
15300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15306 for ac_func
in aligned_alloc posix_memalign memalign _aligned_malloc
15308 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15309 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15310 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15311 cat >>confdefs.h
<<_ACEOF
15312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15319 # Check for broken semaphore implementation on darwin.
15320 # sem_init returns: sem_init error: Function not implemented.
15324 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15329 # RTEMS specific checks
15332 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15334 if test "x$ac_cv_type_struct__Mutex_Control" = xyes
; then :
15336 cat >>confdefs.h
<<_ACEOF
15337 #define HAVE_STRUCT__MUTEX_CONTROL 1
15346 # Check whether --enable-linux-futex was given.
15347 if test "${enable_linux_futex+set}" = set; then :
15348 enableval
=$enable_linux_futex;
15349 case "$enableval" in
15351 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15355 enable_linux_futex
=default
15360 *-linux* |
*-uclinux*)
15361 case "$enable_linux_futex" in
15363 # If headers don't have gettid/futex syscalls definition, then
15364 # default to no, otherwise there will be compile time failures.
15365 # Otherwise, default to yes. If we don't detect we are
15366 # compiled/linked against NPTL and not cross-compiling, check
15367 # if programs are run by default against NPTL and if not, issue
15369 enable_linux_futex
=no
15370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15372 #include <sys/syscall.h>
15373 #include <unistd.h>
15378 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15383 if ac_fn_c_try_link
"$LINENO"; then :
15385 LIBS
="-lpthread $LIBS"
15386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15388 #ifndef _GNU_SOURCE
15389 #define _GNU_SOURCE 1
15391 #include <pthread.h>
15392 pthread_t th; void *status;
15396 pthread_tryjoin_np (th, &status);
15401 if ac_fn_c_try_link
"$LINENO"; then :
15402 enable_linux_futex
=yes
15404 if test x
$cross_compiling = xno
; then
15405 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15406 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15408 If so, please configure with --disable-linux-futex" >&5
15409 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15410 If so, please configure with --disable-linux-futex" >&2;}
15413 enable_linux_futex
=yes
15415 rm -f core conftest.err conftest.
$ac_objext \
15416 conftest
$ac_exeext conftest.
$ac_ext
15419 rm -f core conftest.err conftest.
$ac_objext \
15420 conftest
$ac_exeext conftest.
$ac_ext
15423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h. */
15425 #include <sys/syscall.h>
15426 #include <unistd.h>
15431 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15436 if ac_fn_c_try_link
"$LINENO"; then :
15439 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15441 rm -f core conftest.err conftest.
$ac_objext \
15442 conftest
$ac_exeext conftest.
$ac_ext
15447 enable_linux_futex
=no
15450 if test x
$enable_linux_futex = xyes
; then
15455 # Check for pthread_{,attr_}[sg]etaffinity_np.
15456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458 #define _GNU_SOURCE
15459 #include <pthread.h>
15464 pthread_attr_t attr;
15465 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15466 if (CPU_ISSET (0, &cpuset))
15467 CPU_SET (1, &cpuset);
15469 CPU_ZERO (&cpuset);
15470 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15471 pthread_attr_init (&attr);
15472 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15473 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15478 if ac_fn_c_try_link
"$LINENO"; then :
15480 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15483 rm -f core conftest.err conftest.
$ac_objext \
15484 conftest
$ac_exeext conftest.
$ac_ext
15486 # At least for glibc, clock_gettime is in librt. But don't pull that
15487 # in if it still doesn't give us the function we want.
15488 if test $ac_cv_func_clock_gettime = no
; then
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15490 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15491 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
15492 $as_echo_n "(cached) " >&6
15494 ac_check_lib_save_LIBS
=$LIBS
15496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15499 /* Override any GCC internal prototype to avoid an error.
15500 Use char because int might match the return type of a GCC
15501 builtin and then its argument prototype would still apply. */
15505 char clock_gettime ();
15509 return clock_gettime ();
15514 if ac_fn_c_try_link
"$LINENO"; then :
15515 ac_cv_lib_rt_clock_gettime
=yes
15517 ac_cv_lib_rt_clock_gettime
=no
15519 rm -f core conftest.err conftest.
$ac_objext \
15520 conftest
$ac_exeext conftest.
$ac_ext
15521 LIBS
=$ac_check_lib_save_LIBS
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15524 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15525 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
15528 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h. */
15537 #include <string.h>
15538 #include <stdlib.h>
15539 #include <sys/utsname.h>
15543 struct utsname buf;
15544 volatile size_t len = 0;
15546 len = strlen (buf.nodename);
15551 if ac_fn_c_try_compile
"$LINENO"; then :
15553 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15558 # Check for gethostname.
15559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15561 #include <unistd.h>
15567 if (gethostname (buf, sizeof (buf) - 1) == 0)
15574 if ac_fn_c_try_compile
"$LINENO"; then :
15576 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15581 # Check for getpid.
15582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15583 /* end confdefs.h. */
15584 #include <unistd.h>
15588 int pid = getpid ();
15593 if ac_fn_c_try_compile
"$LINENO"; then :
15595 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15600 # See if we support thread-local storage.
15603 # Check whether --enable-tls was given.
15604 if test "${enable_tls+set}" = set; then :
15605 enableval
=$enable_tls;
15606 case "$enableval" in
15608 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15617 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15618 if ${gcc_cv_have_tls+:} false
; then :
15619 $as_echo_n "(cached) " >&6
15622 if test "$cross_compiling" = yes; then :
15623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 __thread int a; int b; int main() { return a = b; }
15627 if ac_fn_c_try_link
"$LINENO"; then :
15628 chktls_save_LDFLAGS
="$LDFLAGS"
15630 *-*-linux* |
-*-uclinuxfdpic*)
15631 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15634 chktls_save_CFLAGS
="$CFLAGS"
15635 CFLAGS
="-fPIC $CFLAGS"
15636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638 int f() { return 0; }
15640 if ac_fn_c_try_link
"$LINENO"; then :
15641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 __thread int a; int b; int f() { return a = b; }
15645 if ac_fn_c_try_link
"$LINENO"; then :
15646 gcc_cv_have_tls
=yes
15650 rm -f core conftest.err conftest.
$ac_objext \
15651 conftest
$ac_exeext conftest.
$ac_ext
15653 gcc_cv_have_tls
=yes
15655 rm -f core conftest.err conftest.
$ac_objext \
15656 conftest
$ac_exeext conftest.
$ac_ext
15657 CFLAGS
="$chktls_save_CFLAGS"
15658 LDFLAGS
="$chktls_save_LDFLAGS"
15662 rm -f core conftest.err conftest.
$ac_objext \
15663 conftest
$ac_exeext conftest.
$ac_ext
15667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15669 __thread int a; int b; int main() { return a = b; }
15671 if ac_fn_c_try_run
"$LINENO"; then :
15672 chktls_save_LDFLAGS
="$LDFLAGS"
15673 LDFLAGS
="-static $LDFLAGS"
15674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 int main() { return 0; }
15678 if ac_fn_c_try_link
"$LINENO"; then :
15679 if test "$cross_compiling" = yes; then :
15680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15682 as_fn_error $?
"cannot run test program while cross compiling
15683 See \`config.log' for more details" "$LINENO" 5; }
15685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687 __thread int a; int b; int main() { return a = b; }
15689 if ac_fn_c_try_run
"$LINENO"; then :
15690 gcc_cv_have_tls
=yes
15694 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15695 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15699 gcc_cv_have_tls
=yes
15701 rm -f core conftest.err conftest.
$ac_objext \
15702 conftest
$ac_exeext conftest.
$ac_ext
15703 LDFLAGS
="$chktls_save_LDFLAGS"
15704 if test $gcc_cv_have_tls = yes; then
15705 chktls_save_CFLAGS
="$CFLAGS"
15706 thread_CFLAGS
=failed
15707 for flag
in '' '-pthread' '-lpthread'; do
15708 CFLAGS
="$flag $chktls_save_CFLAGS"
15709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711 #include <pthread.h>
15712 void *g(void *d) { return NULL; }
15716 pthread_t t; pthread_create(&t,NULL,g,NULL);
15721 if ac_fn_c_try_link
"$LINENO"; then :
15722 thread_CFLAGS
="$flag"
15724 rm -f core conftest.err conftest.
$ac_objext \
15725 conftest
$ac_exeext conftest.
$ac_ext
15726 if test "X$thread_CFLAGS" != Xfailed
; then
15730 CFLAGS
="$chktls_save_CFLAGS"
15731 if test "X$thread_CFLAGS" != Xfailed
; then
15732 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15733 if test "$cross_compiling" = yes; then :
15734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15736 as_fn_error $?
"cannot run test program while cross compiling
15737 See \`config.log' for more details" "$LINENO" 5; }
15739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 #include <pthread.h>
15743 static int *volatile a_in_other_thread;
15745 thread_func (void *arg)
15747 a_in_other_thread = &a;
15754 void *thread_retval;
15755 int *volatile a_in_main_thread;
15756 a_in_main_thread = &a;
15757 if (pthread_create (&thread, (pthread_attr_t *)0,
15758 thread_func, (void *)0))
15760 if (pthread_join (thread, &thread_retval))
15762 return (a_in_other_thread == a_in_main_thread);
15767 if ac_fn_c_try_run
"$LINENO"; then :
15768 gcc_cv_have_tls
=yes
15772 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15773 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15776 CFLAGS
="$chktls_save_CFLAGS"
15782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15788 $as_echo "$gcc_cv_have_tls" >&6; }
15789 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15791 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15795 # See if we have emulated thread-local storage.
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15798 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15799 if ${gcc_cv_use_emutls+:} false
; then :
15800 $as_echo_n "(cached) " >&6
15803 gcc_cv_use_emutls
=no
15804 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15805 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15807 (eval $ac_try) 2>&5
15809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15810 test $ac_status = 0; }; }; then
15811 if grep __emutls_get_address conftest.s
> /dev
/null
; then
15812 gcc_cv_use_emutls
=yes
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15819 $as_echo "$gcc_cv_use_emutls" >&6; }
15820 if test "$gcc_cv_use_emutls" = "yes" ; then
15822 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15826 # See what sort of export controls are available.
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15829 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15830 if ${libgomp_cv_have_attribute_visibility+:} false
; then :
15831 $as_echo_n "(cached) " >&6
15834 save_CFLAGS
="$CFLAGS"
15835 CFLAGS
="$CFLAGS -Werror"
15836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15838 void __attribute__((visibility("hidden"))) foo(void) { }
15847 if ac_fn_c_try_compile
"$LINENO"; then :
15848 libgomp_cv_have_attribute_visibility
=yes
15850 libgomp_cv_have_attribute_visibility
=no
15852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15853 CFLAGS
="$save_CFLAGS"
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15856 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15857 if test $libgomp_cv_have_attribute_visibility = yes; then
15859 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15864 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15865 if ${libgomp_cv_have_attribute_dllexport+:} false
; then :
15866 $as_echo_n "(cached) " >&6
15869 save_CFLAGS
="$CFLAGS"
15870 CFLAGS
="$CFLAGS -Werror"
15871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h. */
15873 void __attribute__((dllexport)) foo(void) { }
15882 if ac_fn_c_try_compile
"$LINENO"; then :
15883 libgomp_cv_have_attribute_dllexport
=yes
15885 libgomp_cv_have_attribute_dllexport
=no
15887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15888 CFLAGS
="$save_CFLAGS"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15891 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15892 if test $libgomp_cv_have_attribute_dllexport = yes; then
15894 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15899 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15900 if ${libgomp_cv_have_attribute_alias+:} false
; then :
15901 $as_echo_n "(cached) " >&6
15904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15908 extern void bar(void) __attribute__((alias("foo")));
15917 if ac_fn_c_try_link
"$LINENO"; then :
15918 libgomp_cv_have_attribute_alias
=yes
15920 libgomp_cv_have_attribute_alias
=no
15922 rm -f core conftest.err conftest.
$ac_objext \
15923 conftest
$ac_exeext conftest.
$ac_ext
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15926 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15927 if test $libgomp_cv_have_attribute_alias = yes; then
15929 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15934 # Check whether --with-gnu-ld was given.
15935 if test "${with_gnu_ld+set}" = set; then :
15936 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
15942 if test "$GCC" = yes; then
15943 # Check if gcc -print-prog-name=ld gives a path.
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15945 $as_echo_n "checking for ld used by $CC... " >&6; }
15948 # gcc leaves a trailing carriage return which upsets mingw
15949 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15951 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15954 # Accept absolute paths.
15956 re_direlt
='/[^/][^/]*/\.\./'
15957 # Canonicalize the pathname of ld
15958 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15959 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
15960 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15962 test -z "$LD" && LD
="$ac_prog"
15965 # If it fails, then pretend we aren't using GCC.
15969 # If it is relative, then search for the first ld in PATH.
15970 with_gnu_ld
=unknown
15973 elif test "$with_gnu_ld" = yes; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15975 $as_echo_n "checking for GNU ld... " >&6; }
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15978 $as_echo_n "checking for non-GNU ld... " >&6; }
15980 if ${lt_cv_path_LD+:} false
; then :
15981 $as_echo_n "(cached) " >&6
15983 if test -z "$LD"; then
15984 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15985 for ac_dir
in $PATH; do
15987 test -z "$ac_dir" && ac_dir
=.
15988 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15989 lt_cv_path_LD
="$ac_dir/$ac_prog"
15990 # Check to see if the program is GNU ld. I'd rather use --version,
15991 # but apparently some variants of GNU ld only accept -v.
15992 # Break only if it was the GNU/non-GNU ld that we prefer.
15993 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15994 *GNU
* |
*'with BFD'*)
15995 test "$with_gnu_ld" != no
&& break
15998 test "$with_gnu_ld" != yes && break
16005 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16009 LD
="$lt_cv_path_LD"
16010 if test -n "$LD"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16012 $as_echo "$LD" >&6; }
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16017 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16019 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16020 if ${lt_cv_prog_gnu_ld+:} false
; then :
16021 $as_echo_n "(cached) " >&6
16023 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16024 case `$LD -v 2>&1 </dev/null` in
16025 *GNU
* |
*'with BFD'*)
16026 lt_cv_prog_gnu_ld
=yes
16029 lt_cv_prog_gnu_ld
=no
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16034 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16035 with_gnu_ld
=$lt_cv_prog_gnu_ld
16043 # If we're not using GNU ld, then there's no point in even trying these
16044 # tests. Check for that first. We should have already tested for gld
16045 # by now (in libtool), but require it now just to be safe...
16046 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16047 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16051 # The name set by libtool depends on the version of libtool. Shame on us
16052 # for depending on an impl detail, but c'est la vie. Older versions used
16053 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16054 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16055 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16056 # set (hence we're using an older libtool), then set it.
16057 if test x
${with_gnu_ld+set} != xset
; then
16058 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16059 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16062 with_gnu_ld
=$ac_cv_prog_gnu_ld
16066 # Start by getting the version number. I think the libtool test already
16067 # does some of this, but throws away the result.
16068 libgomp_ld_is_gold
=no
16069 libgomp_ld_is_mold
=no
16070 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16071 libgomp_ld_is_gold
=yes
16072 elif $LD --version 2>/dev
/null |
grep 'mold'> /dev
/null
2>&1; then
16073 libgomp_ld_is_mold
=yes
16076 ldver
=`$LD --version 2>/dev/null |
16077 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16079 libgomp_gnu_ld_version
=`echo $ldver | \
16080 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16082 # Set --gc-sections.
16083 if test "$with_gnu_ld" = "notbroken"; then
16084 # GNU ld it is! Joy and bunny rabbits!
16086 # All these tests are for C++; save the language and the compiler flags.
16087 # Need to do this so that g++ won't try to link in libstdc++
16088 ac_test_CFLAGS
="${CFLAGS+set}"
16089 ac_save_CFLAGS
="$CFLAGS"
16090 CFLAGS
='-x c++ -Wl,--gc-sections'
16092 # Check for -Wl,--gc-sections
16093 # XXX This test is broken at the moment, as symbols required for linking
16094 # are now in libsupc++ (not built yet). In addition, this test has
16095 # cored on solaris in the past. In addition, --gc-sections doesn't
16096 # really work at the moment (keeps on discarding used sections, first
16097 # .eh_frame and now some of the glibc sections for iconv).
16098 # Bzzzzt. Thanks for playing, maybe next time.
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16100 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16101 if test "$cross_compiling" = yes; then :
16102 ac_sectionLDflags
=yes
16104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16105 /* end confdefs.h. */
16115 if ac_fn_c_try_run
"$LINENO"; then :
16116 ac_sectionLDflags
=yes
16118 ac_sectionLDflags
=no
16120 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16121 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16124 if test "$ac_test_CFLAGS" = set; then
16125 CFLAGS
="$ac_save_CFLAGS"
16127 # this is the suspicious part
16130 if test "$ac_sectionLDflags" = "yes"; then
16131 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16134 $as_echo "$ac_sectionLDflags" >&6; }
16137 # Set linker optimization flags.
16138 if test x
"$with_gnu_ld" = x
"yes"; then
16139 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16147 # Check whether --enable-symvers was given.
16148 if test "${enable_symvers+set}" = set; then :
16149 enableval
=$enable_symvers;
16150 case "$enableval" in
16151 yes|no|gnu
*|sun
) ;;
16152 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16161 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16162 # don't know enough about $LD to do tricks...
16165 # Turn a 'yes' into a suitable default.
16166 if test x
$enable_symvers = xyes
; then
16167 # FIXME The following test is too strict, in theory.
16168 if test $enable_shared = no ||
test "x$LD" = x
; then
16171 if test $with_gnu_ld = yes ; then
16174 case ${target_os} in
16175 # Sun symbol versioning exists since Solaris 2.5.
16176 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16177 enable_symvers
=sun
;;
16179 enable_symvers
=no
;;
16185 # Check if 'sun' was requested on non-Solaris 2 platforms.
16186 if test x
$enable_symvers = xsun
; then
16187 case ${target_os} in
16192 # Unlikely to work.
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16194 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16196 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16198 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16204 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16205 if test $enable_symvers != no
; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16207 $as_echo_n "checking for shared libgcc... " >&6; }
16208 ac_save_CFLAGS
="$CFLAGS"
16210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16221 if ac_fn_c_try_link
"$LINENO"; then :
16222 libgomp_shared_libgcc
=yes
16224 libgomp_shared_libgcc
=no
16226 rm -f core conftest.err conftest.
$ac_objext \
16227 conftest
$ac_exeext conftest.
$ac_ext
16228 CFLAGS
="$ac_save_CFLAGS"
16229 if test $libgomp_shared_libgcc = no
; then
16230 cat > conftest.c
<<EOF
16231 int main (void) { return 0; }
16233 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16234 -shared -shared-libgcc -o conftest.so \
16235 conftest.c -v 2>&1 >/dev/null \
16236 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16237 rm -f conftest.c conftest.so
16238 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16239 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16251 if ac_fn_c_try_link
"$LINENO"; then :
16252 libgomp_shared_libgcc
=yes
16254 rm -f core conftest.err conftest.
$ac_objext \
16255 conftest
$ac_exeext conftest.
$ac_ext
16256 CFLAGS
="$ac_save_CFLAGS"
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16260 $as_echo "$libgomp_shared_libgcc" >&6; }
16263 # For GNU ld, we need at least this version. The format is described in
16264 # LIBGOMP_CHECK_LINKER_FEATURES above.
16265 libgomp_min_gnu_ld_version
=21400
16266 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16268 # Check to see if unspecified "yes" value can win, given results above.
16269 # Change "yes" into either "no" or a style name.
16270 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16271 if test $with_gnu_ld = yes; then
16272 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16274 elif test $libgomp_ld_is_gold = yes ; then
16276 elif test $libgomp_ld_is_mold = yes ; then
16279 # The right tools, the right setup, but too old. Fallbacks?
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16281 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16283 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16285 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16287 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16288 if test $libgomp_gnu_ld_version -ge 21200 ; then
16289 # Globbing fix is present, proper block support is not.
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16291 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16296 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16300 elif test $enable_symvers = sun
; then
16301 : All interesting versions of Sun ld support sun style symbol versioning.
16303 # just fail for now
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16305 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16307 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16309 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16311 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16317 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16318 if ${libgomp_cv_have_as_symver_directive+:} false
; then :
16319 $as_echo_n "(cached) " >&6
16322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h. */
16324 void foo (void); __asm (".symver foo, bar@SYMVER");
16333 if ac_fn_c_try_compile
"$LINENO"; then :
16334 libgomp_cv_have_as_symver_directive
=yes
16336 libgomp_cv_have_as_symver_directive
=no
16338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16341 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16342 if test $libgomp_cv_have_as_symver_directive = yes; then
16344 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16348 if test $enable_symvers != no
; then
16349 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16350 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16352 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16353 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16356 if test $enable_symvers = gnu
; then
16357 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16358 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16360 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16361 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16364 if test $enable_symvers = sun
; then
16365 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16366 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16368 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16369 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16373 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16375 if test $enable_symvers != no
; then
16376 case ${target_os} in
16377 # The Solaris 2 runtime linker doesn't support the GNU extension of
16378 # binding the same symbol to different versions
16381 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16384 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16391 if test $enable_symvers = gnu
; then
16393 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16397 # Determine cpu count to limit testsuite parallelism.
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16399 $as_echo_n "checking the number of available CPUs... " >&6; }
16402 # Try generic methods
16404 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16405 # 'NPROCESSORS_ONLN' are platform-specific
16406 command -v getconf
>/dev
/null
2>&1 && \
16407 CPU_COUNT
=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT
="0"
16408 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v nproc
>/dev
/null
2>&1; then :
16411 # 'nproc' is part of GNU Coreutils and is widely available
16412 CPU_COUNT
=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT
=`nproc 2>/dev/null` || CPU_COUNT
="0"
16415 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16418 # Try platform-specific preferred methods
16419 case $host_os in #(
16421 CPU_COUNT
=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT
="0" ;; #(
16423 CPU_COUNT
=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT
="0" ;; #(
16425 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT
="0" ;; #(
16427 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT
="0" ;; #(
16429 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" ;; #(
16431 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16433 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16435 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16440 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v sysctl
>/dev
/null
2>&1; then :
16443 # Try less preferred generic method
16444 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16445 CPU_COUNT
=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT
="0"
16448 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16451 # Try platform-specific fallback methods
16452 # They can be less accurate and slower then preferred methods
16453 case $host_os in #(
16455 CPU_COUNT
=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT
="0" ;; #(
16457 CPU_COUNT
=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT
="0" ;; #(
16459 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16461 CPU_COUNT
=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16462 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16464 command -v kstat
>/dev
/null
2>&1 && CPU_COUNT
=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16465 CPU_COUNT
=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT
="0" ;; #(
16467 if CPU_COUNT
=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16470 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS"
16473 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16475 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16480 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev
/null
; then :
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16482 $as_echo "$CPU_COUNT" >&6; }
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16487 $as_echo "unable to detect (assuming 1)" >&6; }
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock implementation" >&5
16493 $as_echo "$as_me: checking for flock implementation" >&6;}
16494 for ac_prog
in flock
16496 # Extract the first word of "$ac_prog", so it can be a program name with args.
16497 set dummy
$ac_prog; ac_word
=$2
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16499 $as_echo_n "checking for $ac_word... " >&6; }
16500 if ${ac_cv_prog_FLOCK+:} false
; then :
16501 $as_echo_n "(cached) " >&6
16503 if test -n "$FLOCK"; then
16504 ac_cv_prog_FLOCK
="$FLOCK" # Let the user override the test.
16506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16507 for as_dir
in $PATH
16510 test -z "$as_dir" && as_dir
=.
16511 for ac_exec_ext
in '' $ac_executable_extensions; do
16512 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16513 ac_cv_prog_FLOCK
="$ac_prog"
16514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16523 FLOCK
=$ac_cv_prog_FLOCK
16524 if test -n "$FLOCK"; then
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16526 $as_echo "$FLOCK" >&6; }
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16529 $as_echo "no" >&6; }
16533 test -n "$FLOCK" && break
16536 # Fallback if 'perl' is available.
16537 if test -z "$FLOCK"; then
16538 # Extract the first word of "perl", so it can be a program name with args.
16539 set dummy perl
; ac_word
=$2
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16541 $as_echo_n "checking for $ac_word... " >&6; }
16542 if ${ac_cv_prog_FLOCK+:} false
; then :
16543 $as_echo_n "(cached) " >&6
16545 if test -n "$FLOCK"; then
16546 ac_cv_prog_FLOCK
="$FLOCK" # Let the user override the test.
16548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16549 for as_dir
in $PATH
16552 test -z "$as_dir" && as_dir
=.
16553 for ac_exec_ext
in '' $ac_executable_extensions; do
16554 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16555 ac_cv_prog_FLOCK
="$srcdir/testsuite/flock"
16556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16565 FLOCK
=$ac_cv_prog_FLOCK
16566 if test -n "$FLOCK"; then
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16568 $as_echo "$FLOCK" >&6; }
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16571 $as_echo "no" >&6; }
16577 # Get target configury.
16578 .
${srcdir}/configure.tgt
16579 CFLAGS
="$save_CFLAGS $XCFLAGS"
16581 # Check for __sync_val_compare_and_swap, but only after the target has
16582 # had a chance to set XCFLAGS.
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16585 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16586 if ${libgomp_cv_have_sync_builtins+:} false
; then :
16587 $as_echo_n "(cached) " >&6
16590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16596 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16601 if ac_fn_c_try_link
"$LINENO"; then :
16602 libgomp_cv_have_sync_builtins
=yes
16604 libgomp_cv_have_sync_builtins
=no
16606 rm -f core conftest.err conftest.
$ac_objext \
16607 conftest
$ac_exeext conftest.
$ac_ext
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16610 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16611 if test $libgomp_cv_have_sync_builtins = yes; then
16613 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16617 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16619 # Add CET specific flags if CET is enabled
16620 # Check whether --enable-cet was given.
16621 if test "${enable_cet+set}" = set; then :
16622 enableval
=$enable_cet;
16623 case "$enableval" in
16625 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16634 $as_echo_n "checking for CET support... " >&6; }
16636 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16638 i
[34567]86-*-linux* | x86_64-
*-linux*)
16639 case "$enable_cet" in
16641 # Check if target supports multi-byte NOPs
16642 # and if compiler and assembler support CET insn.
16643 cet_save_CFLAGS
="$CFLAGS"
16644 CFLAGS
="$CFLAGS -fcf-protection"
16645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16652 #if !defined(__SSE2__)
16653 #error target does not support multi-byte NOPs
16662 if ac_fn_c_try_compile
"$LINENO"; then :
16667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16668 CFLAGS
="$cet_save_CFLAGS"
16671 # Check if assembler supports CET.
16672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16683 if ac_fn_c_try_compile
"$LINENO"; then :
16686 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
16688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16696 if test x
$enable_cet = xyes
; then
16697 CET_FLAGS
="-fcf-protection -mshstk"
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16699 $as_echo "yes" >&6; }
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16702 $as_echo "no" >&6; }
16705 XCFLAGS
="$XCFLAGS $CET_FLAGS"
16706 FCFLAGS
="$FCFLAGS $CET_FLAGS"
16712 # Conditionalize the makefile for this target machine.
16714 for f
in ${tmake_file}
16716 if test -f ${srcdir}/config
/$f
16718 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
16721 tmake_file
="${tmake_file_}"
16724 # Cleanup and exit.
16725 CFLAGS
="$save_CFLAGS"
16726 cat >confcache
<<\_ACEOF
16727 # This file is a shell script that caches the results of configure
16728 # tests run on this system so they can be shared between configure
16729 # scripts and configure runs, see configure's option --config-cache.
16730 # It is not useful on other systems. If it contains results you don't
16731 # want to keep, you may remove or edit it.
16733 # config.status only pays attention to the cache file if you give it
16734 # the --recheck option to rerun configure.
16736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16738 # following values.
16742 # The following way of writing the cache mishandles newlines in values,
16743 # but we know of no workaround that is simple, portable, and efficient.
16744 # So, we kill variables containing newlines.
16745 # Ultrix sh set writes to stderr and can't be redirected directly,
16746 # and sets the high bit in the cache file unless we assign to the vars.
16748 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16749 eval ac_val
=\$
$ac_var
16753 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16754 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16757 _ | IFS | as_nl
) ;; #(
16758 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16759 *) { eval $ac_var=; unset $ac_var;} ;;
16765 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16766 *${as_nl}ac_space
=\
*)
16767 # `set' does not quote correctly, so add quotes: double-quote
16768 # substitution turns \\\\ into \\, and sed turns \\ into \.
16771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16774 # `set' quotes correctly as required by POSIX, so do not add quotes.
16775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16786 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16788 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16789 if test -w "$cache_file"; then
16790 if test "x$cache_file" != "x/dev/null"; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16792 $as_echo "$as_me: updating cache $cache_file" >&6;}
16793 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16794 cat confcache
>"$cache_file"
16796 case $cache_file in #(
16798 mv -f confcache
"$cache_file"$$
&&
16799 mv -f "$cache_file"$$
"$cache_file" ;; #(
16801 mv -f confcache
"$cache_file" ;;
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16807 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16812 if test ${multilib} = yes; then
16813 multilib_arg
="--enable-multilib"
16818 # Set up the set of libraries that we need to link against for libgomp.
16819 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16820 # which will force linkage against -lpthread (or equivalent for the system).
16821 # That's not 100% ideal, but about the best we can do easily.
16822 if test $enable_shared = yes; then
16823 link_gomp
="-lgomp %{static: $LIBS${DL_LIBS:+ $DL_LIBS}}"
16825 link_gomp
="-lgomp $LIBS${DL_LIBS:+ $DL_LIBS}"
16829 if test "$ac_cv_fc_compiler_gnu" = yes; then
16831 USE_FORTRAN_FALSE
='#'
16833 USE_FORTRAN_TRUE
='#'
16838 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16839 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16840 # the underscore here and update the PREREQ. If it doesn't, then we'll
16841 # need to copy this macro to our acinclude.m4.
16842 save_CFLAGS
="$CFLAGS"
16843 for i
in $config_path; do
16844 if test -f $srcdir/config
/$i/omp-lock.h
; then
16845 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16850 if ac_fn_c_compute_int
"$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16855 if ac_fn_c_compute_int
"$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16862 if ac_fn_c_compute_int
"$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16869 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16872 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16876 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16881 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16886 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16891 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16894 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16898 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16903 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16908 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16914 # If the lock fits in an integer, then arrange for Fortran to use that
16915 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16916 # Except that we don't have a way at present to multi-lib the installed
16917 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16919 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16920 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16921 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16924 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16925 OMP_NEST_LOCK_KIND
=8
16927 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16928 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16929 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16932 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16933 OMP_NEST_LOCK_25_KIND
=8
16935 if test "$ac_cv_fc_compiler_gnu" = yes; then
16936 if test $OMP_DEPEND_KIND -eq 16; then
16937 if test $OMP_INT128_SIZE -ne 16; then
16938 as_fn_error $?
"unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16941 if test $OMP_DEPEND_KIND -ne 8; then
16942 as_fn_error $?
"unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
16961 CFLAGS
="$save_CFLAGS"
16963 # Determine what GCC version number to use in filesystem paths.
16965 get_gcc_base_ver
="cat"
16967 # Check whether --with-gcc-major-version-only was given.
16968 if test "${with_gcc_major_version_only+set}" = set; then :
16969 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
16970 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
16978 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16980 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16982 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16984 ac_config_files
="$ac_config_files testsuite/libgomp-site-extra.exp"
16986 cat >confcache
<<\_ACEOF
16987 # This file is a shell script that caches the results of configure
16988 # tests run on this system so they can be shared between configure
16989 # scripts and configure runs, see configure's option --config-cache.
16990 # It is not useful on other systems. If it contains results you don't
16991 # want to keep, you may remove or edit it.
16993 # config.status only pays attention to the cache file if you give it
16994 # the --recheck option to rerun configure.
16996 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16997 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16998 # following values.
17002 # The following way of writing the cache mishandles newlines in values,
17003 # but we know of no workaround that is simple, portable, and efficient.
17004 # So, we kill variables containing newlines.
17005 # Ultrix sh set writes to stderr and can't be redirected directly,
17006 # and sets the high bit in the cache file unless we assign to the vars.
17008 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17009 eval ac_val
=\$
$ac_var
17013 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17014 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17017 _ | IFS | as_nl
) ;; #(
17018 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17019 *) { eval $ac_var=; unset $ac_var;} ;;
17025 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17026 *${as_nl}ac_space
=\
*)
17027 # `set' does not quote correctly, so add quotes: double-quote
17028 # substitution turns \\\\ into \\, and sed turns \\ into \.
17031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17034 # `set' quotes correctly as required by POSIX, so do not add quotes.
17035 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17044 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17046 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17048 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17049 if test -w "$cache_file"; then
17050 if test "x$cache_file" != "x/dev/null"; then
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17052 $as_echo "$as_me: updating cache $cache_file" >&6;}
17053 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17054 cat confcache
>"$cache_file"
17056 case $cache_file in #(
17058 mv -f confcache
"$cache_file"$$
&&
17059 mv -f "$cache_file"$$
"$cache_file" ;; #(
17061 mv -f confcache
"$cache_file" ;;
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17067 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17072 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17073 # Let make expand exec_prefix.
17074 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17076 DEFS
=-DHAVE_CONFIG_H
17081 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17082 # 1. Remove the extension, and $U if already installed.
17083 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17084 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17085 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17086 # will be set to the directory where LIBOBJS objects are built.
17087 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17088 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17090 LIBOBJS
=$ac_libobjs
17092 LTLIBOBJS
=$ac_ltlibobjs
17095 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17096 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
17097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17100 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17101 if test -n "$am_sleep_pid"; then
17102 # Hide warnings about reused PIDs.
17103 wait $am_sleep_pid 2>/dev
/null
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17106 $as_echo "done" >&6; }
17107 if test -n "$EXEEXT"; then
17109 am__EXEEXT_FALSE
='#'
17111 am__EXEEXT_TRUE
='#'
17115 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17116 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17119 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17120 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17123 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17124 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
17125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17127 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17128 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17131 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17132 as_fn_error $?
"conditional \"PLUGIN_NVPTX\" was never defined.
17133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17135 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17136 as_fn_error $?
"conditional \"PLUGIN_GCN\" was never defined.
17137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17139 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17140 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17143 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17144 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17147 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17148 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17151 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17152 as_fn_error $?
"conditional \"USE_FORTRAN\" was never defined.
17153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17156 : "${CONFIG_STATUS=./config.status}"
17158 ac_clean_files_save
=$ac_clean_files
17159 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17161 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17163 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17165 # Generated by $as_me.
17166 # Run this file to recreate the current configuration.
17167 # Compiler output produced by configure, useful for debugging
17168 # configure, is in config.log if it exists.
17171 ac_cs_recheck=false
17174 SHELL=\${CONFIG_SHELL-$SHELL}
17177 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17178 ## -------------------- ##
17179 ## M4sh Initialization. ##
17180 ## -------------------- ##
17182 # Be more Bourne compatible
17183 DUALCASE
=1; export DUALCASE
# for MKS sh
17184 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17188 # is contrary to our usage. Disable this feature.
17189 alias -g '${1+"$@"}'='"$@"'
17190 setopt NO_GLOB_SUBST
17192 case `(set -o) 2>/dev/null` in #(
17204 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17205 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17208 # Prefer a ksh shell builtin over an external printf program on Solaris,
17209 # but without wasting forks for bash or zsh.
17210 if test -z "$BASH_VERSION$ZSH_VERSION" \
17211 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17212 as_echo='print
-r --'
17213 as_echo_n='print
-rn --'
17214 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17215 as_echo='printf %s
\n'
17216 as_echo_n='printf %s
'
17218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17219 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17220 as_echo_n='/usr
/ucb
/echo -n'
17222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17223 as_echo_n_body='eval
17227 expr "X$arg" : "X\\(.*\\)$as_nl";
17228 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17230 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17232 export as_echo_n_body
17233 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17235 export as_echo_body
17236 as_echo='sh
-c $as_echo_body as_echo
'
17239 # The user is always right.
17240 if test "${PATH_SEPARATOR+set}" != set; then
17242 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17243 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17250 # We need space, tab and new line, in precisely that order. Quoting is
17251 # there to prevent editors from complaining about space-tab.
17252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17253 # splitting by setting IFS to empty value.)
17256 # Find who we are. Look in the path if we contain no directory separator.
17259 *[\\/]* ) as_myself=$0 ;;
17260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261 for as_dir in $PATH
17264 test -z "$as_dir" && as_dir=.
17265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17271 # We did not find ourselves, most probably we were run as `sh COMMAND'
17272 # in which case we are not to be found in the path.
17273 if test "x$as_myself" = x
; then
17276 if test ! -f "$as_myself"; then
17277 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17281 # Unset variables that we do not need and which cause bugs (e.g. in
17282 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17283 # suppresses any "Segmentation fault" message there. '((' could
17284 # trigger a bug in pdksh 5.2.14.
17285 for as_var
in BASH_ENV ENV MAIL MAILPATH
17286 do eval test x\
${$as_var+set} = xset \
17287 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17300 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17303 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17304 # ----------------------------------------
17305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17307 # script with STATUS, using 1 if that was 0.
17310 as_status
=$1; test $as_status -eq 0 && as_status
=1
17312 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17313 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17315 $as_echo "$as_me: error: $2" >&2
17316 as_fn_exit
$as_status
17320 # as_fn_set_status STATUS
17321 # -----------------------
17322 # Set $? to STATUS, without forking.
17323 as_fn_set_status
()
17326 } # as_fn_set_status
17328 # as_fn_exit STATUS
17329 # -----------------
17330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17334 as_fn_set_status
$1
17340 # Portably unset VAR.
17343 { eval $1=; unset $1;}
17345 as_unset
=as_fn_unset
17346 # as_fn_append VAR VALUE
17347 # ----------------------
17348 # Append the text in VALUE to the end of the definition contained in VAR. Take
17349 # advantage of any shell optimizations that allow amortized linear growth over
17350 # repeated appends, instead of the typical quadratic growth present in naive
17352 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17353 eval 'as_fn_append ()
17364 # as_fn_arith ARG...
17365 # ------------------
17366 # Perform arithmetic evaluation on the ARGs, and store the result in the
17367 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17368 # must be portable across $(()) and expr.
17369 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17370 eval 'as_fn_arith ()
17377 as_val
=`expr "$@" || test $? -eq 1`
17382 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17383 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17389 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17390 as_basename
=basename
17395 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17401 as_me
=`$as_basename -- "$0" ||
17402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17403 X"$0" : 'X\(//\)$' \| \
17404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17406 sed '/^.*\/\([^/][^/]*\)\/*$/{
17420 # Avoid depending upon Character Ranges.
17421 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17422 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17423 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17424 as_cr_digits
='0123456789'
17425 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17427 ECHO_C
= ECHO_N
= ECHO_T
=
17428 case `echo -n x` in #(((((
17430 case `echo 'xy\c'` in
17431 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17433 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17440 rm -f conf$$ conf$$.exe conf$$.
file
17441 if test -d conf$$.dir
; then
17442 rm -f conf$$.dir
/conf$$.
file
17445 mkdir conf$$.dir
2>/dev
/null
17447 if (echo >conf$$.
file) 2>/dev
/null
; then
17448 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17450 # ... but there are two gotchas:
17451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17453 # In both cases, we have to default to `cp -pR'.
17454 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17456 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17464 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17465 rmdir conf$$.dir
2>/dev
/null
17470 # Create "$as_dir" as a directory, including parents if necessary.
17475 -*) as_dir
=.
/$as_dir;;
17477 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17481 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17482 *) as_qdir
=$as_dir;;
17484 as_dirs
="'$as_qdir' $as_dirs"
17485 as_dir
=`$as_dirname -- "$as_dir" ||
17486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17487 X"$as_dir" : 'X\(//\)[^/]' \| \
17488 X"$as_dir" : 'X\(//\)$' \| \
17489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17490 $as_echo X"$as_dir" |
17491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17495 /^X\(\/\/\)[^/].*/{
17508 test -d "$as_dir" && break
17510 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17511 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17515 if mkdir
-p .
2>/dev
/null
; then
17516 as_mkdir_p
='mkdir -p "$as_dir"'
17518 test -d .
/-p && rmdir .
/-p
17523 # as_fn_executable_p FILE
17524 # -----------------------
17525 # Test if FILE is an executable regular file.
17526 as_fn_executable_p
()
17528 test -f "$1" && test -x "$1"
17529 } # as_fn_executable_p
17530 as_test_x
='test -x'
17531 as_executable_p
=as_fn_executable_p
17533 # Sed expression to map a string onto a valid CPP name.
17534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17536 # Sed expression to map a string onto a valid variable name.
17537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17541 ## ----------------------------------- ##
17542 ## Main body of $CONFIG_STATUS script. ##
17543 ## ----------------------------------- ##
17545 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17548 # Save the log message, to keep $0 and so on meaningful, and to
17549 # report actual input values of CONFIG_FILES etc. instead of their
17550 # values after options handling.
17552 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17553 generated by GNU Autoconf 2.69. Invocation command line was
17555 CONFIG_FILES = $CONFIG_FILES
17556 CONFIG_HEADERS = $CONFIG_HEADERS
17557 CONFIG_LINKS = $CONFIG_LINKS
17558 CONFIG_COMMANDS = $CONFIG_COMMANDS
17561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17566 case $ac_config_files in *"
17567 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17570 case $ac_config_headers in *"
17571 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17576 # Files that config.status was made for.
17577 config_files="$ac_config_files"
17578 config_headers="$ac_config_headers"
17579 config_commands="$ac_config_commands"
17583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17585 \`$as_me' instantiates files and other configuration actions
17586 from templates according to the current configuration. Unless the files
17587 and actions are specified as TAGs, all are instantiated by default.
17589 Usage: $0 [OPTION]... [TAG]...
17591 -h, --help print this help, then exit
17592 -V, --version print version number and configuration settings, then exit
17593 --config print configuration, then exit
17594 -q, --quiet, --silent
17595 do not print progress messages
17596 -d, --debug don't remove temporary files
17597 --recheck update $as_me by reconfiguring in the same conditions
17598 --file=FILE[:TEMPLATE]
17599 instantiate the configuration file FILE
17600 --header=FILE[:TEMPLATE]
17601 instantiate the configuration header FILE
17603 Configuration files:
17606 Configuration headers:
17609 Configuration commands:
17612 Report bugs to the package provider.
17613 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17614 General help using GNU software: <http://www.gnu.org/gethelp/>."
17617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17618 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17620 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17621 configured by $0, generated by GNU Autoconf 2.69,
17622 with options \\"\$ac_cs_config\\"
17624 Copyright (C) 2012 Free Software Foundation, Inc.
17625 This config.status script is free software; the Free Software Foundation
17626 gives unlimited permission to copy, distribute and modify it."
17633 test -n "\$AWK" || AWK=awk
17636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17637 # The default lists apply if the user does not specify any file.
17643 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17644 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17648 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17660 # Handling of the options.
17661 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17663 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17664 $as_echo "$ac_cs_version"; exit ;;
17665 --config |
--confi |
--conf |
--con |
--co |
--c )
17666 $as_echo "$ac_cs_config"; exit ;;
17667 --debug |
--debu |
--deb |
--de |
--d |
-d )
17669 --file |
--fil |
--fi |
--f )
17672 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17673 '') as_fn_error $?
"missing file argument" ;;
17675 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17676 ac_need_defaults
=false
;;
17677 --header |
--heade |
--head |
--hea )
17680 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17682 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17683 ac_need_defaults
=false
;;
17685 # Conflict between --help and --header
17686 as_fn_error $?
"ambiguous option: \`$1'
17687 Try \`$0 --help' for more information.";;
17688 --help |
--hel |
-h )
17689 $as_echo "$ac_cs_usage"; exit ;;
17690 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17691 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17694 # This is an error.
17695 -*) as_fn_error $?
"unrecognized option: \`$1'
17696 Try \`$0 --help' for more information." ;;
17698 *) as_fn_append ac_config_targets
" $1"
17699 ac_need_defaults
=false
;;
17705 ac_configure_extra_args
=
17707 if $ac_cs_silent; then
17709 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17714 if \$ac_cs_recheck; then
17715 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17717 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17718 CONFIG_SHELL='$SHELL'
17719 export CONFIG_SHELL
17724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17728 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17729 ## Running $as_me. ##
17735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17743 with_multisubdir="$with_multisubdir"
17744 with_multisrctop="$with_multisrctop"
17745 with_target_subdir="$with_target_subdir"
17746 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17747 multi_basedir="$multi_basedir"
17748 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17751 GFORTRAN="$GFORTRAN"
17753 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17756 # The HP-UX ksh and POSIX shell print the target directory to stdout
17757 # if CDPATH is set.
17758 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17760 sed_quote_subst='$sed_quote_subst'
17761 double_quote_subst='$double_quote_subst'
17762 delay_variable_subst='$delay_variable_subst'
17763 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17764 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17765 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17766 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17767 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17768 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17769 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17770 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17771 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17772 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17773 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17774 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17775 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17776 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17777 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17778 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17779 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17780 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17781 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17782 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17783 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17784 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17785 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17786 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17787 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17788 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17789 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17790 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17791 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17792 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17793 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17794 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17795 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17796 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17797 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17798 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17799 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17800 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17801 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17802 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17803 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17804 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17805 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17806 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17807 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17808 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17809 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17810 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17811 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"`'
17812 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17813 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17814 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17815 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17816 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17817 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17818 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17819 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17820 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17821 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17822 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17823 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17824 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17825 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17826 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17827 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17828 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17829 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17830 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17831 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17832 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17833 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17834 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17835 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17836 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17837 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17838 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17839 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17840 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17841 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17842 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17843 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17844 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17845 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17846 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17847 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17848 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17849 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17850 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17851 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17852 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17853 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17854 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17855 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17856 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17857 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17858 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17859 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17860 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17861 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17862 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17863 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17864 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17865 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17866 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17867 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17868 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17869 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17870 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17871 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17872 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17873 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17874 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17875 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17876 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17877 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17878 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17879 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17880 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17881 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17882 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17883 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17884 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17885 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17886 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17887 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17888 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17889 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17890 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17891 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17892 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17893 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17894 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17895 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17896 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17897 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17898 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17899 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17900 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17901 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17902 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17903 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17904 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17905 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17906 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17907 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17908 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17909 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17910 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17911 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17912 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17913 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17914 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17915 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17916 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17917 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17918 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17919 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17920 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17921 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17922 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17923 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17924 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17925 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17926 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17927 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17928 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17929 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17930 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17931 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17932 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17933 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17934 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17935 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17936 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17937 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17940 LTCFLAGS='$LTCFLAGS'
17941 compiler='$compiler_DEFAULT'
17943 # A function that is used when there is no print builtin or printf.
17944 func_fallback_echo ()
17946 eval 'cat <<_LTECHO_EOF
17951 # Quote evaled strings.
17965 deplibs_check_method \
17974 lt_cv_sys_global_symbol_pipe \
17975 lt_cv_sys_global_symbol_to_cdecl \
17976 lt_cv_sys_global_symbol_to_c_name_address \
17977 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17978 lt_prog_compiler_no_builtin_flag \
17979 lt_prog_compiler_wl \
17980 lt_prog_compiler_pic \
17981 lt_prog_compiler_static \
17982 lt_cv_prog_compiler_c_o \
17990 export_dynamic_flag_spec \
17991 whole_archive_flag_spec \
17992 compiler_needs_object \
17994 allow_undefined_flag \
17995 no_undefined_flag \
17996 hardcode_libdir_flag_spec \
17997 hardcode_libdir_flag_spec_ld \
17998 hardcode_libdir_separator \
18003 variables_saved_for_relink \
18005 library_names_spec \
18007 install_override_mode \
18011 compiler_lib_search_dirs \
18016 compiler_lib_search_path \
18020 lt_prog_compiler_no_builtin_flag_FC \
18021 lt_prog_compiler_wl_FC \
18022 lt_prog_compiler_pic_FC \
18023 lt_prog_compiler_static_FC \
18024 lt_cv_prog_compiler_c_o_FC \
18025 export_dynamic_flag_spec_FC \
18026 whole_archive_flag_spec_FC \
18027 compiler_needs_object_FC \
18029 allow_undefined_flag_FC \
18030 no_undefined_flag_FC \
18031 hardcode_libdir_flag_spec_FC \
18032 hardcode_libdir_flag_spec_ld_FC \
18033 hardcode_libdir_separator_FC \
18034 fix_srcfile_path_FC \
18035 exclude_expsyms_FC \
18036 include_expsyms_FC \
18037 file_list_spec_FC \
18038 compiler_lib_search_dirs_FC \
18039 predep_objects_FC \
18040 postdep_objects_FC \
18043 compiler_lib_search_path_FC; do
18044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18045 *[\\\\\\\`\\"\\\$]*)
18046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18054 # Double-quote double-evaled strings.
18055 for var in reload_cmds \
18056 old_postinstall_cmds \
18057 old_postuninstall_cmds \
18059 extract_expsyms_cmds \
18060 old_archive_from_new_cmds \
18061 old_archive_from_expsyms_cmds \
18063 archive_expsym_cmds \
18065 module_expsym_cmds \
18066 export_symbols_cmds \
18069 postuninstall_cmds \
18071 sys_lib_search_path_spec \
18072 sys_lib_dlsearch_path_spec \
18074 old_archive_cmds_FC \
18075 old_archive_from_new_cmds_FC \
18076 old_archive_from_expsyms_cmds_FC \
18078 archive_expsym_cmds_FC \
18080 module_expsym_cmds_FC \
18081 export_symbols_cmds_FC \
18082 prelink_cmds_FC; do
18083 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18084 *[\\\\\\\`\\"\\\$]*)
18085 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18088 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18093 ac_aux_dir='$ac_aux_dir'
18094 xsi_shell='$xsi_shell'
18095 lt_shell_append='$lt_shell_append'
18097 # See if we are running on zsh, and set the options which allow our
18098 # commands through without removal of \ escapes INIT.
18099 if test -n "\${ZSH_VERSION+set}" ; then
18100 setopt NO_GLOB_SUBST
18106 TIMESTAMP='$TIMESTAMP'
18117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18119 # Handling of arguments.
18120 for ac_config_target
in $ac_config_targets
18122 case $ac_config_target in
18123 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18124 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18125 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18126 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18127 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
18128 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
18129 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
18130 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
18131 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18132 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18133 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
18134 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18135 "testsuite/libgomp-site-extra.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18137 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18142 # If the user did not use the arguments to specify the items to instantiate,
18143 # then the envvar interface is used. Set only those that are not.
18144 # We use the long form for the default assignment because of an extremely
18145 # bizarre bug on SunOS 4.1.3.
18146 if $ac_need_defaults; then
18147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18152 # Have a temporary directory for convenience. Make it in the build tree
18153 # simply because there is no reason against having it here, and in addition,
18154 # creating and moving files from /tmp can sometimes cause problems.
18155 # Hook for its removal unless debugging.
18156 # Note that there is a small window in which the directory will not be cleaned:
18157 # after its creation but before its name has been assigned to `$tmp'.
18161 trap 'exit_status=$?
18162 : "${ac_tmp:=$tmp}"
18163 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18165 trap 'as_fn_exit 1' 1 2 13 15
18167 # Create a (secure) tmp directory for tmp files.
18170 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18174 tmp
=.
/conf$$
-$RANDOM
18175 (umask 077 && mkdir
"$tmp")
18176 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18179 # Set up the scripts for CONFIG_FILES section.
18180 # No need to generate them if there are no CONFIG_FILES.
18181 # This happens for instance with `./config.status config.h'.
18182 if test -n "$CONFIG_FILES"; then
18185 ac_cr
=`echo X | tr X '\015'`
18186 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18187 # But we know of no other shell where ac_cr would be empty at this
18188 # point, so we can use a bashism as a fallback.
18189 if test "x$ac_cr" = x
; then
18190 eval ac_cr
=\$
\'\\r
\'
18192 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18193 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18196 ac_cs_awk_cr
=$ac_cr
18199 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18204 echo "cat >conf$$subs.awk <<_ACEOF" &&
18205 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18207 } >conf$$subs.sh ||
18208 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18209 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18211 for ac_last_try in false false false false false :; do
18212 . ./conf$$subs.sh ||
18213 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18215 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18216 if test $ac_delim_n = $ac_delim_num; then
18218 elif $ac_last_try; then
18219 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18221 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18224 rm -f conf$$subs.sh
18226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18227 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18231 s/^/S["/; s
/!.
*/"]=/
18241 s/\(.\{148\}\)..*/\1/
18243 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18248 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18255 s/\(.\{148\}\)..*/\1/
18257 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18261 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18266 ' <conf$$subs.awk | sed '
18271 ' >>$CONFIG_STATUS || ac_write_fail=1
18272 rm -f conf$$subs.awk
18273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18275 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18276 for (key in S) S_is_set[key] = 1
18282 nfields = split(line, field, "@
")
18284 len = length(field[1])
18285 for (i = 2; i < nfields; i++) {
18287 keylen = length(key)
18288 if (S_is_set[key]) {
18290 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18291 len += length(value) + length(field[++i])
18302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18303 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18304 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18307 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18308 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18311 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18312 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18313 # trailing colons and then remove the whole line if VPATH becomes empty
18314 # (actually we leave an empty line to preserve line numbers).
18315 if test "x
$srcdir" = x.; then
18316 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18335 fi # test -n "$CONFIG_FILES"
18337 # Set up the scripts for CONFIG_HEADERS section.
18338 # No need to generate them if there are no CONFIG_HEADERS.
18339 # This happens for instance with `./config.status Makefile'.
18340 if test -n "$CONFIG_HEADERS"; then
18341 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18345 # Transform confdefs.h into an awk script `defines.awk', embedded as
18346 # here-document in config.status, that substitutes the proper values into
18347 # config.h.in to produce config.h.
18349 # Create a delimiter string that does not exist in confdefs.h, to ease
18350 # handling of long lines.
18352 for ac_last_try in false false :; do
18353 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18354 if test -z "$ac_tt"; then
18356 elif $ac_last_try; then
18357 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18359 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18363 # For the awk script, D is an array of macro values keyed by name,
18364 # likewise P contains macro parameters if any. Preserve backslash
18365 # newline sequences.
18367 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18369 s/.\{148\}/&'"$ac_delim"'/g
18372 s/^[ ]*#[ ]*define[ ][ ]*/ /
18379 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18381 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18386 D["\
1"]=" \
3\\\\\\n
"\\/p
18388 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18393 s/.\{148\}/&'"$ac_delim"'/g
18398 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18401 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18403 ' <confdefs.h | sed '
18404 s/'"$ac_delim"'/"\\\
18405 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18408 for (key in D) D_is_set[key] = 1
18411 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18413 split(line, arg, " ")
18414 if (arg[1] == "#") {
18418 defundef
= substr
(arg
[1], 2)
18421 split(mac1
, mac2
, "(") #)
18423 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18424 if (D_is_set
[macro
]) {
18425 # Preserve the white space surrounding the "#".
18426 print prefix
"define", macro P
[macro
] D
[macro
]
18429 # Replace #undef with comments. This is necessary, for example,
18430 # in the case of _POSIX_SOURCE, which is predefined and required
18431 # on some systems where configure will not decide to define it.
18432 if (defundef
== "undef") {
18433 print
"/*", prefix defundef
, macro
, "*/"
18441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18442 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18443 fi # test -n "$CONFIG_HEADERS"
18446 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18451 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18453 case $ac_mode$ac_tag in
18455 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18456 :[FH
]-) ac_tag
=-:-;;
18457 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18474 -) ac_f
="$ac_tmp/stdin";;
18475 *) # Look for the file first in the build tree, then in the source tree
18476 # (if the path is not absolute). The absolute path cannot be DOS-style,
18477 # because $ac_f cannot contain `:'.
18481 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18483 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18485 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18486 as_fn_append ac_file_inputs
" '$ac_f'"
18489 # Let's still pretend it is `configure' which instantiates (i.e., don't
18490 # use $as_me), people would be surprised to read:
18491 # /* config.h. Generated by config.status. */
18492 configure_input
='Generated from '`
18493 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18495 if test x
"$ac_file" != x-
; then
18496 configure_input
="$ac_file. $configure_input"
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18498 $as_echo "$as_me: creating $ac_file" >&6;}
18500 # Neutralize special characters interpreted by sed in replacement strings.
18501 case $configure_input in #(
18502 *\
&* |
*\|
* |
*\\* )
18503 ac_sed_conf_input
=`$as_echo "$configure_input" |
18504 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18505 *) ac_sed_conf_input
=$configure_input;;
18509 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18510 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18515 ac_dir
=`$as_dirname -- "$ac_file" ||
18516 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18517 X"$ac_file" : 'X\(//\)[^/]' \| \
18518 X"$ac_file" : 'X\(//\)$' \| \
18519 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18520 $as_echo X"$ac_file" |
18521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18525 /^X\(\/\/\)[^/].*/{
18538 as_dir
="$ac_dir"; as_fn_mkdir_p
18542 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18544 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18545 # A ".." for each directory in $ac_dir_suffix.
18546 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18547 case $ac_top_builddir_sub in
18548 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18549 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18552 ac_abs_top_builddir
=$ac_pwd
18553 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18554 # for backward compatibility:
18555 ac_top_builddir
=$ac_top_build_prefix
18558 .
) # We are building in place.
18560 ac_top_srcdir
=$ac_top_builddir_sub
18561 ac_abs_top_srcdir
=$ac_pwd ;;
18562 [\\/]* | ?
:[\\/]* ) # Absolute name.
18563 ac_srcdir
=$srcdir$ac_dir_suffix;
18564 ac_top_srcdir
=$srcdir
18565 ac_abs_top_srcdir
=$srcdir ;;
18566 *) # Relative name.
18567 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18568 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18569 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18571 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18581 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18582 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18584 ac_MKDIR_P
=$MKDIR_P
18586 [\\/$
]* | ?
:[\\/]* ) ;;
18587 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18592 # If the template does not know about datarootdir, expand it.
18593 # FIXME: This hack should be removed a few years after 2.60.
18594 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18605 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18606 *datarootdir
*) ac_datarootdir_seen
=yes;;
18607 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18609 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18612 ac_datarootdir_hack='
18613 s&@datadir@&$datadir&g
18614 s&@docdir@&$docdir&g
18615 s&@infodir@&$infodir&g
18616 s&@localedir@&$localedir&g
18617 s&@mandir@&$mandir&g
18618 s&\\\${datarootdir}&$datarootdir&g' ;;
18622 # Neutralize VPATH when `$srcdir' = `.'.
18623 # Shell code in configure.ac might set extrasub.
18624 # FIXME: do we really want to maintain this feature?
18625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18626 ac_sed_extra="$ac_vpsub
18629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18631 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18632 s|@configure_input@|
$ac_sed_conf_input|
;t t
18633 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18634 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18635 s
&@srcdir@
&$ac_srcdir&;t t
18636 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18637 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18638 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18639 s
&@builddir@
&$ac_builddir&;t t
18640 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18641 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18642 s
&@INSTALL@
&$ac_INSTALL&;t t
18643 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18644 $ac_datarootdir_hack
18646 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18647 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18649 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18650 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18651 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18652 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18654 which seems to be undefined. Please make sure it is defined" >&5
18655 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18656 which seems to be undefined. Please make sure it is defined" >&2;}
18658 rm -f "$ac_tmp/stdin"
18660 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18661 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18669 if test x"$ac_file" != x-; then
18671 $as_echo "/* $configure_input */" \
18672 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18673 } >"$ac_tmp/config.h" \
18674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18675 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18677 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18680 mv "$ac_tmp/config.h" "$ac_file" \
18681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18684 $as_echo "/* $configure_input */" \
18685 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18686 || as_fn_error $? "could not create -" "$LINENO" 5
18688 # Compute "$ac_file"'s index
in $config_headers.
18691 for _am_header
in $config_headers :; do
18692 case $_am_header in
18693 $_am_arg |
$_am_arg:* )
18696 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18699 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18700 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18701 X"$_am_arg" : 'X\(//\)[^/]' \| \
18702 X"$_am_arg" : 'X\(//\)$' \| \
18703 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18704 $as_echo X"$_am_arg" |
18705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18709 /^X\(\/\/\)[^/].*/{
18721 s/.*/./; q'`/stamp-h
$_am_stamp_count
18724 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18725 $as_echo "$as_me: executing $ac_file commands" >&6;}
18730 case $ac_file$ac_mode in
18732 # Only add multilib support code if we just rebuilt the top-level
18734 case " $CONFIG_FILES " in
18736 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18739 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18740 # Older Autoconf quotes --file arguments for eval, but not when files
18741 # are listed without --file. Let's play safe and only enable the eval
18742 # if we detect the quoting.
18743 case $CONFIG_FILES in
18744 *\'*) eval set x
"$CONFIG_FILES" ;;
18745 *) set x
$CONFIG_FILES ;;
18750 # Strip MF so we end up with the name of the file.
18751 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18752 # Check whether this is an Automake generated Makefile or not.
18753 # We used to match only the files named 'Makefile.in', but
18754 # some people rename them; so instead we look at the file content.
18755 # Grep'ing the first line is not enough: some people post-process
18756 # each Makefile.in and add a new line on top of each file to say so.
18757 # Grep'ing the whole file is not good either: AIX grep has a line
18758 # limit of 2048, but all sed's we know have understand at least 4000.
18759 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18760 dirpart
=`$as_dirname -- "$mf" ||
18761 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18762 X"$mf" : 'X\(//\)[^/]' \| \
18763 X"$mf" : 'X\(//\)$' \| \
18764 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18770 /^X\(\/\/\)[^/].*/{
18786 # Extract the definition of DEPDIR, am__include, and am__quote
18787 # from the Makefile without running 'make'.
18788 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18789 test -z "$DEPDIR" && continue
18790 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18791 test -z "$am__include" && continue
18792 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18793 # Find all dependency output files, they are included files with
18794 # $(DEPDIR) in their names. We invoke sed twice because it is the
18795 # simplest approach to changing $(DEPDIR) to its actual value in the
18797 for file in `sed -n "
18798 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18799 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18800 # Make sure the directory exists.
18801 test -f "$dirpart/$file" && continue
18802 fdir
=`$as_dirname -- "$file" ||
18803 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18804 X"$file" : 'X\(//\)[^/]' \| \
18805 X"$file" : 'X\(//\)$' \| \
18806 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18807 $as_echo X"$file" |
18808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18812 /^X\(\/\/\)[^/].*/{
18825 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18826 # echo "creating $dirpart/$file"
18827 echo '# dummy' > "$dirpart/$file"
18834 # See if we are running on zsh, and set the options which allow our
18835 # commands through without removal of \ escapes.
18836 if test -n "${ZSH_VERSION+set}" ; then
18837 setopt NO_GLOB_SUBST
18840 cfgfile
="${ofile}T"
18841 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18844 cat <<_LT_EOF >> "$cfgfile"
18847 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18848 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18849 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18850 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18852 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18853 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18854 # Written by Gordon Matzigkeit, 1996
18856 # This file is part of GNU Libtool.
18858 # GNU Libtool is free software; you can redistribute it and/or
18859 # modify it under the terms of the GNU General Public License as
18860 # published by the Free Software Foundation; either version 2 of
18861 # the License, or (at your option) any later version.
18863 # As a special exception to the GNU General Public License,
18864 # if you distribute this file as part of a program or library that
18865 # is built using GNU Libtool, you may include this file under the
18866 # same distribution terms that you use for the rest of that program.
18868 # GNU Libtool is distributed in the hope that it will be useful,
18869 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18870 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18871 # GNU General Public License for more details.
18873 # You should have received a copy of the GNU General Public License
18874 # along with GNU Libtool; see the file COPYING. If not, a copy
18875 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18876 # obtained by writing to the Free Software Foundation, Inc.,
18877 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18880 # The names of the tagged configurations supported by this script.
18881 available_tags="FC "
18883 # ### BEGIN LIBTOOL CONFIG
18885 # Which release of libtool.m4 was used?
18886 macro_version=$macro_version
18887 macro_revision=$macro_revision
18889 # Whether or not to build shared libraries.
18890 build_libtool_libs=$enable_shared
18892 # Whether or not to build static libraries.
18893 build_old_libs=$enable_static
18895 # What type of objects to build.
18898 # Whether or not to optimize for fast installation.
18899 fast_install=$enable_fast_install
18901 # Shell to use when invoking shell scripts.
18904 # An echo program that protects backslashes.
18908 host_alias=$host_alias
18912 # The build system.
18913 build_alias=$build_alias
18917 # A sed program that does not truncate output.
18920 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18921 Xsed="\$SED -e 1s/^X//"
18923 # A grep program that handles long lines.
18929 # A literal string matcher.
18932 # A BSD- or MS-compatible name lister.
18935 # Whether we need soft or hard links.
18938 # What is the maximum length of a command?
18939 max_cmd_len=$max_cmd_len
18941 # Object file suffix (normally "o").
18944 # Executable file suffix (normally "").
18947 # whether the shell understands "unset".
18950 # turn spaces into newlines.
18953 # turn newlines into spaces.
18956 # An object symbol dumper.
18957 OBJDUMP=$lt_OBJDUMP
18959 # Method to check whether dependent libraries are shared objects.
18960 deplibs_check_method=$lt_deplibs_check_method
18962 # Command to use when deplibs_check_method == "file_magic".
18963 file_magic_cmd=$lt_file_magic_cmd
18967 AR_FLAGS=$lt_AR_FLAGS
18969 # A symbol stripping program.
18972 # Commands used to install an old-style archive.
18974 old_postinstall_cmds=$lt_old_postinstall_cmds
18975 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18977 # Whether to use a lock for old archive extraction.
18978 lock_old_archive_extraction=$lock_old_archive_extraction
18983 # LTCC compiler flags.
18984 LTCFLAGS=$lt_CFLAGS
18986 # Take the output of nm and produce a listing of raw symbols and C names.
18987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18989 # Transform the output of nm in a proper C declaration.
18990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18992 # Transform the output of nm in a C name address pair.
18993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18995 # Transform the output of nm in a C name address pair when lib prefix is needed.
18996 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18998 # The name of the directory that contains temporary libtool files.
19001 # Used to examine libraries when file_magic_cmd begins with "file".
19002 MAGIC_CMD=$MAGIC_CMD
19004 # Must we lock files when doing compilation?
19005 need_locks=$lt_need_locks
19007 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19008 DSYMUTIL=$lt_DSYMUTIL
19010 # Tool to change global to local symbols on Mac OS X.
19013 # Tool to manipulate fat objects and archives on Mac OS X.
19016 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19019 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19020 OTOOL64=$lt_OTOOL64
19022 # Old archive suffix (normally "a").
19025 # Shared library suffix (normally ".so").
19026 shrext_cmds=$lt_shrext_cmds
19028 # The commands to extract the exported symbol list from a shared archive.
19029 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19031 # Variables whose values should be saved in libtool wrapper scripts and
19032 # restored at link time.
19033 variables_saved_for_relink=$lt_variables_saved_for_relink
19035 # Do we need the "lib" prefix for modules?
19036 need_lib_prefix=$need_lib_prefix
19038 # Do we need a version for libraries?
19039 need_version=$need_version
19041 # Library versioning type.
19042 version_type=$version_type
19044 # Shared library runtime path variable.
19045 runpath_var=$runpath_var
19047 # Shared library path variable.
19048 shlibpath_var=$shlibpath_var
19050 # Is shlibpath searched before the hard-coded library search path?
19051 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19053 # Format of library name prefix.
19054 libname_spec=$lt_libname_spec
19056 # List of archive names. First name is the real one, the rest are links.
19057 # The last name is the one that the linker finds with -lNAME
19058 library_names_spec=$lt_library_names_spec
19060 # The coded name of the library, if different from the real name.
19061 soname_spec=$lt_soname_spec
19063 # Permission mode override for installation of shared libraries.
19064 install_override_mode=$lt_install_override_mode
19066 # Command to use after installation of a shared archive.
19067 postinstall_cmds=$lt_postinstall_cmds
19069 # Command to use after uninstallation of a shared archive.
19070 postuninstall_cmds=$lt_postuninstall_cmds
19072 # Commands used to finish a libtool library installation in a directory.
19073 finish_cmds=$lt_finish_cmds
19075 # As "finish_cmds", except a single script fragment to be evaled but
19077 finish_eval=$lt_finish_eval
19079 # Whether we should hardcode library paths into libraries.
19080 hardcode_into_libs=$hardcode_into_libs
19082 # Compile-time system search path for libraries.
19083 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19085 # Run-time system search path for libraries.
19086 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19088 # Whether dlopen is supported.
19089 dlopen_support=$enable_dlopen
19091 # Whether dlopen of programs is supported.
19092 dlopen_self=$enable_dlopen_self
19094 # Whether dlopen of statically linked programs is supported.
19095 dlopen_self_static=$enable_dlopen_self_static
19097 # Commands to strip libraries.
19098 old_striplib=$lt_old_striplib
19099 striplib=$lt_striplib
19102 # The linker used to build libraries.
19105 # How to create reloadable object files.
19106 reload_flag=$lt_reload_flag
19107 reload_cmds=$lt_reload_cmds
19109 # Commands used to build an old-style archive.
19110 old_archive_cmds=$lt_old_archive_cmds
19112 # A language specific compiler.
19115 # Is the compiler the GNU compiler?
19118 # Compiler flag to turn off builtin functions.
19119 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19121 # How to pass a linker flag through the compiler.
19122 wl=$lt_lt_prog_compiler_wl
19124 # Additional compiler flags for building library objects.
19125 pic_flag=$lt_lt_prog_compiler_pic
19127 # Compiler flag to prevent dynamic linking.
19128 link_static_flag=$lt_lt_prog_compiler_static
19130 # Does compiler simultaneously support -c and -o options?
19131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19133 # Whether or not to add -lc for building shared libraries.
19134 build_libtool_need_lc=$archive_cmds_need_lc
19136 # Whether or not to disallow shared libs when runtime libs are static.
19137 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19139 # Compiler flag to allow reflexive dlopens.
19140 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19142 # Compiler flag to generate shared objects directly from archives.
19143 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19145 # Whether the compiler copes with passing no objects directly.
19146 compiler_needs_object=$lt_compiler_needs_object
19148 # Create an old-style archive from a shared archive.
19149 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19151 # Create a temporary old-style archive to link instead of a shared archive.
19152 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19154 # Commands used to build a shared archive.
19155 archive_cmds=$lt_archive_cmds
19156 archive_expsym_cmds=$lt_archive_expsym_cmds
19158 # Commands used to build a loadable module if different from building
19159 # a shared archive.
19160 module_cmds=$lt_module_cmds
19161 module_expsym_cmds=$lt_module_expsym_cmds
19163 # Whether we are building with GNU ld or not.
19164 with_gnu_ld=$lt_with_gnu_ld
19166 # Flag that allows shared libraries with undefined symbols to be built.
19167 allow_undefined_flag=$lt_allow_undefined_flag
19169 # Flag that enforces no undefined symbols.
19170 no_undefined_flag=$lt_no_undefined_flag
19172 # Flag to hardcode \$libdir into a binary during linking.
19173 # This must work even if \$libdir does not exist
19174 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19176 # If ld is used when linking, flag to hardcode \$libdir into a binary
19177 # during linking. This must work even if \$libdir does not exist.
19178 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19180 # Whether we need a single "-rpath" flag with a separated argument.
19181 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19183 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19184 # DIR into the resulting binary.
19185 hardcode_direct=$hardcode_direct
19187 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19188 # DIR into the resulting binary and the resulting library dependency is
19189 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19190 # library is relocated.
19191 hardcode_direct_absolute=$hardcode_direct_absolute
19193 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19194 # into the resulting binary.
19195 hardcode_minus_L=$hardcode_minus_L
19197 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19198 # into the resulting binary.
19199 hardcode_shlibpath_var=$hardcode_shlibpath_var
19201 # Set to "yes" if building a shared library automatically hardcodes DIR
19202 # into the library and all subsequent libraries and executables linked
19204 hardcode_automatic=$hardcode_automatic
19206 # Set to yes if linker adds runtime paths of dependent libraries
19207 # to runtime path list.
19208 inherit_rpath=$inherit_rpath
19210 # Whether libtool must link a program against all its dependency libraries.
19211 link_all_deplibs=$link_all_deplibs
19213 # Fix the shell variable \$srcfile for the compiler.
19214 fix_srcfile_path=$lt_fix_srcfile_path
19216 # Set to "yes" if exported symbols are required.
19217 always_export_symbols=$always_export_symbols
19219 # The commands to list exported symbols.
19220 export_symbols_cmds=$lt_export_symbols_cmds
19222 # Symbols that should not be listed in the preloaded symbols.
19223 exclude_expsyms=$lt_exclude_expsyms
19225 # Symbols that must always be exported.
19226 include_expsyms=$lt_include_expsyms
19228 # Commands necessary for linking programs (against libraries) with templates.
19229 prelink_cmds=$lt_prelink_cmds
19231 # Specify filename containing input files.
19232 file_list_spec=$lt_file_list_spec
19234 # How to hardcode a shared library path into an executable.
19235 hardcode_action=$hardcode_action
19237 # The directories searched by this compiler when creating a shared library.
19238 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19240 # Dependencies to place before and after the objects being linked to
19241 # create a shared library.
19242 predep_objects=$lt_predep_objects
19243 postdep_objects=$lt_postdep_objects
19244 predeps=$lt_predeps
19245 postdeps=$lt_postdeps
19247 # The library search path used internally by the compiler when linking
19248 # a shared library.
19249 compiler_lib_search_path=$lt_compiler_lib_search_path
19251 # ### END LIBTOOL CONFIG
19257 cat <<\_LT_EOF
>> "$cfgfile"
19258 # AIX sometimes has problems with the GCC collect2 program. For some
19259 # reason, if we set the COLLECT_NAMES environment variable, the problems
19260 # vanish in a puff of smoke.
19261 if test "X${COLLECT_NAMES+set}" != Xset
; then
19263 export COLLECT_NAMES
19270 ltmain
="$ac_aux_dir/ltmain.sh"
19273 # We use sed instead of cat because bash on DJGPP gets confused if
19274 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19275 # text mode, it properly converts lines to CR/LF. This bash problem
19276 # is reportedly fixed, but why not run on old versions too?
19277 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19278 ||
(rm -f "$cfgfile"; exit 1)
19282 cat << \_LT_EOF
>> "$cfgfile"
19284 # func_dirname file append nondir_replacement
19285 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19286 # otherwise set result to NONDIR_REPLACEMENT.
19290 */*) func_dirname_result
="${1%/*}${2}" ;;
19291 * ) func_dirname_result
="${3}" ;;
19295 # func_basename file
19298 func_basename_result
="${1##*/}"
19301 # func_dirname_and_basename file append nondir_replacement
19302 # perform func_basename and func_dirname in a single function
19304 # dirname: Compute the dirname of FILE. If nonempty,
19305 # add APPEND to the result, otherwise set result
19306 # to NONDIR_REPLACEMENT.
19307 # value returned in "$func_dirname_result"
19308 # basename: Compute filename of FILE.
19309 # value retuned in "$func_basename_result"
19310 # Implementation must be kept synchronized with func_dirname
19311 # and func_basename. For efficiency, we do not delegate to
19312 # those functions but instead duplicate the functionality here.
19313 func_dirname_and_basename
()
19316 */*) func_dirname_result
="${1%/*}${2}" ;;
19317 * ) func_dirname_result
="${3}" ;;
19319 func_basename_result
="${1##*/}"
19322 # func_stripname prefix suffix name
19323 # strip PREFIX and SUFFIX off of NAME.
19324 # PREFIX and SUFFIX must not contain globbing or regex special
19325 # characters, hashes, percent signs, but SUFFIX may contain a leading
19326 # dot (in which case that matches only a dot).
19329 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19330 # positional parameters, so assign one to ordinary parameter first.
19331 func_stripname_result
=${3}
19332 func_stripname_result
=${func_stripname_result#"${1}"}
19333 func_stripname_result
=${func_stripname_result%"${2}"}
19339 func_opt_split_opt
=${1%%=*}
19340 func_opt_split_arg
=${1#*=}
19347 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19348 *) func_lo2o_result
=${1} ;;
19352 # func_xform libobj-or-source
19355 func_xform_result
=${1%.*}.lo
19358 # func_arith arithmetic-term...
19361 func_arith_result
=$
(( $
* ))
19365 # STRING may not start with a hyphen.
19368 func_len_result
=${#1}
19373 *) # Bourne compatible functions.
19374 cat << \_LT_EOF
>> "$cfgfile"
19376 # func_dirname file append nondir_replacement
19377 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19378 # otherwise set result to NONDIR_REPLACEMENT.
19381 # Extract subdirectory from the argument.
19382 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19383 if test "X$func_dirname_result" = "X${1}"; then
19384 func_dirname_result
="${3}"
19386 func_dirname_result
="$func_dirname_result${2}"
19390 # func_basename file
19393 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19397 # func_stripname prefix suffix name
19398 # strip PREFIX and SUFFIX off of NAME.
19399 # PREFIX and SUFFIX must not contain globbing or regex special
19400 # characters, hashes, percent signs, but SUFFIX may contain a leading
19401 # dot (in which case that matches only a dot).
19402 # func_strip_suffix prefix name
19406 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19407 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19412 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19413 my_sed_long_arg
='1s/^-[^=]*=//'
19418 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19419 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19425 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19428 # func_xform libobj-or-source
19431 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19434 # func_arith arithmetic-term...
19437 func_arith_result
=`expr "$@"`
19441 # STRING may not start with a hyphen.
19444 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19450 case $lt_shell_append in
19452 cat << \_LT_EOF
>> "$cfgfile"
19454 # func_append var value
19455 # Append VALUE to the end of shell variable VAR.
19463 cat << \_LT_EOF
>> "$cfgfile"
19465 # func_append var value
19466 # Append VALUE to the end of shell variable VAR.
19477 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19478 ||
(rm -f "$cfgfile"; exit 1)
19480 mv -f "$cfgfile" "$ofile" ||
19481 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19485 cat <<_LT_EOF >> "$ofile"
19487 # ### BEGIN LIBTOOL TAG CONFIG: FC
19489 # The linker used to build libraries.
19492 # How to create reloadable object files.
19493 reload_flag=$lt_reload_flag_FC
19494 reload_cmds=$lt_reload_cmds_FC
19496 # Commands used to build an old-style archive.
19497 old_archive_cmds=$lt_old_archive_cmds_FC
19499 # A language specific compiler.
19502 # Is the compiler the GNU compiler?
19505 # Compiler flag to turn off builtin functions.
19506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19508 # How to pass a linker flag through the compiler.
19509 wl=$lt_lt_prog_compiler_wl_FC
19511 # Additional compiler flags for building library objects.
19512 pic_flag=$lt_lt_prog_compiler_pic_FC
19514 # Compiler flag to prevent dynamic linking.
19515 link_static_flag=$lt_lt_prog_compiler_static_FC
19517 # Does compiler simultaneously support -c and -o options?
19518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19520 # Whether or not to add -lc for building shared libraries.
19521 build_libtool_need_lc=$archive_cmds_need_lc_FC
19523 # Whether or not to disallow shared libs when runtime libs are static.
19524 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19526 # Compiler flag to allow reflexive dlopens.
19527 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19529 # Compiler flag to generate shared objects directly from archives.
19530 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19532 # Whether the compiler copes with passing no objects directly.
19533 compiler_needs_object=$lt_compiler_needs_object_FC
19535 # Create an old-style archive from a shared archive.
19536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19538 # Create a temporary old-style archive to link instead of a shared archive.
19539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19541 # Commands used to build a shared archive.
19542 archive_cmds=$lt_archive_cmds_FC
19543 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19545 # Commands used to build a loadable module if different from building
19546 # a shared archive.
19547 module_cmds=$lt_module_cmds_FC
19548 module_expsym_cmds=$lt_module_expsym_cmds_FC
19550 # Whether we are building with GNU ld or not.
19551 with_gnu_ld=$lt_with_gnu_ld_FC
19553 # Flag that allows shared libraries with undefined symbols to be built.
19554 allow_undefined_flag=$lt_allow_undefined_flag_FC
19556 # Flag that enforces no undefined symbols.
19557 no_undefined_flag=$lt_no_undefined_flag_FC
19559 # Flag to hardcode \$libdir into a binary during linking.
19560 # This must work even if \$libdir does not exist
19561 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19563 # If ld is used when linking, flag to hardcode \$libdir into a binary
19564 # during linking. This must work even if \$libdir does not exist.
19565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19567 # Whether we need a single "-rpath" flag with a separated argument.
19568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19570 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19571 # DIR into the resulting binary.
19572 hardcode_direct=$hardcode_direct_FC
19574 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19575 # DIR into the resulting binary and the resulting library dependency is
19576 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19577 # library is relocated.
19578 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19580 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19581 # into the resulting binary.
19582 hardcode_minus_L=$hardcode_minus_L_FC
19584 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19585 # into the resulting binary.
19586 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19588 # Set to "yes" if building a shared library automatically hardcodes DIR
19589 # into the library and all subsequent libraries and executables linked
19591 hardcode_automatic=$hardcode_automatic_FC
19593 # Set to yes if linker adds runtime paths of dependent libraries
19594 # to runtime path list.
19595 inherit_rpath=$inherit_rpath_FC
19597 # Whether libtool must link a program against all its dependency libraries.
19598 link_all_deplibs=$link_all_deplibs_FC
19600 # Fix the shell variable \$srcfile for the compiler.
19601 fix_srcfile_path=$lt_fix_srcfile_path_FC
19603 # Set to "yes" if exported symbols are required.
19604 always_export_symbols=$always_export_symbols_FC
19606 # The commands to list exported symbols.
19607 export_symbols_cmds=$lt_export_symbols_cmds_FC
19609 # Symbols that should not be listed in the preloaded symbols.
19610 exclude_expsyms=$lt_exclude_expsyms_FC
19612 # Symbols that must always be exported.
19613 include_expsyms=$lt_include_expsyms_FC
19615 # Commands necessary for linking programs (against libraries) with templates.
19616 prelink_cmds=$lt_prelink_cmds_FC
19618 # Specify filename containing input files.
19619 file_list_spec=$lt_file_list_spec_FC
19621 # How to hardcode a shared library path into an executable.
19622 hardcode_action=$hardcode_action_FC
19624 # The directories searched by this compiler when creating a shared library.
19625 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19627 # Dependencies to place before and after the objects being linked to
19628 # create a shared library.
19629 predep_objects=$lt_predep_objects_FC
19630 postdep_objects=$lt_postdep_objects_FC
19631 predeps=$lt_predeps_FC
19632 postdeps=$lt_postdeps_FC
19634 # The library search path used internally by the compiler when linking
19635 # a shared library.
19636 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19638 # ### END LIBTOOL TAG CONFIG: FC
19649 ac_clean_files
=$ac_clean_files_save
19651 test $ac_write_fail = 0 ||
19652 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19655 # configure is writing to config.log, and then calls config.status.
19656 # config.status does its own redirection, appending to config.log.
19657 # Unfortunately, on DOS this fails, as config.log is still kept open
19658 # by configure, so config.status won't be able to write to it; its
19659 # output is simply discarded. So we exec the FD to /dev/null,
19660 # effectively closing config.log, so it can be properly (re)opened and
19661 # appended to by config.status. When coming back to configure, we
19662 # need to make the FD available again.
19663 if test "$no_create" != yes; then
19665 ac_config_status_args
=
19666 test "$silent" = yes &&
19667 ac_config_status_args
="$ac_config_status_args --quiet"
19669 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19672 # would make configure fail if this is the last instruction.
19673 $ac_cs_success || as_fn_exit
1
19675 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19677 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}