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 test.
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
"
5405 for lt_tmp_nm in $lt_nm_to_check; do
5406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5407 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5409 test -z "$ac_dir" && ac_dir=.
5410 tmp_nm="$ac_dir/$lt_tmp_nm"
5411 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5412 # Check to see if the nm accepts a BSD-compat flag.
5413 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5414 # nm: unknown option "B
" ignored
5415 # Tru64's nm complains that /dev/null is an invalid object file
5416 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5417 */dev/null* | *'Invalid file or object type'*)
5418 lt_cv_path_NM="$tmp_nm -B"
5422 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5424 lt_cv_path_NM="$tmp_nm -p"
5428 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5429 continue # so that we can try to find one that supports BSD flags
5438 : ${lt_cv_path_NM=no}
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5442 $as_echo "$lt_cv_path_NM" >&6; }
5443 if test "$lt_cv_path_NM" != "no
"; then
5446 # Didn't find any BSD compatible name lister, look for dumpbin.
5447 if test -n "$DUMPBIN"; then :
5448 # Let the user override the test.
5450 if test -n "$ac_tool_prefix"; then
5451 for ac_prog in dumpbin "link
-dump"
5453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5456 $as_echo_n "checking
for $ac_word...
" >&6; }
5457 if ${ac_cv_prog_DUMPBIN+:} false; then :
5458 $as_echo_n "(cached
) " >&6
5460 if test -n "$DUMPBIN"; then
5461 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5480 DUMPBIN=$ac_cv_prog_DUMPBIN
5481 if test -n "$DUMPBIN"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5483 $as_echo "$DUMPBIN" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5486 $as_echo "no
" >&6; }
5490 test -n "$DUMPBIN" && break
5493 if test -z "$DUMPBIN"; then
5494 ac_ct_DUMPBIN=$DUMPBIN
5495 for ac_prog in dumpbin "link
-dump"
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498 set dummy $ac_prog; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5500 $as_echo_n "checking
for $ac_word...
" >&6; }
5501 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5502 $as_echo_n "(cached
) " >&6
5504 if test -n "$ac_ct_DUMPBIN"; then
5505 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5524 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5525 if test -n "$ac_ct_DUMPBIN"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5527 $as_echo "$ac_ct_DUMPBIN" >&6; }
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5530 $as_echo "no
" >&6; }
5534 test -n "$ac_ct_DUMPBIN" && break
5537 if test "x
$ac_ct_DUMPBIN" = x; then
5540 case $cross_compiling:$ac_tool_warned in
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5543 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5544 ac_tool_warned=yes ;;
5546 DUMPBIN=$ac_ct_DUMPBIN
5550 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5552 DUMPBIN="$DUMPBIN -symbols"
5560 if test "$DUMPBIN" != ":"; then
5564 test -z "$NM" && NM=nm
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5572 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5573 if ${lt_cv_nm_interface+:} false; then :
5574 $as_echo_n "(cached
) " >&6
5576 lt_cv_nm_interface="BSD nm
"
5577 echo "int some_variable
= 0;" > conftest.$ac_ext
5578 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5579 (eval "$ac_compile" 2>conftest.err)
5580 cat conftest.err >&5
5581 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5582 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5583 cat conftest.err >&5
5584 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5585 cat conftest.out >&5
5586 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5587 lt_cv_nm_interface="MS dumpbin
"
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5592 $as_echo "$lt_cv_nm_interface" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5595 $as_echo_n "checking whether
ln -s works...
" >&6; }
5597 if test "$LN_S" = "ln -s"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5599 $as_echo "yes" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5602 $as_echo "no
, using
$LN_S" >&6; }
5605 # find the maximum length of command line arguments
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5607 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5608 if ${lt_cv_sys_max_cmd_len+:} false; then :
5609 $as_echo_n "(cached
) " >&6
5616 # On DJGPP, this test can blow up pretty badly due to problems in libc
5617 # (any single argument exceeding 2000 bytes causes a buffer overrun
5618 # during glob expansion). Even if it were fixed, the result of this
5619 # check would be larger than it should be.
5620 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5624 # Under GNU Hurd, this test is not required because there is
5625 # no limit to the length of command line arguments.
5626 # Libtool will interpret -1 as no limit whatsoever
5627 lt_cv_sys_max_cmd_len=-1;
5630 cygwin* | mingw* | cegcc*)
5631 # On Win9x/ME, this test blows up -- it succeeds, but takes
5632 # about 5 minutes as the teststring grows exponentially.
5633 # Worse, since 9x/ME are not pre-emptively multitasking,
5634 # you end up with a "frozen
" computer, even though with patience
5635 # the test eventually succeeds (with a max line length of 256k).
5636 # Instead, let's just punt: use the minimum linelength reported by
5637 # all of the supported platforms: 8192 (on NT/2K/XP).
5638 lt_cv_sys_max_cmd_len=8192;
5642 # On MiNT this can take a long time and run out of memory.
5643 lt_cv_sys_max_cmd_len=8192;
5647 # On AmigaOS with pdksh, this test takes hours, literally.
5648 # So we just punt and use a minimum line length of 8192.
5649 lt_cv_sys_max_cmd_len=8192;
5652 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5653 # This has been around since 386BSD, at least. Likely further.
5654 if test -x /sbin/sysctl; then
5655 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5656 elif test -x /usr/sbin/sysctl; then
5657 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5659 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5661 # And add a safety zone
5662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5667 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5668 lt_cv_sys_max_cmd_len=196608
5672 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5673 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5674 # nice to cause kernel panics so lets avoid the loop below.
5675 # First set a reasonable default.
5676 lt_cv_sys_max_cmd_len=16384
5678 if test -x /sbin/sysconfig; then
5679 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5680 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5685 lt_cv_sys_max_cmd_len=102400
5687 sysv5* | sco5v6* | sysv4.2uw2*)
5688 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5689 if test -n "$kargmax"; then
5690 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5692 lt_cv_sys_max_cmd_len=32768
5696 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5697 if test -n "$lt_cv_sys_max_cmd_len"; then
5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5701 # Make teststring a little bigger before we do anything with it.
5702 # a 1K string should be a reasonable start.
5703 for i in 1 2 3 4 5 6 7 8 ; do
5704 teststring=$teststring$teststring
5706 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5707 # If test is not a shell built-in, we'll probably end up computing a
5708 # maximum length that is only half of the actual maximum length, but
5710 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5711 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5712 test $i != 17 # 1/2 MB should be enough
5715 teststring=$teststring$teststring
5717 # Only check the string length outside the loop.
5718 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5720 # Add a significant safety factor because C++ compilers can tack on
5721 # massive amounts of additional arguments before passing them to the
5722 # linker. It appears as though 1/2 is a usable value.
5723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5730 if test -n $lt_cv_sys_max_cmd_len ; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5732 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5735 $as_echo "none
" >&6; }
5737 max_cmd_len=$lt_cv_sys_max_cmd_len
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5749 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5750 # Try some XSI features
5753 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5755 && eval 'test $(( 1 + 1 )) -eq 2 \
5756 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5759 $as_echo "$xsi_shell" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5763 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5765 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5767 && lt_shell_append
=yes
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5769 $as_echo "$lt_shell_append" >&6; }
5772 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5782 # test EBCDIC or ASCII
5783 case `echo X|tr X '\101'` in
5784 A
) # ASCII based system
5785 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5786 lt_SP2NL
='tr \040 \012'
5787 lt_NL2SP
='tr \015\012 \040\040'
5789 *) # EBCDIC based system
5790 lt_SP2NL
='tr \100 \n'
5791 lt_NL2SP
='tr \r\n \100\100'
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5804 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5805 if ${lt_cv_ld_reload_flag+:} false
; then :
5806 $as_echo_n "(cached) " >&6
5808 lt_cv_ld_reload_flag
='-r'
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5811 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5812 reload_flag
=$lt_cv_ld_reload_flag
5813 case $reload_flag in
5815 *) reload_flag
=" $reload_flag" ;;
5817 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5820 if test "$GCC" = yes; then
5821 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5823 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5838 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5842 $as_echo_n "(cached) " >&6
5844 if test -n "$OBJDUMP"; then
5845 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir
=.
5852 for ac_exec_ext
in '' $ac_executable_extensions; do
5853 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 OBJDUMP
=$ac_cv_prog_OBJDUMP
5865 if test -n "$OBJDUMP"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5867 $as_echo "$OBJDUMP" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5875 if test -z "$ac_cv_prog_OBJDUMP"; then
5876 ac_ct_OBJDUMP
=$OBJDUMP
5877 # Extract the first word of "objdump", so it can be a program name with args.
5878 set dummy objdump
; ac_word
=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5882 $as_echo_n "(cached) " >&6
5884 if test -n "$ac_ct_OBJDUMP"; then
5885 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir
=.
5892 for ac_exec_ext
in '' $ac_executable_extensions; do
5893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5905 if test -n "$ac_ct_OBJDUMP"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5907 $as_echo "$ac_ct_OBJDUMP" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5913 if test "x$ac_ct_OBJDUMP" = x
; then
5916 case $cross_compiling:$ac_tool_warned in
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned
=yes ;;
5922 OBJDUMP
=$ac_ct_OBJDUMP
5925 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5928 test -z "$OBJDUMP" && OBJDUMP
=objdump
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5939 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5940 if ${lt_cv_deplibs_check_method+:} false
; then :
5941 $as_echo_n "(cached) " >&6
5943 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5944 lt_cv_file_magic_test_file
=
5945 lt_cv_deplibs_check_method
='unknown'
5946 # Need to set the preceding variable on all platforms that support
5947 # interlibrary dependencies.
5948 # 'none' -- dependencies not supported.
5949 # `unknown' -- same as none, but documents that we really don't know.
5950 # 'pass_all' -- all dependencies passed with no checks.
5951 # 'test_compile' -- check by making test program.
5952 # 'file_magic [[regex]]' -- check by looking for files in library path
5953 # which responds to the $file_magic_cmd with a given extended regex.
5954 # If you have `file' or equivalent on your system and you're not sure
5955 # whether `pass_all' will *always* work, you probably want this one.
5959 lt_cv_deplibs_check_method
=pass_all
5963 lt_cv_deplibs_check_method
=pass_all
5967 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5968 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5969 lt_cv_file_magic_test_file
=/shlib
/libc.so
5973 # func_win32_libid is a shell function defined in ltmain.sh
5974 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5975 lt_cv_file_magic_cmd
='func_win32_libid'
5979 # Base MSYS/MinGW do not provide the 'file' command needed by
5980 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5981 # unless we find 'file', for example because we are cross-compiling.
5982 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5983 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
5984 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5985 lt_cv_file_magic_cmd
='func_win32_libid'
5987 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
5988 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5993 # use the weaker test based on 'objdump'. See mingw*.
5994 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5995 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5998 darwin
* | rhapsody
*)
5999 lt_cv_deplibs_check_method
=pass_all
6002 freebsd
* | dragonfly
*)
6003 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6006 # Not sure whether the presence of OpenBSD here was a mistake.
6007 # Let's accept both of them until this is cleared up.
6008 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6009 lt_cv_file_magic_cmd
=/usr
/bin
/file
6010 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6014 lt_cv_deplibs_check_method
=pass_all
6019 lt_cv_deplibs_check_method
=pass_all
6023 lt_cv_deplibs_check_method
=pass_all
6026 hpux10.20
* | hpux11
*)
6027 lt_cv_file_magic_cmd
=/usr
/bin
/file
6030 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6031 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6034 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]'
6035 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6038 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6039 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6045 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6046 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6049 irix5
* | irix6
* | nonstopux
*)
6051 *-32|
*"-32 ") libmagic
=32-bit;;
6052 *-n32|
*"-n32 ") libmagic
=N32
;;
6053 *-64|
*"-64 ") libmagic
=64-bit;;
6054 *) libmagic
=never-match
;;
6056 lt_cv_deplibs_check_method
=pass_all
6059 # This must be Linux ELF.
6060 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
6061 lt_cv_deplibs_check_method
=pass_all
6065 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6066 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6068 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6073 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6074 lt_cv_file_magic_cmd
=/usr
/bin
/file
6075 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6079 lt_cv_deplibs_check_method
=pass_all
6083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6084 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6086 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6090 osf3
* | osf4
* | osf5
*)
6091 lt_cv_deplibs_check_method
=pass_all
6095 lt_cv_deplibs_check_method
=pass_all
6099 lt_cv_deplibs_check_method
=pass_all
6102 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6103 lt_cv_deplibs_check_method
=pass_all
6107 case $host_vendor in
6109 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]'
6110 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6113 lt_cv_deplibs_check_method
=pass_all
6116 lt_cv_file_magic_cmd
='/bin/file'
6117 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6120 lt_cv_file_magic_cmd
='/bin/file'
6121 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6122 lt_cv_file_magic_test_file
=/lib
/libc.so
6125 lt_cv_deplibs_check_method
=pass_all
6128 lt_cv_deplibs_check_method
=pass_all
6134 lt_cv_deplibs_check_method
=pass_all
6137 # Assume VxWorks cross toolchains are built on Linux, possibly
6138 # as canadian for Windows hosts.
6139 lt_cv_deplibs_check_method
=pass_all
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6145 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6146 file_magic_cmd
=$lt_cv_file_magic_cmd
6147 deplibs_check_method
=$lt_cv_deplibs_check_method
6148 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_AR+:} false
; then :
6167 $as_echo_n "(cached) " >&6
6169 if test -n "$AR"; then
6170 ac_cv_prog_AR
="$AR" # Let the user override the test.
6172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6176 test -z "$as_dir" && as_dir
=.
6177 for ac_exec_ext
in '' $ac_executable_extensions; do
6178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 if test -n "$AR"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6192 $as_echo "$AR" >&6; }
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6200 if test -z "$ac_cv_prog_AR"; then
6202 # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy
ar; ac_word
=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6207 $as_echo_n "(cached) " >&6
6209 if test -n "$ac_ct_AR"; then
6210 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6216 test -z "$as_dir" && as_dir
=.
6217 for ac_exec_ext
in '' $ac_executable_extensions; do
6218 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_ac_ct_AR
="ar"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6232 $as_echo "$ac_ct_AR" >&6; }
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6238 if test "x$ac_ct_AR" = x
; then
6241 case $cross_compiling:$ac_tool_warned in
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned
=yes ;;
6253 test -z "$AR" && AR
=ar
6254 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6266 if test -n "$ac_tool_prefix"; then
6267 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6268 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_STRIP+:} false
; then :
6272 $as_echo_n "(cached) " >&6
6274 if test -n "$STRIP"; then
6275 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir
=.
6282 for ac_exec_ext
in '' $ac_executable_extensions; do
6283 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 STRIP
=$ac_cv_prog_STRIP
6295 if test -n "$STRIP"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6297 $as_echo "$STRIP" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6305 if test -z "$ac_cv_prog_STRIP"; then
6307 # Extract the first word of "strip", so it can be a program name with args.
6308 set dummy strip
; ac_word
=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6312 $as_echo_n "(cached) " >&6
6314 if test -n "$ac_ct_STRIP"; then
6315 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir
=.
6322 for ac_exec_ext
in '' $ac_executable_extensions; do
6323 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_ac_ct_STRIP
="strip"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6335 if test -n "$ac_ct_STRIP"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6337 $as_echo "$ac_ct_STRIP" >&6; }
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6343 if test "x$ac_ct_STRIP" = x
; then
6346 case $cross_compiling:$ac_tool_warned in
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350 ac_tool_warned
=yes ;;
6355 STRIP
="$ac_cv_prog_STRIP"
6358 test -z "$STRIP" && STRIP
=:
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6367 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_RANLIB+:} false
; then :
6371 $as_echo_n "(cached) " >&6
6373 if test -n "$RANLIB"; then
6374 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6380 test -z "$as_dir" && as_dir
=.
6381 for ac_exec_ext
in '' $ac_executable_extensions; do
6382 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 RANLIB
=$ac_cv_prog_RANLIB
6394 if test -n "$RANLIB"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6396 $as_echo "$RANLIB" >&6; }
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 if test -z "$ac_cv_prog_RANLIB"; then
6405 ac_ct_RANLIB
=$RANLIB
6406 # Extract the first word of "ranlib", so it can be a program name with args.
6407 set dummy ranlib
; ac_word
=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$ac_ct_RANLIB"; then
6414 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir
=.
6421 for ac_exec_ext
in '' $ac_executable_extensions; do
6422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6434 if test -n "$ac_ct_RANLIB"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6436 $as_echo "$ac_ct_RANLIB" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6442 if test "x$ac_ct_RANLIB" = x
; then
6445 case $cross_compiling:$ac_tool_warned in
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned
=yes ;;
6451 RANLIB
=$ac_ct_RANLIB
6454 RANLIB
="$ac_cv_prog_RANLIB"
6457 test -z "$RANLIB" && RANLIB
=:
6464 # Determine commands to create old-style static archives.
6465 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6466 old_postinstall_cmds
='chmod 644 $oldlib'
6467 old_postuninstall_cmds
=
6469 if test -n "$RANLIB"; then
6472 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6475 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6478 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6483 lock_old_archive_extraction
=yes ;;
6485 lock_old_archive_extraction
=no
;;
6526 # If no C compiler was specified, use CC.
6529 # If no C compiler flags were specified, use CFLAGS.
6530 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6532 # Allow CC to be a program name with arguments.
6536 # Check for command to grab the raw symbol name followed by C symbol from nm.
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6538 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6539 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6540 $as_echo_n "(cached) " >&6
6543 # These are sane defaults that work on at least a few old systems.
6544 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6546 # Character class describing NM global symbol codes.
6547 symcode
='[BCDEGRST]'
6549 # Regexp to match symbols that can be accessed directly from C.
6550 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6552 # Define system-specific variables.
6557 cygwin
* | mingw
* | pw32
* | cegcc
*)
6558 symcode
='[ABCDGISTW]'
6561 if test "$host_cpu" = ia64
; then
6562 symcode
='[ABCDEGRST]'
6566 symcode
='[BCDEGRST]'
6569 symcode
='[BCDEGQRST]'
6580 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6588 # If we're using GNU nm, then use its standard symbol codes.
6589 case `$NM -V 2>&1` in
6590 *GNU
* |
*'with BFD'*)
6591 symcode
='[ABCDGIRSTW]' ;;
6594 # Transform an extracted symbol line into a proper C declaration.
6595 # Some systems (esp. on ia64) link data and code symbols differently,
6596 # so use this general approach.
6597 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6599 # Transform an extracted symbol line into symbol name and symbol address
6600 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6601 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'"
6603 # Handle CRLF in mingw tool chain
6607 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6611 # Try without a prefix underscore, then with it.
6612 for ac_symprfx
in "" "_"; do
6614 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6615 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6617 # Write the raw and C identifiers.
6618 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6619 # Fake it for dumpbin and say T for any non-static function
6620 # and D for any global variable.
6621 # Also find C++ and __fastcall symbols from MSVC++,
6622 # which start with @ or ?.
6623 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6624 " {last_section=section; section=\$ 3};"\
6625 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6626 " \$ 0!~/External *\|/{next};"\
6627 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6628 " {if(hide[section]) next};"\
6629 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6630 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6631 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6632 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6633 " ' prfx=^$ac_symprfx"
6635 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6638 # Check to see that the pipe works correctly.
6642 cat > conftest.
$ac_ext <<_LT_EOF
6647 void nm_test_func(void);
6648 void nm_test_func(void){}
6652 int main(){nm_test_var='a';nm_test_func();return(0);}
6655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6656 (eval $ac_compile) 2>&5
6658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659 test $ac_status = 0; }; then
6660 # Now try to grab the symbols.
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6663 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; } && test -s "$nlist"; then
6667 # Try sorting and uniquifying the output.
6668 if sort "$nlist" |
uniq > "$nlist"T
; then
6669 mv -f "$nlist"T
"$nlist"
6674 # Make sure that we snagged all the symbols we need.
6675 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6676 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6677 cat <<_LT_EOF > conftest.$ac_ext
6683 # Now generate the symbol file.
6684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6686 cat <<_LT_EOF >> conftest.$ac_ext
6688 /* The mapping between symbol names and symbols. */
6693 lt__PROGRAM__LTX_preloaded_symbols[] =
6695 { "@PROGRAM@", (void *) 0 },
6697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6698 cat <<\_LT_EOF
>> conftest.
$ac_ext
6702 /* This works around a problem
in FreeBSD linker
*/
6703 #ifdef FREEBSD_WORKAROUND
6704 static const void
*lt_preloaded_setup
() {
6705 return lt__PROGRAM__LTX_preloaded_symbols
;
6713 # Now try linking the two files.
6714 mv conftest.
$ac_objext conftstm.
$ac_objext
6715 lt_save_LIBS
="$LIBS"
6716 lt_save_CFLAGS
="$CFLAGS"
6717 LIBS
="conftstm.$ac_objext"
6718 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6720 (eval $ac_link) 2>&5
6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6726 LIBS
="$lt_save_LIBS"
6727 CFLAGS
="$lt_save_CFLAGS"
6729 echo "cannot find nm_test_func in $nlist" >&5
6732 echo "cannot find nm_test_var in $nlist" >&5
6735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6738 echo "$progname: failed program was:" >&5
6739 cat conftest.
$ac_ext >&5
6741 rm -rf conftest
* conftst
*
6743 # Do not use the global_symbol_pipe unless it works.
6744 if test "$pipe_works" = yes; then
6747 lt_cv_sys_global_symbol_pipe
=
6753 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6754 lt_cv_sys_global_symbol_to_cdecl
=
6756 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6758 $as_echo "failed" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6761 $as_echo "ok" >&6; }
6786 # Check whether --enable-libtool-lock was given.
6787 if test "${enable_libtool_lock+set}" = set; then :
6788 enableval
=$enable_libtool_lock;
6791 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6793 # Some flags need to be propagated to the compiler or linker for good
6797 # Find out which ABI we are using.
6798 echo 'int i;' > conftest.
$ac_ext
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6800 (eval $ac_compile) 2>&5
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; }; then
6804 case `/usr/bin/file conftest.$ac_objext` in
6816 # Find out which ABI we are using.
6817 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6819 (eval $ac_compile) 2>&5
6821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822 test $ac_status = 0; }; then
6823 if test "$lt_cv_prog_gnu_ld" = yes; then
6824 case `/usr/bin/file conftest.$ac_objext` in
6826 LD
="${LD-ld} -melf32bsmip"
6829 LD
="${LD-ld} -melf32bmipn32"
6832 LD
="${LD-ld} -melf64bmip"
6836 case `/usr/bin/file conftest.$ac_objext` in
6852 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6853 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6854 # Find out which ABI we are using.
6855 echo 'int i;' > conftest.
$ac_ext
6856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6857 (eval $ac_compile) 2>&5
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }; then
6861 case `/usr/bin/file conftest.o` in
6864 x86_64-
*kfreebsd
*-gnu)
6865 LD
="${LD-ld} -m elf_i386_fbsd"
6868 case `/usr/bin/file conftest.o` in
6870 LD
="${LD-ld} -m elf32_x86_64"
6873 LD
="${LD-ld} -m elf_i386"
6877 powerpc64le-
*linux
*)
6878 LD
="${LD-ld} -m elf32lppclinux"
6881 LD
="${LD-ld} -m elf32ppclinux"
6884 LD
="${LD-ld} -m elf_s390"
6887 LD
="${LD-ld} -m elf32_sparc"
6893 x86_64-
*kfreebsd
*-gnu)
6894 LD
="${LD-ld} -m elf_x86_64_fbsd"
6897 LD
="${LD-ld} -m elf_x86_64"
6900 LD
="${LD-ld} -m elf64lppc"
6903 LD
="${LD-ld} -m elf64ppc"
6905 s390
*-*linux
*|s390
*-*tpf
*)
6906 LD
="${LD-ld} -m elf64_s390"
6909 LD
="${LD-ld} -m elf64_sparc"
6919 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6920 SAVE_CFLAGS
="$CFLAGS"
6921 CFLAGS
="$CFLAGS -belf"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6923 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6924 if ${lt_cv_cc_needs_belf+:} false
; then :
6925 $as_echo_n "(cached) " >&6
6928 ac_cpp
='$CPP $CPPFLAGS'
6929 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6944 if ac_fn_c_try_link
"$LINENO"; then :
6945 lt_cv_cc_needs_belf
=yes
6947 lt_cv_cc_needs_belf
=no
6949 rm -f core conftest.err conftest.
$ac_objext \
6950 conftest
$ac_exeext conftest.
$ac_ext
6952 ac_cpp
='$CPP $CPPFLAGS'
6953 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6959 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6960 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6961 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6962 CFLAGS
="$SAVE_CFLAGS"
6966 # Find out which ABI we are using.
6967 echo 'int i;' > conftest.
$ac_ext
6968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6969 (eval $ac_compile) 2>&5
6971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972 test $ac_status = 0; }; then
6973 case `/usr/bin/file conftest.o` in
6975 case $lt_cv_prog_gnu_ld in
6976 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
6978 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
6990 need_locks
="$enable_libtool_lock"
6994 rhapsody
* | darwin
*)
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6997 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7001 $as_echo_n "(cached) " >&6
7003 if test -n "$DSYMUTIL"; then
7004 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir
=.
7011 for ac_exec_ext
in '' $ac_executable_extensions; do
7012 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7024 if test -n "$DSYMUTIL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7026 $as_echo "$DSYMUTIL" >&6; }
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7034 if test -z "$ac_cv_prog_DSYMUTIL"; then
7035 ac_ct_DSYMUTIL
=$DSYMUTIL
7036 # Extract the first word of "dsymutil", so it can be a program name with args.
7037 set dummy dsymutil
; ac_word
=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7041 $as_echo_n "(cached) " >&6
7043 if test -n "$ac_ct_DSYMUTIL"; then
7044 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir
=.
7051 for ac_exec_ext
in '' $ac_executable_extensions; do
7052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7064 if test -n "$ac_ct_DSYMUTIL"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7066 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7072 if test "x$ac_ct_DSYMUTIL" = x
; then
7075 case $cross_compiling:$ac_tool_warned in
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned
=yes ;;
7081 DSYMUTIL
=$ac_ct_DSYMUTIL
7084 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7087 if test -n "$ac_tool_prefix"; then
7088 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7089 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_NMEDIT+:} false
; then :
7093 $as_echo_n "(cached) " >&6
7095 if test -n "$NMEDIT"; then
7096 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir
=.
7103 for ac_exec_ext
in '' $ac_executable_extensions; do
7104 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 NMEDIT
=$ac_cv_prog_NMEDIT
7116 if test -n "$NMEDIT"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7118 $as_echo "$NMEDIT" >&6; }
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7126 if test -z "$ac_cv_prog_NMEDIT"; then
7127 ac_ct_NMEDIT
=$NMEDIT
7128 # Extract the first word of "nmedit", so it can be a program name with args.
7129 set dummy nmedit
; ac_word
=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7133 $as_echo_n "(cached) " >&6
7135 if test -n "$ac_ct_NMEDIT"; then
7136 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir
=.
7143 for ac_exec_ext
in '' $ac_executable_extensions; do
7144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7156 if test -n "$ac_ct_NMEDIT"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7158 $as_echo "$ac_ct_NMEDIT" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7164 if test "x$ac_ct_NMEDIT" = x
; then
7167 case $cross_compiling:$ac_tool_warned in
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171 ac_tool_warned
=yes ;;
7173 NMEDIT
=$ac_ct_NMEDIT
7176 NMEDIT
="$ac_cv_prog_NMEDIT"
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7181 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_LIPO+:} false
; then :
7185 $as_echo_n "(cached) " >&6
7187 if test -n "$LIPO"; then
7188 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir
=.
7195 for ac_exec_ext
in '' $ac_executable_extensions; do
7196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 LIPO
=$ac_cv_prog_LIPO
7208 if test -n "$LIPO"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7210 $as_echo "$LIPO" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7218 if test -z "$ac_cv_prog_LIPO"; then
7220 # Extract the first word of "lipo", so it can be a program name with args.
7221 set dummy lipo
; ac_word
=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7225 $as_echo_n "(cached) " >&6
7227 if test -n "$ac_ct_LIPO"; then
7228 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir
=.
7235 for ac_exec_ext
in '' $ac_executable_extensions; do
7236 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_LIPO
="lipo"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7248 if test -n "$ac_ct_LIPO"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7250 $as_echo "$ac_ct_LIPO" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7256 if test "x$ac_ct_LIPO" = x
; then
7259 case $cross_compiling:$ac_tool_warned in
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned
=yes ;;
7268 LIPO
="$ac_cv_prog_LIPO"
7271 if test -n "$ac_tool_prefix"; then
7272 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7273 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_OTOOL+:} false
; then :
7277 $as_echo_n "(cached) " >&6
7279 if test -n "$OTOOL"; then
7280 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir
=.
7287 for ac_exec_ext
in '' $ac_executable_extensions; do
7288 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 OTOOL
=$ac_cv_prog_OTOOL
7300 if test -n "$OTOOL"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7302 $as_echo "$OTOOL" >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7310 if test -z "$ac_cv_prog_OTOOL"; then
7312 # Extract the first word of "otool", so it can be a program name with args.
7313 set dummy otool
; ac_word
=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7317 $as_echo_n "(cached) " >&6
7319 if test -n "$ac_ct_OTOOL"; then
7320 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir
=.
7327 for ac_exec_ext
in '' $ac_executable_extensions; do
7328 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_ac_ct_OTOOL
="otool"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7340 if test -n "$ac_ct_OTOOL"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7342 $as_echo "$ac_ct_OTOOL" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7348 if test "x$ac_ct_OTOOL" = x
; then
7351 case $cross_compiling:$ac_tool_warned in
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355 ac_tool_warned
=yes ;;
7360 OTOOL
="$ac_cv_prog_OTOOL"
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7365 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_OTOOL64+:} false
; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$OTOOL64"; then
7372 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir
=.
7379 for ac_exec_ext
in '' $ac_executable_extensions; do
7380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 OTOOL64
=$ac_cv_prog_OTOOL64
7392 if test -n "$OTOOL64"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7394 $as_echo "$OTOOL64" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7402 if test -z "$ac_cv_prog_OTOOL64"; then
7403 ac_ct_OTOOL64
=$OTOOL64
7404 # Extract the first word of "otool64", so it can be a program name with args.
7405 set dummy otool64
; ac_word
=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7409 $as_echo_n "(cached) " >&6
7411 if test -n "$ac_ct_OTOOL64"; then
7412 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir
=.
7419 for ac_exec_ext
in '' $ac_executable_extensions; do
7420 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7432 if test -n "$ac_ct_OTOOL64"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7434 $as_echo "$ac_ct_OTOOL64" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7440 if test "x$ac_ct_OTOOL64" = x
; then
7443 case $cross_compiling:$ac_tool_warned in
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned
=yes ;;
7449 OTOOL64
=$ac_ct_OTOOL64
7452 OTOOL64
="$ac_cv_prog_OTOOL64"
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7482 $as_echo_n "checking for -single_module linker flag... " >&6; }
7483 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7484 $as_echo_n "(cached) " >&6
7486 lt_cv_apple_cc_single_mod
=no
7487 if test -z "${LT_MULTI_MODULE}"; then
7488 # By default we will add the -single_module flag. You can override
7489 # by either setting the environment variable LT_MULTI_MODULE
7490 # non-empty at configure time, or by adding -multi_module to the
7492 rm -rf libconftest.dylib
*
7493 echo "int foo(void){return 1;}" > conftest.c
7494 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7495 -dynamiclib -Wl,-single_module conftest.c" >&5
7496 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7497 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7499 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7500 lt_cv_apple_cc_single_mod
=yes
7502 cat conftest.err
>&5
7504 rm -rf libconftest.dylib
*
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7509 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7511 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7512 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7513 $as_echo_n "(cached) " >&6
7515 lt_cv_ld_exported_symbols_list
=no
7516 save_LDFLAGS
=$LDFLAGS
7517 echo "_main" > conftest.sym
7518 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7530 if ac_fn_c_try_link
"$LINENO"; then :
7531 lt_cv_ld_exported_symbols_list
=yes
7533 lt_cv_ld_exported_symbols_list
=no
7535 rm -f core conftest.err conftest.
$ac_objext \
7536 conftest
$ac_exeext conftest.
$ac_ext
7537 LDFLAGS
="$save_LDFLAGS"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7541 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7543 $as_echo_n "checking for -force_load linker flag... " >&6; }
7544 if ${lt_cv_ld_force_load+:} false
; then :
7545 $as_echo_n "(cached) " >&6
7547 lt_cv_ld_force_load
=no
7548 cat > conftest.c
<< _LT_EOF
7549 int forced_loaded() { return 2;}
7551 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7552 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7553 echo "$AR cru libconftest.a conftest.o" >&5
7554 $AR cru libconftest.a conftest.o
2>&5
7555 cat > conftest.c
<< _LT_EOF
7556 int main() { return 0;}
7558 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7559 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7561 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7562 lt_cv_ld_force_load
=yes
7564 cat conftest.err
>&5
7566 rm -f conftest.err libconftest.a conftest conftest.c
7567 rm -rf conftest.dSYM
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7571 $as_echo "$lt_cv_ld_force_load" >&6; }
7572 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7573 # build without first building modern cctools / linker.
7574 case $host_cpu-$host_os in
7575 *-rhapsody* |
*-darwin1.
[012])
7576 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7578 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7580 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7581 # deployment target is forced to an earlier version.
7582 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7583 UNSET
,*-darwin[89]*|UNSET
,*-darwin[12][0123456789]*)
7586 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7593 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7594 _lt_dar_single_mod
='$single_module'
7596 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7597 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7599 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7601 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7602 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7610 ac_cpp
='$CPP $CPPFLAGS'
7611 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7615 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7616 # On Suns, sometimes $CPP names a directory.
7617 if test -n "$CPP" && test -d "$CPP"; then
7620 if test -z "$CPP"; then
7621 if ${ac_cv_prog_CPP+:} false
; then :
7622 $as_echo_n "(cached) " >&6
7624 # Double quotes because CPP needs to be expanded
7625 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7628 for ac_c_preproc_warn_flag
in '' yes
7630 # Use a header file that comes with gcc, so configuring glibc
7631 # with a fresh cross-compiler works.
7632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7633 # <limits.h> exists even on freestanding compilers.
7634 # On the NeXT, cc -E runs the code through the compiler's parser,
7635 # not just through cpp. "Syntax error" is here to catch this case.
7636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7639 # include <limits.h>
7641 # include <assert.h>
7645 if ac_fn_c_try_cpp
"$LINENO"; then :
7648 # Broken: fails on valid input.
7651 rm -f conftest.err conftest.i conftest.
$ac_ext
7653 # OK, works on sane cases. Now check whether nonexistent headers
7654 # can be detected and how.
7655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 #include <ac_nonexistent.h>
7659 if ac_fn_c_try_cpp
"$LINENO"; then :
7660 # Broken: success on invalid input.
7663 # Passes both tests.
7667 rm -f conftest.err conftest.i conftest.
$ac_ext
7670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7671 rm -f conftest.i conftest.err conftest.
$ac_ext
7672 if $ac_preproc_ok; then :
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7685 $as_echo "$CPP" >&6; }
7687 for ac_c_preproc_warn_flag
in '' yes
7689 # Use a header file that comes with gcc, so configuring glibc
7690 # with a fresh cross-compiler works.
7691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7692 # <limits.h> exists even on freestanding compilers.
7693 # On the NeXT, cc -E runs the code through the compiler's parser,
7694 # not just through cpp. "Syntax error" is here to catch this case.
7695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7698 # include <limits.h>
7700 # include <assert.h>
7704 if ac_fn_c_try_cpp
"$LINENO"; then :
7707 # Broken: fails on valid input.
7710 rm -f conftest.err conftest.i conftest.
$ac_ext
7712 # OK, works on sane cases. Now check whether nonexistent headers
7713 # can be detected and how.
7714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 #include <ac_nonexistent.h>
7718 if ac_fn_c_try_cpp
"$LINENO"; then :
7719 # Broken: success on invalid input.
7722 # Passes both tests.
7726 rm -f conftest.err conftest.i conftest.
$ac_ext
7729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7730 rm -f conftest.i conftest.err conftest.
$ac_ext
7731 if $ac_preproc_ok; then :
7734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7736 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7737 See \`config.log' for more details" "$LINENO" 5; }
7741 ac_cpp
='$CPP $CPPFLAGS'
7742 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7748 $as_echo_n "checking for ANSI C header files... " >&6; }
7749 if ${ac_cv_header_stdc+:} false
; then :
7750 $as_echo_n "(cached) " >&6
7752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7767 if ac_fn_c_try_compile
"$LINENO"; then :
7768 ac_cv_header_stdc
=yes
7770 ac_cv_header_stdc
=no
7772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7774 if test $ac_cv_header_stdc = yes; then
7775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7782 $EGREP "memchr" >/dev
/null
2>&1; then :
7785 ac_cv_header_stdc
=no
7791 if test $ac_cv_header_stdc = yes; then
7792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7799 $EGREP "free" >/dev
/null
2>&1; then :
7802 ac_cv_header_stdc
=no
7808 if test $ac_cv_header_stdc = yes; then
7809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7810 if test "$cross_compiling" = yes; then :
7813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7817 #if ((' ' & 0x0FF) == 0x020)
7818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7821 # define ISLOWER(c) \
7822 (('a' <= (c) && (c) <= 'i') \
7823 || ('j' <= (c) && (c) <= 'r') \
7824 || ('s' <= (c) && (c) <= 'z'))
7825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7833 for (i = 0; i < 256; i++)
7834 if (XOR (islower (i), ISLOWER (i))
7835 || toupper (i) != TOUPPER (i))
7840 if ac_fn_c_try_run
"$LINENO"; then :
7843 ac_cv_header_stdc
=no
7845 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7846 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7852 $as_echo "$ac_cv_header_stdc" >&6; }
7853 if test $ac_cv_header_stdc = yes; then
7855 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7859 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7860 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7861 inttypes.h stdint.h unistd.h
7863 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7864 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7866 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7867 cat >>confdefs.h
<<_ACEOF
7868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7876 for ac_header
in dlfcn.h
7878 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7880 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7881 cat >>confdefs.h
<<_ACEOF
7882 #define HAVE_DLFCN_H 1
7903 # Check whether --enable-shared was given.
7904 if test "${enable_shared+set}" = set; then :
7905 enableval
=$enable_shared; p
=${PACKAGE-default}
7907 yes) enable_shared
=yes ;;
7908 no
) enable_shared
=no
;;
7911 # Look at the argument we got. We use all the common list separators.
7912 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7913 for pkg
in $enableval; do
7915 if test "X$pkg" = "X$p"; then
7934 # Check whether --enable-static was given.
7935 if test "${enable_static+set}" = set; then :
7936 enableval
=$enable_static; p
=${PACKAGE-default}
7938 yes) enable_static
=yes ;;
7939 no
) enable_static
=no
;;
7942 # Look at the argument we got. We use all the common list separators.
7943 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7944 for pkg
in $enableval; do
7946 if test "X$pkg" = "X$p"; then
7966 # Check whether --with-pic was given.
7967 if test "${with_pic+set}" = set; then :
7968 withval
=$with_pic; pic_mode
="$withval"
7974 test -z "$pic_mode" && pic_mode
=default
7982 # Check whether --enable-fast-install was given.
7983 if test "${enable_fast_install+set}" = set; then :
7984 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7986 yes) enable_fast_install
=yes ;;
7987 no
) enable_fast_install
=no
;;
7989 enable_fast_install
=no
7990 # Look at the argument we got. We use all the common list separators.
7991 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7992 for pkg
in $enableval; do
7994 if test "X$pkg" = "X$p"; then
7995 enable_fast_install
=yes
8002 enable_fast_install
=yes
8015 # This can be used to rebuild libtool when needed
8016 LIBTOOL_DEPS
="$ltmain"
8018 # Always use our own libtool.
8019 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8046 test -z "$LN_S" && LN_S
="ln -s"
8061 if test -n "${ZSH_VERSION+set}" ; then
8062 setopt NO_GLOB_SUBST
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8066 $as_echo_n "checking for objdir... " >&6; }
8067 if ${lt_cv_objdir+:} false
; then :
8068 $as_echo_n "(cached) " >&6
8070 rm -f .libs
2>/dev
/null
8071 mkdir .libs
2>/dev
/null
8072 if test -d .libs
; then
8075 # MS-DOS does not allow filenames that begin with a dot.
8078 rmdir .libs
2>/dev
/null
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8081 $as_echo "$lt_cv_objdir" >&6; }
8082 objdir
=$lt_cv_objdir
8088 cat >>confdefs.h
<<_ACEOF
8089 #define LT_OBJDIR "$lt_cv_objdir/"
8097 # AIX sometimes has problems with the GCC collect2 program. For some
8098 # reason, if we set the COLLECT_NAMES environment variable, the problems
8099 # vanish in a puff of smoke.
8100 if test "X${COLLECT_NAMES+set}" != Xset
; then
8102 export COLLECT_NAMES
8109 can_build_shared
=yes
8111 # All known linkers require a `.a' archive for static linking (except MSVC,
8112 # which needs '.lib').
8115 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8118 old_CFLAGS
="$CFLAGS"
8120 # Set sane defaults for various variables
8121 test -z "$CC" && CC
=cc
8122 test -z "$LTCC" && LTCC
=$CC
8123 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8124 test -z "$LD" && LD
=ld
8125 test -z "$ac_objext" && ac_objext
=o
8127 for cc_temp
in $compiler""; do
8129 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8130 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8135 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8138 # Only perform the check for file, if the check method requires it
8139 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8140 case $deplibs_check_method in
8142 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8144 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8145 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8146 $as_echo_n "(cached) " >&6
8150 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8153 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8154 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8155 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8156 for ac_dir
in $ac_dummy; do
8158 test -z "$ac_dir" && ac_dir
=.
8159 if test -f $ac_dir/${ac_tool_prefix}file; then
8160 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8161 if test -n "$file_magic_test_file"; then
8162 case $deplibs_check_method in
8164 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8165 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8166 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8167 $EGREP "$file_magic_regex" > /dev
/null
; then
8172 *** Warning: the command libtool uses to detect shared libraries,
8173 *** $file_magic_cmd, produces output that libtool cannot recognize.
8174 *** The result is that libtool may fail to recognize shared libraries
8175 *** as such. This will affect the creation of libtool libraries that
8176 *** depend on shared libraries, but programs linked with such libtool
8177 *** libraries will work regardless of this problem. Nevertheless, you
8178 *** may want to report the problem to your system manager and/or to
8179 *** bug-libtool@gnu.org
8189 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8194 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8195 if test -n "$MAGIC_CMD"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8197 $as_echo "$MAGIC_CMD" >&6; }
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8207 if test -z "$lt_cv_path_MAGIC_CMD"; then
8208 if test -n "$ac_tool_prefix"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8210 $as_echo_n "checking for file... " >&6; }
8211 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8212 $as_echo_n "(cached) " >&6
8216 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8219 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8220 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8221 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir
in $ac_dummy; do
8224 test -z "$ac_dir" && ac_dir
=.
8225 if test -f $ac_dir/file; then
8226 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8230 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8233 $EGREP "$file_magic_regex" > /dev
/null
; then
8238 *** Warning: the command libtool uses to detect shared libraries,
8239 *** $file_magic_cmd, produces output that libtool cannot recognize.
8240 *** The result is that libtool may fail to recognize shared libraries
8241 *** as such. This will affect the creation of libtool libraries that
8242 *** depend on shared libraries, but programs linked with such libtool
8243 *** libraries will work regardless of this problem. Nevertheless, you
8244 *** may want to report the problem to your system manager and/or to
8245 *** bug-libtool@gnu.org
8255 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8260 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8261 if test -n "$MAGIC_CMD"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263 $as_echo "$MAGIC_CMD" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8279 # Use C for the default configuration in the libtool script
8283 ac_cpp
='$CPP $CPPFLAGS'
8284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8289 # Source file extension for C test sources.
8292 # Object file extension for compiled C test sources.
8296 # Code to be used in simple compile tests
8297 lt_simple_compile_test_code
="int some_variable = 0;"
8299 # Code to be used in simple link tests
8300 lt_simple_link_test_code
='int main(){return(0);}'
8308 # If no C compiler was specified, use CC.
8311 # If no C compiler flags were specified, use CFLAGS.
8312 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8314 # Allow CC to be a program name with arguments.
8317 # Save the default compiler, since it gets overwritten when the other
8318 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8319 compiler_DEFAULT
=$CC
8321 # save warnings/boilerplate of simple test code
8322 ac_outfile
=conftest.
$ac_objext
8323 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8324 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8325 _lt_compiler_boilerplate
=`cat conftest.err`
8328 ac_outfile
=conftest.
$ac_objext
8329 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8330 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8331 _lt_linker_boilerplate
=`cat conftest.err`
8336 ## There is no encapsulation within the following macros, do not change
8337 ## the running order or otherwise move them around unless you know exactly
8338 ## what you are doing...
8339 if test -n "$compiler"; then
8341 lt_prog_compiler_no_builtin_flag
=
8343 if test "$GCC" = yes; then
8344 case $cc_basename in
8346 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8348 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8352 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8353 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8354 $as_echo_n "(cached) " >&6
8356 lt_cv_prog_compiler_rtti_exceptions
=no
8357 ac_outfile
=conftest.
$ac_objext
8358 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8359 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8360 # Insert the option either (1) after the last *FLAGS variable, or
8361 # (2) before a word containing "conftest.", or (3) at the end.
8362 # Note that $ac_compile itself does not contain backslashes and begins
8363 # with a dollar sign (not a hyphen), so the echo should work correctly.
8364 # The option is referenced via a variable to avoid confusing sed.
8365 lt_compile
=`echo "$ac_compile" | $SED \
8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368 -e 's:$: $lt_compiler_flag:'`
8369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8370 (eval "$lt_compile" 2>conftest.err
)
8372 cat conftest.err
>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 if (exit $ac_status) && test -s "$ac_outfile"; then
8375 # The compiler can only warn and ignore the option if not recognized
8376 # So say no if there are warnings other than the usual output.
8377 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8378 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8379 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8380 lt_cv_prog_compiler_rtti_exceptions
=yes
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8387 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8389 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8390 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8402 lt_prog_compiler_wl
=
8403 lt_prog_compiler_pic
=
8404 lt_prog_compiler_static
=
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8407 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8409 if test "$GCC" = yes; then
8410 lt_prog_compiler_wl
='-Wl,'
8411 lt_prog_compiler_static
='-static'
8415 # All AIX code is PIC.
8416 if test "$host_cpu" = ia64
; then
8417 # AIX 5 now supports IA64 processor
8418 lt_prog_compiler_static
='-Bstatic'
8420 lt_prog_compiler_pic
='-fPIC'
8426 # see comment about AmigaOS4 .so support
8427 lt_prog_compiler_pic
='-fPIC'
8430 # FIXME: we need at least 68020 code to build shared libraries, but
8431 # adding the `-m68020' flag to GCC prevents building anything better,
8433 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8438 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8439 # PIC is the default for these OSes.
8442 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8443 # This hack is so that the source file can tell whether it is being
8444 # built for inclusion in a dll (and should export symbols for example).
8445 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8446 # (--disable-auto-import) libraries
8447 lt_prog_compiler_pic
='-DDLL_EXPORT'
8450 darwin
* | rhapsody
*)
8451 # PIC is the default on this platform
8452 # Common symbols not allowed in MH_DYLIB files
8453 lt_prog_compiler_pic
='-fno-common'
8457 # PIC is the default for Haiku.
8458 # The "-static" flag exists, but is broken.
8459 lt_prog_compiler_static
=
8463 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8464 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8465 # sets the default TLS model and affects inlining.
8471 lt_prog_compiler_pic
='-fPIC'
8477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8478 # Instead, we relocate shared libraries at runtime.
8482 # Just because we use GCC doesn't mean we suddenly get shared libraries
8483 # on systems that don't support them.
8484 lt_prog_compiler_can_build_shared
=no
8489 # QNX uses GNU C++, but need to define -shared option too, otherwise
8491 lt_prog_compiler_pic
='-fPIC -shared'
8495 if test -d /usr
/nec
; then
8496 lt_prog_compiler_pic
=-Kconform_pic
8501 lt_prog_compiler_pic
='-fPIC'
8505 case $cc_basename in
8506 nvcc
*) # Cuda Compiler Driver 2.2
8507 lt_prog_compiler_wl
='-Xlinker '
8508 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8512 # PORTME Check for flag to pass linker flags through the system compiler.
8515 lt_prog_compiler_wl
='-Wl,'
8516 if test "$host_cpu" = ia64
; then
8517 # AIX 5 now supports IA64 processor
8518 lt_prog_compiler_static
='-Bstatic'
8520 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8524 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8525 # This hack is so that the source file can tell whether it is being
8526 # built for inclusion in a dll (and should export symbols for example).
8527 lt_prog_compiler_pic
='-DDLL_EXPORT'
8530 hpux9
* | hpux10
* | hpux11
*)
8531 lt_prog_compiler_wl
='-Wl,'
8532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8539 lt_prog_compiler_pic
='+Z'
8542 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8543 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8546 irix5
* | irix6
* | nonstopux
*)
8547 lt_prog_compiler_wl
='-Wl,'
8548 # PIC (with -KPIC) is the default.
8549 lt_prog_compiler_static
='-non_shared'
8552 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8553 case $cc_basename in
8554 # old Intel for x86_64 which still supported -KPIC.
8556 lt_prog_compiler_wl
='-Wl,'
8557 lt_prog_compiler_pic
='-KPIC'
8558 lt_prog_compiler_static
='-static'
8560 # icc used to be incompatible with GCC.
8561 # ICC 10 doesn't accept -KPIC any more.
8563 lt_prog_compiler_wl
='-Wl,'
8564 lt_prog_compiler_pic
='-fPIC'
8565 lt_prog_compiler_static
='-static'
8567 # Lahey Fortran 8.1.
8569 lt_prog_compiler_wl
='-Wl,'
8570 lt_prog_compiler_pic
='--shared'
8571 lt_prog_compiler_static
='--static'
8573 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8574 # Portland Group compilers (*not* the Pentium gcc compiler,
8575 # which looks to be a dead project)
8576 lt_prog_compiler_wl
='-Wl,'
8577 lt_prog_compiler_pic
='-fpic'
8578 lt_prog_compiler_static
='-Bstatic'
8581 lt_prog_compiler_wl
='-Wl,'
8582 # All Alpha code is PIC.
8583 lt_prog_compiler_static
='-non_shared'
8585 xl
* | bgxl
* | bgf
* | mpixl
*)
8586 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8587 lt_prog_compiler_wl
='-Wl,'
8588 lt_prog_compiler_pic
='-qpic'
8589 lt_prog_compiler_static
='-qstaticlink'
8592 case `$CC -V 2>&1 | sed 5q` in
8593 *Sun\ F
* |
*Sun
*Fortran
*)
8594 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8595 lt_prog_compiler_pic
='-KPIC'
8596 lt_prog_compiler_static
='-Bstatic'
8597 lt_prog_compiler_wl
=''
8601 lt_prog_compiler_pic
='-KPIC'
8602 lt_prog_compiler_static
='-Bstatic'
8603 lt_prog_compiler_wl
='-Wl,'
8611 lt_prog_compiler_pic
='-KPIC'
8612 lt_prog_compiler_static
='-Bstatic'
8616 # QNX uses GNU C++, but need to define -shared option too, otherwise
8618 lt_prog_compiler_pic
='-fPIC -shared'
8621 osf3
* | osf4
* | osf5
*)
8622 lt_prog_compiler_wl
='-Wl,'
8623 # All OSF/1 code is PIC.
8624 lt_prog_compiler_static
='-non_shared'
8628 lt_prog_compiler_static
='-non_shared'
8632 lt_prog_compiler_pic
='-KPIC'
8633 lt_prog_compiler_static
='-Bstatic'
8634 case $cc_basename in
8636 lt_prog_compiler_wl
='-Qoption ld ';;
8638 lt_prog_compiler_wl
='-Wl,';;
8643 lt_prog_compiler_wl
='-Qoption ld '
8644 lt_prog_compiler_pic
='-PIC'
8645 lt_prog_compiler_static
='-Bstatic'
8648 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8649 lt_prog_compiler_wl
='-Wl,'
8650 lt_prog_compiler_pic
='-KPIC'
8651 lt_prog_compiler_static
='-Bstatic'
8655 if test -d /usr
/nec
;then
8656 lt_prog_compiler_pic
='-Kconform_pic'
8657 lt_prog_compiler_static
='-Bstatic'
8661 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8662 lt_prog_compiler_wl
='-Wl,'
8663 lt_prog_compiler_pic
='-KPIC'
8664 lt_prog_compiler_static
='-Bstatic'
8668 lt_prog_compiler_wl
='-Wl,'
8669 lt_prog_compiler_can_build_shared
=no
8673 lt_prog_compiler_pic
='-pic'
8674 lt_prog_compiler_static
='-Bstatic'
8678 lt_prog_compiler_can_build_shared
=no
8684 # For platforms which do not support PIC, -DPIC is meaningless:
8686 lt_prog_compiler_pic
=
8689 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8693 $as_echo "$lt_prog_compiler_pic" >&6; }
8701 # Check to make sure the PIC flag actually works.
8703 if test -n "$lt_prog_compiler_pic"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8705 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8706 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8707 $as_echo_n "(cached) " >&6
8709 lt_cv_prog_compiler_pic_works
=no
8710 ac_outfile
=conftest.
$ac_objext
8711 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8712 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8713 # Insert the option either (1) after the last *FLAGS variable, or
8714 # (2) before a word containing "conftest.", or (3) at the end.
8715 # Note that $ac_compile itself does not contain backslashes and begins
8716 # with a dollar sign (not a hyphen), so the echo should work correctly.
8717 # The option is referenced via a variable to avoid confusing sed.
8718 lt_compile
=`echo "$ac_compile" | $SED \
8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8721 -e 's:$: $lt_compiler_flag:'`
8722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8723 (eval "$lt_compile" 2>conftest.err
)
8725 cat conftest.err
>&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 if (exit $ac_status) && test -s "$ac_outfile"; then
8728 # The compiler can only warn and ignore the option if not recognized
8729 # So say no if there are warnings other than the usual output.
8730 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8731 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8732 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8733 lt_cv_prog_compiler_pic_works
=yes
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8740 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8742 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8743 case $lt_prog_compiler_pic in
8745 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8748 lt_prog_compiler_pic
=
8749 lt_prog_compiler_can_build_shared
=no
8760 # Check to make sure the static flag actually works.
8762 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8764 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8765 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8766 $as_echo_n "(cached) " >&6
8768 lt_cv_prog_compiler_static_works
=no
8769 save_LDFLAGS
="$LDFLAGS"
8770 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8771 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8772 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8773 # The linker can only warn and ignore the option if not recognized
8774 # So say no if there are warnings
8775 if test -s conftest.err
; then
8776 # Append any errors to the config.log.
8777 cat conftest.err
1>&5
8778 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8779 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8780 if diff conftest.exp conftest.er2
>/dev
/null
; then
8781 lt_cv_prog_compiler_static_works
=yes
8784 lt_cv_prog_compiler_static_works
=yes
8788 LDFLAGS
="$save_LDFLAGS"
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8792 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8794 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8797 lt_prog_compiler_static
=
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8807 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8808 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8809 $as_echo_n "(cached) " >&6
8811 lt_cv_prog_compiler_c_o
=no
8812 $RM -r conftest
2>/dev
/null
8816 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8818 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8819 # Insert the option either (1) after the last *FLAGS variable, or
8820 # (2) before a word containing "conftest.", or (3) at the end.
8821 # Note that $ac_compile itself does not contain backslashes and begins
8822 # with a dollar sign (not a hyphen), so the echo should work correctly.
8823 lt_compile
=`echo "$ac_compile" | $SED \
8824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8826 -e 's:$: $lt_compiler_flag:'`
8827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8828 (eval "$lt_compile" 2>out
/conftest.err
)
8830 cat out
/conftest.err
>&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8834 # The compiler can only warn and ignore the option if not recognized
8835 # So say no if there are warnings
8836 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8837 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8838 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8839 lt_cv_prog_compiler_c_o
=yes
8844 # SGI C++ compiler will create directory out/ii_files/ for
8845 # template instantiation
8846 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8847 $RM out
/* && rmdir out
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8854 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8863 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8864 $as_echo_n "(cached) " >&6
8866 lt_cv_prog_compiler_c_o
=no
8867 $RM -r conftest
2>/dev
/null
8871 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8873 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8874 # Insert the option either (1) after the last *FLAGS variable, or
8875 # (2) before a word containing "conftest.", or (3) at the end.
8876 # Note that $ac_compile itself does not contain backslashes and begins
8877 # with a dollar sign (not a hyphen), so the echo should work correctly.
8878 lt_compile
=`echo "$ac_compile" | $SED \
8879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8881 -e 's:$: $lt_compiler_flag:'`
8882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8883 (eval "$lt_compile" 2>out
/conftest.err
)
8885 cat out
/conftest.err
>&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8889 # The compiler can only warn and ignore the option if not recognized
8890 # So say no if there are warnings
8891 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8892 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8893 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8894 lt_cv_prog_compiler_c_o
=yes
8899 # SGI C++ compiler will create directory out/ii_files/ for
8900 # template instantiation
8901 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8902 $RM out
/* && rmdir out
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8909 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8914 hard_links
="nottested"
8915 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8916 # do not overwrite the value of need_locks provided by the user
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8918 $as_echo_n "checking if we can lock with hard links... " >&6; }
8921 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8923 ln conftest.a conftest.b
2>&5 || hard_links
=no
8924 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8926 $as_echo "$hard_links" >&6; }
8927 if test "$hard_links" = no
; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8929 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8942 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8945 allow_undefined_flag
=
8946 always_export_symbols
=no
8948 archive_expsym_cmds
=
8949 compiler_needs_object
=no
8950 enable_shared_with_static_runtimes
=no
8951 export_dynamic_flag_spec
=
8952 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8953 hardcode_automatic
=no
8955 hardcode_direct_absolute
=no
8956 hardcode_libdir_flag_spec
=
8957 hardcode_libdir_flag_spec_ld
=
8958 hardcode_libdir_separator
=
8960 hardcode_shlibpath_var
=unsupported
8962 link_all_deplibs
=unknown
8965 old_archive_from_new_cmds
=
8966 old_archive_from_expsyms_cmds
=
8967 thread_safe_flag_spec
=
8968 whole_archive_flag_spec
=
8969 # include_expsyms should be a list of space-separated symbols to be *always*
8970 # included in the symbol list
8972 # exclude_expsyms can be an extended regexp of symbols to exclude
8973 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8974 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8975 # as well as any symbol that contains `d'.
8976 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8977 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8978 # platforms (ab)use it in PIC code, but their linkers get confused if
8979 # the symbol is explicitly referenced. Since portable code cannot
8980 # rely on this symbol name, it's probably fine to never include it in
8981 # preloaded symbol tables.
8982 # Exclude shared library initialization/finalization symbols.
8983 extract_expsyms_cmds
=
8986 cygwin
* | mingw
* | pw32
* | cegcc
*)
8987 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8988 # When not using gcc, we currently assume that we are using
8989 # Microsoft Visual C++.
8990 if test "$GCC" != yes; then
8995 # we just hope/assume this is gcc and not c89 (= MSVC++)
9005 # On some targets, GNU ld is compatible enough with the native linker
9006 # that we're better off using the native interface for both.
9007 lt_use_gnu_ld_interface
=no
9008 if test "$with_gnu_ld" = yes; then
9011 # The AIX port of GNU ld has always aspired to compatibility
9012 # with the native linker. However, as the warning in the GNU ld
9013 # block says, versions before 2.19.5* couldn't really create working
9014 # shared libraries, regardless of the interface used.
9015 case `$LD -v 2>&1` in
9016 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9017 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9018 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9020 lt_use_gnu_ld_interface
=yes
9025 lt_use_gnu_ld_interface
=yes
9030 if test "$lt_use_gnu_ld_interface" = yes; then
9031 # If archive_cmds runs LD, not CC, wlarc should be empty
9034 # Set some defaults for GNU ld with shared library support. These
9035 # are reset later if shared libraries are not supported. Putting them
9036 # here allows them to be overridden if necessary.
9037 runpath_var
=LD_RUN_PATH
9038 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9039 export_dynamic_flag_spec
='${wl}--export-dynamic'
9040 # ancient GNU ld didn't support --whole-archive et. al.
9041 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9042 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9044 whole_archive_flag_spec
=
9046 supports_anon_versioning
=no
9047 case `$LD -v 2>&1` in
9048 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9049 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9050 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9051 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9052 *\
2.11.
*) ;; # other 2.11 versions
9053 *) supports_anon_versioning
=yes ;;
9056 # See if GNU ld supports shared libraries.
9059 # On AIX/PPC, the GNU linker is very broken
9060 if test "$host_cpu" != ia64
; then
9064 *** Warning: the GNU linker, at least up to release 2.19, is reported
9065 *** to be unable to reliably create shared libraries on AIX.
9066 *** Therefore, libtool is disabling shared libraries support. If you
9067 *** really care for shared libraries, you may want to install binutils
9068 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9069 *** You will then need to restart the configuration process.
9078 # see comment about AmigaOS4 .so support
9079 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080 archive_expsym_cmds
=''
9083 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)'
9084 hardcode_libdir_flag_spec
='-L$libdir'
9085 hardcode_minus_L
=yes
9091 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9092 allow_undefined_flag
=unsupported
9093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9094 # support --undefined. This deserves some investigation. FIXME
9095 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9101 cygwin
* | mingw
* | pw32
* | cegcc
*)
9102 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9103 # as there is no search path for DLLs.
9104 hardcode_libdir_flag_spec
='-L$libdir'
9105 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9106 allow_undefined_flag
=unsupported
9107 always_export_symbols
=no
9108 enable_shared_with_static_runtimes
=yes
9109 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9111 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9112 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9113 # If the export-symbols file already is a .def file (1st line
9114 # is EXPORTS), use it as is; otherwise, prepend...
9115 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9116 cp $export_symbols $output_objdir/$soname.def;
9118 echo EXPORTS > $output_objdir/$soname.def;
9119 cat $export_symbols >> $output_objdir/$soname.def;
9121 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9128 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129 link_all_deplibs
=yes
9134 hardcode_shlibpath_var
=no
9135 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9136 export_dynamic_flag_spec
='${wl}-E'
9137 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9138 # Instead, shared libraries are loaded at an image base (0x10000000 by
9139 # default) and relocated if they conflict, which is a slow very memory
9140 # consuming and fragmenting process. To avoid this, we pick a random,
9141 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9142 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9143 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9144 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'
9147 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9149 if test "$host_os" = linux-dietlibc
; then
9150 case $cc_basename in
9151 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9154 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9155 && test "$tmp_diet" = no
9157 tmp_addflag
=' $pic_flag'
9158 tmp_sharedflag
='-shared'
9159 case $cc_basename,$host_cpu in
9160 pgcc
*) # Portland Group C compiler
9161 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'
9162 tmp_addflag
=' $pic_flag'
9164 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9165 # Portland Group f77 and f90 compilers
9166 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'
9167 tmp_addflag
=' $pic_flag -Mnomain' ;;
9168 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9169 tmp_addflag
=' -i_dynamic' ;;
9170 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9171 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9172 ifc
* | ifort
*) # Intel Fortran compiler
9173 tmp_addflag
=' -nofor_main' ;;
9174 lf95
*) # Lahey Fortran 8.1
9175 whole_archive_flag_spec
=
9176 tmp_sharedflag
='--shared' ;;
9177 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9178 tmp_sharedflag
='-qmkshrobj'
9180 nvcc
*) # Cuda Compiler Driver 2.2
9181 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'
9182 compiler_needs_object
=yes
9185 case `$CC -V 2>&1 | sed 5q` in
9186 *Sun\ C
*) # Sun C 5.9
9187 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'
9188 compiler_needs_object
=yes
9189 tmp_sharedflag
='-G' ;;
9190 *Sun\ F
*) # Sun Fortran 8.3
9191 tmp_sharedflag
='-G' ;;
9193 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195 if test "x$supports_anon_versioning" = xyes
; then
9196 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9198 echo "local: *; };" >> $output_objdir/$libname.ver~
9199 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9202 case $cc_basename in
9203 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9204 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9205 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9206 hardcode_libdir_flag_spec
=
9207 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9208 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9209 if test "x$supports_anon_versioning" = xyes
; then
9210 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9212 echo "local: *; };" >> $output_objdir/$libname.ver~
9213 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9223 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9224 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9227 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9233 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9237 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9238 *** create shared libraries on Solaris systems. Therefore, libtool
9239 *** is disabling shared libraries support. We urge you to upgrade GNU
9240 *** binutils to release 2.9.1 or newer. Another option is to modify
9241 *** your PATH or compiler configuration so that the native linker is
9242 *** used, and then restart.
9245 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9246 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9253 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9254 case `$LD -v 2>&1` in
9255 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9259 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9260 *** reliably create shared libraries on SCO systems. Therefore, libtool
9261 *** is disabling shared libraries support. We urge you to upgrade GNU
9262 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9263 *** your PATH or compiler configuration so that the native linker is
9264 *** used, and then restart.
9269 # For security reasons, it is highly recommended that you always
9270 # use absolute paths for naming shared libraries, and exclude the
9271 # DT_RUNPATH tag from executables and libraries. But doing so
9272 # requires that you compile everything twice, which is a pain.
9273 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9274 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9275 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9285 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9288 hardcode_shlibpath_var
=no
9292 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9293 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9301 if test "$ld_shlibs" = no
; then
9303 hardcode_libdir_flag_spec
=
9304 export_dynamic_flag_spec
=
9305 whole_archive_flag_spec
=
9308 # PORTME fill in a description of your system's linker (not GNU ld)
9311 allow_undefined_flag
=unsupported
9312 always_export_symbols
=yes
9313 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'
9314 # Note: this linker hardcodes the directories in LIBPATH if there
9315 # are no directories specified by -L.
9316 hardcode_minus_L
=yes
9317 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9318 # Neither direct hardcoding nor static linking is supported with a
9320 hardcode_direct
=unsupported
9325 if test "$host_cpu" = ia64
; then
9326 # On IA64, the linker does run time linking by default, so we don't
9327 # have to do anything special.
9328 aix_use_runtimelinking
=no
9329 exp_sym_flag
='-Bexport'
9332 # If we're using GNU nm, then we don't want the "-C" option.
9333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9334 # Also, AIX nm treats weak defined symbols like other global
9335 # defined symbols, whereas GNU nm marks them as "W".
9336 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9337 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'
9339 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'
9341 aix_use_runtimelinking
=no
9343 # Test if we are trying to use run time linking or normal
9344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9345 # need to do runtime linking.
9346 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9347 for ld_flag
in $LDFLAGS; do
9348 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9349 aix_use_runtimelinking
=yes
9356 exp_sym_flag
='-bexport'
9357 no_entry_flag
='-bnoentry'
9360 # When large executables or shared objects are built, AIX ld can
9361 # have problems creating the table of contents. If linking a library
9362 # or program results in "error TOC overflow" add -mminimal-toc to
9363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9368 hardcode_direct_absolute
=yes
9369 hardcode_libdir_separator
=':'
9370 link_all_deplibs
=yes
9371 file_list_spec
='${wl}-f,'
9373 if test "$GCC" = yes; then
9374 case $host_os in aix4.
[012]|aix4.
[012].
*)
9375 # We only want to do this on AIX 4.2 and lower, the check
9376 # below for broken collect2 doesn't work under 4.3+
9377 collect2name
=`${CC} -print-prog-name=collect2`
9378 if test -f "$collect2name" &&
9379 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9381 # We have reworked collect2
9384 # We have old collect2
9385 hardcode_direct
=unsupported
9386 # It fails to find uninstalled libraries when the uninstalled
9387 # path is not listed in the libpath. Setting hardcode_minus_L
9388 # to unsupported forces relinking
9389 hardcode_minus_L
=yes
9390 hardcode_libdir_flag_spec
='-L$libdir'
9391 hardcode_libdir_separator
=
9395 shared_flag
='-shared'
9396 if test "$aix_use_runtimelinking" = yes; then
9397 shared_flag
="$shared_flag "'${wl}-G'
9401 if test "$host_cpu" = ia64
; then
9402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9403 # chokes on -Wl,-G. The following line is correct:
9406 if test "$aix_use_runtimelinking" = yes; then
9407 shared_flag
='${wl}-G'
9409 shared_flag
='${wl}-bM:SRE'
9414 export_dynamic_flag_spec
='${wl}-bexpall'
9415 # It seems that -bexpall does not export symbols beginning with
9416 # underscore (_), so it is better to generate a list of symbols to export.
9417 always_export_symbols
=yes
9418 if test "$aix_use_runtimelinking" = yes; then
9419 # Warning - without using the other runtime loading flags (-brtl),
9420 # -berok will link without error, but may produce a broken library.
9421 allow_undefined_flag
='-berok'
9422 # Determine the default libpath from the value encoded in an
9424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9435 if ac_fn_c_try_link
"$LINENO"; then :
9437 lt_aix_libpath_sed
='
9438 /Import File Strings/,/^$/ {
9444 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9445 # Check for a 64-bit object if we didn't find anything.
9446 if test -z "$aix_libpath"; then
9447 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9450 rm -f core conftest.err conftest.
$ac_objext \
9451 conftest
$ac_exeext conftest.
$ac_ext
9452 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9454 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9455 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"
9457 if test "$host_cpu" = ia64
; then
9458 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9459 allow_undefined_flag
="-z nodefs"
9460 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"
9462 # Determine the default libpath from the value encoded in an
9464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9475 if ac_fn_c_try_link
"$LINENO"; then :
9477 lt_aix_libpath_sed
='
9478 /Import File Strings/,/^$/ {
9484 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485 # Check for a 64-bit object if we didn't find anything.
9486 if test -z "$aix_libpath"; then
9487 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490 rm -f core conftest.err conftest.
$ac_objext \
9491 conftest
$ac_exeext conftest.
$ac_ext
9492 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9494 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9495 # Warning - without using the other run time loading flags,
9496 # -berok will link without error, but may produce a broken library.
9497 no_undefined_flag
=' ${wl}-bernotok'
9498 allow_undefined_flag
=' ${wl}-berok'
9499 if test "$with_gnu_ld" = yes; then
9500 # We only use this code for GNU lds that support --whole-archive.
9501 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9503 # Exported symbols can be pulled into shared objects from archives
9504 whole_archive_flag_spec
='$convenience'
9506 archive_cmds_need_lc
=yes
9507 # This is similar to how AIX traditionally builds its shared libraries.
9508 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'
9516 # see comment about AmigaOS4 .so support
9517 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds
=''
9521 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)'
9522 hardcode_libdir_flag_spec
='-L$libdir'
9523 hardcode_minus_L
=yes
9529 export_dynamic_flag_spec
=-rdynamic
9532 cygwin
* | mingw
* | pw32
* | cegcc
*)
9533 # When not using gcc, we currently assume that we are using
9534 # Microsoft Visual C++.
9535 # hardcode_libdir_flag_spec is actually meaningless, as there is
9536 # no search path for DLLs.
9537 hardcode_libdir_flag_spec
=' '
9538 allow_undefined_flag
=unsupported
9539 # Tell ltmain to make .lib files, not .a files.
9541 # Tell ltmain to make .dll files, not .so files.
9543 # FIXME: Setting linknames here is a bad hack.
9544 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9545 # The linker will automatically build a .lib file if we build a DLL.
9546 old_archive_from_new_cmds
='true'
9547 # FIXME: Should let the user specify the lib program.
9548 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9549 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9550 enable_shared_with_static_runtimes
=yes
9553 darwin
* | rhapsody
*)
9556 archive_cmds_need_lc
=no
9558 hardcode_automatic
=yes
9559 hardcode_shlibpath_var
=unsupported
9560 if test "$lt_cv_ld_force_load" = "yes"; then
9561 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\"`'
9563 whole_archive_flag_spec
=''
9565 link_all_deplibs
=yes
9566 allow_undefined_flag
="$_lt_dar_allow_undefined"
9567 case $cc_basename in
9568 ifort
*) _lt_dar_can_shared
=yes ;;
9569 *) _lt_dar_can_shared
=$GCC ;;
9571 if test "$_lt_dar_can_shared" = "yes"; then
9572 output_verbose_link_cmd
=func_echo_all
9573 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9574 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9575 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}"
9576 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}"
9585 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_libdir_flag_spec
='-L$libdir'
9587 hardcode_shlibpath_var
=no
9590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9591 # support. Future versions do this automatically, but an explicit c++rt0.o
9592 # does not break anything, and helps significantly (at the cost of a little
9595 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9596 hardcode_libdir_flag_spec
='-R$libdir'
9598 hardcode_shlibpath_var
=no
9601 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9603 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9605 hardcode_minus_L
=yes
9606 hardcode_shlibpath_var
=no
9609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9610 freebsd
* | dragonfly
*)
9611 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9612 hardcode_libdir_flag_spec
='-R$libdir'
9614 hardcode_shlibpath_var
=no
9618 if test "$GCC" = yes; then
9619 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'
9621 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'
9623 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9624 hardcode_libdir_separator
=:
9627 # hardcode_minus_L: Not really in the search PATH,
9628 # but as the default location of the library.
9629 hardcode_minus_L
=yes
9630 export_dynamic_flag_spec
='${wl}-E'
9634 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9635 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9637 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9639 if test "$with_gnu_ld" = no
; then
9640 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9641 hardcode_libdir_flag_spec_ld
='+b $libdir'
9642 hardcode_libdir_separator
=:
9644 hardcode_direct_absolute
=yes
9645 export_dynamic_flag_spec
='${wl}-E'
9646 # hardcode_minus_L: Not really in the search PATH,
9647 # but as the default location of the library.
9648 hardcode_minus_L
=yes
9653 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9656 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9662 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9675 # Older versions of the 11.00 compiler do not understand -b yet
9676 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9678 $as_echo_n "checking if $CC understands -b... " >&6; }
9679 if ${lt_cv_prog_compiler__b+:} false
; then :
9680 $as_echo_n "(cached) " >&6
9682 lt_cv_prog_compiler__b
=no
9683 save_LDFLAGS
="$LDFLAGS"
9684 LDFLAGS
="$LDFLAGS -b"
9685 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9686 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9687 # The linker can only warn and ignore the option if not recognized
9688 # So say no if there are warnings
9689 if test -s conftest.err
; then
9690 # Append any errors to the config.log.
9691 cat conftest.err
1>&5
9692 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9693 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9694 if diff conftest.exp conftest.er2
>/dev
/null
; then
9695 lt_cv_prog_compiler__b
=yes
9698 lt_cv_prog_compiler__b
=yes
9702 LDFLAGS
="$save_LDFLAGS"
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9706 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9708 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9709 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9711 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9717 if test "$with_gnu_ld" = no
; then
9718 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9719 hardcode_libdir_separator
=:
9724 hardcode_shlibpath_var
=no
9728 hardcode_direct_absolute
=yes
9729 export_dynamic_flag_spec
='${wl}-E'
9731 # hardcode_minus_L: Not really in the search PATH,
9732 # but as the default location of the library.
9733 hardcode_minus_L
=yes
9739 irix5
* | irix6
* | nonstopux
*)
9740 if test "$GCC" = yes; then
9741 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'
9742 # Try to use the -exported_symbol ld option, if it does not
9743 # work, assume that -exports_file does not work either and
9744 # implicitly export all symbols.
9745 save_LDFLAGS
="$LDFLAGS"
9746 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9751 if ac_fn_c_try_link
"$LINENO"; then :
9752 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'
9755 rm -f core conftest.err conftest.
$ac_objext \
9756 conftest
$ac_exeext conftest.
$ac_ext
9757 LDFLAGS
="$save_LDFLAGS"
9759 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'
9760 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'
9762 archive_cmds_need_lc
='no'
9763 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9764 hardcode_libdir_separator
=:
9766 link_all_deplibs
=yes
9770 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9771 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9773 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9775 hardcode_libdir_flag_spec
='-R$libdir'
9777 hardcode_shlibpath_var
=no
9781 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9784 hardcode_libdir_separator
=:
9785 hardcode_shlibpath_var
=no
9792 if test -f /usr
/libexec
/ld.so
; then
9794 hardcode_shlibpath_var
=no
9795 hardcode_direct_absolute
=yes
9796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9797 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9799 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9800 export_dynamic_flag_spec
='${wl}-E'
9803 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9804 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_libdir_flag_spec
='-R$libdir'
9808 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9809 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9819 hardcode_libdir_flag_spec
='-L$libdir'
9820 hardcode_minus_L
=yes
9821 allow_undefined_flag
=unsupported
9822 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'
9823 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9827 if test "$GCC" = yes; then
9828 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9829 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'
9831 allow_undefined_flag
=' -expect_unresolved \*'
9832 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'
9834 archive_cmds_need_lc
='no'
9835 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9836 hardcode_libdir_separator
=:
9839 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9840 if test "$GCC" = yes; then
9841 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9842 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'
9843 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9845 allow_undefined_flag
=' -expect_unresolved \*'
9846 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'
9847 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~
9848 $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'
9850 # Both c and cxx compiler support -rpath directly
9851 hardcode_libdir_flag_spec
='-rpath $libdir'
9853 archive_cmds_need_lc
='no'
9854 hardcode_libdir_separator
=:
9858 no_undefined_flag
=' -z defs'
9859 if test "$GCC" = yes; then
9861 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9863 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9865 case `$CC -V 2>&1` in
9868 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9870 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9874 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9875 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9876 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9880 hardcode_libdir_flag_spec
='-R$libdir'
9881 hardcode_shlibpath_var
=no
9883 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9885 # The compiler driver will combine and reorder linker options,
9886 # but understands `-z linker_flag'. GCC discards it without `$wl',
9887 # but is careful enough not to reorder.
9888 # Supported since Solaris 2.6 (maybe 2.5.1?)
9889 if test "$GCC" = yes; then
9890 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9892 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9896 link_all_deplibs
=yes
9900 if test "x$host_vendor" = xsequent
; then
9901 # Use $CC to link under sequent, because it throws in some extra .o
9902 # files that make .init and .fini sections work.
9903 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9907 hardcode_libdir_flag_spec
='-L$libdir'
9909 hardcode_minus_L
=yes
9910 hardcode_shlibpath_var
=no
9914 case $host_vendor in
9916 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9917 hardcode_direct
=yes # is this really true???
9920 ## LD is ld it makes a PLAMLIB
9921 ## CC just makes a GrossModule.
9922 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9923 reload_cmds
='$CC -r -o $output$reload_objs'
9927 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9931 runpath_var
='LD_RUN_PATH'
9932 hardcode_shlibpath_var
=no
9936 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_shlibpath_var
=no
9938 export_dynamic_flag_spec
='-Bexport'
9942 if test -d /usr
/nec
; then
9943 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944 hardcode_shlibpath_var
=no
9945 runpath_var
=LD_RUN_PATH
9946 hardcode_runpath_var
=yes
9951 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9952 no_undefined_flag
='${wl}-z,text'
9953 archive_cmds_need_lc
=no
9954 hardcode_shlibpath_var
=no
9955 runpath_var
='LD_RUN_PATH'
9957 if test "$GCC" = yes; then
9958 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9961 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9966 sysv5
* | sco3.2v5
* | sco5v6
*)
9967 # Note: We can NOT use -z defs as we might desire, because we do not
9968 # link with -lc, and that would cause any symbols used from libc to
9969 # always be unresolved, which means just about no library would
9970 # ever link correctly. If we're not using GNU ld we use -z text
9971 # though, which does catch some bad symbols but isn't as heavy-handed
9973 no_undefined_flag
='${wl}-z,text'
9974 allow_undefined_flag
='${wl}-z,nodefs'
9975 archive_cmds_need_lc
=no
9976 hardcode_shlibpath_var
=no
9977 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9978 hardcode_libdir_separator
=':'
9979 link_all_deplibs
=yes
9980 export_dynamic_flag_spec
='${wl}-Bexport'
9981 runpath_var
='LD_RUN_PATH'
9983 if test "$GCC" = yes; then
9984 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9985 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_libdir_flag_spec
='-L$libdir'
9995 hardcode_shlibpath_var
=no
10003 if test x
$host_vendor = xsni
; then
10005 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10006 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10013 $as_echo "$ld_shlibs" >&6; }
10014 test "$ld_shlibs" = no
&& can_build_shared
=no
10016 with_gnu_ld
=$with_gnu_ld
10033 # Do we need to explicitly link libc?
10035 case "x$archive_cmds_need_lc" in
10037 # Assume -lc should be added
10038 archive_cmds_need_lc
=yes
10040 if test "$enable_shared" = yes && test "$GCC" = yes; then
10041 case $archive_cmds in
10043 # FIXME: we may have to deal with multi-command sequences.
10046 # Test whether the compiler implicitly links with -lc since on some
10047 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10048 # to ld, don't add -lc before -lgcc.
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10050 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10051 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10052 $as_echo_n "(cached) " >&6
10055 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10058 (eval $ac_compile) 2>&5
10060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10061 test $ac_status = 0; } 2>conftest.err
; then
10064 libobjs
=conftest.
$ac_objext
10066 wl
=$lt_prog_compiler_wl
10067 pic_flag
=$lt_prog_compiler_pic
10073 lt_save_allow_undefined_flag
=$allow_undefined_flag
10074 allow_undefined_flag
=
10075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10076 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10079 test $ac_status = 0; }
10081 lt_cv_archive_cmds_need_lc
=no
10083 lt_cv_archive_cmds_need_lc
=yes
10085 allow_undefined_flag
=$lt_save_allow_undefined_flag
10087 cat conftest.err
1>&5
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10093 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10094 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10258 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10260 if test "$GCC" = yes; then
10262 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10263 *) lt_awk_arg
="/^libraries:/" ;;
10266 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10267 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10269 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10270 case $lt_search_path_spec in
10272 # if the path contains ";" then we assume it to be the separator
10273 # otherwise default to the standard path separator (i.e. ":") - it is
10274 # assumed that no part of a normal pathname contains ";" but that should
10275 # okay in the real world where ";" in dirpaths is itself problematic.
10276 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10279 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10282 # Ok, now we have the path, separated by spaces, we can step through it
10283 # and add multilib dir if necessary.
10284 lt_tmp_lt_search_path_spec
=
10285 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10286 for lt_sys_path
in $lt_search_path_spec; do
10287 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10288 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10290 test -d "$lt_sys_path" && \
10291 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10294 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10295 BEGIN {RS=" "; FS="/|\n";} {
10298 for (lt_i = NF; lt_i > 0; lt_i--) {
10299 if ($lt_i != "" && $lt_i != ".") {
10300 if ($lt_i == "..") {
10303 if (lt_count == 0) {
10304 lt_foo="/" $lt_i lt_foo;
10311 if (lt_foo != "") { lt_freq[lt_foo]++; }
10312 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10314 # AWK program above erroneously prepends '/' to C:/dos/paths
10317 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10318 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10320 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10322 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10324 library_names_spec
=
10325 libname_spec
='lib$name'
10329 postuninstall_cmds
=
10333 shlibpath_overrides_runpath
=unknown
10335 dynamic_linker
="$host_os ld.so"
10336 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10337 need_lib_prefix
=unknown
10338 hardcode_into_libs
=no
10340 # when you set need_version to no, make sure it does not cause -set_version
10341 # flags to be left without arguments
10342 need_version
=unknown
10347 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10348 shlibpath_var
=LIBPATH
10350 # AIX 3 has no versioning support, so we append a major version to the name.
10351 soname_spec
='${libname}${release}${shared_ext}$major'
10358 hardcode_into_libs
=yes
10359 if test "$host_cpu" = ia64
; then
10360 # AIX 5 supports IA64
10361 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10362 shlibpath_var
=LD_LIBRARY_PATH
10364 # With GCC up to 2.95.x, collect2 would create an import file
10365 # for dependence libraries. The import file would start with
10366 # the line `#! .'. This would cause the generated library to
10367 # depend on `.', always an invalid library. This was fixed in
10368 # development snapshots of GCC prior to 3.0.
10370 aix4 | aix4.
[01] | aix4.
[01].
*)
10371 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10373 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10376 can_build_shared
=no
10380 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10381 # soname into executable. Probably we can add versioning support to
10382 # collect2, so additional links can be useful in future.
10383 if test "$aix_use_runtimelinking" = yes; then
10384 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10385 # instead of lib<name>.a to let people know that these are not
10386 # typical AIX shared libraries.
10387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10389 # We preserve .a as extension for shared libraries through AIX4.2
10390 # and later when we are not doing run time linking.
10391 library_names_spec
='${libname}${release}.a $libname.a'
10392 soname_spec
='${libname}${release}${shared_ext}$major'
10394 shlibpath_var
=LIBPATH
10401 # Since July 2007 AmigaOS4 officially supports .so libraries.
10402 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10403 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10406 library_names_spec
='$libname.ixlibrary $libname.a'
10407 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10408 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'
10414 library_names_spec
='${libname}${shared_ext}'
10415 dynamic_linker
="$host_os ld.so"
10416 shlibpath_var
=LIBRARY_PATH
10422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 soname_spec
='${libname}${release}${shared_ext}$major'
10424 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10425 shlibpath_var
=LD_LIBRARY_PATH
10426 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10427 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10428 # the default ld.so.conf also contains /usr/contrib/lib and
10429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10430 # libtool to hard-code these into programs
10433 cygwin
* | mingw
* | pw32
* | cegcc
*)
10434 version_type
=windows
10439 case $GCC,$host_os in
10440 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10441 library_names_spec
='$libname.dll.a'
10442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10443 postinstall_cmds
='base_file=`basename \${file}`~
10444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10445 dldir=$destdir/`dirname \$dlpath`~
10446 test -d \$dldir || mkdir -p \$dldir~
10447 $install_prog $dir/$dlname \$dldir/$dlname~
10448 chmod a+x \$dldir/$dlname~
10449 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10450 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10452 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10453 dlpath=$dir/\$dldll~
10455 shlibpath_overrides_runpath
=yes
10459 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10460 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10462 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10465 # MinGW DLLs use traditional 'lib' prefix
10466 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10469 # pw32 DLLs use 'pw' prefix rather than 'lib'
10470 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10476 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10479 dynamic_linker
='Win32 ld.exe'
10480 # FIXME: first we should search . and the directory the executable is in
10484 darwin
* | rhapsody
*)
10485 dynamic_linker
="$host_os dyld"
10486 version_type
=darwin
10489 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10490 soname_spec
='${libname}${release}${major}$shared_ext'
10491 shlibpath_overrides_runpath
=yes
10492 shlibpath_var
=DYLD_LIBRARY_PATH
10493 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10495 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10496 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10504 soname_spec
='${libname}${release}${shared_ext}$major'
10505 shlibpath_var
=LD_LIBRARY_PATH
10508 freebsd
* | dragonfly
*)
10509 # DragonFly does not have aout. When/if they implement a new
10510 # versioning mechanism, adjust this.
10511 if test -x /usr
/bin
/objformat
; then
10512 objformat
=`/usr/bin/objformat`
10515 freebsd
[23].
*) objformat
=aout
;;
10516 *) objformat
=elf
;;
10519 version_type
=freebsd-
$objformat
10520 case $version_type in
10522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10527 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10531 shlibpath_var
=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath
=yes
10536 freebsd3.
[01]* | freebsdelf3.
[01]*)
10537 shlibpath_overrides_runpath
=yes
10538 hardcode_into_libs
=yes
10540 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10541 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10542 shlibpath_overrides_runpath
=no
10543 hardcode_into_libs
=yes
10545 *) # from 4.6 on, and DragonFly
10546 shlibpath_overrides_runpath
=yes
10547 hardcode_into_libs
=yes
10556 dynamic_linker
="$host_os runtime_loader"
10557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10558 soname_spec
='${libname}${release}${shared_ext}$major'
10559 shlibpath_var
=LIBRARY_PATH
10560 shlibpath_overrides_runpath
=yes
10561 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10562 hardcode_into_libs
=yes
10565 hpux9
* | hpux10
* | hpux11
*)
10566 # Give a soname corresponding to the major version so that dld.sl refuses to
10567 # link against other versions.
10574 hardcode_into_libs
=yes
10575 dynamic_linker
="$host_os dld.so"
10576 shlibpath_var
=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579 soname_spec
='${libname}${release}${shared_ext}$major'
10580 if test "X$HPUX_IA64_MODE" = X32
; then
10581 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10583 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10585 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10589 hardcode_into_libs
=yes
10590 dynamic_linker
="$host_os dld.sl"
10591 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10592 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec
='${libname}${release}${shared_ext}$major'
10595 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10596 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10600 dynamic_linker
="$host_os dld.sl"
10601 shlibpath_var
=SHLIB_PATH
10602 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec
='${libname}${release}${shared_ext}$major'
10607 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10608 postinstall_cmds
='chmod 555 $lib'
10609 # or fails outright, so override atomically:
10610 install_override_mode
=555
10617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10618 soname_spec
='${libname}${release}${shared_ext}$major'
10619 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10620 shlibpath_var
=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath
=no
10622 hardcode_into_libs
=yes
10625 irix5
* | irix6
* | nonstopux
*)
10627 nonstopux
*) version_type
=nonstopux
;;
10629 if test "$lt_cv_prog_gnu_ld" = yes; then
10637 soname_spec
='${libname}${release}${shared_ext}$major'
10638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10640 irix5
* | nonstopux
*)
10641 libsuff
= shlibsuff
=
10644 case $LD in # libtool.m4 will add one of these switches to LD
10645 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10646 libsuff
= shlibsuff
= libmagic
=32-bit;;
10647 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10648 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10649 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10650 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10651 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10655 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10656 shlibpath_overrides_runpath
=no
10657 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10658 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10659 hardcode_into_libs
=yes
10662 # No shared lib support for Linux oldld, aout, or coff.
10663 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10667 # This must be Linux ELF.
10669 # uclinux* changes (here and below) have been submitted to the libtool
10670 # project, but have not yet been accepted: they are GCC-local changes
10671 # for the time being. (See
10672 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10673 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 soname_spec
='${libname}${release}${shared_ext}$major'
10679 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10680 shlibpath_var
=LD_LIBRARY_PATH
10681 shlibpath_overrides_runpath
=no
10683 # Some binutils ld are patched to set DT_RUNPATH
10684 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10685 $as_echo_n "(cached) " >&6
10687 lt_cv_shlibpath_overrides_runpath
=no
10688 save_LDFLAGS
=$LDFLAGS
10689 save_libdir
=$libdir
10690 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10691 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10703 if ac_fn_c_try_link
"$LINENO"; then :
10704 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10705 lt_cv_shlibpath_overrides_runpath
=yes
10708 rm -f core conftest.err conftest.
$ac_objext \
10709 conftest
$ac_exeext conftest.
$ac_ext
10710 LDFLAGS
=$save_LDFLAGS
10711 libdir
=$save_libdir
10715 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10717 # This implies no fast_install, which is unacceptable.
10718 # Some rework will be needed to allow for fast_install
10719 # before this can be enabled.
10720 hardcode_into_libs
=yes
10722 # Append ld.so.conf contents to the search path
10723 if test -f /etc
/ld.so.conf
; then
10724 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' ' '`
10725 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10728 # We used to test for /lib/ld.so.1 and disable shared libraries on
10729 # powerpc, because MkLinux only supported shared libraries with the
10730 # GNU dynamic linker. Since this was broken with cross compilers,
10731 # most powerpc-linux boxes support dynamic linking these days and
10732 # people can always --disable-shared, the test was removed, and we
10733 # assume the GNU/Linux dynamic linker is in use.
10734 dynamic_linker
='GNU/Linux ld.so'
10741 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10743 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10744 dynamic_linker
='NetBSD (a.out) ld.so'
10746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10747 soname_spec
='${libname}${release}${shared_ext}$major'
10748 dynamic_linker
='NetBSD ld.elf_so'
10750 shlibpath_var
=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath
=yes
10752 hardcode_into_libs
=yes
10757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 shlibpath_var
=LD_LIBRARY_PATH
10759 shlibpath_overrides_runpath
=yes
10766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 soname_spec
='${libname}${release}${shared_ext}$major'
10768 shlibpath_var
=LD_LIBRARY_PATH
10769 shlibpath_overrides_runpath
=no
10770 hardcode_into_libs
=yes
10771 dynamic_linker
='ldqnx.so'
10776 sys_lib_dlsearch_path_spec
="/usr/lib"
10778 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10780 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10781 *) need_version
=no
;;
10783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10784 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10785 shlibpath_var
=LD_LIBRARY_PATH
10786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10788 openbsd2.
[89] | openbsd2.
[89].
*)
10789 shlibpath_overrides_runpath
=no
10792 shlibpath_overrides_runpath
=yes
10796 shlibpath_overrides_runpath
=yes
10801 libname_spec
='$name'
10804 library_names_spec
='$libname${shared_ext} $libname.a'
10805 dynamic_linker
='OS/2 ld.exe'
10806 shlibpath_var
=LIBPATH
10809 osf3
* | osf4
* | osf5
*)
10813 soname_spec
='${libname}${release}${shared_ext}$major'
10814 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815 shlibpath_var
=LD_LIBRARY_PATH
10816 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10817 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 soname_spec
='${libname}${release}${shared_ext}$major'
10830 shlibpath_var
=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath
=yes
10832 hardcode_into_libs
=yes
10833 # ldd complains unless libraries are executable
10834 postinstall_cmds
='chmod +x $lib'
10839 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10840 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10841 shlibpath_var
=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath
=yes
10843 if test "$with_gnu_ld" = yes; then
10851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852 soname_spec
='${libname}${release}${shared_ext}$major'
10853 shlibpath_var
=LD_LIBRARY_PATH
10854 case $host_vendor in
10856 shlibpath_overrides_runpath
=no
10858 runpath_var
=LD_RUN_PATH
10866 shlibpath_overrides_runpath
=no
10867 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10873 if test -d /usr
/nec
;then
10875 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10876 soname_spec
='$libname${shared_ext}.$major'
10877 shlibpath_var
=LD_LIBRARY_PATH
10881 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10882 version_type
=freebsd-elf
10885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10886 soname_spec
='${libname}${release}${shared_ext}$major'
10887 shlibpath_var
=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath
=yes
10889 hardcode_into_libs
=yes
10890 if test "$with_gnu_ld" = yes; then
10891 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10893 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10896 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10900 sys_lib_dlsearch_path_spec
='/usr/lib'
10904 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909 shlibpath_var
=LD_LIBRARY_PATH
10910 shlibpath_overrides_runpath
=no
10911 hardcode_into_libs
=yes
10916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917 soname_spec
='${libname}${release}${shared_ext}$major'
10918 shlibpath_var
=LD_LIBRARY_PATH
10921 # Shared libraries for VwWorks, >= 7 only at this stage
10922 # and (fpic) still incompatible with "large" code models
10923 # in a few configurations. Only for RTP mode in any case,
10924 # and upon explicit request at configure time.
10927 case ${with_multisubdir}-${enable_shared} in
10934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935 soname_spec
='${libname}${release}${shared_ext}$major'
10936 dynamic_linker
="$host_os module_loader"
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10945 $as_echo "$dynamic_linker" >&6; }
10946 test "$dynamic_linker" = no
&& can_build_shared
=no
10948 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10949 if test "$GCC" = yes; then
10950 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10953 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10954 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10956 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10957 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11052 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11054 if test -n "$hardcode_libdir_flag_spec" ||
11055 test -n "$runpath_var" ||
11056 test "X$hardcode_automatic" = "Xyes" ; then
11058 # We can hardcode non-existent directories.
11059 if test "$hardcode_direct" != no
&&
11060 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11061 # have to relink, otherwise we might link with an installed library
11062 # when we should be linking with a yet-to-be-installed one
11063 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11064 test "$hardcode_minus_L" != no
; then
11065 # Linking always hardcodes the temporary library directory.
11066 hardcode_action
=relink
11068 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11069 hardcode_action
=immediate
11072 # We cannot hardcode anything, or else we can only hardcode existing
11074 hardcode_action
=unsupported
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11077 $as_echo "$hardcode_action" >&6; }
11079 if test "$hardcode_action" = relink ||
11080 test "$inherit_rpath" = yes; then
11081 # Fast installation is not supported
11082 enable_fast_install
=no
11083 elif test "$shlibpath_overrides_runpath" = yes ||
11084 test "$enable_shared" = no
; then
11085 # Fast installation is not necessary
11086 enable_fast_install
=needless
11094 if test "x$enable_dlopen" != xyes
; then
11095 enable_dlopen
=unknown
11096 enable_dlopen_self
=unknown
11097 enable_dlopen_self_static
=unknown
11104 lt_cv_dlopen
="load_add_on"
11106 lt_cv_dlopen_self
=yes
11109 mingw
* | pw32
* | cegcc
*)
11110 lt_cv_dlopen
="LoadLibrary"
11115 lt_cv_dlopen
="dlopen"
11120 # if libdl is installed we need to link against it
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11122 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11123 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11124 $as_echo_n "(cached) " >&6
11126 ac_check_lib_save_LIBS
=$LIBS
11128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11131 /* Override any GCC internal prototype to avoid an error.
11132 Use char because int might match the return type of a GCC
11133 builtin and then its argument prototype would still apply. */
11146 if ac_fn_c_try_link
"$LINENO"; then :
11147 ac_cv_lib_dl_dlopen
=yes
11149 ac_cv_lib_dl_dlopen
=no
11151 rm -f core conftest.err conftest.
$ac_objext \
11152 conftest
$ac_exeext conftest.
$ac_ext
11153 LIBS
=$ac_check_lib_save_LIBS
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11156 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11157 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11158 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11161 lt_cv_dlopen
="dyld"
11163 lt_cv_dlopen_self
=yes
11170 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11171 if test "x$ac_cv_func_shl_load" = xyes
; then :
11172 lt_cv_dlopen
="shl_load"
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11175 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11176 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11177 $as_echo_n "(cached) " >&6
11179 ac_check_lib_save_LIBS
=$LIBS
11181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11184 /* Override any GCC internal prototype to avoid an error.
11185 Use char because int might match the return type of a GCC
11186 builtin and then its argument prototype would still apply. */
11194 return shl_load ();
11199 if ac_fn_c_try_link
"$LINENO"; then :
11200 ac_cv_lib_dld_shl_load
=yes
11202 ac_cv_lib_dld_shl_load
=no
11204 rm -f core conftest.err conftest.
$ac_objext \
11205 conftest
$ac_exeext conftest.
$ac_ext
11206 LIBS
=$ac_check_lib_save_LIBS
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11209 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11210 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11211 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11213 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11214 if test "x$ac_cv_func_dlopen" = xyes
; then :
11215 lt_cv_dlopen
="dlopen"
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11218 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11219 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11220 $as_echo_n "(cached) " >&6
11222 ac_check_lib_save_LIBS
=$LIBS
11224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11227 /* Override any GCC internal prototype to avoid an error.
11228 Use char because int might match the return type of a GCC
11229 builtin and then its argument prototype would still apply. */
11242 if ac_fn_c_try_link
"$LINENO"; then :
11243 ac_cv_lib_dl_dlopen
=yes
11245 ac_cv_lib_dl_dlopen
=no
11247 rm -f core conftest.err conftest.
$ac_objext \
11248 conftest
$ac_exeext conftest.
$ac_ext
11249 LIBS
=$ac_check_lib_save_LIBS
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11252 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11253 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11254 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11257 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11258 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11259 $as_echo_n "(cached) " >&6
11261 ac_check_lib_save_LIBS
=$LIBS
11262 LIBS
="-lsvld $LIBS"
11263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11266 /* Override any GCC internal prototype to avoid an error.
11267 Use char because int might match the return type of a GCC
11268 builtin and then its argument prototype would still apply. */
11281 if ac_fn_c_try_link
"$LINENO"; then :
11282 ac_cv_lib_svld_dlopen
=yes
11284 ac_cv_lib_svld_dlopen
=no
11286 rm -f core conftest.err conftest.
$ac_objext \
11287 conftest
$ac_exeext conftest.
$ac_ext
11288 LIBS
=$ac_check_lib_save_LIBS
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11291 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11292 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11293 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11296 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11297 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11298 $as_echo_n "(cached) " >&6
11300 ac_check_lib_save_LIBS
=$LIBS
11302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11315 return dld_link ();
11320 if ac_fn_c_try_link
"$LINENO"; then :
11321 ac_cv_lib_dld_dld_link
=yes
11323 ac_cv_lib_dld_dld_link
=no
11325 rm -f core conftest.err conftest.
$ac_objext \
11326 conftest
$ac_exeext conftest.
$ac_ext
11327 LIBS
=$ac_check_lib_save_LIBS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11330 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11331 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11332 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11353 if test "x$lt_cv_dlopen" != xno
; then
11359 case $lt_cv_dlopen in
11361 save_CPPFLAGS
="$CPPFLAGS"
11362 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11364 save_LDFLAGS
="$LDFLAGS"
11365 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11368 LIBS
="$lt_cv_dlopen_libs $LIBS"
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11371 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11372 if ${lt_cv_dlopen_self+:} false
; then :
11373 $as_echo_n "(cached) " >&6
11375 if test "$cross_compiling" = yes; then :
11376 lt_cv_dlopen_self
=cross
11378 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11379 lt_status
=$lt_dlunknown
11380 cat > conftest.
$ac_ext <<_LT_EOF
11381 #line 11381 "configure"
11382 #include "confdefs.h"
11391 # define LT_DLGLOBAL RTLD_GLOBAL
11394 # define LT_DLGLOBAL DL_GLOBAL
11396 # define LT_DLGLOBAL 0
11400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11401 find out it does not work in some platform. */
11402 #ifndef LT_DLLAZY_OR_NOW
11404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11407 # define LT_DLLAZY_OR_NOW DL_LAZY
11410 # define LT_DLLAZY_OR_NOW RTLD_NOW
11413 # define LT_DLLAZY_OR_NOW DL_NOW
11415 # define LT_DLLAZY_OR_NOW 0
11422 /* When -fvisbility=hidden is used, assume the code has been annotated
11423 correspondingly for the symbols needed. */
11424 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11425 void fnord () __attribute__((visibility("default")));
11428 void fnord () { int i=42; }
11431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11432 int status = $lt_dlunknown;
11436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11439 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11440 else puts (dlerror ());
11442 /* dlclose (self); */
11450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11451 (eval $ac_link) 2>&5
11453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11454 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11455 (.
/conftest
; exit; ) >&5 2>/dev
/null
11457 case x
$lt_status in
11458 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11459 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11460 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11463 # compilation failed
11464 lt_cv_dlopen_self
=no
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11472 $as_echo "$lt_cv_dlopen_self" >&6; }
11474 if test "x$lt_cv_dlopen_self" = xyes
; then
11475 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11477 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11478 if ${lt_cv_dlopen_self_static+:} false
; then :
11479 $as_echo_n "(cached) " >&6
11481 if test "$cross_compiling" = yes; then :
11482 lt_cv_dlopen_self_static
=cross
11484 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11485 lt_status
=$lt_dlunknown
11486 cat > conftest.
$ac_ext <<_LT_EOF
11487 #line 11487 "configure"
11488 #include "confdefs.h"
11497 # define LT_DLGLOBAL RTLD_GLOBAL
11500 # define LT_DLGLOBAL DL_GLOBAL
11502 # define LT_DLGLOBAL 0
11506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11507 find out it does not work in some platform. */
11508 #ifndef LT_DLLAZY_OR_NOW
11510 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11513 # define LT_DLLAZY_OR_NOW DL_LAZY
11516 # define LT_DLLAZY_OR_NOW RTLD_NOW
11519 # define LT_DLLAZY_OR_NOW DL_NOW
11521 # define LT_DLLAZY_OR_NOW 0
11528 /* When -fvisbility=hidden is used, assume the code has been annotated
11529 correspondingly for the symbols needed. */
11530 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11531 void fnord () __attribute__((visibility("default")));
11534 void fnord () { int i=42; }
11537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11538 int status = $lt_dlunknown;
11542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11545 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11546 else puts (dlerror ());
11548 /* dlclose (self); */
11556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11557 (eval $ac_link) 2>&5
11559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11561 (.
/conftest
; exit; ) >&5 2>/dev
/null
11563 case x
$lt_status in
11564 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11565 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11566 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11569 # compilation failed
11570 lt_cv_dlopen_self_static
=no
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11578 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11581 CPPFLAGS
="$save_CPPFLAGS"
11582 LDFLAGS
="$save_LDFLAGS"
11587 case $lt_cv_dlopen_self in
11588 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11589 *) enable_dlopen_self
=unknown
;;
11592 case $lt_cv_dlopen_self_static in
11593 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11594 *) enable_dlopen_self_static
=unknown
;;
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11617 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11618 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11619 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11620 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11622 $as_echo "yes" >&6; }
11624 # FIXME - insert some real tests, host_os isn't really good enough
11627 if test -n "$STRIP" ; then
11628 striplib
="$STRIP -x"
11629 old_striplib
="$STRIP -S"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11631 $as_echo "yes" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11655 # Report which library types will actually be built
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11657 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11659 $as_echo "$can_build_shared" >&6; }
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11662 $as_echo_n "checking whether to build shared libraries... " >&6; }
11663 test "$can_build_shared" = "no" && enable_shared
=no
11665 # On AIX, shared libraries and static libraries use the same namespace, and
11666 # are all built from PIC.
11669 test "$enable_shared" = yes && enable_static
=no
11670 if test -n "$RANLIB"; then
11671 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11672 postinstall_cmds
='$RANLIB $lib'
11677 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11678 test "$enable_shared" = yes && enable_static
=no
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11683 $as_echo "$enable_shared" >&6; }
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11686 $as_echo_n "checking whether to build static libraries... " >&6; }
11687 # Make sure either enable_shared or enable_static is yes.
11688 test "$enable_shared" = yes || enable_static
=yes
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11690 $as_echo "$enable_static" >&6; }
11697 ac_cpp
='$CPP $CPPFLAGS'
11698 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11699 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11700 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11716 ac_config_commands
="$ac_config_commands libtool"
11721 # Only expand once:
11728 *-cygwin* |
*-mingw*)
11729 # 'host' will be top-level target in the case of a target lib,
11730 # we must compare to with_cross_host to decide if this is a native
11731 # or cross-compiler and select where to install dlls appropriately.
11732 if test -n "$with_cross_host" &&
11733 test x
"$with_cross_host" != x
"no"; then
11734 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11736 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11751 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11752 # Check whether --enable-maintainer-mode was given.
11753 if test "${enable_maintainer_mode+set}" = set; then :
11754 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11756 USE_MAINTAINER_MODE
=no
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11760 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11761 if test $USE_MAINTAINER_MODE = yes; then
11762 MAINTAINER_MODE_TRUE
=
11763 MAINTAINER_MODE_FALSE
='#'
11765 MAINTAINER_MODE_TRUE
='#'
11766 MAINTAINER_MODE_FALSE
=
11769 MAINT
=$MAINTAINER_MODE_TRUE
11773 # We optionally test libgomp C++ support, and for that want to use the proper
11774 # C++ driver, 'g++' (or 'xg++' for build-tree testing). Given that build of
11775 # target libstdc++-v3 depends on target libgomp (see '../Makefile.def'), we
11776 # cannot make build of target libgomp depend on target libstdc++-v3: circular
11777 # dependency. We thus cannot instantiate 'AC_PROG_CXX' here: we'd get
11778 # '-funconfigured-libstdc++-v3' (see '../configure.ac'). Therefore, just
11779 # capture 'CXX', and we'll fix this up at 'make check' time (see
11780 # 'testsuite/lib/libgomp.exp:libgomp_init').
11783 # Create a spec file, so that compile/link tests don't fail
11784 test -f libgfortran.spec ||
touch libgfortran.spec
11785 FCFLAGS
="$FCFLAGS -L."
11787 # We need 'gfortran' to compile parts of the library, and test libgomp Fortran
11789 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11790 #AC_PROG_FC(gfortran)
11791 case `echo $GFORTRAN` in
11795 set dummy
$GFORTRAN; ac_word
=$2
11796 if test -x "$ac_word"; then
11802 ac_ext
=${ac_fc_srcext-f}
11803 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11804 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11805 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11806 if test -n "$ac_tool_prefix"; then
11807 for ac_prog
in gfortran
11809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11810 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_prog_FC+:} false
; then :
11814 $as_echo_n "(cached) " >&6
11816 if test -n "$FC"; then
11817 ac_cv_prog_FC
="$FC" # Let the user override the test.
11819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11820 for as_dir
in $PATH
11823 test -z "$as_dir" && as_dir
=.
11824 for ac_exec_ext
in '' $ac_executable_extensions; do
11825 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11826 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 if test -n "$FC"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11839 $as_echo "$FC" >&6; }
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11846 test -n "$FC" && break
11849 if test -z "$FC"; then
11851 for ac_prog
in gfortran
11853 # Extract the first word of "$ac_prog", so it can be a program name with args.
11854 set dummy
$ac_prog; ac_word
=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if ${ac_cv_prog_ac_ct_FC+:} false
; then :
11858 $as_echo_n "(cached) " >&6
11860 if test -n "$ac_ct_FC"; then
11861 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11864 for as_dir
in $PATH
11867 test -z "$as_dir" && as_dir
=.
11868 for ac_exec_ext
in '' $ac_executable_extensions; do
11869 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11870 ac_cv_prog_ac_ct_FC
="$ac_prog"
11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11881 if test -n "$ac_ct_FC"; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11883 $as_echo "$ac_ct_FC" >&6; }
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11890 test -n "$ac_ct_FC" && break
11893 if test "x$ac_ct_FC" = x
; then
11896 case $cross_compiling:$ac_tool_warned in
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11900 ac_tool_warned
=yes ;;
11907 # Provide some information about the compiler.
11908 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11911 for ac_option
in --version -v -V -qversion; do
11912 { { ac_try
="$ac_compiler $ac_option >&5"
11913 case "(($ac_try" in
11914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11918 $as_echo "$ac_try_echo"; } >&5
11919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11921 if test -s conftest.err; then
11923 ... rest of stderr output deleted ...
11924 10q' conftest.err >conftest.er1
11925 cat conftest.er1 >&5
11927 rm -f conftest.er1 conftest.err
11928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11929 test $ac_status = 0; }
11933 # If we don't use `.F
' as extension, the preprocessor is not run on the
11934 # input file. (Note that this only needs to work for GNU compilers.)
11935 ac_save_ext=$ac_ext
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11938 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11939 if ${ac_cv_fc_compiler_gnu+:} false; then :
11940 $as_echo_n "(cached) " >&6
11942 cat > conftest.$ac_ext <<_ACEOF
11950 if ac_fn_fc_try_compile "$LINENO"; then :
11951 ac_compiler_gnu=yes
11955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11960 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11961 ac_ext=$ac_save_ext
11962 ac_test_FCFLAGS=${FCFLAGS+set}
11963 ac_save_FCFLAGS=$FCFLAGS
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11966 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11967 if ${ac_cv_prog_fc_g+:} false; then :
11968 $as_echo_n "(cached) " >&6
11971 cat > conftest.$ac_ext <<_ACEOF
11976 if ac_fn_fc_try_compile "$LINENO"; then :
11977 ac_cv_prog_fc_g=yes
11981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11985 $as_echo "$ac_cv_prog_fc_g" >&6; }
11986 if test "$ac_test_FCFLAGS" = set; then
11987 FCFLAGS=$ac_save_FCFLAGS
11988 elif test $ac_cv_prog_fc_g = yes; then
11989 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11995 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12002 if test $ac_compiler_gnu = yes; then
12008 ac_cpp='$CPP $CPPFLAGS'
12009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12010 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12013 ac_ext=${ac_fc_srcext-f}
12014 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
12015 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12019 if test -z "$FC" || test "X$FC" = "Xno"; then
12023 archive_cmds_need_lc_FC=no
12024 allow_undefined_flag_FC=
12025 always_export_symbols_FC=no
12026 archive_expsym_cmds_FC=
12027 export_dynamic_flag_spec_FC=
12028 hardcode_direct_FC=no
12029 hardcode_direct_absolute_FC=no
12030 hardcode_libdir_flag_spec_FC=
12031 hardcode_libdir_flag_spec_ld_FC=
12032 hardcode_libdir_separator_FC=
12033 hardcode_minus_L_FC=no
12034 hardcode_automatic_FC=no
12035 inherit_rpath_FC=no
12037 module_expsym_cmds_FC=
12038 link_all_deplibs_FC=unknown
12039 old_archive_cmds_FC=$old_archive_cmds
12040 reload_flag_FC=$reload_flag
12041 reload_cmds_FC=$reload_cmds
12042 no_undefined_flag_FC=
12043 whole_archive_flag_spec_FC=
12044 enable_shared_with_static_runtimes_FC=no
12046 # Source file extension for fc test sources.
12047 ac_ext=${ac_fc_srcext-f}
12049 # Object file extension for compiled fc test sources.
12053 # No sense in running all these tests if we already determined that
12054 # the FC compiler isn't working. Some variables
(like enable_shared
)
12055 # are currently assumed to apply to all compilers on this platform,
12056 # and will be corrupted by setting them based on a non-working compiler.
12057 if test "$_lt_disable_FC" != yes; then
12058 # Code to be used in simple compile tests
12059 lt_simple_compile_test_code
="\
12065 # Code to be used in simple link tests
12066 lt_simple_link_test_code
="\
12071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12078 # If no C compiler was specified, use CC.
12081 # If no C compiler flags were specified, use CFLAGS.
12082 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12084 # Allow CC to be a program name with arguments.
12088 # save warnings/boilerplate of simple test code
12089 ac_outfile
=conftest.
$ac_objext
12090 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12091 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12092 _lt_compiler_boilerplate
=`cat conftest.err`
12095 ac_outfile
=conftest.
$ac_objext
12096 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12097 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12098 _lt_linker_boilerplate
=`cat conftest.err`
12102 # Allow CC to be a program name with arguments.
12107 GCC
=$ac_cv_fc_compiler_gnu
12110 for cc_temp
in $compiler""; do
12112 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12113 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12118 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12121 if test -n "$compiler"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12123 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12125 $as_echo "$can_build_shared" >&6; }
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12128 $as_echo_n "checking whether to build shared libraries... " >&6; }
12129 test "$can_build_shared" = "no" && enable_shared
=no
12131 # On AIX, shared libraries and static libraries use the same namespace, and
12132 # are all built from PIC.
12135 test "$enable_shared" = yes && enable_static
=no
12136 if test -n "$RANLIB"; then
12137 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12138 postinstall_cmds
='$RANLIB $lib'
12142 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12143 test "$enable_shared" = yes && enable_static
=no
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12148 $as_echo "$enable_shared" >&6; }
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12151 $as_echo_n "checking whether to build static libraries... " >&6; }
12152 # Make sure either enable_shared or enable_static is yes.
12153 test "$enable_shared" = yes || enable_static
=yes
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12155 $as_echo "$enable_static" >&6; }
12157 GCC_FC
="$ac_cv_fc_compiler_gnu"
12161 ## There is no encapsulation within the following macros, do not change
12162 ## the running order or otherwise move them around unless you know exactly
12163 ## what you are doing...
12164 # Dependencies to place before and after the object being linked:
12166 postdep_objects_FC
=
12169 compiler_lib_search_path_FC
=
12171 cat > conftest.
$ac_ext <<_LT_EOF
12180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12181 (eval $ac_compile) 2>&5
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; }; then
12185 # Parse the compiler output and extract the necessary
12186 # objects, libraries and library flags.
12188 # Sentinel used to keep track of whether or not we are before
12189 # the conftest object file.
12190 pre_test_object_deps_done
=no
12192 for p
in `eval "$output_verbose_link_cmd"`; do
12196 # Some compilers place space between "-{L,R}" and the path.
12197 # Remove the space.
12198 if test $p = "-L" ||
12199 test $p = "-R"; then
12206 if test "$pre_test_object_deps_done" = no
; then
12209 # Internal compiler library paths should come after those
12210 # provided the user. The postdeps already come after the
12211 # user supplied libs so there is no need to process them.
12212 if test -z "$compiler_lib_search_path_FC"; then
12213 compiler_lib_search_path_FC
="${prev}${p}"
12215 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
12218 # The "-l" case would never come before the object being
12219 # linked, so don't bother handling this case.
12222 if test -z "$postdeps_FC"; then
12223 postdeps_FC
="${prev}${p}"
12225 postdeps_FC
="${postdeps_FC} ${prev}${p}"
12231 # This assumes that the test object file only shows up
12232 # once in the compiler output.
12233 if test "$p" = "conftest.$objext"; then
12234 pre_test_object_deps_done
=yes
12238 if test "$pre_test_object_deps_done" = no
; then
12239 if test -z "$predep_objects_FC"; then
12240 predep_objects_FC
="$p"
12242 predep_objects_FC
="$predep_objects_FC $p"
12245 if test -z "$postdep_objects_FC"; then
12246 postdep_objects_FC
="$p"
12248 postdep_objects_FC
="$postdep_objects_FC $p"
12253 *) ;; # Ignore the rest.
12261 echo "libtool.m4: error: problem compiling FC test program"
12264 $RM -f confest.
$objext
12266 # PORTME: override above test on systems where it is broken
12269 case " $postdeps_FC " in
12270 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12272 compiler_lib_search_dirs_FC
=
12273 if test -n "${compiler_lib_search_path_FC}"; then
12274 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12307 lt_prog_compiler_wl_FC
=
12308 lt_prog_compiler_pic_FC
=
12309 lt_prog_compiler_static_FC
=
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12312 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12314 if test "$GCC" = yes; then
12315 lt_prog_compiler_wl_FC
='-Wl,'
12316 lt_prog_compiler_static_FC
='-static'
12320 # All AIX code is PIC.
12321 if test "$host_cpu" = ia64
; then
12322 # AIX 5 now supports IA64 processor
12323 lt_prog_compiler_static_FC
='-Bstatic'
12325 lt_prog_compiler_pic_FC
='-fPIC'
12331 # see comment about AmigaOS4 .so support
12332 lt_prog_compiler_pic_FC
='-fPIC'
12335 # FIXME: we need at least 68020 code to build shared libraries, but
12336 # adding the `-m68020' flag to GCC prevents building anything better,
12338 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12343 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12344 # PIC is the default for these OSes.
12347 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12348 # This hack is so that the source file can tell whether it is being
12349 # built for inclusion in a dll (and should export symbols for example).
12350 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12351 # (--disable-auto-import) libraries
12352 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12355 darwin
* | rhapsody
*)
12356 # PIC is the default on this platform
12357 # Common symbols not allowed in MH_DYLIB files
12358 lt_prog_compiler_pic_FC
='-fno-common'
12362 # PIC is the default for Haiku.
12363 # The "-static" flag exists, but is broken.
12364 lt_prog_compiler_static_FC
=
12368 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12369 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12370 # sets the default TLS model and affects inlining.
12376 lt_prog_compiler_pic_FC
='-fPIC'
12382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12383 # Instead, we relocate shared libraries at runtime.
12387 # Just because we use GCC doesn't mean we suddenly get shared libraries
12388 # on systems that don't support them.
12389 lt_prog_compiler_can_build_shared_FC
=no
12394 # QNX uses GNU C++, but need to define -shared option too, otherwise
12395 # it will coredump.
12396 lt_prog_compiler_pic_FC
='-fPIC -shared'
12400 if test -d /usr
/nec
; then
12401 lt_prog_compiler_pic_FC
=-Kconform_pic
12406 lt_prog_compiler_pic_FC
='-fPIC'
12410 case $cc_basename in
12411 nvcc
*) # Cuda Compiler Driver 2.2
12412 lt_prog_compiler_wl_FC
='-Xlinker '
12413 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12417 # PORTME Check for flag to pass linker flags through the system compiler.
12420 lt_prog_compiler_wl_FC
='-Wl,'
12421 if test "$host_cpu" = ia64
; then
12422 # AIX 5 now supports IA64 processor
12423 lt_prog_compiler_static_FC
='-Bstatic'
12425 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12429 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12430 # This hack is so that the source file can tell whether it is being
12431 # built for inclusion in a dll (and should export symbols for example).
12432 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12435 hpux9
* | hpux10
* | hpux11
*)
12436 lt_prog_compiler_wl_FC
='-Wl,'
12437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12438 # not for PA HP-UX.
12444 lt_prog_compiler_pic_FC
='+Z'
12447 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12448 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12451 irix5
* | irix6
* | nonstopux
*)
12452 lt_prog_compiler_wl_FC
='-Wl,'
12453 # PIC (with -KPIC) is the default.
12454 lt_prog_compiler_static_FC
='-non_shared'
12457 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12458 case $cc_basename in
12459 # old Intel for x86_64 which still supported -KPIC.
12461 lt_prog_compiler_wl_FC
='-Wl,'
12462 lt_prog_compiler_pic_FC
='-KPIC'
12463 lt_prog_compiler_static_FC
='-static'
12465 # icc used to be incompatible with GCC.
12466 # ICC 10 doesn't accept -KPIC any more.
12468 lt_prog_compiler_wl_FC
='-Wl,'
12469 lt_prog_compiler_pic_FC
='-fPIC'
12470 lt_prog_compiler_static_FC
='-static'
12472 # Lahey Fortran 8.1.
12474 lt_prog_compiler_wl_FC
='-Wl,'
12475 lt_prog_compiler_pic_FC
='--shared'
12476 lt_prog_compiler_static_FC
='--static'
12478 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12479 # Portland Group compilers (*not* the Pentium gcc compiler,
12480 # which looks to be a dead project)
12481 lt_prog_compiler_wl_FC
='-Wl,'
12482 lt_prog_compiler_pic_FC
='-fpic'
12483 lt_prog_compiler_static_FC
='-Bstatic'
12486 lt_prog_compiler_wl_FC
='-Wl,'
12487 # All Alpha code is PIC.
12488 lt_prog_compiler_static_FC
='-non_shared'
12490 xl
* | bgxl
* | bgf
* | mpixl
*)
12491 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12492 lt_prog_compiler_wl_FC
='-Wl,'
12493 lt_prog_compiler_pic_FC
='-qpic'
12494 lt_prog_compiler_static_FC
='-qstaticlink'
12497 case `$CC -V 2>&1 | sed 5q` in
12498 *Sun\ F
* |
*Sun
*Fortran
*)
12499 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12500 lt_prog_compiler_pic_FC
='-KPIC'
12501 lt_prog_compiler_static_FC
='-Bstatic'
12502 lt_prog_compiler_wl_FC
=''
12506 lt_prog_compiler_pic_FC
='-KPIC'
12507 lt_prog_compiler_static_FC
='-Bstatic'
12508 lt_prog_compiler_wl_FC
='-Wl,'
12516 lt_prog_compiler_pic_FC
='-KPIC'
12517 lt_prog_compiler_static_FC
='-Bstatic'
12521 # QNX uses GNU C++, but need to define -shared option too, otherwise
12522 # it will coredump.
12523 lt_prog_compiler_pic_FC
='-fPIC -shared'
12526 osf3
* | osf4
* | osf5
*)
12527 lt_prog_compiler_wl_FC
='-Wl,'
12528 # All OSF/1 code is PIC.
12529 lt_prog_compiler_static_FC
='-non_shared'
12533 lt_prog_compiler_static_FC
='-non_shared'
12537 lt_prog_compiler_pic_FC
='-KPIC'
12538 lt_prog_compiler_static_FC
='-Bstatic'
12539 case $cc_basename in
12540 f77
* | f90
* | f95
*)
12541 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12543 lt_prog_compiler_wl_FC
='-Wl,';;
12548 lt_prog_compiler_wl_FC
='-Qoption ld '
12549 lt_prog_compiler_pic_FC
='-PIC'
12550 lt_prog_compiler_static_FC
='-Bstatic'
12553 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12554 lt_prog_compiler_wl_FC
='-Wl,'
12555 lt_prog_compiler_pic_FC
='-KPIC'
12556 lt_prog_compiler_static_FC
='-Bstatic'
12560 if test -d /usr
/nec
;then
12561 lt_prog_compiler_pic_FC
='-Kconform_pic'
12562 lt_prog_compiler_static_FC
='-Bstatic'
12566 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12567 lt_prog_compiler_wl_FC
='-Wl,'
12568 lt_prog_compiler_pic_FC
='-KPIC'
12569 lt_prog_compiler_static_FC
='-Bstatic'
12573 lt_prog_compiler_wl_FC
='-Wl,'
12574 lt_prog_compiler_can_build_shared_FC
=no
12578 lt_prog_compiler_pic_FC
='-pic'
12579 lt_prog_compiler_static_FC
='-Bstatic'
12583 lt_prog_compiler_can_build_shared_FC
=no
12589 # For platforms which do not support PIC, -DPIC is meaningless:
12591 lt_prog_compiler_pic_FC
=
12594 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12598 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12603 # Check to make sure the PIC flag actually works.
12605 if test -n "$lt_prog_compiler_pic_FC"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12607 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12608 if ${lt_cv_prog_compiler_pic_works_FC+:} false
; then :
12609 $as_echo_n "(cached) " >&6
12611 lt_cv_prog_compiler_pic_works_FC
=no
12612 ac_outfile
=conftest.
$ac_objext
12613 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12614 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12615 # Insert the option either (1) after the last *FLAGS variable, or
12616 # (2) before a word containing "conftest.", or (3) at the end.
12617 # Note that $ac_compile itself does not contain backslashes and begins
12618 # with a dollar sign (not a hyphen), so the echo should work correctly.
12619 # The option is referenced via a variable to avoid confusing sed.
12620 lt_compile
=`echo "$ac_compile" | $SED \
12621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12623 -e 's:$: $lt_compiler_flag:'`
12624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12625 (eval "$lt_compile" 2>conftest.err
)
12627 cat conftest.err
>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 if (exit $ac_status) && test -s "$ac_outfile"; then
12630 # The compiler can only warn and ignore the option if not recognized
12631 # So say no if there are warnings other than the usual output.
12632 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12633 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12634 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12635 lt_cv_prog_compiler_pic_works_FC
=yes
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12642 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12644 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12645 case $lt_prog_compiler_pic_FC in
12647 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12650 lt_prog_compiler_pic_FC
=
12651 lt_prog_compiler_can_build_shared_FC
=no
12659 # Check to make sure the static flag actually works.
12661 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12663 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12664 if ${lt_cv_prog_compiler_static_works_FC+:} false
; then :
12665 $as_echo_n "(cached) " >&6
12667 lt_cv_prog_compiler_static_works_FC
=no
12668 save_LDFLAGS
="$LDFLAGS"
12669 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12670 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12671 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12672 # The linker can only warn and ignore the option if not recognized
12673 # So say no if there are warnings
12674 if test -s conftest.err
; then
12675 # Append any errors to the config.log.
12676 cat conftest.err
1>&5
12677 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12678 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12679 if diff conftest.exp conftest.er2
>/dev
/null
; then
12680 lt_cv_prog_compiler_static_works_FC
=yes
12683 lt_cv_prog_compiler_static_works_FC
=yes
12687 LDFLAGS
="$save_LDFLAGS"
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12691 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12693 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12696 lt_prog_compiler_static_FC
=
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12703 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12704 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12705 $as_echo_n "(cached) " >&6
12707 lt_cv_prog_compiler_c_o_FC
=no
12708 $RM -r conftest
2>/dev
/null
12712 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12714 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12715 # Insert the option either (1) after the last *FLAGS variable, or
12716 # (2) before a word containing "conftest.", or (3) at the end.
12717 # Note that $ac_compile itself does not contain backslashes and begins
12718 # with a dollar sign (not a hyphen), so the echo should work correctly.
12719 lt_compile
=`echo "$ac_compile" | $SED \
12720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12722 -e 's:$: $lt_compiler_flag:'`
12723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12724 (eval "$lt_compile" 2>out
/conftest.err
)
12726 cat out
/conftest.err
>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12730 # The compiler can only warn and ignore the option if not recognized
12731 # So say no if there are warnings
12732 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12733 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12734 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12735 lt_cv_prog_compiler_c_o_FC
=yes
12740 # SGI C++ compiler will create directory out/ii_files/ for
12741 # template instantiation
12742 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12743 $RM out
/* && rmdir out
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12750 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12755 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12756 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12757 $as_echo_n "(cached) " >&6
12759 lt_cv_prog_compiler_c_o_FC
=no
12760 $RM -r conftest
2>/dev
/null
12764 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12766 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12767 # Insert the option either (1) after the last *FLAGS variable, or
12768 # (2) before a word containing "conftest.", or (3) at the end.
12769 # Note that $ac_compile itself does not contain backslashes and begins
12770 # with a dollar sign (not a hyphen), so the echo should work correctly.
12771 lt_compile
=`echo "$ac_compile" | $SED \
12772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12774 -e 's:$: $lt_compiler_flag:'`
12775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12776 (eval "$lt_compile" 2>out
/conftest.err
)
12778 cat out
/conftest.err
>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12782 # The compiler can only warn and ignore the option if not recognized
12783 # So say no if there are warnings
12784 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12785 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12786 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12787 lt_cv_prog_compiler_c_o_FC
=yes
12792 # SGI C++ compiler will create directory out/ii_files/ for
12793 # template instantiation
12794 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12795 $RM out
/* && rmdir out
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12802 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12807 hard_links
="nottested"
12808 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12809 # do not overwrite the value of need_locks provided by the user
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12811 $as_echo_n "checking if we can lock with hard links... " >&6; }
12814 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12816 ln conftest.a conftest.b
2>&5 || hard_links
=no
12817 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12819 $as_echo "$hard_links" >&6; }
12820 if test "$hard_links" = no
; then
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12822 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12832 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12835 allow_undefined_flag_FC
=
12836 always_export_symbols_FC
=no
12838 archive_expsym_cmds_FC
=
12839 compiler_needs_object_FC
=no
12840 enable_shared_with_static_runtimes_FC
=no
12841 export_dynamic_flag_spec_FC
=
12842 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12843 hardcode_automatic_FC
=no
12844 hardcode_direct_FC
=no
12845 hardcode_direct_absolute_FC
=no
12846 hardcode_libdir_flag_spec_FC
=
12847 hardcode_libdir_flag_spec_ld_FC
=
12848 hardcode_libdir_separator_FC
=
12849 hardcode_minus_L_FC
=no
12850 hardcode_shlibpath_var_FC
=unsupported
12851 inherit_rpath_FC
=no
12852 link_all_deplibs_FC
=unknown
12854 module_expsym_cmds_FC
=
12855 old_archive_from_new_cmds_FC
=
12856 old_archive_from_expsyms_cmds_FC
=
12857 thread_safe_flag_spec_FC
=
12858 whole_archive_flag_spec_FC
=
12859 # include_expsyms should be a list of space-separated symbols to be *always*
12860 # included in the symbol list
12861 include_expsyms_FC
=
12862 # exclude_expsyms can be an extended regexp of symbols to exclude
12863 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12864 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12865 # as well as any symbol that contains `d'.
12866 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12868 # platforms (ab)use it in PIC code, but their linkers get confused if
12869 # the symbol is explicitly referenced. Since portable code cannot
12870 # rely on this symbol name, it's probably fine to never include it in
12871 # preloaded symbol tables.
12872 # Exclude shared library initialization/finalization symbols.
12873 extract_expsyms_cmds
=
12876 cygwin
* | mingw
* | pw32
* | cegcc
*)
12877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12878 # When not using gcc, we currently assume that we are using
12879 # Microsoft Visual C++.
12880 if test "$GCC" != yes; then
12885 # we just hope/assume this is gcc and not c89 (= MSVC++)
12895 # On some targets, GNU ld is compatible enough with the native linker
12896 # that we're better off using the native interface for both.
12897 lt_use_gnu_ld_interface
=no
12898 if test "$with_gnu_ld" = yes; then
12901 # The AIX port of GNU ld has always aspired to compatibility
12902 # with the native linker. However, as the warning in the GNU ld
12903 # block says, versions before 2.19.5* couldn't really create working
12904 # shared libraries, regardless of the interface used.
12905 case `$LD -v 2>&1` in
12906 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12907 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12908 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12910 lt_use_gnu_ld_interface
=yes
12915 lt_use_gnu_ld_interface
=yes
12920 if test "$lt_use_gnu_ld_interface" = yes; then
12921 # If archive_cmds runs LD, not CC, wlarc should be empty
12924 # Set some defaults for GNU ld with shared library support. These
12925 # are reset later if shared libraries are not supported. Putting them
12926 # here allows them to be overridden if necessary.
12927 runpath_var
=LD_RUN_PATH
12928 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12929 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12930 # ancient GNU ld didn't support --whole-archive et. al.
12931 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12932 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12934 whole_archive_flag_spec_FC
=
12936 supports_anon_versioning
=no
12937 case `$LD -v 2>&1` in
12938 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12939 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12940 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12941 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12942 *\
2.11.
*) ;; # other 2.11 versions
12943 *) supports_anon_versioning
=yes ;;
12946 # See if GNU ld supports shared libraries.
12949 # On AIX/PPC, the GNU linker is very broken
12950 if test "$host_cpu" != ia64
; then
12954 *** Warning: the GNU linker, at least up to release 2.19, is reported
12955 *** to be unable to reliably create shared libraries on AIX.
12956 *** Therefore, libtool is disabling shared libraries support. If you
12957 *** really care for shared libraries, you may want to install binutils
12958 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12959 *** You will then need to restart the configuration process.
12968 # see comment about AmigaOS4 .so support
12969 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970 archive_expsym_cmds_FC
=''
12973 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)'
12974 hardcode_libdir_flag_spec_FC
='-L$libdir'
12975 hardcode_minus_L_FC
=yes
12981 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12982 allow_undefined_flag_FC
=unsupported
12983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12984 # support --undefined. This deserves some investigation. FIXME
12985 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12991 cygwin
* | mingw
* | pw32
* | cegcc
*)
12992 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12993 # as there is no search path for DLLs.
12994 hardcode_libdir_flag_spec_FC
='-L$libdir'
12995 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
12996 allow_undefined_flag_FC
=unsupported
12997 always_export_symbols_FC
=no
12998 enable_shared_with_static_runtimes_FC
=yes
12999 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13001 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13002 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13003 # If the export-symbols file already is a .def file (1st line
13004 # is EXPORTS), use it as is; otherwise, prepend...
13005 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13006 cp $export_symbols $output_objdir/$soname.def;
13008 echo EXPORTS > $output_objdir/$soname.def;
13009 cat $export_symbols >> $output_objdir/$soname.def;
13011 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13018 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019 link_all_deplibs_FC
=yes
13023 hardcode_direct_FC
=no
13024 hardcode_shlibpath_var_FC
=no
13025 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13026 export_dynamic_flag_spec_FC
='${wl}-E'
13027 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13028 # Instead, shared libraries are loaded at an image base (0x10000000 by
13029 # default) and relocated if they conflict, which is a slow very memory
13030 # consuming and fragmenting process. To avoid this, we pick a random,
13031 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13032 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13033 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'
13034 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'
13037 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
13039 if test "$host_os" = linux-dietlibc
; then
13040 case $cc_basename in
13041 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13044 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13045 && test "$tmp_diet" = no
13047 tmp_addflag
=' $pic_flag'
13048 tmp_sharedflag
='-shared'
13049 case $cc_basename,$host_cpu in
13050 pgcc
*) # Portland Group C compiler
13051 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'
13052 tmp_addflag
=' $pic_flag'
13054 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13055 # Portland Group f77 and f90 compilers
13056 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'
13057 tmp_addflag
=' $pic_flag -Mnomain' ;;
13058 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13059 tmp_addflag
=' -i_dynamic' ;;
13060 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13061 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13062 ifc
* | ifort
*) # Intel Fortran compiler
13063 tmp_addflag
=' -nofor_main' ;;
13064 lf95
*) # Lahey Fortran 8.1
13065 whole_archive_flag_spec_FC
=
13066 tmp_sharedflag
='--shared' ;;
13067 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13068 tmp_sharedflag
='-qmkshrobj'
13070 nvcc
*) # Cuda Compiler Driver 2.2
13071 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'
13072 compiler_needs_object_FC
=yes
13075 case `$CC -V 2>&1 | sed 5q` in
13076 *Sun\ C
*) # Sun C 5.9
13077 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'
13078 compiler_needs_object_FC
=yes
13079 tmp_sharedflag
='-G' ;;
13080 *Sun\ F
*) # Sun Fortran 8.3
13081 tmp_sharedflag
='-G' ;;
13083 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085 if test "x$supports_anon_versioning" = xyes
; then
13086 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13088 echo "local: *; };" >> $output_objdir/$libname.ver~
13089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13092 case $cc_basename in
13093 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13094 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13095 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
13096 hardcode_libdir_flag_spec_FC
=
13097 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
13098 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13099 if test "x$supports_anon_versioning" = xyes
; then
13100 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13102 echo "local: *; };" >> $output_objdir/$libname.ver~
13103 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13113 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13114 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13117 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13123 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13128 *** create shared libraries on Solaris systems. Therefore, libtool
13129 *** is disabling shared libraries support. We urge you to upgrade GNU
13130 *** binutils to release 2.9.1 or newer. Another option is to modify
13131 *** your PATH or compiler configuration so that the native linker is
13132 *** used, and then restart.
13135 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13136 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13137 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13143 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13144 case `$LD -v 2>&1` in
13145 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13149 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13150 *** reliably create shared libraries on SCO systems. Therefore, libtool
13151 *** is disabling shared libraries support. We urge you to upgrade GNU
13152 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13153 *** your PATH or compiler configuration so that the native linker is
13154 *** used, and then restart.
13159 # For security reasons, it is highly recommended that you always
13160 # use absolute paths for naming shared libraries, and exclude the
13161 # DT_RUNPATH tag from executables and libraries. But doing so
13162 # requires that you compile everything twice, which is a pain.
13163 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13164 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13165 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13166 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13175 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13177 hardcode_direct_FC
=yes
13178 hardcode_shlibpath_var_FC
=no
13182 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13183 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13184 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13191 if test "$ld_shlibs_FC" = no
; then
13193 hardcode_libdir_flag_spec_FC
=
13194 export_dynamic_flag_spec_FC
=
13195 whole_archive_flag_spec_FC
=
13198 # PORTME fill in a description of your system's linker (not GNU ld)
13201 allow_undefined_flag_FC
=unsupported
13202 always_export_symbols_FC
=yes
13203 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'
13204 # Note: this linker hardcodes the directories in LIBPATH if there
13205 # are no directories specified by -L.
13206 hardcode_minus_L_FC
=yes
13207 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13208 # Neither direct hardcoding nor static linking is supported with a
13210 hardcode_direct_FC
=unsupported
13215 if test "$host_cpu" = ia64
; then
13216 # On IA64, the linker does run time linking by default, so we don't
13217 # have to do anything special.
13218 aix_use_runtimelinking
=no
13219 exp_sym_flag
='-Bexport'
13222 # If we're using GNU nm, then we don't want the "-C" option.
13223 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13224 # Also, AIX nm treats weak defined symbols like other global
13225 # defined symbols, whereas GNU nm marks them as "W".
13226 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13227 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'
13229 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'
13231 aix_use_runtimelinking
=no
13233 # Test if we are trying to use run time linking or normal
13234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13235 # need to do runtime linking.
13236 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13237 for ld_flag
in $LDFLAGS; do
13238 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13239 aix_use_runtimelinking
=yes
13246 exp_sym_flag
='-bexport'
13247 no_entry_flag
='-bnoentry'
13250 # When large executables or shared objects are built, AIX ld can
13251 # have problems creating the table of contents. If linking a library
13252 # or program results in "error TOC overflow" add -mminimal-toc to
13253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13257 hardcode_direct_FC
=yes
13258 hardcode_direct_absolute_FC
=yes
13259 hardcode_libdir_separator_FC
=':'
13260 link_all_deplibs_FC
=yes
13261 file_list_spec_FC
='${wl}-f,'
13263 if test "$GCC" = yes; then
13264 case $host_os in aix4.
[012]|aix4.
[012].
*)
13265 # We only want to do this on AIX 4.2 and lower, the check
13266 # below for broken collect2 doesn't work under 4.3+
13267 collect2name
=`${CC} -print-prog-name=collect2`
13268 if test -f "$collect2name" &&
13269 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13271 # We have reworked collect2
13274 # We have old collect2
13275 hardcode_direct_FC
=unsupported
13276 # It fails to find uninstalled libraries when the uninstalled
13277 # path is not listed in the libpath. Setting hardcode_minus_L
13278 # to unsupported forces relinking
13279 hardcode_minus_L_FC
=yes
13280 hardcode_libdir_flag_spec_FC
='-L$libdir'
13281 hardcode_libdir_separator_FC
=
13285 shared_flag
='-shared'
13286 if test "$aix_use_runtimelinking" = yes; then
13287 shared_flag
="$shared_flag "'${wl}-G'
13291 if test "$host_cpu" = ia64
; then
13292 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13293 # chokes on -Wl,-G. The following line is correct:
13296 if test "$aix_use_runtimelinking" = yes; then
13297 shared_flag
='${wl}-G'
13299 shared_flag
='${wl}-bM:SRE'
13304 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13305 # It seems that -bexpall does not export symbols beginning with
13306 # underscore (_), so it is better to generate a list of symbols to export.
13307 always_export_symbols_FC
=yes
13308 if test "$aix_use_runtimelinking" = yes; then
13309 # Warning - without using the other runtime loading flags (-brtl),
13310 # -berok will link without error, but may produce a broken library.
13311 allow_undefined_flag_FC
='-berok'
13312 # Determine the default libpath from the value encoded in an
13313 # empty executable.
13314 cat > conftest.
$ac_ext <<_ACEOF
13319 if ac_fn_fc_try_link
"$LINENO"; then :
13321 lt_aix_libpath_sed
='
13322 /Import File Strings/,/^$/ {
13328 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13329 # Check for a 64-bit object if we didn't find anything.
13330 if test -z "$aix_libpath"; then
13331 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13334 rm -f core conftest.err conftest.
$ac_objext \
13335 conftest
$ac_exeext conftest.
$ac_ext
13336 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13338 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13339 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"
13341 if test "$host_cpu" = ia64
; then
13342 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13343 allow_undefined_flag_FC
="-z nodefs"
13344 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"
13346 # Determine the default libpath from the value encoded in an
13347 # empty executable.
13348 cat > conftest.
$ac_ext <<_ACEOF
13353 if ac_fn_fc_try_link
"$LINENO"; then :
13355 lt_aix_libpath_sed
='
13356 /Import File Strings/,/^$/ {
13362 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363 # Check for a 64-bit object if we didn't find anything.
13364 if test -z "$aix_libpath"; then
13365 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13368 rm -f core conftest.err conftest.
$ac_objext \
13369 conftest
$ac_exeext conftest.
$ac_ext
13370 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13372 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13373 # Warning - without using the other run time loading flags,
13374 # -berok will link without error, but may produce a broken library.
13375 no_undefined_flag_FC
=' ${wl}-bernotok'
13376 allow_undefined_flag_FC
=' ${wl}-berok'
13377 if test "$with_gnu_ld" = yes; then
13378 # We only use this code for GNU lds that support --whole-archive.
13379 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13381 # Exported symbols can be pulled into shared objects from archives
13382 whole_archive_flag_spec_FC
='$convenience'
13384 archive_cmds_need_lc_FC
=yes
13385 # This is similar to how AIX traditionally builds its shared libraries.
13386 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'
13394 # see comment about AmigaOS4 .so support
13395 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13396 archive_expsym_cmds_FC
=''
13399 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)'
13400 hardcode_libdir_flag_spec_FC
='-L$libdir'
13401 hardcode_minus_L_FC
=yes
13407 export_dynamic_flag_spec_FC
=-rdynamic
13410 cygwin
* | mingw
* | pw32
* | cegcc
*)
13411 # When not using gcc, we currently assume that we are using
13412 # Microsoft Visual C++.
13413 # hardcode_libdir_flag_spec is actually meaningless, as there is
13414 # no search path for DLLs.
13415 hardcode_libdir_flag_spec_FC
=' '
13416 allow_undefined_flag_FC
=unsupported
13417 # Tell ltmain to make .lib files, not .a files.
13419 # Tell ltmain to make .dll files, not .so files.
13421 # FIXME: Setting linknames here is a bad hack.
13422 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13423 # The linker will automatically build a .lib file if we build a DLL.
13424 old_archive_from_new_cmds_FC
='true'
13425 # FIXME: Should let the user specify the lib program.
13426 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13427 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13428 enable_shared_with_static_runtimes_FC
=yes
13431 darwin
* | rhapsody
*)
13434 archive_cmds_need_lc_FC
=no
13435 hardcode_direct_FC
=no
13436 hardcode_automatic_FC
=yes
13437 hardcode_shlibpath_var_FC
=unsupported
13438 if test "$lt_cv_ld_force_load" = "yes"; then
13439 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\"`'
13441 whole_archive_flag_spec_FC
=''
13443 link_all_deplibs_FC
=yes
13444 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13445 case $cc_basename in
13446 ifort
*) _lt_dar_can_shared
=yes ;;
13447 *) _lt_dar_can_shared
=$GCC ;;
13449 if test "$_lt_dar_can_shared" = "yes"; then
13450 output_verbose_link_cmd
=func_echo_all
13451 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}"
13452 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13453 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}"
13454 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}"
13463 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13464 hardcode_libdir_flag_spec_FC
='-L$libdir'
13465 hardcode_shlibpath_var_FC
=no
13468 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13469 # support. Future versions do this automatically, but an explicit c++rt0.o
13470 # does not break anything, and helps significantly (at the cost of a little
13473 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13474 hardcode_libdir_flag_spec_FC
='-R$libdir'
13475 hardcode_direct_FC
=yes
13476 hardcode_shlibpath_var_FC
=no
13479 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13481 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13482 hardcode_direct_FC
=yes
13483 hardcode_minus_L_FC
=yes
13484 hardcode_shlibpath_var_FC
=no
13487 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13488 freebsd
* | dragonfly
*)
13489 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13490 hardcode_libdir_flag_spec_FC
='-R$libdir'
13491 hardcode_direct_FC
=yes
13492 hardcode_shlibpath_var_FC
=no
13496 if test "$GCC" = yes; then
13497 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'
13499 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'
13501 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13502 hardcode_libdir_separator_FC
=:
13503 hardcode_direct_FC
=yes
13505 # hardcode_minus_L: Not really in the search PATH,
13506 # but as the default location of the library.
13507 hardcode_minus_L_FC
=yes
13508 export_dynamic_flag_spec_FC
='${wl}-E'
13512 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13513 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13515 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13517 if test "$with_gnu_ld" = no
; then
13518 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13519 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13520 hardcode_libdir_separator_FC
=:
13521 hardcode_direct_FC
=yes
13522 hardcode_direct_absolute_FC
=yes
13523 export_dynamic_flag_spec_FC
='${wl}-E'
13524 # hardcode_minus_L: Not really in the search PATH,
13525 # but as the default location of the library.
13526 hardcode_minus_L_FC
=yes
13531 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13534 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13537 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13540 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13546 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13549 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13556 if test "$with_gnu_ld" = no
; then
13557 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13558 hardcode_libdir_separator_FC
=:
13562 hardcode_direct_FC
=no
13563 hardcode_shlibpath_var_FC
=no
13566 hardcode_direct_FC
=yes
13567 hardcode_direct_absolute_FC
=yes
13568 export_dynamic_flag_spec_FC
='${wl}-E'
13570 # hardcode_minus_L: Not really in the search PATH,
13571 # but as the default location of the library.
13572 hardcode_minus_L_FC
=yes
13578 irix5
* | irix6
* | nonstopux
*)
13579 if test "$GCC" = yes; then
13580 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'
13581 # Try to use the -exported_symbol ld option, if it does not
13582 # work, assume that -exports_file does not work either and
13583 # implicitly export all symbols.
13584 save_LDFLAGS
="$LDFLAGS"
13585 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13586 cat > conftest.
$ac_ext <<_ACEOF
13589 if ac_fn_fc_try_link
"$LINENO"; then :
13590 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'
13593 rm -f core conftest.err conftest.
$ac_objext \
13594 conftest
$ac_exeext conftest.
$ac_ext
13595 LDFLAGS
="$save_LDFLAGS"
13597 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'
13598 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'
13600 archive_cmds_need_lc_FC
='no'
13601 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13602 hardcode_libdir_separator_FC
=:
13603 inherit_rpath_FC
=yes
13604 link_all_deplibs_FC
=yes
13608 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13609 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13611 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13613 hardcode_libdir_flag_spec_FC
='-R$libdir'
13614 hardcode_direct_FC
=yes
13615 hardcode_shlibpath_var_FC
=no
13619 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13620 hardcode_direct_FC
=yes
13621 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13622 hardcode_libdir_separator_FC
=:
13623 hardcode_shlibpath_var_FC
=no
13630 if test -f /usr
/libexec
/ld.so
; then
13631 hardcode_direct_FC
=yes
13632 hardcode_shlibpath_var_FC
=no
13633 hardcode_direct_absolute_FC
=yes
13634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13635 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13636 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13637 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13638 export_dynamic_flag_spec_FC
='${wl}-E'
13641 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13642 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13643 hardcode_libdir_flag_spec_FC
='-R$libdir'
13646 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13647 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13657 hardcode_libdir_flag_spec_FC
='-L$libdir'
13658 hardcode_minus_L_FC
=yes
13659 allow_undefined_flag_FC
=unsupported
13660 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'
13661 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13665 if test "$GCC" = yes; then
13666 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13667 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'
13669 allow_undefined_flag_FC
=' -expect_unresolved \*'
13670 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'
13672 archive_cmds_need_lc_FC
='no'
13673 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13674 hardcode_libdir_separator_FC
=:
13677 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13678 if test "$GCC" = yes; then
13679 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13680 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'
13681 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13683 allow_undefined_flag_FC
=' -expect_unresolved \*'
13684 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'
13685 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~
13686 $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'
13688 # Both c and cxx compiler support -rpath directly
13689 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13691 archive_cmds_need_lc_FC
='no'
13692 hardcode_libdir_separator_FC
=:
13696 no_undefined_flag_FC
=' -z defs'
13697 if test "$GCC" = yes; then
13699 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13700 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13701 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13703 case `$CC -V 2>&1` in
13706 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13707 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13712 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13713 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13714 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13718 hardcode_libdir_flag_spec_FC
='-R$libdir'
13719 hardcode_shlibpath_var_FC
=no
13721 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13723 # The compiler driver will combine and reorder linker options,
13724 # but understands `-z linker_flag'. GCC discards it without `$wl',
13725 # but is careful enough not to reorder.
13726 # Supported since Solaris 2.6 (maybe 2.5.1?)
13727 if test "$GCC" = yes; then
13728 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13730 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13734 link_all_deplibs_FC
=yes
13738 if test "x$host_vendor" = xsequent
; then
13739 # Use $CC to link under sequent, because it throws in some extra .o
13740 # files that make .init and .fini sections work.
13741 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13743 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13745 hardcode_libdir_flag_spec_FC
='-L$libdir'
13746 hardcode_direct_FC
=yes
13747 hardcode_minus_L_FC
=yes
13748 hardcode_shlibpath_var_FC
=no
13752 case $host_vendor in
13754 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13755 hardcode_direct_FC
=yes # is this really true???
13758 ## LD is ld it makes a PLAMLIB
13759 ## CC just makes a GrossModule.
13760 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13761 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13762 hardcode_direct_FC
=no
13765 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13766 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13769 runpath_var
='LD_RUN_PATH'
13770 hardcode_shlibpath_var_FC
=no
13774 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13775 hardcode_shlibpath_var_FC
=no
13776 export_dynamic_flag_spec_FC
='-Bexport'
13780 if test -d /usr
/nec
; then
13781 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13782 hardcode_shlibpath_var_FC
=no
13783 runpath_var
=LD_RUN_PATH
13784 hardcode_runpath_var
=yes
13789 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13790 no_undefined_flag_FC
='${wl}-z,text'
13791 archive_cmds_need_lc_FC
=no
13792 hardcode_shlibpath_var_FC
=no
13793 runpath_var
='LD_RUN_PATH'
13795 if test "$GCC" = yes; then
13796 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13797 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13799 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 sysv5
* | sco3.2v5
* | sco5v6
*)
13805 # Note: We can NOT use -z defs as we might desire, because we do not
13806 # link with -lc, and that would cause any symbols used from libc to
13807 # always be unresolved, which means just about no library would
13808 # ever link correctly. If we're not using GNU ld we use -z text
13809 # though, which does catch some bad symbols but isn't as heavy-handed
13811 no_undefined_flag_FC
='${wl}-z,text'
13812 allow_undefined_flag_FC
='${wl}-z,nodefs'
13813 archive_cmds_need_lc_FC
=no
13814 hardcode_shlibpath_var_FC
=no
13815 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13816 hardcode_libdir_separator_FC
=':'
13817 link_all_deplibs_FC
=yes
13818 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13819 runpath_var
='LD_RUN_PATH'
13821 if test "$GCC" = yes; then
13822 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13823 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13832 hardcode_libdir_flag_spec_FC
='-L$libdir'
13833 hardcode_shlibpath_var_FC
=no
13841 if test x
$host_vendor = xsni
; then
13843 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13844 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13851 $as_echo "$ld_shlibs_FC" >&6; }
13852 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13854 with_gnu_ld_FC
=$with_gnu_ld
13862 # Do we need to explicitly link libc?
13864 case "x$archive_cmds_need_lc_FC" in
13866 # Assume -lc should be added
13867 archive_cmds_need_lc_FC
=yes
13869 if test "$enable_shared" = yes && test "$GCC" = yes; then
13870 case $archive_cmds_FC in
13872 # FIXME: we may have to deal with multi-command sequences.
13875 # Test whether the compiler implicitly links with -lc since on some
13876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13877 # to ld, don't add -lc before -lgcc.
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13879 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13880 if ${lt_cv_archive_cmds_need_lc_FC+:} false
; then :
13881 $as_echo_n "(cached) " >&6
13884 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13887 (eval $ac_compile) 2>&5
13889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890 test $ac_status = 0; } 2>conftest.err
; then
13893 libobjs
=conftest.
$ac_objext
13895 wl
=$lt_prog_compiler_wl_FC
13896 pic_flag
=$lt_prog_compiler_pic_FC
13902 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13903 allow_undefined_flag_FC
=
13904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13905 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13908 test $ac_status = 0; }
13910 lt_cv_archive_cmds_need_lc_FC
=no
13912 lt_cv_archive_cmds_need_lc_FC
=yes
13914 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13916 cat conftest.err
1>&5
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13922 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13923 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13994 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13996 library_names_spec
=
13997 libname_spec
='lib$name'
14001 postuninstall_cmds
=
14005 shlibpath_overrides_runpath
=unknown
14007 dynamic_linker
="$host_os ld.so"
14008 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14009 need_lib_prefix
=unknown
14010 hardcode_into_libs
=no
14012 # when you set need_version to no, make sure it does not cause -set_version
14013 # flags to be left without arguments
14014 need_version
=unknown
14019 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14020 shlibpath_var
=LIBPATH
14022 # AIX 3 has no versioning support, so we append a major version to the name.
14023 soname_spec
='${libname}${release}${shared_ext}$major'
14030 hardcode_into_libs
=yes
14031 if test "$host_cpu" = ia64
; then
14032 # AIX 5 supports IA64
14033 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14034 shlibpath_var
=LD_LIBRARY_PATH
14036 # With GCC up to 2.95.x, collect2 would create an import file
14037 # for dependence libraries. The import file would start with
14038 # the line `#! .'. This would cause the generated library to
14039 # depend on `.', always an invalid library. This was fixed in
14040 # development snapshots of GCC prior to 3.0.
14042 aix4 | aix4.
[01] | aix4.
[01].
*)
14043 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14045 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14048 can_build_shared
=no
14052 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14053 # soname into executable. Probably we can add versioning support to
14054 # collect2, so additional links can be useful in future.
14055 if test "$aix_use_runtimelinking" = yes; then
14056 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14057 # instead of lib<name>.a to let people know that these are not
14058 # typical AIX shared libraries.
14059 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14061 # We preserve .a as extension for shared libraries through AIX4.2
14062 # and later when we are not doing run time linking.
14063 library_names_spec
='${libname}${release}.a $libname.a'
14064 soname_spec
='${libname}${release}${shared_ext}$major'
14066 shlibpath_var
=LIBPATH
14073 # Since July 2007 AmigaOS4 officially supports .so libraries.
14074 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14078 library_names_spec
='$libname.ixlibrary $libname.a'
14079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14080 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'
14086 library_names_spec
='${libname}${shared_ext}'
14087 dynamic_linker
="$host_os ld.so"
14088 shlibpath_var
=LIBRARY_PATH
14094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095 soname_spec
='${libname}${release}${shared_ext}$major'
14096 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14097 shlibpath_var
=LD_LIBRARY_PATH
14098 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14099 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14100 # the default ld.so.conf also contains /usr/contrib/lib and
14101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14102 # libtool to hard-code these into programs
14105 cygwin
* | mingw
* | pw32
* | cegcc
*)
14106 version_type
=windows
14111 case $GCC,$host_os in
14112 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14113 library_names_spec
='$libname.dll.a'
14114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14115 postinstall_cmds
='base_file=`basename \${file}`~
14116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14117 dldir=$destdir/`dirname \$dlpath`~
14118 test -d \$dldir || mkdir -p \$dldir~
14119 $install_prog $dir/$dlname \$dldir/$dlname~
14120 chmod a+x \$dldir/$dlname~
14121 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14122 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14124 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14125 dlpath=$dir/\$dldll~
14127 shlibpath_overrides_runpath
=yes
14131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14132 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14136 # MinGW DLLs use traditional 'lib' prefix
14137 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14140 # pw32 DLLs use 'pw' prefix rather than 'lib'
14141 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14147 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14150 dynamic_linker
='Win32 ld.exe'
14151 # FIXME: first we should search . and the directory the executable is in
14155 darwin
* | rhapsody
*)
14156 dynamic_linker
="$host_os dyld"
14157 version_type
=darwin
14160 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14161 soname_spec
='${libname}${release}${major}$shared_ext'
14162 shlibpath_overrides_runpath
=yes
14163 shlibpath_var
=DYLD_LIBRARY_PATH
14164 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14166 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14174 soname_spec
='${libname}${release}${shared_ext}$major'
14175 shlibpath_var
=LD_LIBRARY_PATH
14178 freebsd
* | dragonfly
*)
14179 # DragonFly does not have aout. When/if they implement a new
14180 # versioning mechanism, adjust this.
14181 if test -x /usr
/bin
/objformat
; then
14182 objformat
=`/usr/bin/objformat`
14185 freebsd
[23].
*) objformat
=aout
;;
14186 *) objformat
=elf
;;
14189 version_type
=freebsd-
$objformat
14190 case $version_type in
14192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14197 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14201 shlibpath_var
=LD_LIBRARY_PATH
14204 shlibpath_overrides_runpath
=yes
14206 freebsd3.
[01]* | freebsdelf3.
[01]*)
14207 shlibpath_overrides_runpath
=yes
14208 hardcode_into_libs
=yes
14210 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14211 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14212 shlibpath_overrides_runpath
=no
14213 hardcode_into_libs
=yes
14215 *) # from 4.6 on, and DragonFly
14216 shlibpath_overrides_runpath
=yes
14217 hardcode_into_libs
=yes
14226 dynamic_linker
="$host_os runtime_loader"
14227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14228 soname_spec
='${libname}${release}${shared_ext}$major'
14229 shlibpath_var
=LIBRARY_PATH
14230 shlibpath_overrides_runpath
=yes
14231 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14232 hardcode_into_libs
=yes
14235 hpux9
* | hpux10
* | hpux11
*)
14236 # Give a soname corresponding to the major version so that dld.sl refuses to
14237 # link against other versions.
14244 hardcode_into_libs
=yes
14245 dynamic_linker
="$host_os dld.so"
14246 shlibpath_var
=LD_LIBRARY_PATH
14247 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14248 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14249 soname_spec
='${libname}${release}${shared_ext}$major'
14250 if test "X$HPUX_IA64_MODE" = X32
; then
14251 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14253 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14255 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14259 hardcode_into_libs
=yes
14260 dynamic_linker
="$host_os dld.sl"
14261 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14262 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14264 soname_spec
='${libname}${release}${shared_ext}$major'
14265 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14266 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14270 dynamic_linker
="$host_os dld.sl"
14271 shlibpath_var
=SHLIB_PATH
14272 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14273 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14274 soname_spec
='${libname}${release}${shared_ext}$major'
14277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14278 postinstall_cmds
='chmod 555 $lib'
14279 # or fails outright, so override atomically:
14280 install_override_mode
=555
14287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14288 soname_spec
='${libname}${release}${shared_ext}$major'
14289 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14290 shlibpath_var
=LD_LIBRARY_PATH
14291 shlibpath_overrides_runpath
=no
14292 hardcode_into_libs
=yes
14295 irix5
* | irix6
* | nonstopux
*)
14297 nonstopux
*) version_type
=nonstopux
;;
14299 if test "$lt_cv_prog_gnu_ld" = yes; then
14307 soname_spec
='${libname}${release}${shared_ext}$major'
14308 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14310 irix5
* | nonstopux
*)
14311 libsuff
= shlibsuff
=
14314 case $LD in # libtool.m4 will add one of these switches to LD
14315 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14316 libsuff
= shlibsuff
= libmagic
=32-bit;;
14317 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14318 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14319 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14320 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14321 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14325 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14326 shlibpath_overrides_runpath
=no
14327 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14328 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14329 hardcode_into_libs
=yes
14332 # No shared lib support for Linux oldld, aout, or coff.
14333 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14337 # This must be Linux ELF.
14339 # uclinux* changes (here and below) have been submitted to the libtool
14340 # project, but have not yet been accepted: they are GCC-local changes
14341 # for the time being. (See
14342 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14343 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
14347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348 soname_spec
='${libname}${release}${shared_ext}$major'
14349 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14350 shlibpath_var
=LD_LIBRARY_PATH
14351 shlibpath_overrides_runpath
=no
14353 # Some binutils ld are patched to set DT_RUNPATH
14354 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14355 $as_echo_n "(cached) " >&6
14357 lt_cv_shlibpath_overrides_runpath
=no
14358 save_LDFLAGS
=$LDFLAGS
14359 save_libdir
=$libdir
14360 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14361 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14362 cat > conftest.
$ac_ext <<_ACEOF
14367 if ac_fn_fc_try_link
"$LINENO"; then :
14368 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14369 lt_cv_shlibpath_overrides_runpath
=yes
14372 rm -f core conftest.err conftest.
$ac_objext \
14373 conftest
$ac_exeext conftest.
$ac_ext
14374 LDFLAGS
=$save_LDFLAGS
14375 libdir
=$save_libdir
14379 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14381 # This implies no fast_install, which is unacceptable.
14382 # Some rework will be needed to allow for fast_install
14383 # before this can be enabled.
14384 hardcode_into_libs
=yes
14386 # Append ld.so.conf contents to the search path
14387 if test -f /etc
/ld.so.conf
; then
14388 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' ' '`
14389 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14392 # We used to test for /lib/ld.so.1 and disable shared libraries on
14393 # powerpc, because MkLinux only supported shared libraries with the
14394 # GNU dynamic linker. Since this was broken with cross compilers,
14395 # most powerpc-linux boxes support dynamic linking these days and
14396 # people can always --disable-shared, the test was removed, and we
14397 # assume the GNU/Linux dynamic linker is in use.
14398 dynamic_linker
='GNU/Linux ld.so'
14405 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14407 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14408 dynamic_linker
='NetBSD (a.out) ld.so'
14410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14411 soname_spec
='${libname}${release}${shared_ext}$major'
14412 dynamic_linker
='NetBSD ld.elf_so'
14414 shlibpath_var
=LD_LIBRARY_PATH
14415 shlibpath_overrides_runpath
=yes
14416 hardcode_into_libs
=yes
14421 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422 shlibpath_var
=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath
=yes
14430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431 soname_spec
='${libname}${release}${shared_ext}$major'
14432 shlibpath_var
=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath
=no
14434 hardcode_into_libs
=yes
14435 dynamic_linker
='ldqnx.so'
14440 sys_lib_dlsearch_path_spec
="/usr/lib"
14442 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14444 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14445 *) need_version
=no
;;
14447 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14448 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14449 shlibpath_var
=LD_LIBRARY_PATH
14450 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14452 openbsd2.
[89] | openbsd2.
[89].
*)
14453 shlibpath_overrides_runpath
=no
14456 shlibpath_overrides_runpath
=yes
14460 shlibpath_overrides_runpath
=yes
14465 libname_spec
='$name'
14468 library_names_spec
='$libname${shared_ext} $libname.a'
14469 dynamic_linker
='OS/2 ld.exe'
14470 shlibpath_var
=LIBPATH
14473 osf3
* | osf4
* | osf5
*)
14477 soname_spec
='${libname}${release}${shared_ext}$major'
14478 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479 shlibpath_var
=LD_LIBRARY_PATH
14480 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14481 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493 soname_spec
='${libname}${release}${shared_ext}$major'
14494 shlibpath_var
=LD_LIBRARY_PATH
14495 shlibpath_overrides_runpath
=yes
14496 hardcode_into_libs
=yes
14497 # ldd complains unless libraries are executable
14498 postinstall_cmds
='chmod +x $lib'
14503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14504 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14505 shlibpath_var
=LD_LIBRARY_PATH
14506 shlibpath_overrides_runpath
=yes
14507 if test "$with_gnu_ld" = yes; then
14515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec
='${libname}${release}${shared_ext}$major'
14517 shlibpath_var
=LD_LIBRARY_PATH
14518 case $host_vendor in
14520 shlibpath_overrides_runpath
=no
14522 runpath_var
=LD_RUN_PATH
14530 shlibpath_overrides_runpath
=no
14531 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14537 if test -d /usr
/nec
;then
14539 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14540 soname_spec
='$libname${shared_ext}.$major'
14541 shlibpath_var
=LD_LIBRARY_PATH
14545 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14546 version_type
=freebsd-elf
14549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14550 soname_spec
='${libname}${release}${shared_ext}$major'
14551 shlibpath_var
=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath
=yes
14553 hardcode_into_libs
=yes
14554 if test "$with_gnu_ld" = yes; then
14555 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14557 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14560 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14564 sys_lib_dlsearch_path_spec
='/usr/lib'
14568 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573 shlibpath_var
=LD_LIBRARY_PATH
14574 shlibpath_overrides_runpath
=no
14575 hardcode_into_libs
=yes
14580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581 soname_spec
='${libname}${release}${shared_ext}$major'
14582 shlibpath_var
=LD_LIBRARY_PATH
14585 # Shared libraries for VwWorks, >= 7 only at this stage
14586 # and (fpic) still incompatible with "large" code models
14587 # in a few configurations. Only for RTP mode in any case,
14588 # and upon explicit request at configure time.
14591 case ${with_multisubdir}-${enable_shared} in
14598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599 soname_spec
='${libname}${release}${shared_ext}$major'
14600 dynamic_linker
="$host_os module_loader"
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14609 $as_echo "$dynamic_linker" >&6; }
14610 test "$dynamic_linker" = no
&& can_build_shared
=no
14612 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14613 if test "$GCC" = yes; then
14614 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14617 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14618 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14620 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14621 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14663 hardcode_action_FC
=
14664 if test -n "$hardcode_libdir_flag_spec_FC" ||
14665 test -n "$runpath_var_FC" ||
14666 test "X$hardcode_automatic_FC" = "Xyes" ; then
14668 # We can hardcode non-existent directories.
14669 if test "$hardcode_direct_FC" != no
&&
14670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14671 # have to relink, otherwise we might link with an installed library
14672 # when we should be linking with a yet-to-be-installed one
14673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14674 test "$hardcode_minus_L_FC" != no
; then
14675 # Linking always hardcodes the temporary library directory.
14676 hardcode_action_FC
=relink
14678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14679 hardcode_action_FC
=immediate
14682 # We cannot hardcode anything, or else we can only hardcode existing
14684 hardcode_action_FC
=unsupported
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14687 $as_echo "$hardcode_action_FC" >&6; }
14689 if test "$hardcode_action_FC" = relink ||
14690 test "$inherit_rpath_FC" = yes; then
14691 # Fast installation is not supported
14692 enable_fast_install
=no
14693 elif test "$shlibpath_overrides_runpath" = yes ||
14694 test "$enable_shared" = no
; then
14695 # Fast installation is not necessary
14696 enable_fast_install
=needless
14705 fi # test -n "$compiler"
14709 fi # test "$_lt_disable_FC" != yes
14712 ac_cpp
='$CPP $CPPFLAGS'
14713 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14714 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14715 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14718 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14720 # For libtool versioning info, format is CURRENT:REVISION:AGE
14721 libtool_VERSION
=1:0:0
14724 # Check header files.
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14726 $as_echo_n "checking for ANSI C header files... " >&6; }
14727 if ${ac_cv_header_stdc+:} false
; then :
14728 $as_echo_n "(cached) " >&6
14730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14732 #include <stdlib.h>
14733 #include <stdarg.h>
14734 #include <string.h>
14745 if ac_fn_c_try_compile
"$LINENO"; then :
14746 ac_cv_header_stdc
=yes
14748 ac_cv_header_stdc
=no
14750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14752 if test $ac_cv_header_stdc = yes; then
14753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14756 #include <string.h>
14759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14760 $EGREP "memchr" >/dev
/null
2>&1; then :
14763 ac_cv_header_stdc
=no
14769 if test $ac_cv_header_stdc = yes; then
14770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773 #include <stdlib.h>
14776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14777 $EGREP "free" >/dev
/null
2>&1; then :
14780 ac_cv_header_stdc
=no
14786 if test $ac_cv_header_stdc = yes; then
14787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14788 if test "$cross_compiling" = yes; then :
14791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14794 #include <stdlib.h>
14795 #if ((' ' & 0x0FF) == 0x020)
14796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14799 # define ISLOWER(c) \
14800 (('a' <= (c) && (c) <= 'i') \
14801 || ('j' <= (c) && (c) <= 'r') \
14802 || ('s' <= (c) && (c) <= 'z'))
14803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14811 for (i = 0; i < 256; i++)
14812 if (XOR (islower (i), ISLOWER (i))
14813 || toupper (i) != TOUPPER (i))
14818 if ac_fn_c_try_run
"$LINENO"; then :
14821 ac_cv_header_stdc
=no
14823 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14824 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14830 $as_echo "$ac_cv_header_stdc" >&6; }
14831 if test $ac_cv_header_stdc = yes; then
14833 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14838 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14839 if ${ac_cv_header_time+:} false
; then :
14840 $as_echo_n "(cached) " >&6
14842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 #include <sys/types.h>
14845 #include <sys/time.h>
14851 if ((struct tm *) 0)
14857 if ac_fn_c_try_compile
"$LINENO"; then :
14858 ac_cv_header_time
=yes
14860 ac_cv_header_time
=no
14862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14865 $as_echo "$ac_cv_header_time" >&6; }
14866 if test $ac_cv_header_time = yes; then
14868 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14873 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14874 if ${gcc_cv_header_string+:} false
; then :
14875 $as_echo_n "(cached) " >&6
14877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14879 #include <string.h>
14880 #include <strings.h>
14889 if ac_fn_c_try_compile
"$LINENO"; then :
14890 gcc_cv_header_string
=yes
14892 gcc_cv_header_string
=no
14894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14897 $as_echo "$gcc_cv_header_string" >&6; }
14898 if test $gcc_cv_header_string = yes; then
14900 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14904 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14906 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14907 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14908 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14909 cat >>confdefs.h
<<_ACEOF
14910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14921 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14923 nvptx
*-*-* | amdgcn
*-*-*)
14924 # NVPTX does not support Pthreads, has its own code replacement.
14925 libgomp_use_pthreads
=no
14926 # NVPTX is an accelerator-only target
14927 libgomp_offloaded_only
=yes
14930 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14931 # In case the pthread.h system header is not found, this test will fail.
14932 CFLAGS
="$CFLAGS -pthread"
14933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14935 #include <pthread.h>
14936 void *g(void *d) { return NULL; }
14940 pthread_t t; pthread_create(&t,NULL,g,NULL);
14945 if ac_fn_c_try_link
"$LINENO"; then :
14946 XPCFLAGS
=" -Wc,-pthread"
14948 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
14949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14951 #include <pthread.h>
14952 void *g(void *d) { return NULL; }
14956 pthread_t t; pthread_create(&t,NULL,g,NULL);
14961 if ac_fn_c_try_link
"$LINENO"; then :
14964 as_fn_error $?
"Pthreads are required to build libgomp" "$LINENO" 5
14966 rm -f core conftest.err conftest.
$ac_objext \
14967 conftest
$ac_exeext conftest.
$ac_ext
14969 rm -f core conftest.err conftest.
$ac_objext \
14970 conftest
$ac_exeext conftest.
$ac_ext
14973 if test x
$libgomp_use_pthreads != xno
; then
14975 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
14979 if test x
$libgomp_offloaded_only = xyes
; then
14981 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
14985 if test "x$enable_offload_defaulted" = xyes
; then
14987 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
14991 # The cast to long int works around a bug in the HP C Compiler
14992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14994 # This bug is HP SR number 8606223364.
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14996 $as_echo_n "checking size of void *... " >&6; }
14997 if ${ac_cv_sizeof_void_p+:} false
; then :
14998 $as_echo_n "(cached) " >&6
15000 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15003 if test "$ac_cv_type_void_p" = yes; then
15004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15006 as_fn_error
77 "cannot compute sizeof (void *)
15007 See \`config.log' for more details" "$LINENO" 5; }
15009 ac_cv_sizeof_void_p
=0
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15015 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15019 cat >>confdefs.h
<<_ACEOF
15020 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15025 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15027 # Copyright (C) 2014-2023 Free Software Foundation, Inc.
15029 # Contributed by Mentor Embedded.
15031 # This file is part of the GNU Offloading and Multi Processing Library
15034 # Libgomp is free software; you can redistribute it and/or modify it
15035 # under the terms of the GNU General Public License as published by
15036 # the Free Software Foundation; either version 3, or (at your option)
15037 # any later version.
15039 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15040 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15041 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15044 # Under Section 7 of GPL version 3, you are granted additional
15045 # permissions described in the GCC Runtime Library Exception, version
15046 # 3.1, as published by the Free Software Foundation.
15048 # You should have received a copy of the GNU General Public License and
15049 # a copy of the GCC Runtime Library Exception along with this program;
15050 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15051 # <http://www.gnu.org/licenses/>.
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15057 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15058 if ${ac_cv_lib_dl_dlsym+:} false
; then :
15059 $as_echo_n "(cached) " >&6
15061 ac_check_lib_save_LIBS
=$LIBS
15063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15066 /* Override any GCC internal prototype to avoid an error.
15067 Use char because int might match the return type of a GCC
15068 builtin and then its argument prototype would still apply. */
15081 if ac_fn_c_try_link
"$LINENO"; then :
15082 ac_cv_lib_dl_dlsym
=yes
15084 ac_cv_lib_dl_dlsym
=no
15086 rm -f core conftest.err conftest.
$ac_objext \
15087 conftest
$ac_exeext conftest.
$ac_ext
15088 LIBS
=$ac_check_lib_save_LIBS
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15091 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15092 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
15098 if test x
"$plugin_support" = xyes
; then
15100 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15102 elif test "x${enable_offload_targets-no}" != xno
; then
15103 as_fn_error $?
"Can't support offloading without support for plugins" "$LINENO" 5
15108 for ac_header
in $ac_header_list
15110 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15113 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15114 cat >>confdefs.h
<<_ACEOF
15115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15128 for ac_func
in $ac_func_list
15130 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15131 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15132 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15133 cat >>confdefs.h
<<_ACEOF
15134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15157 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15158 # plugins, and configure to find the corresponding offload compilers.
15159 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15164 offload_additional_options
=
15165 offload_additional_lib_paths
=
15168 if test x
"$enable_offload_targets" != x
; then
15169 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15170 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15171 tgt
=`echo $tgt | sed 's/=.*//'`
15175 case "${target}" in
15176 aarch64
*-*-* | powerpc64le-
*-* | x86_64-
*-*)
15177 case "$ac_cv_sizeof_void_p" in
15179 # PR libgomp/65099: Currently, we only support offloading in
15180 # 64-bit configurations.
15190 # Target architecture not supported.
15196 case "${target}" in
15198 case "$ac_cv_sizeof_void_p" in
15214 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
15217 if test x
"$tgt_plugin" = x
; then
15218 # Not configuring libgomp for this offload target if we're not building
15219 # the corresponding offload plugin.
15221 elif test x
"$offload_plugins" = x
; then
15222 offload_plugins
=$tgt_plugin
15223 offload_targets
=$tgt
15225 offload_plugins
=$offload_plugins,$tgt_plugin
15226 offload_targets
=$offload_targets,$tgt
15228 # Configure additional search paths.
15229 if test x
"$tgt_dir" != x
; then
15230 offload_additional_options
="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15231 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15233 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15234 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15239 cat >>confdefs.h
<<_ACEOF
15240 #define OFFLOAD_PLUGINS "$offload_plugins"
15243 if test $PLUGIN_NVPTX = 1; then
15245 PLUGIN_NVPTX_FALSE
='#'
15247 PLUGIN_NVPTX_TRUE
='#'
15248 PLUGIN_NVPTX_FALSE
=
15251 if test $PLUGIN_GCN = 1; then
15253 PLUGIN_GCN_FALSE
='#'
15255 PLUGIN_GCN_TRUE
='#'
15261 # Check for functions needed.
15262 for ac_func
in getloadavg clock_gettime strtoull
15264 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15265 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15266 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15267 cat >>confdefs.h
<<_ACEOF
15268 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15274 for ac_func
in aligned_alloc posix_memalign memalign _aligned_malloc
15276 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15277 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15278 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15279 cat >>confdefs.h
<<_ACEOF
15280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15287 # Check for broken semaphore implementation on darwin.
15288 # sem_init returns: sem_init error: Function not implemented.
15292 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15297 # RTEMS specific checks
15300 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15302 if test "x$ac_cv_type_struct__Mutex_Control" = xyes
; then :
15304 cat >>confdefs.h
<<_ACEOF
15305 #define HAVE_STRUCT__MUTEX_CONTROL 1
15314 # Check whether --enable-linux-futex was given.
15315 if test "${enable_linux_futex+set}" = set; then :
15316 enableval
=$enable_linux_futex;
15317 case "$enableval" in
15319 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15323 enable_linux_futex
=default
15328 *-linux* |
*-uclinux*)
15329 case "$enable_linux_futex" in
15331 # If headers don't have gettid/futex syscalls definition, then
15332 # default to no, otherwise there will be compile time failures.
15333 # Otherwise, default to yes. If we don't detect we are
15334 # compiled/linked against NPTL and not cross-compiling, check
15335 # if programs are run by default against NPTL and if not, issue
15337 enable_linux_futex
=no
15338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 #include <sys/syscall.h>
15341 #include <unistd.h>
15346 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15351 if ac_fn_c_try_link
"$LINENO"; then :
15353 LIBS
="-lpthread $LIBS"
15354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h. */
15356 #ifndef _GNU_SOURCE
15357 #define _GNU_SOURCE 1
15359 #include <pthread.h>
15360 pthread_t th; void *status;
15364 pthread_tryjoin_np (th, &status);
15369 if ac_fn_c_try_link
"$LINENO"; then :
15370 enable_linux_futex
=yes
15372 if test x
$cross_compiling = xno
; then
15373 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15374 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15376 If so, please configure with --disable-linux-futex" >&5
15377 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15378 If so, please configure with --disable-linux-futex" >&2;}
15381 enable_linux_futex
=yes
15383 rm -f core conftest.err conftest.
$ac_objext \
15384 conftest
$ac_exeext conftest.
$ac_ext
15387 rm -f core conftest.err conftest.
$ac_objext \
15388 conftest
$ac_exeext conftest.
$ac_ext
15391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393 #include <sys/syscall.h>
15394 #include <unistd.h>
15399 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15404 if ac_fn_c_try_link
"$LINENO"; then :
15407 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15409 rm -f core conftest.err conftest.
$ac_objext \
15410 conftest
$ac_exeext conftest.
$ac_ext
15415 enable_linux_futex
=no
15418 if test x
$enable_linux_futex = xyes
; then
15423 # Check for pthread_{,attr_}[sg]etaffinity_np.
15424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 #define _GNU_SOURCE
15427 #include <pthread.h>
15432 pthread_attr_t attr;
15433 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15434 if (CPU_ISSET (0, &cpuset))
15435 CPU_SET (1, &cpuset);
15437 CPU_ZERO (&cpuset);
15438 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15439 pthread_attr_init (&attr);
15440 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15441 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15446 if ac_fn_c_try_link
"$LINENO"; then :
15448 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15451 rm -f core conftest.err conftest.
$ac_objext \
15452 conftest
$ac_exeext conftest.
$ac_ext
15454 # At least for glibc, clock_gettime is in librt. But don't pull that
15455 # in if it still doesn't give us the function we want.
15456 if test $ac_cv_func_clock_gettime = no
; then
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15458 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15459 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
15460 $as_echo_n "(cached) " >&6
15462 ac_check_lib_save_LIBS
=$LIBS
15464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15467 /* Override any GCC internal prototype to avoid an error.
15468 Use char because int might match the return type of a GCC
15469 builtin and then its argument prototype would still apply. */
15473 char clock_gettime ();
15477 return clock_gettime ();
15482 if ac_fn_c_try_link
"$LINENO"; then :
15483 ac_cv_lib_rt_clock_gettime
=yes
15485 ac_cv_lib_rt_clock_gettime
=no
15487 rm -f core conftest.err conftest.
$ac_objext \
15488 conftest
$ac_exeext conftest.
$ac_ext
15489 LIBS
=$ac_check_lib_save_LIBS
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15492 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15493 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
15496 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15505 #include <string.h>
15506 #include <stdlib.h>
15507 #include <sys/utsname.h>
15511 struct utsname buf;
15512 volatile size_t len = 0;
15514 len = strlen (buf.nodename);
15519 if ac_fn_c_try_compile
"$LINENO"; then :
15521 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15526 # Check for gethostname.
15527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15529 #include <unistd.h>
15535 if (gethostname (buf, sizeof (buf) - 1) == 0)
15542 if ac_fn_c_try_compile
"$LINENO"; then :
15544 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15549 # Check for getpid.
15550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552 #include <unistd.h>
15556 int pid = getpid ();
15561 if ac_fn_c_try_compile
"$LINENO"; then :
15563 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15568 # See if we support thread-local storage.
15571 # Check whether --enable-tls was given.
15572 if test "${enable_tls+set}" = set; then :
15573 enableval
=$enable_tls;
15574 case "$enableval" in
15576 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15585 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15586 if ${gcc_cv_have_tls+:} false
; then :
15587 $as_echo_n "(cached) " >&6
15590 if test "$cross_compiling" = yes; then :
15591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15593 __thread int a; int b; int main() { return a = b; }
15595 if ac_fn_c_try_link
"$LINENO"; then :
15596 chktls_save_LDFLAGS
="$LDFLAGS"
15598 *-*-linux* |
-*-uclinuxfdpic*)
15599 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15602 chktls_save_CFLAGS
="$CFLAGS"
15603 CFLAGS
="-fPIC $CFLAGS"
15604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 int f() { return 0; }
15608 if ac_fn_c_try_link
"$LINENO"; then :
15609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15611 __thread int a; int b; int f() { return a = b; }
15613 if ac_fn_c_try_link
"$LINENO"; then :
15614 gcc_cv_have_tls
=yes
15618 rm -f core conftest.err conftest.
$ac_objext \
15619 conftest
$ac_exeext conftest.
$ac_ext
15621 gcc_cv_have_tls
=yes
15623 rm -f core conftest.err conftest.
$ac_objext \
15624 conftest
$ac_exeext conftest.
$ac_ext
15625 CFLAGS
="$chktls_save_CFLAGS"
15626 LDFLAGS
="$chktls_save_LDFLAGS"
15630 rm -f core conftest.err conftest.
$ac_objext \
15631 conftest
$ac_exeext conftest.
$ac_ext
15635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15637 __thread int a; int b; int main() { return a = b; }
15639 if ac_fn_c_try_run
"$LINENO"; then :
15640 chktls_save_LDFLAGS
="$LDFLAGS"
15641 LDFLAGS
="-static $LDFLAGS"
15642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 int main() { return 0; }
15646 if ac_fn_c_try_link
"$LINENO"; then :
15647 if test "$cross_compiling" = yes; then :
15648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15650 as_fn_error $?
"cannot run test program while cross compiling
15651 See \`config.log' for more details" "$LINENO" 5; }
15653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15655 __thread int a; int b; int main() { return a = b; }
15657 if ac_fn_c_try_run
"$LINENO"; then :
15658 gcc_cv_have_tls
=yes
15662 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15663 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15667 gcc_cv_have_tls
=yes
15669 rm -f core conftest.err conftest.
$ac_objext \
15670 conftest
$ac_exeext conftest.
$ac_ext
15671 LDFLAGS
="$chktls_save_LDFLAGS"
15672 if test $gcc_cv_have_tls = yes; then
15673 chktls_save_CFLAGS
="$CFLAGS"
15674 thread_CFLAGS
=failed
15675 for flag
in '' '-pthread' '-lpthread'; do
15676 CFLAGS
="$flag $chktls_save_CFLAGS"
15677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 #include <pthread.h>
15680 void *g(void *d) { return NULL; }
15684 pthread_t t; pthread_create(&t,NULL,g,NULL);
15689 if ac_fn_c_try_link
"$LINENO"; then :
15690 thread_CFLAGS
="$flag"
15692 rm -f core conftest.err conftest.
$ac_objext \
15693 conftest
$ac_exeext conftest.
$ac_ext
15694 if test "X$thread_CFLAGS" != Xfailed
; then
15698 CFLAGS
="$chktls_save_CFLAGS"
15699 if test "X$thread_CFLAGS" != Xfailed
; then
15700 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15701 if test "$cross_compiling" = yes; then :
15702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15704 as_fn_error $?
"cannot run test program while cross compiling
15705 See \`config.log' for more details" "$LINENO" 5; }
15707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709 #include <pthread.h>
15711 static int *volatile a_in_other_thread;
15713 thread_func (void *arg)
15715 a_in_other_thread = &a;
15722 void *thread_retval;
15723 int *volatile a_in_main_thread;
15724 a_in_main_thread = &a;
15725 if (pthread_create (&thread, (pthread_attr_t *)0,
15726 thread_func, (void *)0))
15728 if (pthread_join (thread, &thread_retval))
15730 return (a_in_other_thread == a_in_main_thread);
15735 if ac_fn_c_try_run
"$LINENO"; then :
15736 gcc_cv_have_tls
=yes
15740 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15741 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15744 CFLAGS
="$chktls_save_CFLAGS"
15750 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15751 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15756 $as_echo "$gcc_cv_have_tls" >&6; }
15757 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15759 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15763 # See if we have emulated thread-local storage.
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15766 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15767 if ${gcc_cv_use_emutls+:} false
; then :
15768 $as_echo_n "(cached) " >&6
15771 gcc_cv_use_emutls
=no
15772 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15773 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15775 (eval $ac_try) 2>&5
15777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15778 test $ac_status = 0; }; }; then
15779 if grep __emutls_get_address conftest.s
> /dev
/null
; then
15780 gcc_cv_use_emutls
=yes
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15787 $as_echo "$gcc_cv_use_emutls" >&6; }
15788 if test "$gcc_cv_use_emutls" = "yes" ; then
15790 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15794 # See what sort of export controls are available.
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15797 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15798 if ${libgomp_cv_have_attribute_visibility+:} false
; then :
15799 $as_echo_n "(cached) " >&6
15802 save_CFLAGS
="$CFLAGS"
15803 CFLAGS
="$CFLAGS -Werror"
15804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806 void __attribute__((visibility("hidden"))) foo(void) { }
15815 if ac_fn_c_try_compile
"$LINENO"; then :
15816 libgomp_cv_have_attribute_visibility
=yes
15818 libgomp_cv_have_attribute_visibility
=no
15820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15821 CFLAGS
="$save_CFLAGS"
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15824 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15825 if test $libgomp_cv_have_attribute_visibility = yes; then
15827 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15832 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15833 if ${libgomp_cv_have_attribute_dllexport+:} false
; then :
15834 $as_echo_n "(cached) " >&6
15837 save_CFLAGS
="$CFLAGS"
15838 CFLAGS
="$CFLAGS -Werror"
15839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 void __attribute__((dllexport)) foo(void) { }
15850 if ac_fn_c_try_compile
"$LINENO"; then :
15851 libgomp_cv_have_attribute_dllexport
=yes
15853 libgomp_cv_have_attribute_dllexport
=no
15855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15856 CFLAGS
="$save_CFLAGS"
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15859 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15860 if test $libgomp_cv_have_attribute_dllexport = yes; then
15862 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15867 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15868 if ${libgomp_cv_have_attribute_alias+:} false
; then :
15869 $as_echo_n "(cached) " >&6
15872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15876 extern void bar(void) __attribute__((alias("foo")));
15885 if ac_fn_c_try_link
"$LINENO"; then :
15886 libgomp_cv_have_attribute_alias
=yes
15888 libgomp_cv_have_attribute_alias
=no
15890 rm -f core conftest.err conftest.
$ac_objext \
15891 conftest
$ac_exeext conftest.
$ac_ext
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15894 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15895 if test $libgomp_cv_have_attribute_alias = yes; then
15897 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15902 # Check whether --with-gnu-ld was given.
15903 if test "${with_gnu_ld+set}" = set; then :
15904 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
15910 if test "$GCC" = yes; then
15911 # Check if gcc -print-prog-name=ld gives a path.
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15913 $as_echo_n "checking for ld used by $CC... " >&6; }
15916 # gcc leaves a trailing carriage return which upsets mingw
15917 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15919 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15922 # Accept absolute paths.
15924 re_direlt
='/[^/][^/]*/\.\./'
15925 # Canonicalize the pathname of ld
15926 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15927 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
15928 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15930 test -z "$LD" && LD
="$ac_prog"
15933 # If it fails, then pretend we aren't using GCC.
15937 # If it is relative, then search for the first ld in PATH.
15938 with_gnu_ld
=unknown
15941 elif test "$with_gnu_ld" = yes; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15943 $as_echo_n "checking for GNU ld... " >&6; }
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15946 $as_echo_n "checking for non-GNU ld... " >&6; }
15948 if ${lt_cv_path_LD+:} false
; then :
15949 $as_echo_n "(cached) " >&6
15951 if test -z "$LD"; then
15952 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15953 for ac_dir
in $PATH; do
15955 test -z "$ac_dir" && ac_dir
=.
15956 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15957 lt_cv_path_LD
="$ac_dir/$ac_prog"
15958 # Check to see if the program is GNU ld. I'd rather use --version,
15959 # but apparently some variants of GNU ld only accept -v.
15960 # Break only if it was the GNU/non-GNU ld that we prefer.
15961 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15962 *GNU
* |
*'with BFD'*)
15963 test "$with_gnu_ld" != no
&& break
15966 test "$with_gnu_ld" != yes && break
15973 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
15977 LD
="$lt_cv_path_LD"
15978 if test -n "$LD"; then
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15980 $as_echo "$LD" >&6; }
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15983 $as_echo "no" >&6; }
15985 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15987 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15988 if ${lt_cv_prog_gnu_ld+:} false
; then :
15989 $as_echo_n "(cached) " >&6
15991 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15992 case `$LD -v 2>&1 </dev/null` in
15993 *GNU
* |
*'with BFD'*)
15994 lt_cv_prog_gnu_ld
=yes
15997 lt_cv_prog_gnu_ld
=no
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16002 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16003 with_gnu_ld
=$lt_cv_prog_gnu_ld
16011 # If we're not using GNU ld, then there's no point in even trying these
16012 # tests. Check for that first. We should have already tested for gld
16013 # by now (in libtool), but require it now just to be safe...
16014 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16015 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16019 # The name set by libtool depends on the version of libtool. Shame on us
16020 # for depending on an impl detail, but c'est la vie. Older versions used
16021 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16022 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16023 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16024 # set (hence we're using an older libtool), then set it.
16025 if test x
${with_gnu_ld+set} != xset
; then
16026 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16027 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16030 with_gnu_ld
=$ac_cv_prog_gnu_ld
16034 # Start by getting the version number. I think the libtool test already
16035 # does some of this, but throws away the result.
16036 libgomp_ld_is_gold
=no
16037 libgomp_ld_is_mold
=no
16038 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16039 libgomp_ld_is_gold
=yes
16040 elif $LD --version 2>/dev
/null |
grep 'mold'> /dev
/null
2>&1; then
16041 libgomp_ld_is_mold
=yes
16044 ldver
=`$LD --version 2>/dev/null |
16045 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16047 libgomp_gnu_ld_version
=`echo $ldver | \
16048 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16050 # Set --gc-sections.
16051 if test "$with_gnu_ld" = "notbroken"; then
16052 # GNU ld it is! Joy and bunny rabbits!
16054 # All these tests are for C++; save the language and the compiler flags.
16055 # Need to do this so that g++ won't try to link in libstdc++
16056 ac_test_CFLAGS
="${CFLAGS+set}"
16057 ac_save_CFLAGS
="$CFLAGS"
16058 CFLAGS
='-x c++ -Wl,--gc-sections'
16060 # Check for -Wl,--gc-sections
16061 # XXX This test is broken at the moment, as symbols required for linking
16062 # are now in libsupc++ (not built yet). In addition, this test has
16063 # cored on solaris in the past. In addition, --gc-sections doesn't
16064 # really work at the moment (keeps on discarding used sections, first
16065 # .eh_frame and now some of the glibc sections for iconv).
16066 # Bzzzzt. Thanks for playing, maybe next time.
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16068 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16069 if test "$cross_compiling" = yes; then :
16070 ac_sectionLDflags
=yes
16072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16083 if ac_fn_c_try_run
"$LINENO"; then :
16084 ac_sectionLDflags
=yes
16086 ac_sectionLDflags
=no
16088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16089 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16092 if test "$ac_test_CFLAGS" = set; then
16093 CFLAGS
="$ac_save_CFLAGS"
16095 # this is the suspicious part
16098 if test "$ac_sectionLDflags" = "yes"; then
16099 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16102 $as_echo "$ac_sectionLDflags" >&6; }
16105 # Set linker optimization flags.
16106 if test x
"$with_gnu_ld" = x
"yes"; then
16107 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16115 # Check whether --enable-symvers was given.
16116 if test "${enable_symvers+set}" = set; then :
16117 enableval
=$enable_symvers;
16118 case "$enableval" in
16119 yes|no|gnu
*|sun
) ;;
16120 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16129 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16130 # don't know enough about $LD to do tricks...
16133 # Turn a 'yes' into a suitable default.
16134 if test x
$enable_symvers = xyes
; then
16135 # FIXME The following test is too strict, in theory.
16136 if test $enable_shared = no ||
test "x$LD" = x
; then
16139 if test $with_gnu_ld = yes ; then
16142 case ${target_os} in
16143 # Sun symbol versioning exists since Solaris 2.5.
16144 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16145 enable_symvers
=sun
;;
16147 enable_symvers
=no
;;
16153 # Check if 'sun' was requested on non-Solaris 2 platforms.
16154 if test x
$enable_symvers = xsun
; then
16155 case ${target_os} in
16160 # Unlikely to work.
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16162 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16164 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16166 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16172 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16173 if test $enable_symvers != no
; then
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16175 $as_echo_n "checking for shared libgcc... " >&6; }
16176 ac_save_CFLAGS
="$CFLAGS"
16178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16179 /* end confdefs.h. */
16189 if ac_fn_c_try_link
"$LINENO"; then :
16190 libgomp_shared_libgcc
=yes
16192 libgomp_shared_libgcc
=no
16194 rm -f core conftest.err conftest.
$ac_objext \
16195 conftest
$ac_exeext conftest.
$ac_ext
16196 CFLAGS
="$ac_save_CFLAGS"
16197 if test $libgomp_shared_libgcc = no
; then
16198 cat > conftest.c
<<EOF
16199 int main (void) { return 0; }
16201 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16202 -shared -shared-libgcc -o conftest.so \
16203 conftest.c -v 2>&1 >/dev/null \
16204 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16205 rm -f conftest.c conftest.so
16206 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16207 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16219 if ac_fn_c_try_link
"$LINENO"; then :
16220 libgomp_shared_libgcc
=yes
16222 rm -f core conftest.err conftest.
$ac_objext \
16223 conftest
$ac_exeext conftest.
$ac_ext
16224 CFLAGS
="$ac_save_CFLAGS"
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16228 $as_echo "$libgomp_shared_libgcc" >&6; }
16231 # For GNU ld, we need at least this version. The format is described in
16232 # LIBGOMP_CHECK_LINKER_FEATURES above.
16233 libgomp_min_gnu_ld_version
=21400
16234 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16236 # Check to see if unspecified "yes" value can win, given results above.
16237 # Change "yes" into either "no" or a style name.
16238 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16239 if test $with_gnu_ld = yes; then
16240 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16242 elif test $libgomp_ld_is_gold = yes ; then
16244 elif test $libgomp_ld_is_mold = yes ; then
16247 # The right tools, the right setup, but too old. Fallbacks?
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16249 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16251 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16253 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16255 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16256 if test $libgomp_gnu_ld_version -ge 21200 ; then
16257 # Globbing fix is present, proper block support is not.
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16259 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16264 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16268 elif test $enable_symvers = sun
; then
16269 : All interesting versions of Sun ld support sun style symbol versioning.
16271 # just fail for now
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16273 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16275 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16277 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16279 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16285 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16286 if ${libgomp_cv_have_as_symver_directive+:} false
; then :
16287 $as_echo_n "(cached) " >&6
16290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 void foo (void); __asm (".symver foo, bar@SYMVER");
16301 if ac_fn_c_try_compile
"$LINENO"; then :
16302 libgomp_cv_have_as_symver_directive
=yes
16304 libgomp_cv_have_as_symver_directive
=no
16306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16309 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16310 if test $libgomp_cv_have_as_symver_directive = yes; then
16312 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16316 if test $enable_symvers != no
; then
16317 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16318 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16320 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16321 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16324 if test $enable_symvers = gnu
; then
16325 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16326 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16328 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16329 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16332 if test $enable_symvers = sun
; then
16333 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16334 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16336 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16337 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16341 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16343 if test $enable_symvers != no
; then
16344 case ${target_os} in
16345 # The Solaris 2 runtime linker doesn't support the GNU extension of
16346 # binding the same symbol to different versions
16349 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16352 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16359 if test $enable_symvers = gnu
; then
16361 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16365 # Determine cpu count to limit testsuite parallelism.
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16367 $as_echo_n "checking the number of available CPUs... " >&6; }
16370 # Try generic methods
16372 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16373 # 'NPROCESSORS_ONLN' are platform-specific
16374 command -v getconf
>/dev
/null
2>&1 && \
16375 CPU_COUNT
=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT
="0"
16376 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v nproc
>/dev
/null
2>&1; then :
16379 # 'nproc' is part of GNU Coreutils and is widely available
16380 CPU_COUNT
=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT
=`nproc 2>/dev/null` || CPU_COUNT
="0"
16383 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16386 # Try platform-specific preferred methods
16387 case $host_os in #(
16389 CPU_COUNT
=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT
="0" ;; #(
16391 CPU_COUNT
=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT
="0" ;; #(
16393 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT
="0" ;; #(
16395 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT
="0" ;; #(
16397 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" ;; #(
16399 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16401 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16403 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16408 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v sysctl
>/dev
/null
2>&1; then :
16411 # Try less preferred generic method
16412 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16413 CPU_COUNT
=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT
="0"
16416 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16419 # Try platform-specific fallback methods
16420 # They can be less accurate and slower then preferred methods
16421 case $host_os in #(
16423 CPU_COUNT
=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT
="0" ;; #(
16425 CPU_COUNT
=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT
="0" ;; #(
16427 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16429 CPU_COUNT
=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16430 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16432 command -v kstat
>/dev
/null
2>&1 && CPU_COUNT
=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16433 CPU_COUNT
=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT
="0" ;; #(
16435 if CPU_COUNT
=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16438 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS"
16441 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16443 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16448 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev
/null
; then :
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16450 $as_echo "$CPU_COUNT" >&6; }
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16455 $as_echo "unable to detect (assuming 1)" >&6; }
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock implementation" >&5
16461 $as_echo "$as_me: checking for flock implementation" >&6;}
16462 for ac_prog
in flock
16464 # Extract the first word of "$ac_prog", so it can be a program name with args.
16465 set dummy
$ac_prog; ac_word
=$2
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16467 $as_echo_n "checking for $ac_word... " >&6; }
16468 if ${ac_cv_prog_FLOCK+:} false
; then :
16469 $as_echo_n "(cached) " >&6
16471 if test -n "$FLOCK"; then
16472 ac_cv_prog_FLOCK
="$FLOCK" # Let the user override the test.
16474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16475 for as_dir
in $PATH
16478 test -z "$as_dir" && as_dir
=.
16479 for ac_exec_ext
in '' $ac_executable_extensions; do
16480 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16481 ac_cv_prog_FLOCK
="$ac_prog"
16482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16491 FLOCK
=$ac_cv_prog_FLOCK
16492 if test -n "$FLOCK"; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16494 $as_echo "$FLOCK" >&6; }
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16497 $as_echo "no" >&6; }
16501 test -n "$FLOCK" && break
16504 # Fallback if 'perl' is available.
16505 if test -z "$FLOCK"; then
16506 # Extract the first word of "perl", so it can be a program name with args.
16507 set dummy perl
; ac_word
=$2
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16509 $as_echo_n "checking for $ac_word... " >&6; }
16510 if ${ac_cv_prog_FLOCK+:} false
; then :
16511 $as_echo_n "(cached) " >&6
16513 if test -n "$FLOCK"; then
16514 ac_cv_prog_FLOCK
="$FLOCK" # Let the user override the test.
16516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16517 for as_dir
in $PATH
16520 test -z "$as_dir" && as_dir
=.
16521 for ac_exec_ext
in '' $ac_executable_extensions; do
16522 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16523 ac_cv_prog_FLOCK
="$srcdir/testsuite/flock"
16524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16533 FLOCK
=$ac_cv_prog_FLOCK
16534 if test -n "$FLOCK"; then
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16536 $as_echo "$FLOCK" >&6; }
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16539 $as_echo "no" >&6; }
16545 # Get target configury.
16546 .
${srcdir}/configure.tgt
16547 CFLAGS
="$save_CFLAGS $XCFLAGS"
16549 # Check for __sync_val_compare_and_swap, but only after the target has
16550 # had a chance to set XCFLAGS.
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16553 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16554 if ${libgomp_cv_have_sync_builtins+:} false
; then :
16555 $as_echo_n "(cached) " >&6
16558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16564 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16569 if ac_fn_c_try_link
"$LINENO"; then :
16570 libgomp_cv_have_sync_builtins
=yes
16572 libgomp_cv_have_sync_builtins
=no
16574 rm -f core conftest.err conftest.
$ac_objext \
16575 conftest
$ac_exeext conftest.
$ac_ext
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16578 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16579 if test $libgomp_cv_have_sync_builtins = yes; then
16581 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16585 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16587 # Add CET specific flags if CET is enabled
16588 # Check whether --enable-cet was given.
16589 if test "${enable_cet+set}" = set; then :
16590 enableval
=$enable_cet;
16591 case "$enableval" in
16593 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16602 $as_echo_n "checking for CET support... " >&6; }
16604 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16606 i
[34567]86-*-linux* | x86_64-
*-linux*)
16607 case "$enable_cet" in
16609 # Check if target supports multi-byte NOPs
16610 # and if compiler and assembler support CET insn.
16611 cet_save_CFLAGS
="$CFLAGS"
16612 CFLAGS
="$CFLAGS -fcf-protection"
16613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16614 /* end confdefs.h. */
16620 #if !defined(__SSE2__)
16621 #error target does not support multi-byte NOPs
16630 if ac_fn_c_try_compile
"$LINENO"; then :
16635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16636 CFLAGS
="$cet_save_CFLAGS"
16639 # Check if assembler supports CET.
16640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16651 if ac_fn_c_try_compile
"$LINENO"; then :
16654 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
16656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16664 if test x
$enable_cet = xyes
; then
16665 CET_FLAGS
="-fcf-protection -mshstk"
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16667 $as_echo "yes" >&6; }
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16673 XCFLAGS
="$XCFLAGS $CET_FLAGS"
16674 FCFLAGS
="$FCFLAGS $CET_FLAGS"
16680 # Conditionalize the makefile for this target machine.
16682 for f
in ${tmake_file}
16684 if test -f ${srcdir}/config
/$f
16686 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
16689 tmake_file
="${tmake_file_}"
16692 # Cleanup and exit.
16693 CFLAGS
="$save_CFLAGS"
16694 cat >confcache
<<\_ACEOF
16695 # This file is a shell script that caches the results of configure
16696 # tests run on this system so they can be shared between configure
16697 # scripts and configure runs, see configure's option --config-cache.
16698 # It is not useful on other systems. If it contains results you don't
16699 # want to keep, you may remove or edit it.
16701 # config.status only pays attention to the cache file if you give it
16702 # the --recheck option to rerun configure.
16704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16706 # following values.
16710 # The following way of writing the cache mishandles newlines in values,
16711 # but we know of no workaround that is simple, portable, and efficient.
16712 # So, we kill variables containing newlines.
16713 # Ultrix sh set writes to stderr and can't be redirected directly,
16714 # and sets the high bit in the cache file unless we assign to the vars.
16716 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16717 eval ac_val
=\$
$ac_var
16721 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16725 _ | IFS | as_nl
) ;; #(
16726 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16727 *) { eval $ac_var=; unset $ac_var;} ;;
16733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16734 *${as_nl}ac_space
=\
*)
16735 # `set' does not quote correctly, so add quotes: double-quote
16736 # substitution turns \\\\ into \\, and sed turns \\ into \.
16739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16742 # `set' quotes correctly as required by POSIX, so do not add quotes.
16743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16756 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16757 if test -w "$cache_file"; then
16758 if test "x$cache_file" != "x/dev/null"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16760 $as_echo "$as_me: updating cache $cache_file" >&6;}
16761 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16762 cat confcache
>"$cache_file"
16764 case $cache_file in #(
16766 mv -f confcache
"$cache_file"$$
&&
16767 mv -f "$cache_file"$$
"$cache_file" ;; #(
16769 mv -f confcache
"$cache_file" ;;
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16780 if test ${multilib} = yes; then
16781 multilib_arg
="--enable-multilib"
16786 # Set up the set of libraries that we need to link against for libgomp.
16787 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16788 # which will force linkage against -lpthread (or equivalent for the system).
16789 # That's not 100% ideal, but about the best we can do easily.
16790 if test $enable_shared = yes; then
16791 link_gomp
="-lgomp %{static: $LIBS${DL_LIBS:+ $DL_LIBS}}"
16793 link_gomp
="-lgomp $LIBS${DL_LIBS:+ $DL_LIBS}"
16797 if test "$ac_cv_fc_compiler_gnu" = yes; then
16799 USE_FORTRAN_FALSE
='#'
16801 USE_FORTRAN_TRUE
='#'
16806 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16807 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16808 # the underscore here and update the PREREQ. If it doesn't, then we'll
16809 # need to copy this macro to our acinclude.m4.
16810 save_CFLAGS
="$CFLAGS"
16811 for i
in $config_path; do
16812 if test -f $srcdir/config
/$i/omp-lock.h
; then
16813 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16818 if ac_fn_c_compute_int
"$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16823 if ac_fn_c_compute_int
"$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16830 if ac_fn_c_compute_int
"$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16837 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16840 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16844 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16849 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16854 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16859 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16862 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16866 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16871 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16876 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16882 # If the lock fits in an integer, then arrange for Fortran to use that
16883 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16884 # Except that we don't have a way at present to multi-lib the installed
16885 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16887 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16888 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16889 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16892 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16893 OMP_NEST_LOCK_KIND
=8
16895 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16896 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16897 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16900 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16901 OMP_NEST_LOCK_25_KIND
=8
16903 if test "$ac_cv_fc_compiler_gnu" = yes; then
16904 if test $OMP_DEPEND_KIND -eq 16; then
16905 if test $OMP_INT128_SIZE -ne 16; then
16906 as_fn_error $?
"unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16909 if test $OMP_DEPEND_KIND -ne 8; then
16910 as_fn_error $?
"unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
16929 CFLAGS
="$save_CFLAGS"
16931 # Determine what GCC version number to use in filesystem paths.
16933 get_gcc_base_ver
="cat"
16935 # Check whether --with-gcc-major-version-only was given.
16936 if test "${with_gcc_major_version_only+set}" = set; then :
16937 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
16938 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
16946 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16948 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16950 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16952 ac_config_files
="$ac_config_files testsuite/libgomp-site-extra.exp"
16954 cat >confcache
<<\_ACEOF
16955 # This file is a shell script that caches the results of configure
16956 # tests run on this system so they can be shared between configure
16957 # scripts and configure runs, see configure's option --config-cache.
16958 # It is not useful on other systems. If it contains results you don't
16959 # want to keep, you may remove or edit it.
16961 # config.status only pays attention to the cache file if you give it
16962 # the --recheck option to rerun configure.
16964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16966 # following values.
16970 # The following way of writing the cache mishandles newlines in values,
16971 # but we know of no workaround that is simple, portable, and efficient.
16972 # So, we kill variables containing newlines.
16973 # Ultrix sh set writes to stderr and can't be redirected directly,
16974 # and sets the high bit in the cache file unless we assign to the vars.
16976 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16977 eval ac_val
=\$
$ac_var
16981 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16985 _ | IFS | as_nl
) ;; #(
16986 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16987 *) { eval $ac_var=; unset $ac_var;} ;;
16993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16994 *${as_nl}ac_space
=\
*)
16995 # `set' does not quote correctly, so add quotes: double-quote
16996 # substitution turns \\\\ into \\, and sed turns \\ into \.
16999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17002 # `set' quotes correctly as required by POSIX, so do not add quotes.
17003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17016 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17017 if test -w "$cache_file"; then
17018 if test "x$cache_file" != "x/dev/null"; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17020 $as_echo "$as_me: updating cache $cache_file" >&6;}
17021 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17022 cat confcache
>"$cache_file"
17024 case $cache_file in #(
17026 mv -f confcache
"$cache_file"$$
&&
17027 mv -f "$cache_file"$$
"$cache_file" ;; #(
17029 mv -f confcache
"$cache_file" ;;
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17040 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17041 # Let make expand exec_prefix.
17042 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17044 DEFS
=-DHAVE_CONFIG_H
17049 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17050 # 1. Remove the extension, and $U if already installed.
17051 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17052 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17054 # will be set to the directory where LIBOBJS objects are built.
17055 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17056 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17058 LIBOBJS
=$ac_libobjs
17060 LTLIBOBJS
=$ac_ltlibobjs
17063 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17064 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
17065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17068 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17069 if test -n "$am_sleep_pid"; then
17070 # Hide warnings about reused PIDs.
17071 wait $am_sleep_pid 2>/dev
/null
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17074 $as_echo "done" >&6; }
17075 if test -n "$EXEEXT"; then
17077 am__EXEEXT_FALSE
='#'
17079 am__EXEEXT_TRUE
='#'
17083 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17084 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17088 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17091 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17092 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
17093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17095 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17096 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17099 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17100 as_fn_error $?
"conditional \"PLUGIN_NVPTX\" was never defined.
17101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17103 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17104 as_fn_error $?
"conditional \"PLUGIN_GCN\" was never defined.
17105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17107 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17108 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17111 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17112 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17115 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17116 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17119 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17120 as_fn_error $?
"conditional \"USE_FORTRAN\" was never defined.
17121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17124 : "${CONFIG_STATUS=./config.status}"
17126 ac_clean_files_save
=$ac_clean_files
17127 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17129 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17131 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17133 # Generated by $as_me.
17134 # Run this file to recreate the current configuration.
17135 # Compiler output produced by configure, useful for debugging
17136 # configure, is in config.log if it exists.
17139 ac_cs_recheck=false
17142 SHELL=\${CONFIG_SHELL-$SHELL}
17145 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17146 ## -------------------- ##
17147 ## M4sh Initialization. ##
17148 ## -------------------- ##
17150 # Be more Bourne compatible
17151 DUALCASE
=1; export DUALCASE
# for MKS sh
17152 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17155 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17156 # is contrary to our usage. Disable this feature.
17157 alias -g '${1+"$@"}'='"$@"'
17158 setopt NO_GLOB_SUBST
17160 case `(set -o) 2>/dev/null` in #(
17172 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17173 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17174 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17176 # Prefer a ksh shell builtin over an external printf program on Solaris,
17177 # but without wasting forks for bash or zsh.
17178 if test -z "$BASH_VERSION$ZSH_VERSION" \
17179 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17180 as_echo='print
-r --'
17181 as_echo_n='print
-rn --'
17182 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17183 as_echo='printf %s
\n'
17184 as_echo_n='printf %s
'
17186 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17187 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17188 as_echo_n='/usr
/ucb
/echo -n'
17190 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17191 as_echo_n_body='eval
17195 expr "X$arg" : "X\\(.*\\)$as_nl";
17196 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17198 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17200 export as_echo_n_body
17201 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17203 export as_echo_body
17204 as_echo='sh
-c $as_echo_body as_echo
'
17207 # The user is always right.
17208 if test "${PATH_SEPARATOR+set}" != set; then
17210 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17211 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17218 # We need space, tab and new line, in precisely that order. Quoting is
17219 # there to prevent editors from complaining about space-tab.
17220 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17221 # splitting by setting IFS to empty value.)
17224 # Find who we are. Look in the path if we contain no directory separator.
17227 *[\\/]* ) as_myself=$0 ;;
17228 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17229 for as_dir in $PATH
17232 test -z "$as_dir" && as_dir=.
17233 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17239 # We did not find ourselves, most probably we were run as `sh COMMAND'
17240 # in which case we are not to be found in the path.
17241 if test "x$as_myself" = x
; then
17244 if test ! -f "$as_myself"; then
17245 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17249 # Unset variables that we do not need and which cause bugs (e.g. in
17250 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17251 # suppresses any "Segmentation fault" message there. '((' could
17252 # trigger a bug in pdksh 5.2.14.
17253 for as_var
in BASH_ENV ENV MAIL MAILPATH
17254 do eval test x\
${$as_var+set} = xset \
17255 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17268 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17271 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17272 # ----------------------------------------
17273 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17274 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17275 # script with STATUS, using 1 if that was 0.
17278 as_status
=$1; test $as_status -eq 0 && as_status
=1
17280 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17281 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17283 $as_echo "$as_me: error: $2" >&2
17284 as_fn_exit
$as_status
17288 # as_fn_set_status STATUS
17289 # -----------------------
17290 # Set $? to STATUS, without forking.
17291 as_fn_set_status
()
17294 } # as_fn_set_status
17296 # as_fn_exit STATUS
17297 # -----------------
17298 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17302 as_fn_set_status
$1
17308 # Portably unset VAR.
17311 { eval $1=; unset $1;}
17313 as_unset
=as_fn_unset
17314 # as_fn_append VAR VALUE
17315 # ----------------------
17316 # Append the text in VALUE to the end of the definition contained in VAR. Take
17317 # advantage of any shell optimizations that allow amortized linear growth over
17318 # repeated appends, instead of the typical quadratic growth present in naive
17320 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17321 eval 'as_fn_append ()
17332 # as_fn_arith ARG...
17333 # ------------------
17334 # Perform arithmetic evaluation on the ARGs, and store the result in the
17335 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17336 # must be portable across $(()) and expr.
17337 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17338 eval 'as_fn_arith ()
17345 as_val
=`expr "$@" || test $? -eq 1`
17350 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17351 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17357 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17358 as_basename
=basename
17363 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17369 as_me
=`$as_basename -- "$0" ||
17370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17371 X"$0" : 'X\(//\)$' \| \
17372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17374 sed '/^.*\/\([^/][^/]*\)\/*$/{
17388 # Avoid depending upon Character Ranges.
17389 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17390 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17391 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17392 as_cr_digits
='0123456789'
17393 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17395 ECHO_C
= ECHO_N
= ECHO_T
=
17396 case `echo -n x` in #(((((
17398 case `echo 'xy\c'` in
17399 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17401 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17408 rm -f conf$$ conf$$.exe conf$$.
file
17409 if test -d conf$$.dir
; then
17410 rm -f conf$$.dir
/conf$$.
file
17413 mkdir conf$$.dir
2>/dev
/null
17415 if (echo >conf$$.
file) 2>/dev
/null
; then
17416 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17418 # ... but there are two gotchas:
17419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17421 # In both cases, we have to default to `cp -pR'.
17422 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17424 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17432 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17433 rmdir conf$$.dir
2>/dev
/null
17438 # Create "$as_dir" as a directory, including parents if necessary.
17443 -*) as_dir
=.
/$as_dir;;
17445 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17449 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17450 *) as_qdir
=$as_dir;;
17452 as_dirs
="'$as_qdir' $as_dirs"
17453 as_dir
=`$as_dirname -- "$as_dir" ||
17454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17455 X"$as_dir" : 'X\(//\)[^/]' \| \
17456 X"$as_dir" : 'X\(//\)$' \| \
17457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17458 $as_echo X"$as_dir" |
17459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17463 /^X\(\/\/\)[^/].*/{
17476 test -d "$as_dir" && break
17478 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17479 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17483 if mkdir
-p .
2>/dev
/null
; then
17484 as_mkdir_p
='mkdir -p "$as_dir"'
17486 test -d .
/-p && rmdir .
/-p
17491 # as_fn_executable_p FILE
17492 # -----------------------
17493 # Test if FILE is an executable regular file.
17494 as_fn_executable_p
()
17496 test -f "$1" && test -x "$1"
17497 } # as_fn_executable_p
17498 as_test_x
='test -x'
17499 as_executable_p
=as_fn_executable_p
17501 # Sed expression to map a string onto a valid CPP name.
17502 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17504 # Sed expression to map a string onto a valid variable name.
17505 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17509 ## ----------------------------------- ##
17510 ## Main body of $CONFIG_STATUS script. ##
17511 ## ----------------------------------- ##
17513 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17516 # Save the log message, to keep $0 and so on meaningful, and to
17517 # report actual input values of CONFIG_FILES etc. instead of their
17518 # values after options handling.
17520 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17521 generated by GNU Autoconf 2.69. Invocation command line was
17523 CONFIG_FILES = $CONFIG_FILES
17524 CONFIG_HEADERS = $CONFIG_HEADERS
17525 CONFIG_LINKS = $CONFIG_LINKS
17526 CONFIG_COMMANDS = $CONFIG_COMMANDS
17529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17534 case $ac_config_files in *"
17535 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17538 case $ac_config_headers in *"
17539 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17544 # Files that config.status was made for.
17545 config_files="$ac_config_files"
17546 config_headers="$ac_config_headers"
17547 config_commands="$ac_config_commands"
17551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17553 \`$as_me' instantiates files and other configuration actions
17554 from templates according to the current configuration. Unless the files
17555 and actions are specified as TAGs, all are instantiated by default.
17557 Usage: $0 [OPTION]... [TAG]...
17559 -h, --help print this help, then exit
17560 -V, --version print version number and configuration settings, then exit
17561 --config print configuration, then exit
17562 -q, --quiet, --silent
17563 do not print progress messages
17564 -d, --debug don't remove temporary files
17565 --recheck update $as_me by reconfiguring in the same conditions
17566 --file=FILE[:TEMPLATE]
17567 instantiate the configuration file FILE
17568 --header=FILE[:TEMPLATE]
17569 instantiate the configuration header FILE
17571 Configuration files:
17574 Configuration headers:
17577 Configuration commands:
17580 Report bugs to the package provider.
17581 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17582 General help using GNU software: <http://www.gnu.org/gethelp/>."
17585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17586 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17588 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17589 configured by $0, generated by GNU Autoconf 2.69,
17590 with options \\"\$ac_cs_config\\"
17592 Copyright (C) 2012 Free Software Foundation, Inc.
17593 This config.status script is free software; the Free Software Foundation
17594 gives unlimited permission to copy, distribute and modify it."
17601 test -n "\$AWK" || AWK=awk
17604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17605 # The default lists apply if the user does not specify any file.
17611 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17612 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17616 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17628 # Handling of the options.
17629 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17631 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17632 $as_echo "$ac_cs_version"; exit ;;
17633 --config |
--confi |
--conf |
--con |
--co |
--c )
17634 $as_echo "$ac_cs_config"; exit ;;
17635 --debug |
--debu |
--deb |
--de |
--d |
-d )
17637 --file |
--fil |
--fi |
--f )
17640 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17641 '') as_fn_error $?
"missing file argument" ;;
17643 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17644 ac_need_defaults
=false
;;
17645 --header |
--heade |
--head |
--hea )
17648 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17650 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17651 ac_need_defaults
=false
;;
17653 # Conflict between --help and --header
17654 as_fn_error $?
"ambiguous option: \`$1'
17655 Try \`$0 --help' for more information.";;
17656 --help |
--hel |
-h )
17657 $as_echo "$ac_cs_usage"; exit ;;
17658 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17659 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17662 # This is an error.
17663 -*) as_fn_error $?
"unrecognized option: \`$1'
17664 Try \`$0 --help' for more information." ;;
17666 *) as_fn_append ac_config_targets
" $1"
17667 ac_need_defaults
=false
;;
17673 ac_configure_extra_args
=
17675 if $ac_cs_silent; then
17677 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17682 if \$ac_cs_recheck; then
17683 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17686 CONFIG_SHELL='$SHELL'
17687 export CONFIG_SHELL
17692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17697 ## Running $as_me. ##
17703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17711 with_multisubdir="$with_multisubdir"
17712 with_multisrctop="$with_multisrctop"
17713 with_target_subdir="$with_target_subdir"
17714 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17715 multi_basedir="$multi_basedir"
17716 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17719 GFORTRAN="$GFORTRAN"
17721 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17724 # The HP-UX ksh and POSIX shell print the target directory to stdout
17725 # if CDPATH is set.
17726 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17728 sed_quote_subst='$sed_quote_subst'
17729 double_quote_subst='$double_quote_subst'
17730 delay_variable_subst='$delay_variable_subst'
17731 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17732 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17733 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17734 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17735 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17736 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17737 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17738 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17739 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17740 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17741 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17742 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17743 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17744 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17745 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17746 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17747 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17748 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17749 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17750 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17751 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17752 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17753 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17754 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17755 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17756 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17757 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17758 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17759 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17760 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17761 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17762 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17763 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17764 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17765 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17766 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17767 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17768 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17769 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17770 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17771 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17772 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17773 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17774 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17775 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17776 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17777 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17778 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17779 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"`'
17780 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17781 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17782 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17783 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17784 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17785 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17786 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17787 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17788 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17789 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17790 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17791 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17792 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17793 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17794 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17795 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17796 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17797 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17798 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17799 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17800 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17801 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17802 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17803 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17804 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17805 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17806 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17807 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17808 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17809 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17810 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17811 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17812 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17813 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17814 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17815 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17816 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17817 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17818 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17819 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17820 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17821 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17822 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17823 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17824 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17825 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17826 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17827 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17828 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17829 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17830 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17831 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17832 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17833 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17834 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17835 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17836 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17837 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17838 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17839 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17840 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17841 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17842 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17843 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17844 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17845 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17846 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17847 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17848 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17849 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17850 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17851 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17852 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17853 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17854 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17855 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17856 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17857 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17858 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17859 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17860 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17861 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17862 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17863 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17864 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17865 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17866 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17867 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17868 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17869 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17870 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17871 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17872 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17873 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17874 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17875 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17876 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17877 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17878 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17879 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17880 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17881 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17882 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17883 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17884 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17885 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17886 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17887 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17888 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17889 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17890 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17891 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17892 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17893 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17894 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17895 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17896 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17897 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17898 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17899 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17900 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17901 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17902 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17903 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17904 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17905 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17908 LTCFLAGS='$LTCFLAGS'
17909 compiler='$compiler_DEFAULT'
17911 # A function that is used when there is no print builtin or printf.
17912 func_fallback_echo ()
17914 eval 'cat <<_LTECHO_EOF
17919 # Quote evaled strings.
17933 deplibs_check_method \
17942 lt_cv_sys_global_symbol_pipe \
17943 lt_cv_sys_global_symbol_to_cdecl \
17944 lt_cv_sys_global_symbol_to_c_name_address \
17945 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17946 lt_prog_compiler_no_builtin_flag \
17947 lt_prog_compiler_wl \
17948 lt_prog_compiler_pic \
17949 lt_prog_compiler_static \
17950 lt_cv_prog_compiler_c_o \
17958 export_dynamic_flag_spec \
17959 whole_archive_flag_spec \
17960 compiler_needs_object \
17962 allow_undefined_flag \
17963 no_undefined_flag \
17964 hardcode_libdir_flag_spec \
17965 hardcode_libdir_flag_spec_ld \
17966 hardcode_libdir_separator \
17971 variables_saved_for_relink \
17973 library_names_spec \
17975 install_override_mode \
17979 compiler_lib_search_dirs \
17984 compiler_lib_search_path \
17988 lt_prog_compiler_no_builtin_flag_FC \
17989 lt_prog_compiler_wl_FC \
17990 lt_prog_compiler_pic_FC \
17991 lt_prog_compiler_static_FC \
17992 lt_cv_prog_compiler_c_o_FC \
17993 export_dynamic_flag_spec_FC \
17994 whole_archive_flag_spec_FC \
17995 compiler_needs_object_FC \
17997 allow_undefined_flag_FC \
17998 no_undefined_flag_FC \
17999 hardcode_libdir_flag_spec_FC \
18000 hardcode_libdir_flag_spec_ld_FC \
18001 hardcode_libdir_separator_FC \
18002 fix_srcfile_path_FC \
18003 exclude_expsyms_FC \
18004 include_expsyms_FC \
18005 file_list_spec_FC \
18006 compiler_lib_search_dirs_FC \
18007 predep_objects_FC \
18008 postdep_objects_FC \
18011 compiler_lib_search_path_FC; do
18012 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18013 *[\\\\\\\`\\"\\\$]*)
18014 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18017 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18022 # Double-quote double-evaled strings.
18023 for var in reload_cmds \
18024 old_postinstall_cmds \
18025 old_postuninstall_cmds \
18027 extract_expsyms_cmds \
18028 old_archive_from_new_cmds \
18029 old_archive_from_expsyms_cmds \
18031 archive_expsym_cmds \
18033 module_expsym_cmds \
18034 export_symbols_cmds \
18037 postuninstall_cmds \
18039 sys_lib_search_path_spec \
18040 sys_lib_dlsearch_path_spec \
18042 old_archive_cmds_FC \
18043 old_archive_from_new_cmds_FC \
18044 old_archive_from_expsyms_cmds_FC \
18046 archive_expsym_cmds_FC \
18048 module_expsym_cmds_FC \
18049 export_symbols_cmds_FC \
18050 prelink_cmds_FC; do
18051 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18052 *[\\\\\\\`\\"\\\$]*)
18053 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18056 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18061 ac_aux_dir='$ac_aux_dir'
18062 xsi_shell='$xsi_shell'
18063 lt_shell_append='$lt_shell_append'
18065 # See if we are running on zsh, and set the options which allow our
18066 # commands through without removal of \ escapes INIT.
18067 if test -n "\${ZSH_VERSION+set}" ; then
18068 setopt NO_GLOB_SUBST
18074 TIMESTAMP='$TIMESTAMP'
18085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18087 # Handling of arguments.
18088 for ac_config_target
in $ac_config_targets
18090 case $ac_config_target in
18091 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18092 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18093 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18094 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18095 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
18096 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
18097 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
18098 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
18099 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18100 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18101 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
18102 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18103 "testsuite/libgomp-site-extra.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18105 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18110 # If the user did not use the arguments to specify the items to instantiate,
18111 # then the envvar interface is used. Set only those that are not.
18112 # We use the long form for the default assignment because of an extremely
18113 # bizarre bug on SunOS 4.1.3.
18114 if $ac_need_defaults; then
18115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18117 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18120 # Have a temporary directory for convenience. Make it in the build tree
18121 # simply because there is no reason against having it here, and in addition,
18122 # creating and moving files from /tmp can sometimes cause problems.
18123 # Hook for its removal unless debugging.
18124 # Note that there is a small window in which the directory will not be cleaned:
18125 # after its creation but before its name has been assigned to `$tmp'.
18129 trap 'exit_status=$?
18130 : "${ac_tmp:=$tmp}"
18131 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18133 trap 'as_fn_exit 1' 1 2 13 15
18135 # Create a (secure) tmp directory for tmp files.
18138 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18142 tmp
=.
/conf$$
-$RANDOM
18143 (umask 077 && mkdir
"$tmp")
18144 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18147 # Set up the scripts for CONFIG_FILES section.
18148 # No need to generate them if there are no CONFIG_FILES.
18149 # This happens for instance with `./config.status config.h'.
18150 if test -n "$CONFIG_FILES"; then
18153 ac_cr
=`echo X | tr X '\015'`
18154 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18155 # But we know of no other shell where ac_cr would be empty at this
18156 # point, so we can use a bashism as a fallback.
18157 if test "x$ac_cr" = x
; then
18158 eval ac_cr
=\$
\'\\r
\'
18160 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18161 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18164 ac_cs_awk_cr
=$ac_cr
18167 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18172 echo "cat >conf$$subs.awk <<_ACEOF" &&
18173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18175 } >conf$$subs.sh ||
18176 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18177 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18179 for ac_last_try in false false false false false :; do
18180 . ./conf$$subs.sh ||
18181 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18183 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18184 if test $ac_delim_n = $ac_delim_num; then
18186 elif $ac_last_try; then
18187 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18189 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18192 rm -f conf$$subs.sh
18194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18195 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18199 s/^/S["/; s
/!.
*/"]=/
18209 s/\(.\{148\}\)..*/\1/
18211 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18216 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18223 s/\(.\{148\}\)..*/\1/
18225 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18229 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18234 ' <conf$$subs.awk | sed '
18239 ' >>$CONFIG_STATUS || ac_write_fail=1
18240 rm -f conf$$subs.awk
18241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18243 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18244 for (key in S) S_is_set[key] = 1
18250 nfields = split(line, field, "@
")
18252 len = length(field[1])
18253 for (i = 2; i < nfields; i++) {
18255 keylen = length(key)
18256 if (S_is_set[key]) {
18258 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18259 len += length(value) + length(field[++i])
18270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18271 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18272 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18275 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18276 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18279 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18280 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18281 # trailing colons and then remove the whole line if VPATH becomes empty
18282 # (actually we leave an empty line to preserve line numbers).
18283 if test "x
$srcdir" = x.; then
18284 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18303 fi # test -n "$CONFIG_FILES"
18305 # Set up the scripts for CONFIG_HEADERS section.
18306 # No need to generate them if there are no CONFIG_HEADERS.
18307 # This happens for instance with `./config.status Makefile'.
18308 if test -n "$CONFIG_HEADERS"; then
18309 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18313 # Transform confdefs.h into an awk script `defines.awk', embedded as
18314 # here-document in config.status, that substitutes the proper values into
18315 # config.h.in to produce config.h.
18317 # Create a delimiter string that does not exist in confdefs.h, to ease
18318 # handling of long lines.
18320 for ac_last_try in false false :; do
18321 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18322 if test -z "$ac_tt"; then
18324 elif $ac_last_try; then
18325 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18327 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18331 # For the awk script, D is an array of macro values keyed by name,
18332 # likewise P contains macro parameters if any. Preserve backslash
18333 # newline sequences.
18335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18337 s/.\{148\}/&'"$ac_delim"'/g
18340 s/^[ ]*#[ ]*define[ ][ ]*/ /
18347 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18349 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18354 D["\
1"]=" \
3\\\\\\n
"\\/p
18356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18361 s/.\{148\}/&'"$ac_delim"'/g
18366 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18369 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18371 ' <confdefs.h | sed '
18372 s/'"$ac_delim"'/"\\\
18373 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18376 for (key in D) D_is_set[key] = 1
18379 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18381 split(line, arg, " ")
18382 if (arg[1] == "#") {
18386 defundef
= substr
(arg
[1], 2)
18389 split(mac1
, mac2
, "(") #)
18391 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18392 if (D_is_set
[macro
]) {
18393 # Preserve the white space surrounding the "#".
18394 print prefix
"define", macro P
[macro
] D
[macro
]
18397 # Replace #undef with comments. This is necessary, for example,
18398 # in the case of _POSIX_SOURCE, which is predefined and required
18399 # on some systems where configure will not decide to define it.
18400 if (defundef
== "undef") {
18401 print
"/*", prefix defundef
, macro
, "*/"
18409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18410 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18411 fi # test -n "$CONFIG_HEADERS"
18414 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18419 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18421 case $ac_mode$ac_tag in
18423 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18424 :[FH
]-) ac_tag
=-:-;;
18425 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18442 -) ac_f
="$ac_tmp/stdin";;
18443 *) # Look for the file first in the build tree, then in the source tree
18444 # (if the path is not absolute). The absolute path cannot be DOS-style,
18445 # because $ac_f cannot contain `:'.
18449 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18451 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18453 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18454 as_fn_append ac_file_inputs
" '$ac_f'"
18457 # Let's still pretend it is `configure' which instantiates (i.e., don't
18458 # use $as_me), people would be surprised to read:
18459 # /* config.h. Generated by config.status. */
18460 configure_input
='Generated from '`
18461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18463 if test x
"$ac_file" != x-
; then
18464 configure_input
="$ac_file. $configure_input"
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18466 $as_echo "$as_me: creating $ac_file" >&6;}
18468 # Neutralize special characters interpreted by sed in replacement strings.
18469 case $configure_input in #(
18470 *\
&* |
*\|
* |
*\\* )
18471 ac_sed_conf_input
=`$as_echo "$configure_input" |
18472 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18473 *) ac_sed_conf_input
=$configure_input;;
18477 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18478 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18483 ac_dir
=`$as_dirname -- "$ac_file" ||
18484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18485 X"$ac_file" : 'X\(//\)[^/]' \| \
18486 X"$ac_file" : 'X\(//\)$' \| \
18487 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18488 $as_echo X"$ac_file" |
18489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18493 /^X\(\/\/\)[^/].*/{
18506 as_dir
="$ac_dir"; as_fn_mkdir_p
18510 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18512 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18513 # A ".." for each directory in $ac_dir_suffix.
18514 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18515 case $ac_top_builddir_sub in
18516 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18517 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18520 ac_abs_top_builddir
=$ac_pwd
18521 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18522 # for backward compatibility:
18523 ac_top_builddir
=$ac_top_build_prefix
18526 .
) # We are building in place.
18528 ac_top_srcdir
=$ac_top_builddir_sub
18529 ac_abs_top_srcdir
=$ac_pwd ;;
18530 [\\/]* | ?
:[\\/]* ) # Absolute name.
18531 ac_srcdir
=$srcdir$ac_dir_suffix;
18532 ac_top_srcdir
=$srcdir
18533 ac_abs_top_srcdir
=$srcdir ;;
18534 *) # Relative name.
18535 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18536 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18537 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18539 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18549 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18550 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18552 ac_MKDIR_P
=$MKDIR_P
18554 [\\/$
]* | ?
:[\\/]* ) ;;
18555 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18560 # If the template does not know about datarootdir, expand it.
18561 # FIXME: This hack should be removed a few years after 2.60.
18562 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18573 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18574 *datarootdir
*) ac_datarootdir_seen
=yes;;
18575 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18577 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18580 ac_datarootdir_hack='
18581 s&@datadir@&$datadir&g
18582 s&@docdir@&$docdir&g
18583 s&@infodir@&$infodir&g
18584 s&@localedir@&$localedir&g
18585 s&@mandir@&$mandir&g
18586 s&\\\${datarootdir}&$datarootdir&g' ;;
18590 # Neutralize VPATH when `$srcdir' = `.'.
18591 # Shell code in configure.ac might set extrasub.
18592 # FIXME: do we really want to maintain this feature?
18593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18594 ac_sed_extra="$ac_vpsub
18597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18599 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18600 s|@configure_input@|
$ac_sed_conf_input|
;t t
18601 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18602 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18603 s
&@srcdir@
&$ac_srcdir&;t t
18604 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18605 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18606 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18607 s
&@builddir@
&$ac_builddir&;t t
18608 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18609 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18610 s
&@INSTALL@
&$ac_INSTALL&;t t
18611 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18612 $ac_datarootdir_hack
18614 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18615 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18617 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18618 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18620 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18622 which seems to be undefined. Please make sure it is defined" >&5
18623 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18624 which seems to be undefined. Please make sure it is defined" >&2;}
18626 rm -f "$ac_tmp/stdin"
18628 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18629 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18637 if test x"$ac_file" != x-; then
18639 $as_echo "/* $configure_input */" \
18640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18641 } >"$ac_tmp/config.h" \
18642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18643 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18645 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18648 mv "$ac_tmp/config.h" "$ac_file" \
18649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18652 $as_echo "/* $configure_input */" \
18653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18654 || as_fn_error $? "could not create -" "$LINENO" 5
18656 # Compute "$ac_file"'s index
in $config_headers.
18659 for _am_header
in $config_headers :; do
18660 case $_am_header in
18661 $_am_arg |
$_am_arg:* )
18664 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18667 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18668 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18669 X"$_am_arg" : 'X\(//\)[^/]' \| \
18670 X"$_am_arg" : 'X\(//\)$' \| \
18671 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18672 $as_echo X"$_am_arg" |
18673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18677 /^X\(\/\/\)[^/].*/{
18689 s/.*/./; q'`/stamp-h
$_am_stamp_count
18692 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18693 $as_echo "$as_me: executing $ac_file commands" >&6;}
18698 case $ac_file$ac_mode in
18700 # Only add multilib support code if we just rebuilt the top-level
18702 case " $CONFIG_FILES " in
18704 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18707 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18708 # Older Autoconf quotes --file arguments for eval, but not when files
18709 # are listed without --file. Let's play safe and only enable the eval
18710 # if we detect the quoting.
18711 case $CONFIG_FILES in
18712 *\'*) eval set x
"$CONFIG_FILES" ;;
18713 *) set x
$CONFIG_FILES ;;
18718 # Strip MF so we end up with the name of the file.
18719 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18720 # Check whether this is an Automake generated Makefile or not.
18721 # We used to match only the files named 'Makefile.in', but
18722 # some people rename them; so instead we look at the file content.
18723 # Grep'ing the first line is not enough: some people post-process
18724 # each Makefile.in and add a new line on top of each file to say so.
18725 # Grep'ing the whole file is not good either: AIX grep has a line
18726 # limit of 2048, but all sed's we know have understand at least 4000.
18727 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18728 dirpart
=`$as_dirname -- "$mf" ||
18729 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18730 X"$mf" : 'X\(//\)[^/]' \| \
18731 X"$mf" : 'X\(//\)$' \| \
18732 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18738 /^X\(\/\/\)[^/].*/{
18754 # Extract the definition of DEPDIR, am__include, and am__quote
18755 # from the Makefile without running 'make'.
18756 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18757 test -z "$DEPDIR" && continue
18758 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18759 test -z "$am__include" && continue
18760 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18761 # Find all dependency output files, they are included files with
18762 # $(DEPDIR) in their names. We invoke sed twice because it is the
18763 # simplest approach to changing $(DEPDIR) to its actual value in the
18765 for file in `sed -n "
18766 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18767 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18768 # Make sure the directory exists.
18769 test -f "$dirpart/$file" && continue
18770 fdir
=`$as_dirname -- "$file" ||
18771 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18772 X"$file" : 'X\(//\)[^/]' \| \
18773 X"$file" : 'X\(//\)$' \| \
18774 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18775 $as_echo X"$file" |
18776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18780 /^X\(\/\/\)[^/].*/{
18793 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18794 # echo "creating $dirpart/$file"
18795 echo '# dummy' > "$dirpart/$file"
18802 # See if we are running on zsh, and set the options which allow our
18803 # commands through without removal of \ escapes.
18804 if test -n "${ZSH_VERSION+set}" ; then
18805 setopt NO_GLOB_SUBST
18808 cfgfile
="${ofile}T"
18809 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18812 cat <<_LT_EOF >> "$cfgfile"
18815 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18816 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18818 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18820 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18821 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18822 # Written by Gordon Matzigkeit, 1996
18824 # This file is part of GNU Libtool.
18826 # GNU Libtool is free software; you can redistribute it and/or
18827 # modify it under the terms of the GNU General Public License as
18828 # published by the Free Software Foundation; either version 2 of
18829 # the License, or (at your option) any later version.
18831 # As a special exception to the GNU General Public License,
18832 # if you distribute this file as part of a program or library that
18833 # is built using GNU Libtool, you may include this file under the
18834 # same distribution terms that you use for the rest of that program.
18836 # GNU Libtool is distributed in the hope that it will be useful,
18837 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18838 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18839 # GNU General Public License for more details.
18841 # You should have received a copy of the GNU General Public License
18842 # along with GNU Libtool; see the file COPYING. If not, a copy
18843 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18844 # obtained by writing to the Free Software Foundation, Inc.,
18845 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18848 # The names of the tagged configurations supported by this script.
18849 available_tags="FC "
18851 # ### BEGIN LIBTOOL CONFIG
18853 # Which release of libtool.m4 was used?
18854 macro_version=$macro_version
18855 macro_revision=$macro_revision
18857 # Whether or not to build shared libraries.
18858 build_libtool_libs=$enable_shared
18860 # Whether or not to build static libraries.
18861 build_old_libs=$enable_static
18863 # What type of objects to build.
18866 # Whether or not to optimize for fast installation.
18867 fast_install=$enable_fast_install
18869 # Shell to use when invoking shell scripts.
18872 # An echo program that protects backslashes.
18876 host_alias=$host_alias
18880 # The build system.
18881 build_alias=$build_alias
18885 # A sed program that does not truncate output.
18888 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18889 Xsed="\$SED -e 1s/^X//"
18891 # A grep program that handles long lines.
18897 # A literal string matcher.
18900 # A BSD- or MS-compatible name lister.
18903 # Whether we need soft or hard links.
18906 # What is the maximum length of a command?
18907 max_cmd_len=$max_cmd_len
18909 # Object file suffix (normally "o").
18912 # Executable file suffix (normally "").
18915 # whether the shell understands "unset".
18918 # turn spaces into newlines.
18921 # turn newlines into spaces.
18924 # An object symbol dumper.
18925 OBJDUMP=$lt_OBJDUMP
18927 # Method to check whether dependent libraries are shared objects.
18928 deplibs_check_method=$lt_deplibs_check_method
18930 # Command to use when deplibs_check_method == "file_magic".
18931 file_magic_cmd=$lt_file_magic_cmd
18935 AR_FLAGS=$lt_AR_FLAGS
18937 # A symbol stripping program.
18940 # Commands used to install an old-style archive.
18942 old_postinstall_cmds=$lt_old_postinstall_cmds
18943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18945 # Whether to use a lock for old archive extraction.
18946 lock_old_archive_extraction=$lock_old_archive_extraction
18951 # LTCC compiler flags.
18952 LTCFLAGS=$lt_CFLAGS
18954 # Take the output of nm and produce a listing of raw symbols and C names.
18955 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18957 # Transform the output of nm in a proper C declaration.
18958 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18960 # Transform the output of nm in a C name address pair.
18961 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18963 # Transform the output of nm in a C name address pair when lib prefix is needed.
18964 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18966 # The name of the directory that contains temporary libtool files.
18969 # Used to examine libraries when file_magic_cmd begins with "file".
18970 MAGIC_CMD=$MAGIC_CMD
18972 # Must we lock files when doing compilation?
18973 need_locks=$lt_need_locks
18975 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18976 DSYMUTIL=$lt_DSYMUTIL
18978 # Tool to change global to local symbols on Mac OS X.
18981 # Tool to manipulate fat objects and archives on Mac OS X.
18984 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18987 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18988 OTOOL64=$lt_OTOOL64
18990 # Old archive suffix (normally "a").
18993 # Shared library suffix (normally ".so").
18994 shrext_cmds=$lt_shrext_cmds
18996 # The commands to extract the exported symbol list from a shared archive.
18997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18999 # Variables whose values should be saved in libtool wrapper scripts and
19000 # restored at link time.
19001 variables_saved_for_relink=$lt_variables_saved_for_relink
19003 # Do we need the "lib" prefix for modules?
19004 need_lib_prefix=$need_lib_prefix
19006 # Do we need a version for libraries?
19007 need_version=$need_version
19009 # Library versioning type.
19010 version_type=$version_type
19012 # Shared library runtime path variable.
19013 runpath_var=$runpath_var
19015 # Shared library path variable.
19016 shlibpath_var=$shlibpath_var
19018 # Is shlibpath searched before the hard-coded library search path?
19019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19021 # Format of library name prefix.
19022 libname_spec=$lt_libname_spec
19024 # List of archive names. First name is the real one, the rest are links.
19025 # The last name is the one that the linker finds with -lNAME
19026 library_names_spec=$lt_library_names_spec
19028 # The coded name of the library, if different from the real name.
19029 soname_spec=$lt_soname_spec
19031 # Permission mode override for installation of shared libraries.
19032 install_override_mode=$lt_install_override_mode
19034 # Command to use after installation of a shared archive.
19035 postinstall_cmds=$lt_postinstall_cmds
19037 # Command to use after uninstallation of a shared archive.
19038 postuninstall_cmds=$lt_postuninstall_cmds
19040 # Commands used to finish a libtool library installation in a directory.
19041 finish_cmds=$lt_finish_cmds
19043 # As "finish_cmds", except a single script fragment to be evaled but
19045 finish_eval=$lt_finish_eval
19047 # Whether we should hardcode library paths into libraries.
19048 hardcode_into_libs=$hardcode_into_libs
19050 # Compile-time system search path for libraries.
19051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19053 # Run-time system search path for libraries.
19054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19056 # Whether dlopen is supported.
19057 dlopen_support=$enable_dlopen
19059 # Whether dlopen of programs is supported.
19060 dlopen_self=$enable_dlopen_self
19062 # Whether dlopen of statically linked programs is supported.
19063 dlopen_self_static=$enable_dlopen_self_static
19065 # Commands to strip libraries.
19066 old_striplib=$lt_old_striplib
19067 striplib=$lt_striplib
19070 # The linker used to build libraries.
19073 # How to create reloadable object files.
19074 reload_flag=$lt_reload_flag
19075 reload_cmds=$lt_reload_cmds
19077 # Commands used to build an old-style archive.
19078 old_archive_cmds=$lt_old_archive_cmds
19080 # A language specific compiler.
19083 # Is the compiler the GNU compiler?
19086 # Compiler flag to turn off builtin functions.
19087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19089 # How to pass a linker flag through the compiler.
19090 wl=$lt_lt_prog_compiler_wl
19092 # Additional compiler flags for building library objects.
19093 pic_flag=$lt_lt_prog_compiler_pic
19095 # Compiler flag to prevent dynamic linking.
19096 link_static_flag=$lt_lt_prog_compiler_static
19098 # Does compiler simultaneously support -c and -o options?
19099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19101 # Whether or not to add -lc for building shared libraries.
19102 build_libtool_need_lc=$archive_cmds_need_lc
19104 # Whether or not to disallow shared libs when runtime libs are static.
19105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19107 # Compiler flag to allow reflexive dlopens.
19108 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19110 # Compiler flag to generate shared objects directly from archives.
19111 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19113 # Whether the compiler copes with passing no objects directly.
19114 compiler_needs_object=$lt_compiler_needs_object
19116 # Create an old-style archive from a shared archive.
19117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19119 # Create a temporary old-style archive to link instead of a shared archive.
19120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19122 # Commands used to build a shared archive.
19123 archive_cmds=$lt_archive_cmds
19124 archive_expsym_cmds=$lt_archive_expsym_cmds
19126 # Commands used to build a loadable module if different from building
19127 # a shared archive.
19128 module_cmds=$lt_module_cmds
19129 module_expsym_cmds=$lt_module_expsym_cmds
19131 # Whether we are building with GNU ld or not.
19132 with_gnu_ld=$lt_with_gnu_ld
19134 # Flag that allows shared libraries with undefined symbols to be built.
19135 allow_undefined_flag=$lt_allow_undefined_flag
19137 # Flag that enforces no undefined symbols.
19138 no_undefined_flag=$lt_no_undefined_flag
19140 # Flag to hardcode \$libdir into a binary during linking.
19141 # This must work even if \$libdir does not exist
19142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19144 # If ld is used when linking, flag to hardcode \$libdir into a binary
19145 # during linking. This must work even if \$libdir does not exist.
19146 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19148 # Whether we need a single "-rpath" flag with a separated argument.
19149 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19151 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19152 # DIR into the resulting binary.
19153 hardcode_direct=$hardcode_direct
19155 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19156 # DIR into the resulting binary and the resulting library dependency is
19157 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19158 # library is relocated.
19159 hardcode_direct_absolute=$hardcode_direct_absolute
19161 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19162 # into the resulting binary.
19163 hardcode_minus_L=$hardcode_minus_L
19165 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19166 # into the resulting binary.
19167 hardcode_shlibpath_var=$hardcode_shlibpath_var
19169 # Set to "yes" if building a shared library automatically hardcodes DIR
19170 # into the library and all subsequent libraries and executables linked
19172 hardcode_automatic=$hardcode_automatic
19174 # Set to yes if linker adds runtime paths of dependent libraries
19175 # to runtime path list.
19176 inherit_rpath=$inherit_rpath
19178 # Whether libtool must link a program against all its dependency libraries.
19179 link_all_deplibs=$link_all_deplibs
19181 # Fix the shell variable \$srcfile for the compiler.
19182 fix_srcfile_path=$lt_fix_srcfile_path
19184 # Set to "yes" if exported symbols are required.
19185 always_export_symbols=$always_export_symbols
19187 # The commands to list exported symbols.
19188 export_symbols_cmds=$lt_export_symbols_cmds
19190 # Symbols that should not be listed in the preloaded symbols.
19191 exclude_expsyms=$lt_exclude_expsyms
19193 # Symbols that must always be exported.
19194 include_expsyms=$lt_include_expsyms
19196 # Commands necessary for linking programs (against libraries) with templates.
19197 prelink_cmds=$lt_prelink_cmds
19199 # Specify filename containing input files.
19200 file_list_spec=$lt_file_list_spec
19202 # How to hardcode a shared library path into an executable.
19203 hardcode_action=$hardcode_action
19205 # The directories searched by this compiler when creating a shared library.
19206 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19208 # Dependencies to place before and after the objects being linked to
19209 # create a shared library.
19210 predep_objects=$lt_predep_objects
19211 postdep_objects=$lt_postdep_objects
19212 predeps=$lt_predeps
19213 postdeps=$lt_postdeps
19215 # The library search path used internally by the compiler when linking
19216 # a shared library.
19217 compiler_lib_search_path=$lt_compiler_lib_search_path
19219 # ### END LIBTOOL CONFIG
19225 cat <<\_LT_EOF
>> "$cfgfile"
19226 # AIX sometimes has problems with the GCC collect2 program. For some
19227 # reason, if we set the COLLECT_NAMES environment variable, the problems
19228 # vanish in a puff of smoke.
19229 if test "X${COLLECT_NAMES+set}" != Xset
; then
19231 export COLLECT_NAMES
19238 ltmain
="$ac_aux_dir/ltmain.sh"
19241 # We use sed instead of cat because bash on DJGPP gets confused if
19242 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19243 # text mode, it properly converts lines to CR/LF. This bash problem
19244 # is reportedly fixed, but why not run on old versions too?
19245 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19246 ||
(rm -f "$cfgfile"; exit 1)
19250 cat << \_LT_EOF
>> "$cfgfile"
19252 # func_dirname file append nondir_replacement
19253 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19254 # otherwise set result to NONDIR_REPLACEMENT.
19258 */*) func_dirname_result
="${1%/*}${2}" ;;
19259 * ) func_dirname_result
="${3}" ;;
19263 # func_basename file
19266 func_basename_result
="${1##*/}"
19269 # func_dirname_and_basename file append nondir_replacement
19270 # perform func_basename and func_dirname in a single function
19272 # dirname: Compute the dirname of FILE. If nonempty,
19273 # add APPEND to the result, otherwise set result
19274 # to NONDIR_REPLACEMENT.
19275 # value returned in "$func_dirname_result"
19276 # basename: Compute filename of FILE.
19277 # value retuned in "$func_basename_result"
19278 # Implementation must be kept synchronized with func_dirname
19279 # and func_basename. For efficiency, we do not delegate to
19280 # those functions but instead duplicate the functionality here.
19281 func_dirname_and_basename
()
19284 */*) func_dirname_result
="${1%/*}${2}" ;;
19285 * ) func_dirname_result
="${3}" ;;
19287 func_basename_result
="${1##*/}"
19290 # func_stripname prefix suffix name
19291 # strip PREFIX and SUFFIX off of NAME.
19292 # PREFIX and SUFFIX must not contain globbing or regex special
19293 # characters, hashes, percent signs, but SUFFIX may contain a leading
19294 # dot (in which case that matches only a dot).
19297 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19298 # positional parameters, so assign one to ordinary parameter first.
19299 func_stripname_result
=${3}
19300 func_stripname_result
=${func_stripname_result#"${1}"}
19301 func_stripname_result
=${func_stripname_result%"${2}"}
19307 func_opt_split_opt
=${1%%=*}
19308 func_opt_split_arg
=${1#*=}
19315 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19316 *) func_lo2o_result
=${1} ;;
19320 # func_xform libobj-or-source
19323 func_xform_result
=${1%.*}.lo
19326 # func_arith arithmetic-term...
19329 func_arith_result
=$
(( $
* ))
19333 # STRING may not start with a hyphen.
19336 func_len_result
=${#1}
19341 *) # Bourne compatible functions.
19342 cat << \_LT_EOF
>> "$cfgfile"
19344 # func_dirname file append nondir_replacement
19345 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19346 # otherwise set result to NONDIR_REPLACEMENT.
19349 # Extract subdirectory from the argument.
19350 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19351 if test "X$func_dirname_result" = "X${1}"; then
19352 func_dirname_result
="${3}"
19354 func_dirname_result
="$func_dirname_result${2}"
19358 # func_basename file
19361 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19365 # func_stripname prefix suffix name
19366 # strip PREFIX and SUFFIX off of NAME.
19367 # PREFIX and SUFFIX must not contain globbing or regex special
19368 # characters, hashes, percent signs, but SUFFIX may contain a leading
19369 # dot (in which case that matches only a dot).
19370 # func_strip_suffix prefix name
19374 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19375 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19380 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19381 my_sed_long_arg
='1s/^-[^=]*=//'
19386 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19387 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19393 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19396 # func_xform libobj-or-source
19399 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19402 # func_arith arithmetic-term...
19405 func_arith_result
=`expr "$@"`
19409 # STRING may not start with a hyphen.
19412 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19418 case $lt_shell_append in
19420 cat << \_LT_EOF
>> "$cfgfile"
19422 # func_append var value
19423 # Append VALUE to the end of shell variable VAR.
19431 cat << \_LT_EOF
>> "$cfgfile"
19433 # func_append var value
19434 # Append VALUE to the end of shell variable VAR.
19445 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19446 ||
(rm -f "$cfgfile"; exit 1)
19448 mv -f "$cfgfile" "$ofile" ||
19449 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19453 cat <<_LT_EOF >> "$ofile"
19455 # ### BEGIN LIBTOOL TAG CONFIG: FC
19457 # The linker used to build libraries.
19460 # How to create reloadable object files.
19461 reload_flag=$lt_reload_flag_FC
19462 reload_cmds=$lt_reload_cmds_FC
19464 # Commands used to build an old-style archive.
19465 old_archive_cmds=$lt_old_archive_cmds_FC
19467 # A language specific compiler.
19470 # Is the compiler the GNU compiler?
19473 # Compiler flag to turn off builtin functions.
19474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19476 # How to pass a linker flag through the compiler.
19477 wl=$lt_lt_prog_compiler_wl_FC
19479 # Additional compiler flags for building library objects.
19480 pic_flag=$lt_lt_prog_compiler_pic_FC
19482 # Compiler flag to prevent dynamic linking.
19483 link_static_flag=$lt_lt_prog_compiler_static_FC
19485 # Does compiler simultaneously support -c and -o options?
19486 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19488 # Whether or not to add -lc for building shared libraries.
19489 build_libtool_need_lc=$archive_cmds_need_lc_FC
19491 # Whether or not to disallow shared libs when runtime libs are static.
19492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19494 # Compiler flag to allow reflexive dlopens.
19495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19497 # Compiler flag to generate shared objects directly from archives.
19498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19500 # Whether the compiler copes with passing no objects directly.
19501 compiler_needs_object=$lt_compiler_needs_object_FC
19503 # Create an old-style archive from a shared archive.
19504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19506 # Create a temporary old-style archive to link instead of a shared archive.
19507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19509 # Commands used to build a shared archive.
19510 archive_cmds=$lt_archive_cmds_FC
19511 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19513 # Commands used to build a loadable module if different from building
19514 # a shared archive.
19515 module_cmds=$lt_module_cmds_FC
19516 module_expsym_cmds=$lt_module_expsym_cmds_FC
19518 # Whether we are building with GNU ld or not.
19519 with_gnu_ld=$lt_with_gnu_ld_FC
19521 # Flag that allows shared libraries with undefined symbols to be built.
19522 allow_undefined_flag=$lt_allow_undefined_flag_FC
19524 # Flag that enforces no undefined symbols.
19525 no_undefined_flag=$lt_no_undefined_flag_FC
19527 # Flag to hardcode \$libdir into a binary during linking.
19528 # This must work even if \$libdir does not exist
19529 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19531 # If ld is used when linking, flag to hardcode \$libdir into a binary
19532 # during linking. This must work even if \$libdir does not exist.
19533 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19535 # Whether we need a single "-rpath" flag with a separated argument.
19536 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19538 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19539 # DIR into the resulting binary.
19540 hardcode_direct=$hardcode_direct_FC
19542 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19543 # DIR into the resulting binary and the resulting library dependency is
19544 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19545 # library is relocated.
19546 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19548 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19549 # into the resulting binary.
19550 hardcode_minus_L=$hardcode_minus_L_FC
19552 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19553 # into the resulting binary.
19554 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19556 # Set to "yes" if building a shared library automatically hardcodes DIR
19557 # into the library and all subsequent libraries and executables linked
19559 hardcode_automatic=$hardcode_automatic_FC
19561 # Set to yes if linker adds runtime paths of dependent libraries
19562 # to runtime path list.
19563 inherit_rpath=$inherit_rpath_FC
19565 # Whether libtool must link a program against all its dependency libraries.
19566 link_all_deplibs=$link_all_deplibs_FC
19568 # Fix the shell variable \$srcfile for the compiler.
19569 fix_srcfile_path=$lt_fix_srcfile_path_FC
19571 # Set to "yes" if exported symbols are required.
19572 always_export_symbols=$always_export_symbols_FC
19574 # The commands to list exported symbols.
19575 export_symbols_cmds=$lt_export_symbols_cmds_FC
19577 # Symbols that should not be listed in the preloaded symbols.
19578 exclude_expsyms=$lt_exclude_expsyms_FC
19580 # Symbols that must always be exported.
19581 include_expsyms=$lt_include_expsyms_FC
19583 # Commands necessary for linking programs (against libraries) with templates.
19584 prelink_cmds=$lt_prelink_cmds_FC
19586 # Specify filename containing input files.
19587 file_list_spec=$lt_file_list_spec_FC
19589 # How to hardcode a shared library path into an executable.
19590 hardcode_action=$hardcode_action_FC
19592 # The directories searched by this compiler when creating a shared library.
19593 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19595 # Dependencies to place before and after the objects being linked to
19596 # create a shared library.
19597 predep_objects=$lt_predep_objects_FC
19598 postdep_objects=$lt_postdep_objects_FC
19599 predeps=$lt_predeps_FC
19600 postdeps=$lt_postdeps_FC
19602 # The library search path used internally by the compiler when linking
19603 # a shared library.
19604 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19606 # ### END LIBTOOL TAG CONFIG: FC
19617 ac_clean_files
=$ac_clean_files_save
19619 test $ac_write_fail = 0 ||
19620 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19623 # configure is writing to config.log, and then calls config.status.
19624 # config.status does its own redirection, appending to config.log.
19625 # Unfortunately, on DOS this fails, as config.log is still kept open
19626 # by configure, so config.status won't be able to write to it; its
19627 # output is simply discarded. So we exec the FD to /dev/null,
19628 # effectively closing config.log, so it can be properly (re)opened and
19629 # appended to by config.status. When coming back to configure, we
19630 # need to make the FD available again.
19631 if test "$no_create" != yes; then
19633 ac_config_status_args
=
19634 test "$silent" = yes &&
19635 ac_config_status_args
="$ac_config_status_args --quiet"
19637 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19639 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19640 # would make configure fail if this is the last instruction.
19641 $ac_cs_success || as_fn_exit
1
19643 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19645 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}