2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME
='libgomp'
590 PACKAGE_VERSION
='1.0'
591 PACKAGE_STRING
='GNU Offloading and Multi Processing Runtime Library 1.0'
593 PACKAGE_URL
='http://www.gnu.org/software/libgomp/'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
633 ac_subst_vars
='am__EXEEXT_FALSE
638 OMP_NEST_LOCK_25_KIND
640 OMP_NEST_LOCK_25_ALIGN
641 OMP_NEST_LOCK_25_SIZE
656 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
657 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
658 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
659 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
668 offload_additional_lib_paths
669 offload_additional_options
680 PLUGIN_NVPTX_CPPFLAGS
689 MAINTAINER_MODE_FALSE
748 INSTALL_STRIP_PROGRAM
804 program_transform_name
817 enable_option_checking
818 enable_version_specific_runtime_libs
819 enable_generated_files_in_srcdir
822 enable_dependency_tracking
829 enable_maintainer_mode
831 with_cuda_driver_include
834 with_hsa_runtime_include
840 with_gcc_major_version_only
842 ac_precious_vars
='build_alias
853 # Initialize some variables set by options.
855 ac_init_version
=false
856 ac_unrecognized_opts
=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
867 program_transform_name
=s
,x
,x
,
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir
='${exec_prefix}/bin'
882 sbindir
='${exec_prefix}/sbin'
883 libexecdir
='${exec_prefix}/libexec'
884 datarootdir
='${prefix}/share'
885 datadir
='${datarootdir}'
886 sysconfdir
='${prefix}/etc'
887 sharedstatedir
='${prefix}/com'
888 localstatedir
='${prefix}/var'
889 includedir
='${prefix}/include'
890 oldincludedir
='/usr/include'
891 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir
='${datarootdir}/info'
897 libdir
='${exec_prefix}/lib'
898 localedir
='${datarootdir}/locale'
899 mandir
='${datarootdir}/man'
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\
$ac_option
913 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
924 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
926 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
929 -build |
--build |
--buil |
--bui |
--bu)
930 ac_prev
=build_alias
;;
931 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
932 build_alias
=$ac_optarg ;;
934 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
935 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
936 ac_prev
=cache_file
;;
937 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
938 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
939 cache_file
=$ac_optarg ;;
942 cache_file
=config.cache
;;
944 -datadir |
--datadir |
--datadi |
--datad)
946 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
947 datadir
=$ac_optarg ;;
949 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
950 |
--dataroo |
--dataro |
--datar)
951 ac_prev
=datarootdir
;;
952 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
953 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
954 datarootdir
=$ac_optarg ;;
956 -disable-* |
--disable-*)
957 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
960 as_fn_error $?
"invalid feature name: $ac_useropt"
961 ac_useropt_orig
=$ac_useropt
962 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
967 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep
=', ';;
970 eval enable_
$ac_useropt=no
;;
972 -docdir |
--docdir |
--docdi |
--doc |
--do)
974 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
977 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
979 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
982 -enable-* |
--enable-*)
983 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
986 as_fn_error $?
"invalid feature name: $ac_useropt"
987 ac_useropt_orig
=$ac_useropt
988 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep
=', ';;
996 eval enable_
$ac_useropt=\
$ac_optarg ;;
998 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
999 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1000 |
--exec |
--exe |
--ex)
1001 ac_prev
=exec_prefix
;;
1002 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1003 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1004 |
--exec=* |
--exe=* |
--ex=*)
1005 exec_prefix
=$ac_optarg ;;
1007 -gas |
--gas |
--ga |
--g)
1008 # Obsolete; use --with-gas.
1011 -help |
--help |
--hel |
--he |
-h)
1012 ac_init_help
=long
;;
1013 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1014 ac_init_help
=recursive
;;
1015 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1016 ac_init_help
=short
;;
1018 -host |
--host |
--hos |
--ho)
1019 ac_prev
=host_alias
;;
1020 -host=* |
--host=* |
--hos=* |
--ho=*)
1021 host_alias
=$ac_optarg ;;
1023 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1025 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1027 htmldir
=$ac_optarg ;;
1029 -includedir |
--includedir |
--includedi |
--included |
--include \
1030 |
--includ |
--inclu |
--incl |
--inc)
1031 ac_prev
=includedir
;;
1032 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1033 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1034 includedir
=$ac_optarg ;;
1036 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1038 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1039 infodir
=$ac_optarg ;;
1041 -libdir |
--libdir |
--libdi |
--libd)
1043 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1044 libdir
=$ac_optarg ;;
1046 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1047 |
--libexe |
--libex |
--libe)
1048 ac_prev
=libexecdir
;;
1049 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1050 |
--libexe=* |
--libex=* |
--libe=*)
1051 libexecdir
=$ac_optarg ;;
1053 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1054 ac_prev
=localedir
;;
1055 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1056 localedir
=$ac_optarg ;;
1058 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1059 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1060 ac_prev
=localstatedir
;;
1061 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1062 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1063 localstatedir
=$ac_optarg ;;
1065 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1067 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1068 mandir
=$ac_optarg ;;
1070 -nfp |
--nfp |
--nf)
1071 # Obsolete; use --without-fp.
1074 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1075 |
--no-cr |
--no-c |
-n)
1078 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1079 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1082 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1083 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1084 |
--oldin |
--oldi |
--old |
--ol |
--o)
1085 ac_prev
=oldincludedir
;;
1086 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1087 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1088 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1089 oldincludedir
=$ac_optarg ;;
1091 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1093 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1094 prefix
=$ac_optarg ;;
1096 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1097 |
--program-pre |
--program-pr |
--program-p)
1098 ac_prev
=program_prefix
;;
1099 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1100 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1101 program_prefix
=$ac_optarg ;;
1103 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1104 |
--program-suf |
--program-su |
--program-s)
1105 ac_prev
=program_suffix
;;
1106 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1107 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1108 program_suffix
=$ac_optarg ;;
1110 -program-transform-name |
--program-transform-name \
1111 |
--program-transform-nam |
--program-transform-na \
1112 |
--program-transform-n |
--program-transform- \
1113 |
--program-transform |
--program-transfor \
1114 |
--program-transfo |
--program-transf \
1115 |
--program-trans |
--program-tran \
1116 |
--progr-tra |
--program-tr |
--program-t)
1117 ac_prev
=program_transform_name
;;
1118 -program-transform-name=* |
--program-transform-name=* \
1119 |
--program-transform-nam=* |
--program-transform-na=* \
1120 |
--program-transform-n=* |
--program-transform-=* \
1121 |
--program-transform=* |
--program-transfor=* \
1122 |
--program-transfo=* |
--program-transf=* \
1123 |
--program-trans=* |
--program-tran=* \
1124 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1125 program_transform_name
=$ac_optarg ;;
1127 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1129 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1130 pdfdir
=$ac_optarg ;;
1132 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1134 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1137 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1138 |
-silent |
--silent |
--silen |
--sile |
--sil)
1141 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1143 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1145 sbindir
=$ac_optarg ;;
1147 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1148 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1149 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1151 ac_prev
=sharedstatedir
;;
1152 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1153 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1154 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1156 sharedstatedir
=$ac_optarg ;;
1158 -site |
--site |
--sit)
1160 -site=* |
--site=* |
--sit=*)
1163 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1165 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1166 srcdir
=$ac_optarg ;;
1168 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1169 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1170 ac_prev
=sysconfdir
;;
1171 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1172 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1173 sysconfdir
=$ac_optarg ;;
1175 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1176 ac_prev
=target_alias
;;
1177 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1178 target_alias
=$ac_optarg ;;
1180 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1183 -version |
--version |
--versio |
--versi |
--vers |
-V)
1184 ac_init_version
=: ;;
1187 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1190 as_fn_error $?
"invalid package name: $ac_useropt"
1191 ac_useropt_orig
=$ac_useropt
1192 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1197 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep
=', ';;
1200 eval with_
$ac_useropt=\
$ac_optarg ;;
1202 -without-* |
--without-*)
1203 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1206 as_fn_error $?
"invalid package name: $ac_useropt"
1207 ac_useropt_orig
=$ac_useropt
1208 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1213 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep
=', ';;
1216 eval with_
$ac_useropt=no
;;
1219 # Obsolete; use --with-x.
1222 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1223 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1224 ac_prev
=x_includes
;;
1225 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1226 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1227 x_includes
=$ac_optarg ;;
1229 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1230 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1231 ac_prev
=x_libraries
;;
1232 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1233 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1234 x_libraries
=$ac_optarg ;;
1236 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1241 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1245 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1247 eval $ac_envvar=\
$ac_optarg
1248 export $ac_envvar ;;
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 if test -n "$ac_prev"; then
1262 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1263 as_fn_error $?
"missing argument to $ac_option"
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1269 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 # Check all directory arguments for consistency.
1275 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val
=\$
$ac_var
1281 # Remove trailing slashes.
1284 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\
$ac_val;;
1287 # Be sure to have absolute directory names.
1289 [\\/$
]* | ?
:[\\/]* ) continue;;
1290 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1292 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1300 target
=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x
; then
1304 if test "x$build_alias" = x
; then
1305 cross_compiling
=maybe
1306 elif test "x$build_alias" != "x$host_alias"; then
1312 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1314 test "$silent" = yes && exec 6>/dev
/null
1317 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di
=`ls -di .` &&
1319 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error $?
"working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error $?
"pwd does not report name of working directory"
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted
=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir
=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1357 ac_srcdir_defaulted
=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1361 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1363 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1375 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 for ac_var
in $ac_precious_vars; do
1378 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1380 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1391 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking ...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1454 --build=BUILD configure
for building on BUILD
[guessed
]
1455 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1456 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1467 --disable-option-checking ignore unrecognized
--enable/--with options
1468 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1469 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1470 --enable-version-specific-runtime-libs
1471 Specify that runtime libraries should be installed
1472 in a compiler-specific directory
[default
=no
]
1473 --enable-generated-files-in-srcdir
1474 put copies of generated files
in source dir intended
1475 for creating
source tarballs
for users without
1476 texinfo bison or flex.
[default
=no
]
1477 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1478 --disable-silent-rules verbose build output
(undo
: "make V=0")
1479 --enable-multilib build many library versions
(default
)
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1485 --enable-static[=PKGS
] build static libraries
[default
=yes]
1486 --enable-fast-install[=PKGS
]
1487 optimize
for fast installation
[default
=yes]
1488 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful
(and
1491 sometimes confusing
) to the casual installer
1492 --enable-linux-futex use the Linux futex system call
[default
=default
]
1493 --enable-tls Use thread-local storage
[default
=yes]
1494 --enable-symvers=STYLE enables symbol versioning of the shared library
1496 --enable-cet enable Intel CET
in target libraries
[default
=no
]
1499 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1500 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1501 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1503 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1504 --with-cuda-driver=PATH specify prefix directory
for installed CUDA driver
1505 package. Equivalent to
1506 --with-cuda-driver-include=PATH
/include plus
1507 --with-cuda-driver-lib=PATH
/lib
1508 --with-cuda-driver-include=PATH
1509 specify directory
for installed CUDA driver include
1511 --with-cuda-driver-lib=PATH
1512 specify directory
for the installed CUDA driver
1514 --with-hsa-runtime=PATH specify prefix directory
for installed HSA run-time
1515 package. Equivalent to
1516 --with-hsa-runtime-include=PATH
/include plus
1517 --with-hsa-runtime-lib=PATH
/lib
1518 --with-hsa-runtime-include=PATH
1519 specify directory
for installed HSA run-time include
1521 --with-hsa-runtime-lib=PATH
1522 specify directory
for the installed HSA run-time
1524 --with-gcc-major-version-only
1525 use only GCC major number
in filesystem paths
1527 Some influential environment variables
:
1528 CC C compiler
command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1531 nonstandard directory
<lib dir
>
1532 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1533 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1534 you have headers
in a nonstandard directory
<include dir
>
1536 FC Fortran compiler
command
1537 FCFLAGS Fortran compiler flags
1539 Use these variables to override the choices made by
`configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1542 Report bugs to the package provider.
1543 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1544 General help using GNU software: <http://www.gnu.org/gethelp/>.
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1574 .) # We are building in place.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1607 GNU Offloading and Multi Processing Runtime Library configure 1.0
1608 generated by GNU Autoconf 2.69
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1631 *) ac_try_echo
=$ac_try;;
1633 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1637 if test -s conftest.err
; then
1638 grep -v '^ *+' conftest.err
>conftest.er1
1639 cat conftest.er1
>&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.
$ac_objext; then :
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.
$ac_ext >&5
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status
$ac_retval
1657 } # ac_fn_c_try_compile
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1665 rm -f conftest.
$ac_objext conftest
$ac_exeext
1666 if { { ac_try
="$ac_link"
1668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest$ac_exeext
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_c_try_link
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1722 if ac_fn_c_try_compile "$LINENO"; then :
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 } # ac_fn_c_check_header_compile
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1745 *) ac_try_echo
=$ac_try;;
1747 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 if test -s conftest.err
; then
1752 grep -v '^ *+' conftest.err
>conftest.er1
1753 cat conftest.er1
>&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i
&& {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.
$ac_ext >&5
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status
$ac_retval
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1779 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1780 if { { ac_try
="$ac_link"
1782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1793 *) ac_try_echo
=$ac_try;;
1795 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.
$ac_ext >&5
1807 ac_retval
=$ac_status
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status
$ac_retval
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func
()
1820 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \
${$3+:} false
; then :
1824 $as_echo_n "(cached) " >&6
1826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1838 # include <limits.h>
1840 # include <assert.h>
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1867 if ac_fn_c_try_link
"$LINENO"; then :
1872 rm -f core conftest.err conftest.
$ac_objext \
1873 conftest
$ac_exeext conftest.
$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_func
1882 # ac_fn_fc_try_compile LINENO
1883 # ---------------------------
1884 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_fc_try_compile
()
1887 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1888 rm -f conftest.
$ac_objext
1889 if { { ac_try
="$ac_compile"
1891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_compile") 2>conftest.err
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_fc_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest.$ac_objext; then :
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_fc_try_compile
1920 # ac_fn_fc_try_link LINENO
1921 # ------------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_fc_try_link ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1930 *) ac_try_echo
=$ac_try;;
1932 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1936 if test -s conftest.err
; then
1937 grep -v '^ *+' conftest.err
>conftest.er1
1938 cat conftest.er1
>&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_fc_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest
$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 test -x conftest
$ac_exeext
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.
$ac_ext >&5
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status
$ac_retval
1964 } # ac_fn_fc_try_link
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1971 ac_fn_c_check_header_mongrel
()
1973 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1974 if eval \
${$3+:} false
; then :
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \
${$3+:} false
; then :
1978 $as_echo_n "(cached) " >&6
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1984 # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1992 if ac_fn_c_try_compile
"$LINENO"; then :
1993 ac_header_compiler
=yes
1995 ac_header_compiler
=no
1997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 if ac_fn_c_try_cpp
"$LINENO"; then :
2009 ac_header_preproc
=yes
2011 ac_header_preproc
=no
2013 rm -f conftest.err conftest.i conftest.
$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2017 # So? What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \
${$3+:} false
; then :
2041 $as_echo_n "(cached) " >&6
2043 eval "$3=\$ac_header_compiler"
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 } # ac_fn_c_check_header_mongrel
2053 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2054 # -------------------------------------------
2055 # Tests whether TYPE exists after having included INCLUDES, setting cache
2056 # variable VAR accordingly.
2057 ac_fn_c_check_type
()
2059 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \
${$3+:} false
; then :
2063 $as_echo_n "(cached) " >&6
2066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2078 if ac_fn_c_try_compile
"$LINENO"; then :
2079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2091 if ac_fn_c_try_compile
"$LINENO"; then :
2096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_type
2107 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2108 # --------------------------------------------
2109 # Tries to find the compile-time value of EXPR in a program that includes
2110 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2112 ac_fn_c_compute_int
()
2114 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2115 if test "$cross_compiling" = yes; then
2116 # Depending upon the size, compute the lo and hi bounds.
2117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2123 static int test_array [1 - 2 * !(($2) >= 0)];
2125 return test_array [0];
2131 if ac_fn_c_try_compile
"$LINENO"; then :
2134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142 return test_array [0];
2148 if ac_fn_c_try_compile
"$LINENO"; then :
2149 ac_hi
=$ac_mid; break
2151 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2152 if test $ac_lo -le $ac_mid; then
2156 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2167 static int test_array [1 - 2 * !(($2) < 0)];
2169 return test_array [0];
2175 if ac_fn_c_try_compile
"$LINENO"; then :
2178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2184 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2186 return test_array [0];
2192 if ac_fn_c_try_compile
"$LINENO"; then :
2193 ac_lo
=$ac_mid; break
2195 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2196 if test $ac_mid -le $ac_hi; then
2200 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2210 # Binary search between lo and hi bounds.
2211 while test "x$ac_lo" != "x$ac_hi"; do
2212 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2219 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221 return test_array [0];
2227 if ac_fn_c_try_compile
"$LINENO"; then :
2230 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2235 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2242 static long int longval () { return $2; }
2243 static unsigned long int ulongval () { return $2; }
2250 FILE *f = fopen ("conftest.val", "w");
2255 long int i = longval ();
2258 fprintf (f, "%ld", i);
2262 unsigned long int i = ulongval ();
2265 fprintf (f, "%lu", i);
2267 /* Do not output a trailing newline, as this causes \r\n confusion
2268 on some platforms. */
2269 return ferror (f) || fclose (f) != 0;
2275 if ac_fn_c_try_run
"$LINENO"; then :
2276 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 as_fn_set_status
$ac_retval
2288 } # ac_fn_c_compute_int
2289 cat >config.log
<<_ACEOF
2290 This file contains any messages produced by compilers while
2291 running configure, to aid debugging if configure makes a mistake.
2293 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2294 generated by GNU Autoconf 2.69. Invocation command line was
2306 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2307 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2308 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2309 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2310 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2312 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2313 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2315 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2316 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2317 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2318 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2319 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2320 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2321 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir
=.
2330 $as_echo "PATH: $as_dir"
2346 # Keep a trace of the command line.
2347 # Strip out --no-create and --no-recursion so they do not pile up.
2348 # Strip out --silent because we don't want to record it for future runs.
2349 # Also quote any args containing shell meta-characters.
2350 # Make two passes to allow for proper duplicate-argument suppression.
2354 ac_must_keep_next
=false
2360 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2361 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2362 |
-silent |
--silent |
--silen |
--sile |
--sil)
2365 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2368 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2370 as_fn_append ac_configure_args1
" '$ac_arg'"
2371 if test $ac_must_keep_next = true
; then
2372 ac_must_keep_next
=false
# Got value, back to normal.
2375 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2376 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2377 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2378 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2379 case "$ac_configure_args0 " in
2380 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2383 -* ) ac_must_keep_next
=true
;;
2386 as_fn_append ac_configure_args
" '$ac_arg'"
2391 { ac_configure_args0
=; unset ac_configure_args0
;}
2392 { ac_configure_args1
=; unset ac_configure_args1
;}
2394 # When interrupted or exit'd, cleanup temporary files, and complete
2395 # config.log. We remove comments because anyway the quotes in there
2396 # would cause problems or look ugly.
2397 # WARNING: Use '\'' to represent an apostrophe within the trap.
2398 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2399 trap 'exit_status=$?
2400 # Save into config.log some information that might help in debugging.
2404 $as_echo "## ---------------- ##
2405 ## Cache variables. ##
2406 ## ---------------- ##"
2408 # The following way of writing the cache mishandles newlines in values,
2410 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2411 eval ac_val=\$$ac_var
2415 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2416 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2419 _ | IFS | as_nl) ;; #(
2420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2421 *) { eval $ac_var=; unset $ac_var;} ;;
2426 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2427 *${as_nl}ac_space=\ *)
2429 "s/'\''/'\''\\\\'\'''\''/g;
2430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2433 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2440 $as_echo "## ----------------- ##
2441 ## Output variables. ##
2442 ## ----------------- ##"
2444 for ac_var in $ac_subst_vars
2446 eval ac_val=\$$ac_var
2448 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450 $as_echo "$ac_var='\''$ac_val'\''"
2454 if test -n "$ac_subst_files"; then
2455 $as_echo "## ------------------- ##
2456 ## File substitutions. ##
2457 ## ------------------- ##"
2459 for ac_var
in $ac_subst_files
2461 eval ac_val
=\$
$ac_var
2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 $as_echo "$ac_var='\''$ac_val'\''"
2470 if test -s confdefs.h; then
2471 $as_echo "## ----------- ##
2478 test "$ac_signal" != 0 &&
2479 $as_echo "$as_me: caught signal $ac_signal"
2480 $as_echo "$as_me: exit $exit_status"
2482 rm -f core *.core core.conftest.* &&
2483 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2486 for ac_signal
in 1 2 13 15; do
2487 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2492 rm -f -r conftest
* confdefs.h
2494 $as_echo "/* confdefs.h */" > confdefs.h
2496 # Predefined preprocessor variables.
2498 cat >>confdefs.h
<<_ACEOF
2499 #define PACKAGE_NAME "$PACKAGE_NAME"
2502 cat >>confdefs.h
<<_ACEOF
2503 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2506 cat >>confdefs.h
<<_ACEOF
2507 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2510 cat >>confdefs.h
<<_ACEOF
2511 #define PACKAGE_STRING "$PACKAGE_STRING"
2514 cat >>confdefs.h
<<_ACEOF
2515 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2518 cat >>confdefs.h
<<_ACEOF
2519 #define PACKAGE_URL "$PACKAGE_URL"
2523 # Let the site file select an alternate cache file if it wants to.
2524 # Prefer an explicitly selected file to automatically selected ones.
2527 if test -n "$CONFIG_SITE"; then
2528 # We do not want a PATH search for config.site.
2529 case $CONFIG_SITE in #((
2530 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2531 */*) ac_site_file1
=$CONFIG_SITE;;
2532 *) ac_site_file1
=.
/$CONFIG_SITE;;
2534 elif test "x$prefix" != xNONE
; then
2535 ac_site_file1
=$prefix/share
/config.site
2536 ac_site_file2
=$prefix/etc
/config.site
2538 ac_site_file1
=$ac_default_prefix/share
/config.site
2539 ac_site_file2
=$ac_default_prefix/etc
/config.site
2541 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2543 test "x$ac_site_file" = xNONE
&& continue
2544 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2546 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2547 sed 's/^/| /' "$ac_site_file" >&5
2549 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 as_fn_error $?
"failed to load site script $ac_site_file
2552 See \`config.log' for more details" "$LINENO" 5; }
2556 if test -r "$cache_file"; then
2557 # Some versions of bash will fail to source /dev/null (special files
2558 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2559 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2561 $as_echo "$as_me: loading cache $cache_file" >&6;}
2563 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2564 *) .
"./$cache_file";;
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2569 $as_echo "$as_me: creating cache $cache_file" >&6;}
2573 as_fn_append ac_header_list
" unistd.h"
2574 as_fn_append ac_func_list
" secure_getenv"
2575 as_fn_append ac_func_list
" __secure_getenv"
2576 as_fn_append ac_func_list
" getuid"
2577 as_fn_append ac_func_list
" geteuid"
2578 as_fn_append ac_func_list
" getgid"
2579 as_fn_append ac_func_list
" getegid"
2580 # Check that the precious variables saved in the cache have kept the same
2582 ac_cache_corrupted
=false
2583 for ac_var
in $ac_precious_vars; do
2584 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2585 eval ac_new_set
=\
$ac_env_${ac_var}_set
2586 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2587 eval ac_new_val
=\
$ac_env_${ac_var}_value
2588 case $ac_old_set,$ac_new_set in
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2591 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2592 ac_cache_corrupted
=: ;;
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2595 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2596 ac_cache_corrupted
=: ;;
2599 if test "x$ac_old_val" != "x$ac_new_val"; then
2600 # differences in whitespace do not lead to failure.
2601 ac_old_val_w
=`echo x $ac_old_val`
2602 ac_new_val_w
=`echo x $ac_new_val`
2603 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2605 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2606 ac_cache_corrupted
=:
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2609 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2610 eval $ac_var=\
$ac_old_val
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2613 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2615 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2618 # Pass precious variables to config.status.
2619 if test "$ac_new_set" = set; then
2621 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2622 *) ac_arg
=$ac_var=$ac_new_val ;;
2624 case " $ac_configure_args " in
2625 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2626 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2630 if $ac_cache_corrupted; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2634 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2635 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2637 ## -------------------- ##
2638 ## Main body of script. ##
2639 ## -------------------- ##
2642 ac_cpp
='$CPP $CPPFLAGS'
2643 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2651 ac_config_headers
="$ac_config_headers config.h"
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2659 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2660 # Check whether --enable-version-specific-runtime-libs was given.
2661 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2662 enableval
=$enable_version_specific_runtime_libs;
2663 case "$enableval" in
2665 *) as_fn_error $?
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2669 enable_version_specific_runtime_libs
=no
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2674 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2676 # We would like our source tree to be readonly. However when releases or
2677 # pre-releases are generated, the flex/bison generated files as well as the
2678 # various formats of manuals need to be included along with the rest of the
2679 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2682 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2683 # Check whether --enable-generated-files-in-srcdir was given.
2684 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2685 enableval
=$enable_generated_files_in_srcdir;
2686 case "$enableval" in
2688 *) as_fn_error $?
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2692 enable_generated_files_in_srcdir
=no
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2697 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2698 if test "$enable_generated_files_in_srcdir" = yes; then
2711 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2713 # You will slowly go insane if you do not grok the following fact: when
2714 # building this library, the top-level /target/ becomes the library's /host/.
2716 # configure then causes --target to default to --host, exactly like any
2717 # other package using autoconf. Therefore, 'target' and 'host' will
2718 # always be the same. This makes sense both for native and cross compilers
2719 # just think about it for a little while. :-)
2721 # Also, if this library is being configured as part of a cross compiler, the
2722 # top-level configure script will pass the "real" host as $with_cross_host.
2724 # Do not delete or change the following two lines. For why, see
2725 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2727 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2728 if test -f "$ac_dir/install-sh"; then
2730 ac_install_sh
="$ac_aux_dir/install-sh -c"
2732 elif test -f "$ac_dir/install.sh"; then
2734 ac_install_sh
="$ac_aux_dir/install.sh -c"
2736 elif test -f "$ac_dir/shtool"; then
2738 ac_install_sh
="$ac_aux_dir/shtool install -c"
2742 if test -z "$ac_aux_dir"; then
2743 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2746 # These three variables are undocumented and unsupported,
2747 # and are intended to be withdrawn in a future Autoconf release.
2748 # They can cause serious problems if a builder's source tree is in a directory
2749 # whose full name contains unusual characters.
2750 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2751 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2752 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2755 # Make sure we can run config.sub.
2756 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2757 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2760 $as_echo_n "checking build system type... " >&6; }
2761 if ${ac_cv_build+:} false
; then :
2762 $as_echo_n "(cached) " >&6
2764 ac_build_alias
=$build_alias
2765 test "x$ac_build_alias" = x
&&
2766 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2767 test "x$ac_build_alias" = x
&&
2768 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2769 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2770 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2774 $as_echo "$ac_cv_build" >&6; }
2775 case $ac_cv_build in
2777 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2780 ac_save_IFS
=$IFS; IFS
='-'
2786 # Remember, the first character of IFS is used to create $*,
2787 # except with old shells:
2790 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2794 $as_echo_n "checking host system type... " >&6; }
2795 if ${ac_cv_host+:} false
; then :
2796 $as_echo_n "(cached) " >&6
2798 if test "x$host_alias" = x
; then
2799 ac_cv_host
=$ac_cv_build
2801 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2802 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2807 $as_echo "$ac_cv_host" >&6; }
2810 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2813 ac_save_IFS
=$IFS; IFS
='-'
2819 # Remember, the first character of IFS is used to create $*,
2820 # except with old shells:
2823 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2827 $as_echo_n "checking target system type... " >&6; }
2828 if ${ac_cv_target+:} false
; then :
2829 $as_echo_n "(cached) " >&6
2831 if test "x$target_alias" = x
; then
2832 ac_cv_target
=$ac_cv_host
2834 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2835 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2840 $as_echo "$ac_cv_target" >&6; }
2841 case $ac_cv_target in
2843 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2845 target
=$ac_cv_target
2846 ac_save_IFS
=$IFS; IFS
='-'
2852 # Remember, the first character of IFS is used to create $*,
2853 # except with old shells:
2856 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2859 # The aliases save the names the user supplied, while $host etc.
2860 # will get canonicalized.
2861 test -n "$target_alias" &&
2862 test "$program_prefix$program_suffix$program_transform_name" = \
2864 program_prefix
=${target_alias}-
2866 target_alias
=${target_alias-$host_alias}
2868 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2869 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2870 # 1.9.0: minimum required version
2871 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2872 # of other PACKAGE_* variables will, however, and there's nothing
2873 # we can do about that; they come from AC_INIT).
2874 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2875 # file in the top srcdir, etc, etc), so stop complaining.
2876 # no-dist: we don't want 'dist' and related rules.
2877 # -Wall: turns on all automake warnings...
2878 # -Wno-portability: ...except this one, since GNU make is required.
2879 # -Wno-override: ... and this one, since we do want this in testsuite.
2880 am__api_version
='1.15'
2882 # Find a good install program. We prefer a C program (faster),
2883 # so one script is as good as another. But avoid the broken or
2884 # incompatible versions:
2885 # SysV /etc/install, /usr/sbin/install
2886 # SunOS /usr/etc/install
2887 # IRIX /sbin/install
2889 # AmigaOS /C/install, which installs bootblocks on floppy discs
2890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2893 # OS/2's system install, which has a completely different semantic
2894 # ./install, which can be erroneously created by make from ./install.sh.
2895 # Reject install programs that cannot install multiple files.
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2897 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2898 if test -z "$INSTALL"; then
2899 if ${ac_cv_path_install+:} false
; then :
2900 $as_echo_n "(cached) " >&6
2902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir
=.
2907 # Account for people who put trailing slashes in PATH elements.
2908 case $as_dir/ in #((
2909 .
/ | .
// |
/[cC
]/* | \
2910 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2911 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2914 # OSF1 and SCO ODT 3.0 have their own names for install.
2915 # Don't use installbsd from OSF since it installs stuff as root
2917 for ac_prog
in ginstall scoinst
install; do
2918 for ac_exec_ext
in '' $ac_executable_extensions; do
2919 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2920 if test $ac_prog = install &&
2921 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2922 # AIX install. It has an incompatible calling convention.
2924 elif test $ac_prog = install &&
2925 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2926 # program-specific install script used by HP pwplus--don't use.
2929 rm -rf conftest.one conftest.two conftest.dir
2930 echo one
> conftest.one
2931 echo two
> conftest.two
2933 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2934 test -s conftest.one
&& test -s conftest.two
&&
2935 test -s conftest.dir
/conftest.one
&&
2936 test -s conftest.dir
/conftest.two
2938 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2951 rm -rf conftest.one conftest.two conftest.dir
2954 if test "${ac_cv_path_install+set}" = set; then
2955 INSTALL
=$ac_cv_path_install
2957 # As a last resort, use the slow shell script. Don't cache a
2958 # value for INSTALL within a source directory, because that will
2959 # break other packages using the cache if that directory is
2960 # removed, or if the value is a relative name.
2961 INSTALL
=$ac_install_sh
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2965 $as_echo "$INSTALL" >&6; }
2967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968 # It thinks the first close brace ends the variable substitution.
2969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2973 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2976 $as_echo_n "checking whether build environment is sane... " >&6; }
2977 # Reject unsafe characters in $srcdir or the absolute working directory
2978 # name. Accept space and tab only in the latter.
2982 *[\\\"\
#\$\&\'\`$am_lf]*)
2983 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2986 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2987 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2990 # Do 'set' in a subshell so we don't clobber the current shell's
2991 # arguments. Must try -L first in case configure is actually a
2992 # symlink; some systems play weird games with the mod time of symlinks
2993 # (eg FreeBSD returns the mod time of the symlink's containing
2997 for am_try
in 1 2; do
2998 echo "timestamp, slept: $am_has_slept" > conftest.
file
2999 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3000 if test "$*" = "X"; then
3002 set X
`ls -t "$srcdir/configure" conftest.file`
3004 if test "$*" != "X $srcdir/configure conftest.file" \
3005 && test "$*" != "X conftest.file $srcdir/configure"; then
3007 # If neither matched, then we have a broken ls. This can happen
3008 # if, for instance, CONFIG_SHELL is bash and it inherits a
3009 # broken ls alias from the environment. This has actually
3010 # happened. Such a system could not be considered "sane".
3011 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3012 alias in your environment" "$LINENO" 5
3014 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3021 test "$2" = conftest.
file
3027 as_fn_error $?
"newly created file is older than distributed files!
3028 Check your system clock" "$LINENO" 5
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3031 $as_echo "yes" >&6; }
3032 # If we didn't sleep, we still need to ensure time stamps of config.status and
3033 # generated files are strictly newer.
3035 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3042 test "$program_prefix" != NONE
&&
3043 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3044 # Use a double $ so make ignores it.
3045 test "$program_suffix" != NONE
&&
3046 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3047 # Double any \ or $.
3048 # By default was `s,x,x', remove it if useless.
3049 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3050 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3052 # Expand $ac_aux_dir to an absolute path.
3053 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3055 if test x
"${MISSING+set}" != xset
; then
3058 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3060 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3063 # Use eval to expand $SHELL
3064 if eval "$MISSING --is-lightweight"; then
3065 am_missing_run
="$MISSING "
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3069 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3072 if test x
"${install_sh+set}" != xset
; then
3075 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3077 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3081 # Installed binaries are usually stripped using 'strip' when the user
3082 # run "make install-strip". However 'strip' might not be the right
3083 # tool to use in cross-compilation environments, therefore Automake
3084 # will honor the 'STRIP' environment variable to overrule this program.
3085 if test "$cross_compiling" != no
; then
3086 if test -n "$ac_tool_prefix"; then
3087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3088 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_STRIP+:} false
; then :
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$STRIP"; then
3095 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir
=.
3102 for ac_exec_ext
in '' $ac_executable_extensions; do
3103 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 STRIP
=$ac_cv_prog_STRIP
3115 if test -n "$STRIP"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3117 $as_echo "$STRIP" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3125 if test -z "$ac_cv_prog_STRIP"; then
3127 # Extract the first word of "strip", so it can be a program name with args.
3128 set dummy strip
; ac_word
=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3132 $as_echo_n "(cached) " >&6
3134 if test -n "$ac_ct_STRIP"; then
3135 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3141 test -z "$as_dir" && as_dir
=.
3142 for ac_exec_ext
in '' $ac_executable_extensions; do
3143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_ac_ct_STRIP
="strip"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3155 if test -n "$ac_ct_STRIP"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3157 $as_echo "$ac_ct_STRIP" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3163 if test "x$ac_ct_STRIP" = x
; then
3166 case $cross_compiling:$ac_tool_warned in
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned
=yes ;;
3175 STRIP
="$ac_cv_prog_STRIP"
3179 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3182 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3183 if test -z "$MKDIR_P"; then
3184 if ${ac_cv_path_mkdir+:} false
; then :
3185 $as_echo_n "(cached) " >&6
3187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3188 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3191 test -z "$as_dir" && as_dir
=.
3192 for ac_prog
in mkdir gmkdir
; do
3193 for ac_exec_ext
in '' $ac_executable_extensions; do
3194 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3195 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3196 'mkdir (GNU coreutils) '* | \
3197 'mkdir (coreutils) '* | \
3198 'mkdir (fileutils) '4.1*)
3199 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3209 test -d .
/--version && rmdir .
/--version
3210 if test "${ac_cv_path_mkdir+set}" = set; then
3211 MKDIR_P
="$ac_cv_path_mkdir -p"
3213 # As a last resort, use the slow shell script. Don't cache a
3214 # value for MKDIR_P within a source directory, because that will
3215 # break other packages using the cache if that directory is
3216 # removed, or if the value is a relative name.
3217 MKDIR_P
="$ac_install_sh -d"
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3221 $as_echo "$MKDIR_P" >&6; }
3223 for ac_prog
in gawk mawk nawk
awk
3225 # Extract the first word of "$ac_prog", so it can be a program name with args.
3226 set dummy
$ac_prog; ac_word
=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if ${ac_cv_prog_AWK+:} false
; then :
3230 $as_echo_n "(cached) " >&6
3232 if test -n "$AWK"; then
3233 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir
=.
3240 for ac_exec_ext
in '' $ac_executable_extensions; do
3241 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_AWK
="$ac_prog"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 if test -n "$AWK"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3255 $as_echo "$AWK" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3262 test -n "$AWK" && break
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3266 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3268 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3269 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3270 $as_echo_n "(cached) " >&6
3272 cat >conftest.
make <<\_ACEOF
3275 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3277 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3278 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3280 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3282 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3286 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 SET_MAKE
="MAKE=${MAKE-make}"
3296 rm -rf .tst
2>/dev
/null
3297 mkdir .tst
2>/dev
/null
3298 if test -d .tst
; then
3303 rmdir .tst
2>/dev
/null
3305 # Check whether --enable-silent-rules was given.
3306 if test "${enable_silent_rules+set}" = set; then :
3307 enableval
=$enable_silent_rules;
3310 case $enable_silent_rules in # (((
3311 yes) AM_DEFAULT_VERBOSITY
=0;;
3312 no
) AM_DEFAULT_VERBOSITY
=1;;
3313 *) AM_DEFAULT_VERBOSITY
=1;;
3315 am_make
=${MAKE-make}
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3317 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3318 if ${am_cv_make_support_nested_variables+:} false
; then :
3319 $as_echo_n "(cached) " >&6
3321 if $as_echo 'TRUE=$(BAR$(V))
3327 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3328 am_cv_make_support_nested_variables
=yes
3330 am_cv_make_support_nested_variables
=no
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3334 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3335 if test $am_cv_make_support_nested_variables = yes; then
3337 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3339 AM_V
=$AM_DEFAULT_VERBOSITY
3340 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3344 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3345 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3346 # is not polluted with repeated "-I."
3347 am__isrc
=' -I$(srcdir)'
3348 # test to see if srcdir already configured
3349 if test -f $srcdir/config.status
; then
3350 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3354 # test whether we have cygpath
3355 if test -z "$CYGPATH_W"; then
3356 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3357 CYGPATH_W
='cygpath -w'
3364 # Define the identity of the package.
3369 cat >>confdefs.h
<<_ACEOF
3370 #define PACKAGE "$PACKAGE"
3374 cat >>confdefs.h
<<_ACEOF
3375 #define VERSION "$VERSION"
3378 # Some tools Automake needs.
3380 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3383 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3386 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3389 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3392 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3394 # For better backward compatibility. To be removed once Automake 1.9.x
3395 # dies out for good. For more background, see:
3396 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3397 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3398 mkdir_p
='$(MKDIR_P)'
3400 # We need awk for the "check" target (and possibly the TAP driver). The
3401 # system "awk" is bad on some platforms.
3402 # Always define AMTAR for backward compatibility. Yes, it's still used
3403 # in the wild :-( We should find a proper way to deprecate it ...
3407 # We'll loop over all known methods to create a tar archive until one works.
3408 _am_tools
='gnutar pax cpio none'
3410 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3417 # POSIX will say in a future version that running "rm -f" with no argument
3418 # is OK; and we want to be able to make that assumption in our Makefile
3419 # recipes. So use an aggressive probe to check that the usage we want is
3420 # actually supported "in the wild" to an acceptable degree.
3421 # See automake bug#10828.
3422 # To make any issue more visible, cause the running configure to be aborted
3423 # by default if the 'rm' program in use doesn't match our expectations; the
3424 # user can still override this though.
3425 if rm -f && rm -fr && rm -rf; then : OK
; else
3429 Your 'rm' program seems unable to run without file operands specified
3430 on the command line, even when the '-f' option is present. This is contrary
3431 to the behaviour of most rm programs out there, and not conforming with
3432 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3434 Please tell bug-automake@gnu.org about your system, including the value
3435 of your $PATH and any error possibly output before this message. This
3436 can help us improve future automake versions.
3439 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3440 echo 'Configuration will proceed anyway, since you have set the' >&2
3441 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3445 Aborting the configuration process, to ensure you take notice of the issue.
3447 You can download and install GNU coreutils to get an 'rm' implementation
3448 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3450 If you want to complete the configuration process using your problematic
3451 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3452 to "yes", and re-run configure.
3455 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3459 # Default to --enable-multilib
3460 # Check whether --enable-multilib was given.
3461 if test "${enable_multilib+set}" = set; then :
3462 enableval
=$enable_multilib; case "$enableval" in
3463 yes) multilib
=yes ;;
3465 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3472 # We may get other options which we leave undocumented:
3473 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3474 # See config-ml.in if you want the gory details.
3476 if test "$srcdir" = "."; then
3477 if test "$with_target_subdir" != "."; then
3478 multi_basedir
="$srcdir/$with_multisrctop../.."
3480 multi_basedir
="$srcdir/$with_multisrctop.."
3483 multi_basedir
="$srcdir/.."
3487 # Even if the default multilib is not a cross compilation,
3488 # it may be that some of the other multilibs are.
3489 if test $cross_compiling = no
&& test $multilib = yes \
3490 && test "x${with_multisubdir}" != x
; then
3491 cross_compiling
=maybe
3494 ac_config_commands
="$ac_config_commands default-1"
3497 # Calculate toolexeclibdir
3498 # Also toolexecdir, though it's only used in toolexeclibdir
3499 case ${enable_version_specific_runtime_libs} in
3501 # Need the gcc compiler version to know where to install libraries
3502 # and header files if --enable-version-specific-runtime-libs option
3504 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3505 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3508 if test -n "$with_cross_host" &&
3509 test x
"$with_cross_host" != x
"no"; then
3510 # Install a library built with a cross compiler in tooldir, not libdir.
3511 toolexecdir
='$(exec_prefix)/$(target_alias)'
3512 toolexeclibdir
='$(toolexecdir)/lib'
3514 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3515 toolexeclibdir
='$(libdir)'
3517 multi_os_directory
=`$CC -print-multi-os-directory`
3518 case $multi_os_directory in
3519 .
) ;; # Avoid trailing /.
3520 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3527 # Check the compiler.
3528 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3529 # We must force CC to /not/ be precious variables; otherwise
3530 # the wrong, non-multilib-adjusted value will be used in multilibs.
3531 # As a side effect, we have to subst CFLAGS ourselves.
3536 ac_cpp
='$CPP $CPPFLAGS'
3537 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3542 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_CC+:} false
; then :
3546 $as_echo_n "(cached) " >&6
3548 if test -n "$CC"; then
3549 ac_cv_prog_CC
="$CC" # Let the user override the test.
3551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir
=.
3556 for ac_exec_ext
in '' $ac_executable_extensions; do
3557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 if test -n "$CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 $as_echo "$CC" >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3579 if test -z "$ac_cv_prog_CC"; then
3581 # Extract the first word of "gcc", so it can be a program name with args.
3582 set dummy gcc
; ac_word
=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3586 $as_echo_n "(cached) " >&6
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir
=.
3596 for ac_exec_ext
in '' $ac_executable_extensions; do
3597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_CC
="gcc"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3609 if test -n "$ac_ct_CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3611 $as_echo "$ac_ct_CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3617 if test "x$ac_ct_CC" = x
; then
3620 case $cross_compiling:$ac_tool_warned in
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3624 ac_tool_warned
=yes ;;
3632 if test -z "$CC"; then
3633 if test -n "$ac_tool_prefix"; then
3634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3635 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if ${ac_cv_prog_CC+:} false
; then :
3639 $as_echo_n "(cached) " >&6
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC
="$CC" # Let the user override the test.
3644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir
=.
3649 for ac_exec_ext
in '' $ac_executable_extensions; do
3650 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3651 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 if test -n "$CC"; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3664 $as_echo "$CC" >&6; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3673 if test -z "$CC"; then
3674 # Extract the first word of "cc", so it can be a program name with args.
3675 set dummy cc
; ac_word
=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_CC+:} false
; then :
3679 $as_echo_n "(cached) " >&6
3681 if test -n "$CC"; then
3682 ac_cv_prog_CC
="$CC" # Let the user override the test.
3685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir
=.
3690 for ac_exec_ext
in '' $ac_executable_extensions; do
3691 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3693 ac_prog_rejected
=yes
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 if test $ac_prog_rejected = yes; then
3705 # We found a bogon in the path, so make sure we never use it.
3706 set dummy
$ac_cv_prog_CC
3708 if test $# != 0; then
3709 # We chose a different compiler from the bogus one.
3710 # However, it has the same basename, so the bogon will be chosen
3711 # first if we set CC to just the basename; use the full file name.
3713 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3729 if test -z "$CC"; then
3730 if test -n "$ac_tool_prefix"; then
3731 for ac_prog
in cl.exe
3733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3734 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if ${ac_cv_prog_CC+:} false
; then :
3738 $as_echo_n "(cached) " >&6
3740 if test -n "$CC"; then
3741 ac_cv_prog_CC
="$CC" # Let the user override the test.
3743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir
=.
3748 for ac_exec_ext
in '' $ac_executable_extensions; do
3749 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 if test -n "$CC"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3763 $as_echo "$CC" >&6; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3770 test -n "$CC" && break
3773 if test -z "$CC"; then
3775 for ac_prog
in cl.exe
3777 # Extract the first word of "$ac_prog", so it can be a program name with args.
3778 set dummy
$ac_prog; ac_word
=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3782 $as_echo_n "(cached) " >&6
3784 if test -n "$ac_ct_CC"; then
3785 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3791 test -z "$as_dir" && as_dir
=.
3792 for ac_exec_ext
in '' $ac_executable_extensions; do
3793 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_ac_ct_CC
="$ac_prog"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3805 if test -n "$ac_ct_CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3807 $as_echo "$ac_ct_CC" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3814 test -n "$ac_ct_CC" && break
3817 if test "x$ac_ct_CC" = x
; then
3820 case $cross_compiling:$ac_tool_warned in
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3824 ac_tool_warned
=yes ;;
3833 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $?
"no acceptable C compiler found in \$PATH
3836 See \`config.log' for more details" "$LINENO" 5; }
3838 # Provide some information about the compiler.
3839 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3842 for ac_option
in --version -v -V -qversion; do
3843 { { ac_try
="$ac_compiler $ac_option >&5"
3845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3852 if test -s conftest.err; then
3854 ... rest of stderr output deleted ...
3855 10q' conftest.err >conftest.er1
3856 cat conftest.er1 >&5
3858 rm -f conftest.er1 conftest.err
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3874 ac_clean_files_save=$ac_clean_files
3875 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3876 # Try to create an executable without -o first, disregard a.out.
3877 # It will help us diagnose broken compilers, and finding out an intuition
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3880 $as_echo_n "checking whether the C compiler works... " >&6; }
3881 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3883 # The possible output files:
3884 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3887 for ac_file in $ac_files
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3896 if { { ac_try="$ac_link_default"
3898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3899 *) ac_try_echo
=$ac_try;;
3901 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 $as_echo "$ac_try_echo"; } >&5
3903 (eval "$ac_link_default") 2>&5
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }; then :
3907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3909 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3910 # so that the user can short-circuit this test for compilers unknown to
3912 for ac_file
in $ac_files ''
3914 test -f "$ac_file" ||
continue
3916 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3919 # We found the default executable, but exeext='' is most
3923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3925 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3927 # We set ac_cv_exeext here because the later test for it is not
3928 # safe: cross compilers may not add the suffix if given an `-o'
3929 # argument, so we may need to know it at that point already.
3930 # Even if this section looks crufty: it has the advantage of
3937 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3942 if test -z "$ac_file"; then :
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 $as_echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.
$ac_ext >&5
3948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error
77 "C compiler cannot create executables
3951 See \`config.log' for more details" "$LINENO" 5; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3957 $as_echo_n "checking for C compiler default output file name... " >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3959 $as_echo "$ac_file" >&6; }
3960 ac_exeext
=$ac_cv_exeext
3962 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3963 ac_clean_files
=$ac_clean_files_save
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3965 $as_echo_n "checking for suffix of executables... " >&6; }
3966 if { { ac_try
="$ac_link"
3968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_link") 2>&5
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3978 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3979 # work properly (i.e., refer to `conftest.exe'), while it won't with
3981 for ac_file
in conftest.exe conftest conftest.
*; do
3982 test -f "$ac_file" ||
continue
3984 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3985 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3993 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3994 See \`config.log' for more details" "$LINENO" 5; }
3996 rm -f conftest conftest
$ac_cv_exeext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3998 $as_echo "$ac_cv_exeext" >&6; }
4000 rm -f conftest.
$ac_ext
4001 EXEEXT
=$ac_cv_exeext
4003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4009 FILE *f = fopen ("conftest.out", "w");
4010 return ferror (f) || fclose (f) != 0;
4016 ac_clean_files
="$ac_clean_files conftest.out"
4017 # Check that the compiler produces executables we can run. If not, either
4018 # the compiler is broken, or we cross compile.
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4020 $as_echo_n "checking whether we are cross compiling... " >&6; }
4021 if test "$cross_compiling" != yes; then
4022 { { ac_try
="$ac_link"
4024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_link") 2>&5
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }
4033 if { ac_try='./conftest$ac_cv_exeext'
4034 { { case "(($ac_try" in
4035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4036 *) ac_try_echo
=$ac_try;;
4038 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_try") 2>&5
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; }; then
4046 if test "$cross_compiling" = maybe
; then
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $?
"cannot run C compiled programs.
4052 If you meant to cross compile, use \`--host'.
4053 See \`config.log' for more details" "$LINENO" 5; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4058 $as_echo "$cross_compiling" >&6; }
4060 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4061 ac_clean_files
=$ac_clean_files_save
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4063 $as_echo_n "checking for suffix of object files... " >&6; }
4064 if ${ac_cv_objext+:} false
; then :
4065 $as_echo_n "(cached) " >&6
4067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4078 rm -f conftest.o conftest.obj
4079 if { { ac_try
="$ac_compile"
4081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4085 $as_echo "$ac_try_echo"; } >&5
4086 (eval "$ac_compile") 2>&5
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }; then :
4090 for ac_file in conftest.o conftest.obj conftest.*; do
4091 test -f "$ac_file" || continue;
4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4099 $as_echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4104 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4105 See \
`config.log' for more details" "$LINENO" 5; }
4107 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4110 $as_echo "$ac_cv_objext" >&6; }
4111 OBJEXT=$ac_cv_objext
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4114 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4115 if ${ac_cv_c_compiler_gnu+:} false; then :
4116 $as_echo_n "(cached) " >&6
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4132 if ac_fn_c_try_compile "$LINENO"; then :
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4142 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4143 if test $ac_compiler_gnu = yes; then
4148 ac_test_CFLAGS=${CFLAGS+set}
4149 ac_save_CFLAGS=$CFLAGS
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4151 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4152 if ${ac_cv_prog_cc_g+:} false; then :
4153 $as_echo_n "(cached) " >&6
4155 ac_save_c_werror_flag=$ac_c_werror_flag
4156 ac_c_werror_flag=yes
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4170 if ac_fn_c_try_compile "$LINENO"; then :
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4185 if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_c_werror_flag=$ac_save_c_werror_flag
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4201 if ac_fn_c_try_compile "$LINENO"; then :
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4212 $as_echo "$ac_cv_prog_cc_g" >&6; }
4213 if test "$ac_test_CFLAGS" = set; then
4214 CFLAGS=$ac_save_CFLAGS
4215 elif test $ac_cv_prog_cc_g = yes; then
4216 if test "$GCC" = yes; then
4222 if test "$GCC" = yes; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4229 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4230 if ${ac_cv_prog_cc_c89+:} false; then :
4231 $as_echo_n "(cached) " >&6
4233 ac_cv_prog_cc_c89=no
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4241 struct buf { int x; };
4242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4243 static char *e (p, i)
4249 static char *f (char * (*g) (char **, int), char **p, ...)
4254 s = g (p, va_arg (v,int));
4259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4260 function prototypes and stuff, but not '\xHH' hex character constants.
4261 These don't provoke an error unfortunately, instead are silently treated
4262 as 'x'. The following induces an error, until -std is added to get
4263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4264 array size at least. It's necessary to write '\x00'==0 to get something
4265 that's true only with -std. */
4266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4269 inside strings and character constants. */
4271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4273 int test (int i, double x);
4274 struct s1 {int (*f) (int a);};
4275 struct s2 {int (*f) (double a);};
4276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4290 CC="$ac_save_CC $ac_arg"
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_prog_cc_c89=$ac_arg
4294 rm -f core conftest.err conftest.$ac_objext
4295 test "x$ac_cv_prog_cc_c89" != "xno" && break
4297 rm -f conftest.$ac_ext
4302 case "x$ac_cv_prog_cc_c89" in
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 $as_echo "none needed" >&6; } ;;
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4308 $as_echo "unsupported" >&6; } ;;
4310 CC="$CC $ac_cv_prog_cc_c89"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4312 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4314 if test "x$ac_cv_prog_cc_c89" != xno; then :
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4330 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4331 if ${am_cv_prog_cc_c_o+:} false; then :
4332 $as_echo_n "(cached) " >&6
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4345 # Make sure it works both with $CC and with simple cc.
4346 # Following AC_PROG_CC_C_O, we do the test twice because some
4347 # compilers refuse to overwrite an existing .o file with -o,
4348 # though they will create one.
4349 am_cv_prog_cc_c_o=yes
4351 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4352 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } \
4356 && test -f conftest2.$ac_objext; then
4359 am_cv_prog_cc_c_o=no
4363 rm -f core conftest*
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4367 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4368 if test "$am_cv_prog_cc_c_o" != yes; then
4369 # Losing compiler, so override with the script.
4370 # FIXME: It is wrong to rewrite CC.
4371 # But if we don't then we get into trouble of one sort or another.
4372 # A longer-term fix would be to have automake use am__CC in this case,
4373 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4374 CC="$am_aux_dir/compile $CC"
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382 DEPDIR="${am__leading_dot}deps"
4384 ac_config_commands="$ac_config_commands depfiles"
4387 am_make=${MAKE-make}
4388 cat > confinc << 'END'
4390 @echo this is the am__doit target
4393 # If we don't find an include directive, just comment out the code.
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4395 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4399 # First try GNU make style include.
4400 echo "include confinc" > confmf
4401 # Ignore all kinds of additional output from 'make'.
4402 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4403 *the\ am__doit\ target*)
4409 # Now try BSD make style include.
4410 if test "$am__include" = "#"; then
4411 echo '.include "confinc"' > confmf
4412 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4413 *the\ am__doit\ target*)
4414 am__include=.include
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4423 $as_echo "$_am_result" >&6; }
4424 rm -f confinc confmf
4426 # Check whether --enable-dependency-tracking was given.
4427 if test "${enable_dependency_tracking+set}" = set; then :
4428 enableval=$enable_dependency_tracking;
4431 if test "x$enable_dependency_tracking" != xno; then
4432 am_depcomp="$ac_aux_dir/depcomp"
4436 if test "x$enable_dependency_tracking" != xno; then
4446 depcc="$CC" am_compiler_list=
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4449 $as_echo_n "checking dependency style of $depcc... " >&6; }
4450 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4451 $as_echo_n "(cached) " >&6
4453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4454 # We make a subdir and do the tests there. Otherwise we can end up
4455 # making bogus files that we don't know about and never remove. For
4456 # instance it was reported that on HP-UX the gcc test will end up
4457 # making a dummy file named 'D' -- because '-MD' means "put the output
4461 # Copy depcomp to subdir because otherwise we won't find it if we're
4462 # using a relative directory.
4463 cp "$am_depcomp" conftest.dir
4465 # We will build objects and dependencies in a subdirectory because
4466 # it helps to detect inapplicable dependency modes. For instance
4467 # both Tru64's cc and ICC support -MD to output dependencies as a
4468 # side effect of compilation, but ICC will put the dependencies in
4469 # the current directory while Tru64 will put them in the object
4473 am_cv_CC_dependencies_compiler_type=none
4474 if test "$am_compiler_list" = ""; then
4475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4478 case " $depcc " in #(
4479 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4482 for depmode in $am_compiler_list; do
4483 # Setup a source with many dependencies, because some compilers
4484 # like to wrap large dependency lists on column 80 (with \), and
4485 # we should not choose a depcomp mode which is confused by this.
4487 # We need to recreate these files for each test, as the compiler may
4488 # overwrite some of them when testing with obscure command lines.
4489 # This happens at least with the AIX C compiler.
4491 for i in 1 2 3 4 5 6; do
4492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4493 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4494 # Solaris 10 /bin/sh.
4495 echo '/* dummy */' > sub/conftst$i.h
4497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4499 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4500 # mode. It turns out that the SunPro C++ compiler does not properly
4501 # handle '-M -o', and we need to detect this. Also, some Intel
4502 # versions had trouble with output in subdirs.
4503 am__obj=sub/conftest.${OBJEXT-o}
4504 am__minus_obj="-o $am__obj"
4507 # This depmode causes a compiler race in universal mode.
4508 test "$am__universal" = false || continue
4511 # After this tag, mechanisms are not by side-effect, so they'll
4512 # only be used when explicitly requested.
4513 if test "x$enable_dependency_tracking" = xyes; then
4519 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4520 # This compiler won't grok '-c -o', but also, the minuso test has
4521 # not run yet. These depmodes are late enough in the game, and
4522 # so weak that their functioning should not be impacted.
4523 am__obj=conftest.${OBJEXT-o}
4528 if depmode=$depmode \
4529 source=sub/conftest.c object=$am__obj \
4530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4531 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4532 >/dev/null 2>conftest.err &&
4533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4535 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4537 # icc doesn't choke on unknown options, it will just issue warnings
4538 # or remarks (even with -Werror). So we grep stderr for any message
4539 # that says an option was ignored or not supported.
4540 # When given -MP, icc 7.0 and 7.1 complain thusly:
4541 # icc: Command line warning: ignoring option '-M'; no argument required
4542 # The diagnosis changed in icc 8.0:
4543 # icc: Command line remark: option '-MP' not supported
4544 if (grep 'ignoring option' conftest.err ||
4545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4546 am_cv_CC_dependencies_compiler_type=$depmode
4555 am_cv_CC_dependencies_compiler_type=none
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4560 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4561 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4564 test "x$enable_dependency_tracking" != xno \
4565 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4567 am__fastdepCC_FALSE='#'
4569 am__fastdepCC_TRUE='#'
4570 am__fastdepCC_FALSE=
4578 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4579 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4580 # in both places for now and restore CFLAGS at the end of config.
4581 save_CFLAGS="$CFLAGS"
4583 # Add -Wall -Werror if we are using GCC.
4584 if test "x$GCC" = "xyes"; then
4585 XCFLAGS="$XCFLAGS -Wall -Werror"
4588 # Find other programs we need.
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}ar; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_AR+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 if test -n "$AR"; then
4598 ac_cv_prog_AR="$AR" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_AR="${ac_tool_prefix}ar"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 if test -n "$AR"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4620 $as_echo "$AR" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4628 if test -z "$ac_cv_prog_AR"; then
4630 # Extract the first word of "ar", so it can be a program name with args.
4631 set dummy ar; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4635 $as_echo_n "(cached) " >&6
4637 if test -n "$ac_ct_AR"; then
4638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_prog_ac_ct_AR="ar"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4658 if test -n "$ac_ct_AR"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4660 $as_echo "$ac_ct_AR" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4666 if test "x$ac_ct_AR" = x; then
4669 case $cross_compiling:$ac_tool_warned in
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4673 ac_tool_warned=yes ;;
4681 if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4683 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if ${ac_cv_prog_RANLIB+:} false; then :
4687 $as_echo_n "(cached) " >&6
4689 if test -n "$RANLIB"; then
4690 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 RANLIB=$ac_cv_prog_RANLIB
4710 if test -n "$RANLIB"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4712 $as_echo "$RANLIB" >&6; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4720 if test -z "$ac_cv_prog_RANLIB"; then
4721 ac_ct_RANLIB=$RANLIB
4722 # Extract the first word of "ranlib", so it can be a program name with args.
4723 set dummy ranlib; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4727 $as_echo_n "(cached) " >&6
4729 if test -n "$ac_ct_RANLIB"; then
4730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_prog_ac_ct_RANLIB="ranlib"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4750 if test -n "$ac_ct_RANLIB"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4752 $as_echo "$ac_ct_RANLIB" >&6; }
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4758 if test "x$ac_ct_RANLIB" = x; then
4759 RANLIB="ranlib-not-found-in-path-error"
4761 case $cross_compiling:$ac_tool_warned in
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4765 ac_tool_warned=yes ;;
4767 RANLIB=$ac_ct_RANLIB
4770 RANLIB="$ac_cv_prog_RANLIB"
4773 # Extract the first word of "perl", so it can be a program name with args.
4774 set dummy perl; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if ${ac_cv_path_PERL+:} false; then :
4778 $as_echo_n "(cached) " >&6
4782 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4804 PERL=$ac_cv_path_PERL
4805 if test -n "$PERL"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4807 $as_echo "$PERL" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4815 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4817 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4818 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4819 $as_echo_n "(cached) " >&6
4821 cat >conftest.make <<\_ACEOF
4824 @echo '@@@%%%=$(MAKE)=@@@%%%'
4826 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4827 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4829 eval ac_cv_prog_make_${ac_make}_set=yes;;
4831 eval ac_cv_prog_make_${ac_make}_set=no;;
4835 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4837 $as_echo "yes" >&6; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 SET_MAKE="MAKE=${MAKE-make}"
4847 # See if makeinfo has been installed and is modern enough
4848 # that we can use it.
4850 # Extract the first word of "makeinfo", so it can be a program name with args.
4851 set dummy makeinfo; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if ${ac_cv_prog_MAKEINFO+:} false; then :
4855 $as_echo_n "(cached) " >&6
4857 if test -n "$MAKEINFO"; then
4858 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_prog_MAKEINFO="makeinfo"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 MAKEINFO=$ac_cv_prog_MAKEINFO
4878 if test -n "$MAKEINFO"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4880 $as_echo "$MAKEINFO" >&6; }
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4887 if test -n "$MAKEINFO"; then
4888 # Found it, now check the version.
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4890 $as_echo_n "checking for modern makeinfo... " >&6; }
4891 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4895 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4897 case $ac_prog_version in
4898 '') gcc_cv_prog_makeinfo_modern=no;;
4899 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4900 *) gcc_cv_prog_makeinfo_modern=no;;
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4905 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4907 gcc_cv_prog_makeinfo_modern=no
4909 if test $gcc_cv_prog_makeinfo_modern = no; then
4910 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4913 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4915 BUILD_INFO_FALSE='#'
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4927 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4932 macro_version='2.2.7a'
4933 macro_revision='1.3134'
4947 ltmain="$ac_aux_dir/ltmain.sh"
4949 # Backslashify metacharacters that are still active within
4950 # double-quoted strings.
4951 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4953 # Same as above, but do not quote variable references.
4954 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4956 # Sed substitution to delay expansion of an escaped shell variable in a
4957 # double_quote_subst'ed string.
4958 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4960 # Sed substitution to delay expansion of an escaped single quote.
4961 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4963 # Sed substitution to avoid accidental globbing in evaled expressions
4964 no_glob_subst='s/\*/\\\*/g'
4966 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4967 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4968 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4971 $as_echo_n "checking how to print
strings...
" >&6; }
4972 # Test print first, because it will be a builtin if present.
4973 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
4974 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4976 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4979 # Use this function as a fallback that always works.
4980 func_fallback_echo ()
4982 eval 'cat <<_LTECHO_EOF
4986 ECHO='func_fallback_echo'
4989 # func_echo_all arg...
4990 # Invoke $ECHO with all args, space-separated.
4997 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4998 $as_echo "printf" >&6; } ;;
4999 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5000 $as_echo "print
-r" >&6; } ;;
5001 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5002 $as_echo "cat" >&6; } ;;
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5019 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5020 if ${ac_cv_path_SED+:} false; then :
5021 $as_echo_n "(cached
) " >&6
5023 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5024 for ac_i in 1 2 3 4 5 6 7; do
5025 ac_script="$ac_script$as_nl$ac_script"
5027 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5028 { ac_script=; unset ac_script;}
5029 if test -z "$SED"; then
5030 ac_path_SED_found=false
5031 # Loop through the user's path and test for each of PROGNAME-LIST
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_prog in sed gsed; do
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5040 as_fn_executable_p "$ac_path_SED" || continue
5041 # Check for GNU ac_path_SED and select it if it is found.
5042 # Check for GNU $ac_path_SED
5043 case `"$ac_path_SED" --version 2>&1` in
5045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5048 $as_echo_n 0123456789 >"conftest.
in"
5051 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5052 mv "conftest.tmp
" "conftest.
in"
5053 cp "conftest.
in" "conftest.
nl"
5054 $as_echo '' >> "conftest.
nl"
5055 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5056 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5057 as_fn_arith $ac_count + 1 && ac_count=$as_val
5058 if test $ac_count -gt ${ac_path_SED_max-0}; then
5059 # Best one so far, save it but keep looking for a better one
5060 ac_cv_path_SED="$ac_path_SED"
5061 ac_path_SED_max=$ac_count
5063 # 10*(2^10) chars as input seems more than enough
5064 test $ac_count -gt 10 && break
5066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5069 $ac_path_SED_found && break 3
5074 if test -z "$ac_cv_path_SED"; then
5075 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5083 $as_echo "$ac_cv_path_SED" >&6; }
5084 SED="$ac_cv_path_SED"
5087 test -z "$SED" && SED=sed
5088 Xsed="$SED -e 1s
/^X
//"
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5101 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5102 if ${ac_cv_path_GREP+:} false; then :
5103 $as_echo_n "(cached
) " >&6
5105 if test -z "$GREP"; then
5106 ac_path_GREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in grep ggrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5116 as_fn_executable_p "$ac_path_GREP" || continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118 # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5124 $as_echo_n 0123456789 >"conftest.
in"
5127 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5128 mv "conftest.tmp
" "conftest.
in"
5129 cp "conftest.
in" "conftest.
nl"
5130 $as_echo 'GREP' >> "conftest.
nl"
5131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5132 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_GREP="$ac_path_GREP"
5137 ac_path_GREP_max=$ac_count
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 $ac_path_GREP_found && break 3
5150 if test -z "$ac_cv_path_GREP"; then
5151 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5154 ac_cv_path_GREP=$GREP
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160 GREP="$ac_cv_path_GREP"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5164 $as_echo_n "checking
for egrep...
" >&6; }
5165 if ${ac_cv_path_EGREP+:} false; then :
5166 $as_echo_n "(cached
) " >&6
5168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5169 then ac_cv_path_EGREP="$GREP -E"
5171 if test -z "$EGREP"; then
5172 ac_path_EGREP_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5178 test -z "$as_dir" && as_dir=.
5179 for ac_prog in egrep; do
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5182 as_fn_executable_p "$ac_path_EGREP" || continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184 # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5190 $as_echo_n 0123456789 >"conftest.
in"
5193 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5194 mv "conftest.tmp
" "conftest.
in"
5195 cp "conftest.
in" "conftest.
nl"
5196 $as_echo 'EGREP' >> "conftest.
nl"
5197 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5198 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_EGREP="$ac_path_EGREP"
5203 ac_path_EGREP_max=$ac_count
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211 $ac_path_EGREP_found && break 3
5216 if test -z "$ac_cv_path_EGREP"; then
5217 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5220 ac_cv_path_EGREP=$EGREP
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227 EGREP="$ac_cv_path_EGREP"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5231 $as_echo_n "checking
for fgrep...
" >&6; }
5232 if ${ac_cv_path_FGREP+:} false; then :
5233 $as_echo_n "(cached
) " >&6
5235 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5236 then ac_cv_path_FGREP="$GREP -F"
5238 if test -z "$FGREP"; then
5239 ac_path_FGREP_found=false
5240 # Loop through the user's path and test for each of PROGNAME-LIST
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5245 test -z "$as_dir" && as_dir=.
5246 for ac_prog in fgrep; do
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5249 as_fn_executable_p "$ac_path_FGREP" || continue
5250 # Check for GNU ac_path_FGREP and select it if it is found.
5251 # Check for GNU $ac_path_FGREP
5252 case `"$ac_path_FGREP" --version 2>&1` in
5254 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5257 $as_echo_n 0123456789 >"conftest.
in"
5260 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5261 mv "conftest.tmp
" "conftest.
in"
5262 cp "conftest.
in" "conftest.
nl"
5263 $as_echo 'FGREP' >> "conftest.
nl"
5264 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5265 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5266 as_fn_arith $ac_count + 1 && ac_count=$as_val
5267 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5268 # Best one so far, save it but keep looking for a better one
5269 ac_cv_path_FGREP="$ac_path_FGREP"
5270 ac_path_FGREP_max=$ac_count
5272 # 10*(2^10) chars as input seems more than enough
5273 test $ac_count -gt 10 && break
5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5278 $ac_path_FGREP_found && break 3
5283 if test -z "$ac_cv_path_FGREP"; then
5284 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5287 ac_cv_path_FGREP=$FGREP
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5293 $as_echo "$ac_cv_path_FGREP" >&6; }
5294 FGREP="$ac_cv_path_FGREP"
5297 test -z "$GREP" && GREP=grep
5317 # Check whether --with-gnu-ld was given.
5318 if test "${with_gnu_ld+set}" = set; then :
5319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5325 if test "$GCC" = yes; then
5326 # Check if gcc -print-prog-name=ld gives a path.
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5328 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5331 # gcc leaves a trailing carriage return which upsets mingw
5332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5337 # Accept absolute paths.
5339 re_direlt='/[^/][^/]*/\.\./'
5340 # Canonicalize the pathname of ld
5341 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5343 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5345 test -z "$LD" && LD="$ac_prog"
5348 # If it fails, then pretend we aren't using GCC.
5352 # If it is relative, then search for the first ld in PATH.
5356 elif test "$with_gnu_ld" = yes; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5358 $as_echo_n "checking
for GNU ld...
" >&6; }
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5361 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5363 if ${lt_cv_path_LD+:} false; then :
5364 $as_echo_n "(cached
) " >&6
5366 if test -z "$LD"; then
5367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5368 for ac_dir in $PATH; do
5370 test -z "$ac_dir" && ac_dir=.
5371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5372 lt_cv_path_LD="$ac_dir/$ac_prog"
5373 # Check to see if the program is GNU ld. I'd rather use --version,
5374 # but apparently some variants of GNU ld only accept -v.
5375 # Break only if it was the GNU/non-GNU ld that we prefer.
5376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5377 *GNU* | *'with BFD'*)
5378 test "$with_gnu_ld" != no && break
5381 test "$with_gnu_ld" != yes && break
5388 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5393 if test -n "$LD"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5395 $as_echo "$LD" >&6; }
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5398 $as_echo "no
" >&6; }
5400 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5402 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5403 if ${lt_cv_prog_gnu_ld+:} false; then :
5404 $as_echo_n "(cached
) " >&6
5406 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5407 case `$LD -v 2>&1 </dev/null` in
5408 *GNU* | *'with BFD'*)
5409 lt_cv_prog_gnu_ld=yes
5412 lt_cv_prog_gnu_ld=no
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5417 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5418 with_gnu_ld=$lt_cv_prog_gnu_ld
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5429 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5430 if ${lt_cv_path_NM+:} false; then :
5431 $as_echo_n "(cached
) " >&6
5433 if test -n "$NM"; then
5434 # Let the user override the test.
5437 lt_nm_to_check="${ac_tool_prefix}nm
"
5438 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5439 lt_nm_to_check="$lt_nm_to_check nm
"
5441 for lt_tmp_nm in $lt_nm_to_check; do
5442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5443 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5445 test -z "$ac_dir" && ac_dir=.
5446 tmp_nm="$ac_dir/$lt_tmp_nm"
5447 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5448 # Check to see if the nm accepts a BSD-compat flag.
5449 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5450 # nm: unknown option "B
" ignored
5451 # Tru64's nm complains that /dev/null is an invalid object file
5452 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5453 */dev/null* | *'Invalid file or object type'*)
5454 lt_cv_path_NM="$tmp_nm -B"
5458 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5460 lt_cv_path_NM="$tmp_nm -p"
5464 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5465 continue # so that we can try to find one that supports BSD flags
5474 : ${lt_cv_path_NM=no}
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5478 $as_echo "$lt_cv_path_NM" >&6; }
5479 if test "$lt_cv_path_NM" != "no
"; then
5482 # Didn't find any BSD compatible name lister, look for dumpbin.
5483 if test -n "$DUMPBIN"; then :
5484 # Let the user override the test.
5486 if test -n "$ac_tool_prefix"; then
5487 for ac_prog in dumpbin "link
-dump"
5489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5492 $as_echo_n "checking
for $ac_word...
" >&6; }
5493 if ${ac_cv_prog_DUMPBIN+:} false; then :
5494 $as_echo_n "(cached
) " >&6
5496 if test -n "$DUMPBIN"; then
5497 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5507 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5516 DUMPBIN=$ac_cv_prog_DUMPBIN
5517 if test -n "$DUMPBIN"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5519 $as_echo "$DUMPBIN" >&6; }
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5522 $as_echo "no
" >&6; }
5526 test -n "$DUMPBIN" && break
5529 if test -z "$DUMPBIN"; then
5530 ac_ct_DUMPBIN=$DUMPBIN
5531 for ac_prog in dumpbin "link
-dump"
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy $ac_prog; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5536 $as_echo_n "checking
for $ac_word...
" >&6; }
5537 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5538 $as_echo_n "(cached
) " >&6
5540 if test -n "$ac_ct_DUMPBIN"; then
5541 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5560 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5561 if test -n "$ac_ct_DUMPBIN"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5563 $as_echo "$ac_ct_DUMPBIN" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5566 $as_echo "no
" >&6; }
5570 test -n "$ac_ct_DUMPBIN" && break
5573 if test "x
$ac_ct_DUMPBIN" = x; then
5576 case $cross_compiling:$ac_tool_warned in
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5579 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5580 ac_tool_warned=yes ;;
5582 DUMPBIN=$ac_ct_DUMPBIN
5586 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5588 DUMPBIN="$DUMPBIN -symbols"
5596 if test "$DUMPBIN" != ":"; then
5600 test -z "$NM" && NM=nm
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5608 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5609 if ${lt_cv_nm_interface+:} false; then :
5610 $as_echo_n "(cached
) " >&6
5612 lt_cv_nm_interface="BSD nm
"
5613 echo "int some_variable
= 0;" > conftest.$ac_ext
5614 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5615 (eval "$ac_compile" 2>conftest.err)
5616 cat conftest.err >&5
5617 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5618 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5619 cat conftest.err >&5
5620 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5621 cat conftest.out >&5
5622 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5623 lt_cv_nm_interface="MS dumpbin
"
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5628 $as_echo "$lt_cv_nm_interface" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5631 $as_echo_n "checking whether
ln -s works...
" >&6; }
5633 if test "$LN_S" = "ln -s"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5635 $as_echo "yes" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5638 $as_echo "no
, using
$LN_S" >&6; }
5641 # find the maximum length of command line arguments
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5643 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5644 if ${lt_cv_sys_max_cmd_len+:} false; then :
5645 $as_echo_n "(cached
) " >&6
5652 # On DJGPP, this test can blow up pretty badly due to problems in libc
5653 # (any single argument exceeding 2000 bytes causes a buffer overrun
5654 # during glob expansion). Even if it were fixed, the result of this
5655 # check would be larger than it should be.
5656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5660 # Under GNU Hurd, this test is not required because there is
5661 # no limit to the length of command line arguments.
5662 # Libtool will interpret -1 as no limit whatsoever
5663 lt_cv_sys_max_cmd_len=-1;
5666 cygwin* | mingw* | cegcc*)
5667 # On Win9x/ME, this test blows up -- it succeeds, but takes
5668 # about 5 minutes as the teststring grows exponentially.
5669 # Worse, since 9x/ME are not pre-emptively multitasking,
5670 # you end up with a "frozen
" computer, even though with patience
5671 # the test eventually succeeds (with a max line length of 256k).
5672 # Instead, let's just punt: use the minimum linelength reported by
5673 # all of the supported platforms: 8192 (on NT/2K/XP).
5674 lt_cv_sys_max_cmd_len=8192;
5678 # On MiNT this can take a long time and run out of memory.
5679 lt_cv_sys_max_cmd_len=8192;
5683 # On AmigaOS with pdksh, this test takes hours, literally.
5684 # So we just punt and use a minimum line length of 8192.
5685 lt_cv_sys_max_cmd_len=8192;
5688 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5689 # This has been around since 386BSD, at least. Likely further.
5690 if test -x /sbin/sysctl; then
5691 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5692 elif test -x /usr/sbin/sysctl; then
5693 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5695 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5697 # And add a safety zone
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`
5703 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5704 lt_cv_sys_max_cmd_len=196608
5708 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5709 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5710 # nice to cause kernel panics so lets avoid the loop below.
5711 # First set a reasonable default.
5712 lt_cv_sys_max_cmd_len=16384
5714 if test -x /sbin/sysconfig; then
5715 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5716 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5721 lt_cv_sys_max_cmd_len=102400
5723 sysv5* | sco5v6* | sysv4.2uw2*)
5724 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5725 if test -n "$kargmax"; then
5726 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5728 lt_cv_sys_max_cmd_len=32768
5732 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5733 if test -n "$lt_cv_sys_max_cmd_len"; then
5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5737 # Make teststring a little bigger before we do anything with it.
5738 # a 1K string should be a reasonable start.
5739 for i in 1 2 3 4 5 6 7 8 ; do
5740 teststring=$teststring$teststring
5742 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5743 # If test is not a shell built-in, we'll probably end up computing a
5744 # maximum length that is only half of the actual maximum length, but
5746 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5747 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5748 test $i != 17 # 1/2 MB should be enough
5751 teststring=$teststring$teststring
5753 # Only check the string length outside the loop.
5754 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5756 # Add a significant safety factor because C++ compilers can tack on
5757 # massive amounts of additional arguments before passing them to the
5758 # linker. It appears as though 1/2 is a usable value.
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5766 if test -n $lt_cv_sys_max_cmd_len ; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5768 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5771 $as_echo "none
" >&6; }
5773 max_cmd_len=$lt_cv_sys_max_cmd_len
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5785 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5786 # Try some XSI features
5789 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5791 && eval 'test $(( 1 + 1 )) -eq 2 \
5792 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5795 $as_echo "$xsi_shell" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5799 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5801 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5803 && lt_shell_append
=yes
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5805 $as_echo "$lt_shell_append" >&6; }
5808 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5818 # test EBCDIC or ASCII
5819 case `echo X|tr X '\101'` in
5820 A
) # ASCII based system
5821 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5822 lt_SP2NL
='tr \040 \012'
5823 lt_NL2SP
='tr \015\012 \040\040'
5825 *) # EBCDIC based system
5826 lt_SP2NL
='tr \100 \n'
5827 lt_NL2SP
='tr \r\n \100\100'
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5840 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5841 if ${lt_cv_ld_reload_flag+:} false
; then :
5842 $as_echo_n "(cached) " >&6
5844 lt_cv_ld_reload_flag
='-r'
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5847 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5848 reload_flag
=$lt_cv_ld_reload_flag
5849 case $reload_flag in
5851 *) reload_flag
=" $reload_flag" ;;
5853 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5856 if test "$GCC" = yes; then
5857 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5859 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5872 if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5874 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5878 $as_echo_n "(cached) " >&6
5880 if test -n "$OBJDUMP"; then
5881 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5887 test -z "$as_dir" && as_dir
=.
5888 for ac_exec_ext
in '' $ac_executable_extensions; do
5889 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 OBJDUMP
=$ac_cv_prog_OBJDUMP
5901 if test -n "$OBJDUMP"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5903 $as_echo "$OBJDUMP" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5911 if test -z "$ac_cv_prog_OBJDUMP"; then
5912 ac_ct_OBJDUMP
=$OBJDUMP
5913 # Extract the first word of "objdump", so it can be a program name with args.
5914 set dummy objdump
; ac_word
=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5918 $as_echo_n "(cached) " >&6
5920 if test -n "$ac_ct_OBJDUMP"; then
5921 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir
=.
5928 for ac_exec_ext
in '' $ac_executable_extensions; do
5929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5941 if test -n "$ac_ct_OBJDUMP"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5943 $as_echo "$ac_ct_OBJDUMP" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5949 if test "x$ac_ct_OBJDUMP" = x
; then
5952 case $cross_compiling:$ac_tool_warned in
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned
=yes ;;
5958 OBJDUMP
=$ac_ct_OBJDUMP
5961 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5964 test -z "$OBJDUMP" && OBJDUMP
=objdump
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5975 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5976 if ${lt_cv_deplibs_check_method+:} false
; then :
5977 $as_echo_n "(cached) " >&6
5979 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5980 lt_cv_file_magic_test_file
=
5981 lt_cv_deplibs_check_method
='unknown'
5982 # Need to set the preceding variable on all platforms that support
5983 # interlibrary dependencies.
5984 # 'none' -- dependencies not supported.
5985 # `unknown' -- same as none, but documents that we really don't know.
5986 # 'pass_all' -- all dependencies passed with no checks.
5987 # 'test_compile' -- check by making test program.
5988 # 'file_magic [[regex]]' -- check by looking for files in library path
5989 # which responds to the $file_magic_cmd with a given extended regex.
5990 # If you have `file' or equivalent on your system and you're not sure
5991 # whether `pass_all' will *always* work, you probably want this one.
5995 lt_cv_deplibs_check_method
=pass_all
5999 lt_cv_deplibs_check_method
=pass_all
6003 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6004 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6005 lt_cv_file_magic_test_file
=/shlib
/libc.so
6009 # func_win32_libid is a shell function defined in ltmain.sh
6010 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6011 lt_cv_file_magic_cmd
='func_win32_libid'
6015 # Base MSYS/MinGW do not provide the 'file' command needed by
6016 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6017 # unless we find 'file', for example because we are cross-compiling.
6018 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6019 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6020 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6021 lt_cv_file_magic_cmd
='func_win32_libid'
6023 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6024 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6029 # use the weaker test based on 'objdump'. See mingw*.
6030 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6031 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6034 darwin
* | rhapsody
*)
6035 lt_cv_deplibs_check_method
=pass_all
6038 freebsd
* | dragonfly
*)
6039 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6042 # Not sure whether the presence of OpenBSD here was a mistake.
6043 # Let's accept both of them until this is cleared up.
6044 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6045 lt_cv_file_magic_cmd
=/usr
/bin
/file
6046 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6050 lt_cv_deplibs_check_method
=pass_all
6055 lt_cv_deplibs_check_method
=pass_all
6059 lt_cv_deplibs_check_method
=pass_all
6062 hpux10.20
* | hpux11
*)
6063 lt_cv_file_magic_cmd
=/usr
/bin
/file
6066 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6067 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6070 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]'
6071 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6074 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6075 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6081 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6082 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6085 irix5
* | irix6
* | nonstopux
*)
6087 *-32|
*"-32 ") libmagic
=32-bit;;
6088 *-n32|
*"-n32 ") libmagic
=N32
;;
6089 *-64|
*"-64 ") libmagic
=64-bit;;
6090 *) libmagic
=never-match
;;
6092 lt_cv_deplibs_check_method
=pass_all
6095 # This must be Linux ELF.
6096 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
6097 lt_cv_deplibs_check_method
=pass_all
6101 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6102 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6104 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6109 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6110 lt_cv_file_magic_cmd
=/usr
/bin
/file
6111 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6115 lt_cv_deplibs_check_method
=pass_all
6119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6120 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6122 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6126 osf3
* | osf4
* | osf5
*)
6127 lt_cv_deplibs_check_method
=pass_all
6131 lt_cv_deplibs_check_method
=pass_all
6135 lt_cv_deplibs_check_method
=pass_all
6138 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6139 lt_cv_deplibs_check_method
=pass_all
6143 case $host_vendor in
6145 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]'
6146 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6149 lt_cv_deplibs_check_method
=pass_all
6152 lt_cv_file_magic_cmd
='/bin/file'
6153 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6156 lt_cv_file_magic_cmd
='/bin/file'
6157 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6158 lt_cv_file_magic_test_file
=/lib
/libc.so
6161 lt_cv_deplibs_check_method
=pass_all
6164 lt_cv_deplibs_check_method
=pass_all
6170 lt_cv_deplibs_check_method
=pass_all
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6176 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6177 file_magic_cmd
=$lt_cv_file_magic_cmd
6178 deplibs_check_method
=$lt_cv_deplibs_check_method
6179 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6194 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if ${ac_cv_prog_AR+:} false
; then :
6198 $as_echo_n "(cached) " >&6
6200 if test -n "$AR"; then
6201 ac_cv_prog_AR
="$AR" # Let the user override the test.
6203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir
=.
6208 for ac_exec_ext
in '' $ac_executable_extensions; do
6209 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 if test -n "$AR"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6223 $as_echo "$AR" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6231 if test -z "$ac_cv_prog_AR"; then
6233 # Extract the first word of "ar", so it can be a program name with args.
6234 set dummy
ar; ac_word
=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6238 $as_echo_n "(cached) " >&6
6240 if test -n "$ac_ct_AR"; then
6241 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir
=.
6248 for ac_exec_ext
in '' $ac_executable_extensions; do
6249 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6250 ac_cv_prog_ac_ct_AR
="ar"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6261 if test -n "$ac_ct_AR"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6263 $as_echo "$ac_ct_AR" >&6; }
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6269 if test "x$ac_ct_AR" = x
; then
6272 case $cross_compiling:$ac_tool_warned in
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned
=yes ;;
6284 test -z "$AR" && AR
=ar
6285 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6299 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if ${ac_cv_prog_STRIP+:} false
; then :
6303 $as_echo_n "(cached) " >&6
6305 if test -n "$STRIP"; then
6306 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6312 test -z "$as_dir" && as_dir
=.
6313 for ac_exec_ext
in '' $ac_executable_extensions; do
6314 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6315 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 STRIP
=$ac_cv_prog_STRIP
6326 if test -n "$STRIP"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6328 $as_echo "$STRIP" >&6; }
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6336 if test -z "$ac_cv_prog_STRIP"; then
6338 # Extract the first word of "strip", so it can be a program name with args.
6339 set dummy strip
; ac_word
=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6343 $as_echo_n "(cached) " >&6
6345 if test -n "$ac_ct_STRIP"; then
6346 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir
=.
6353 for ac_exec_ext
in '' $ac_executable_extensions; do
6354 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6355 ac_cv_prog_ac_ct_STRIP
="strip"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6366 if test -n "$ac_ct_STRIP"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6368 $as_echo "$ac_ct_STRIP" >&6; }
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6374 if test "x$ac_ct_STRIP" = x
; then
6377 case $cross_compiling:$ac_tool_warned in
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381 ac_tool_warned
=yes ;;
6386 STRIP
="$ac_cv_prog_STRIP"
6389 test -z "$STRIP" && STRIP
=:
6396 if test -n "$ac_tool_prefix"; then
6397 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6398 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_RANLIB+:} false
; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$RANLIB"; then
6405 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir
=.
6412 for ac_exec_ext
in '' $ac_executable_extensions; do
6413 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 RANLIB
=$ac_cv_prog_RANLIB
6425 if test -n "$RANLIB"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6427 $as_echo "$RANLIB" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6435 if test -z "$ac_cv_prog_RANLIB"; then
6436 ac_ct_RANLIB
=$RANLIB
6437 # Extract the first word of "ranlib", so it can be a program name with args.
6438 set dummy ranlib
; ac_word
=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6442 $as_echo_n "(cached) " >&6
6444 if test -n "$ac_ct_RANLIB"; then
6445 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir
=.
6452 for ac_exec_ext
in '' $ac_executable_extensions; do
6453 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6465 if test -n "$ac_ct_RANLIB"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6467 $as_echo "$ac_ct_RANLIB" >&6; }
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6473 if test "x$ac_ct_RANLIB" = x
; then
6476 case $cross_compiling:$ac_tool_warned in
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480 ac_tool_warned
=yes ;;
6482 RANLIB
=$ac_ct_RANLIB
6485 RANLIB
="$ac_cv_prog_RANLIB"
6488 test -z "$RANLIB" && RANLIB
=:
6495 # Determine commands to create old-style static archives.
6496 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6497 old_postinstall_cmds
='chmod 644 $oldlib'
6498 old_postuninstall_cmds
=
6500 if test -n "$RANLIB"; then
6503 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6506 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6509 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6514 lock_old_archive_extraction
=yes ;;
6516 lock_old_archive_extraction
=no
;;
6557 # If no C compiler was specified, use CC.
6560 # If no C compiler flags were specified, use CFLAGS.
6561 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6563 # Allow CC to be a program name with arguments.
6567 # Check for command to grab the raw symbol name followed by C symbol from nm.
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6569 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6570 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6571 $as_echo_n "(cached) " >&6
6574 # These are sane defaults that work on at least a few old systems.
6575 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6577 # Character class describing NM global symbol codes.
6578 symcode
='[BCDEGRST]'
6580 # Regexp to match symbols that can be accessed directly from C.
6581 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6583 # Define system-specific variables.
6588 cygwin
* | mingw
* | pw32
* | cegcc
*)
6589 symcode
='[ABCDGISTW]'
6592 if test "$host_cpu" = ia64
; then
6593 symcode
='[ABCDEGRST]'
6597 symcode
='[BCDEGRST]'
6600 symcode
='[BCDEGQRST]'
6611 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6619 # If we're using GNU nm, then use its standard symbol codes.
6620 case `$NM -V 2>&1` in
6621 *GNU
* |
*'with BFD'*)
6622 symcode
='[ABCDGIRSTW]' ;;
6625 # Transform an extracted symbol line into a proper C declaration.
6626 # Some systems (esp. on ia64) link data and code symbols differently,
6627 # so use this general approach.
6628 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6630 # Transform an extracted symbol line into symbol name and symbol address
6631 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6632 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'"
6634 # Handle CRLF in mingw tool chain
6638 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6642 # Try without a prefix underscore, then with it.
6643 for ac_symprfx
in "" "_"; do
6645 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6646 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6648 # Write the raw and C identifiers.
6649 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6650 # Fake it for dumpbin and say T for any non-static function
6651 # and D for any global variable.
6652 # Also find C++ and __fastcall symbols from MSVC++,
6653 # which start with @ or ?.
6654 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6655 " {last_section=section; section=\$ 3};"\
6656 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6657 " \$ 0!~/External *\|/{next};"\
6658 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6659 " {if(hide[section]) next};"\
6660 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6661 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6662 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6663 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6664 " ' prfx=^$ac_symprfx"
6666 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6669 # Check to see that the pipe works correctly.
6673 cat > conftest.
$ac_ext <<_LT_EOF
6678 void nm_test_func(void);
6679 void nm_test_func(void){}
6683 int main(){nm_test_var='a';nm_test_func();return(0);}
6686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6687 (eval $ac_compile) 2>&5
6689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690 test $ac_status = 0; }; then
6691 # Now try to grab the symbols.
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6694 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; } && test -s "$nlist"; then
6698 # Try sorting and uniquifying the output.
6699 if sort "$nlist" |
uniq > "$nlist"T
; then
6700 mv -f "$nlist"T
"$nlist"
6705 # Make sure that we snagged all the symbols we need.
6706 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6707 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6708 cat <<_LT_EOF > conftest.$ac_ext
6714 # Now generate the symbol file.
6715 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6717 cat <<_LT_EOF >> conftest.$ac_ext
6719 /* The mapping between symbol names and symbols. */
6724 lt__PROGRAM__LTX_preloaded_symbols[] =
6726 { "@PROGRAM@", (void *) 0 },
6728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6729 cat <<\_LT_EOF
>> conftest.
$ac_ext
6733 /* This works around a problem
in FreeBSD linker
*/
6734 #ifdef FREEBSD_WORKAROUND
6735 static const void
*lt_preloaded_setup
() {
6736 return lt__PROGRAM__LTX_preloaded_symbols
;
6744 # Now try linking the two files.
6745 mv conftest.
$ac_objext conftstm.
$ac_objext
6746 lt_save_LIBS
="$LIBS"
6747 lt_save_CFLAGS
="$CFLAGS"
6748 LIBS
="conftstm.$ac_objext"
6749 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6751 (eval $ac_link) 2>&5
6753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6757 LIBS
="$lt_save_LIBS"
6758 CFLAGS
="$lt_save_CFLAGS"
6760 echo "cannot find nm_test_func in $nlist" >&5
6763 echo "cannot find nm_test_var in $nlist" >&5
6766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6769 echo "$progname: failed program was:" >&5
6770 cat conftest.
$ac_ext >&5
6772 rm -rf conftest
* conftst
*
6774 # Do not use the global_symbol_pipe unless it works.
6775 if test "$pipe_works" = yes; then
6778 lt_cv_sys_global_symbol_pipe
=
6784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6785 lt_cv_sys_global_symbol_to_cdecl
=
6787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6789 $as_echo "failed" >&6; }
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6792 $as_echo "ok" >&6; }
6817 # Check whether --enable-libtool-lock was given.
6818 if test "${enable_libtool_lock+set}" = set; then :
6819 enableval
=$enable_libtool_lock;
6822 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6824 # Some flags need to be propagated to the compiler or linker for good
6828 # Find out which ABI we are using.
6829 echo 'int i;' > conftest.
$ac_ext
6830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6831 (eval $ac_compile) 2>&5
6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6834 test $ac_status = 0; }; then
6835 case `/usr/bin/file conftest.$ac_objext` in
6847 # Find out which ABI we are using.
6848 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850 (eval $ac_compile) 2>&5
6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853 test $ac_status = 0; }; then
6854 if test "$lt_cv_prog_gnu_ld" = yes; then
6855 case `/usr/bin/file conftest.$ac_objext` in
6857 LD
="${LD-ld} -melf32bsmip"
6860 LD
="${LD-ld} -melf32bmipn32"
6863 LD
="${LD-ld} -melf64bmip"
6867 case `/usr/bin/file conftest.$ac_objext` in
6883 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6884 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6885 # Find out which ABI we are using.
6886 echo 'int i;' > conftest.
$ac_ext
6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888 (eval $ac_compile) 2>&5
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; }; then
6892 case `/usr/bin/file conftest.o` in
6895 x86_64-
*kfreebsd
*-gnu)
6896 LD
="${LD-ld} -m elf_i386_fbsd"
6899 case `/usr/bin/file conftest.o` in
6901 LD
="${LD-ld} -m elf32_x86_64"
6904 LD
="${LD-ld} -m elf_i386"
6908 powerpc64le-
*linux
*)
6909 LD
="${LD-ld} -m elf32lppclinux"
6912 LD
="${LD-ld} -m elf32ppclinux"
6915 LD
="${LD-ld} -m elf_s390"
6918 LD
="${LD-ld} -m elf32_sparc"
6924 x86_64-
*kfreebsd
*-gnu)
6925 LD
="${LD-ld} -m elf_x86_64_fbsd"
6928 LD
="${LD-ld} -m elf_x86_64"
6931 LD
="${LD-ld} -m elf64lppc"
6934 LD
="${LD-ld} -m elf64ppc"
6936 s390
*-*linux
*|s390
*-*tpf
*)
6937 LD
="${LD-ld} -m elf64_s390"
6940 LD
="${LD-ld} -m elf64_sparc"
6950 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6951 SAVE_CFLAGS
="$CFLAGS"
6952 CFLAGS
="$CFLAGS -belf"
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6954 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6955 if ${lt_cv_cc_needs_belf+:} false
; then :
6956 $as_echo_n "(cached) " >&6
6959 ac_cpp
='$CPP $CPPFLAGS'
6960 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6975 if ac_fn_c_try_link
"$LINENO"; then :
6976 lt_cv_cc_needs_belf
=yes
6978 lt_cv_cc_needs_belf
=no
6980 rm -f core conftest.err conftest.
$ac_objext \
6981 conftest
$ac_exeext conftest.
$ac_ext
6983 ac_cpp
='$CPP $CPPFLAGS'
6984 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6990 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6991 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6992 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6993 CFLAGS
="$SAVE_CFLAGS"
6997 # Find out which ABI we are using.
6998 echo 'int i;' > conftest.
$ac_ext
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000 (eval $ac_compile) 2>&5
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; }; then
7004 case `/usr/bin/file conftest.o` in
7006 case $lt_cv_prog_gnu_ld in
7007 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7009 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7021 need_locks
="$enable_libtool_lock"
7025 rhapsody
* | darwin
*)
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7028 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7032 $as_echo_n "(cached) " >&6
7034 if test -n "$DSYMUTIL"; then
7035 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir
=.
7042 for ac_exec_ext
in '' $ac_executable_extensions; do
7043 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7055 if test -n "$DSYMUTIL"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7057 $as_echo "$DSYMUTIL" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7065 if test -z "$ac_cv_prog_DSYMUTIL"; then
7066 ac_ct_DSYMUTIL
=$DSYMUTIL
7067 # Extract the first word of "dsymutil", so it can be a program name with args.
7068 set dummy dsymutil
; ac_word
=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7072 $as_echo_n "(cached) " >&6
7074 if test -n "$ac_ct_DSYMUTIL"; then
7075 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir
=.
7082 for ac_exec_ext
in '' $ac_executable_extensions; do
7083 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7095 if test -n "$ac_ct_DSYMUTIL"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7097 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7103 if test "x$ac_ct_DSYMUTIL" = x
; then
7106 case $cross_compiling:$ac_tool_warned in
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned
=yes ;;
7112 DSYMUTIL
=$ac_ct_DSYMUTIL
7115 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7120 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_NMEDIT+:} false
; then :
7124 $as_echo_n "(cached) " >&6
7126 if test -n "$NMEDIT"; then
7127 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir
=.
7134 for ac_exec_ext
in '' $ac_executable_extensions; do
7135 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 NMEDIT
=$ac_cv_prog_NMEDIT
7147 if test -n "$NMEDIT"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7149 $as_echo "$NMEDIT" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7157 if test -z "$ac_cv_prog_NMEDIT"; then
7158 ac_ct_NMEDIT
=$NMEDIT
7159 # Extract the first word of "nmedit", so it can be a program name with args.
7160 set dummy nmedit
; ac_word
=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7164 $as_echo_n "(cached) " >&6
7166 if test -n "$ac_ct_NMEDIT"; then
7167 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir
=.
7174 for ac_exec_ext
in '' $ac_executable_extensions; do
7175 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7187 if test -n "$ac_ct_NMEDIT"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7189 $as_echo "$ac_ct_NMEDIT" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7195 if test "x$ac_ct_NMEDIT" = x
; then
7198 case $cross_compiling:$ac_tool_warned in
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned
=yes ;;
7204 NMEDIT
=$ac_ct_NMEDIT
7207 NMEDIT
="$ac_cv_prog_NMEDIT"
7210 if test -n "$ac_tool_prefix"; then
7211 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7212 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_LIPO+:} false
; then :
7216 $as_echo_n "(cached) " >&6
7218 if test -n "$LIPO"; then
7219 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir
=.
7226 for ac_exec_ext
in '' $ac_executable_extensions; do
7227 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 LIPO
=$ac_cv_prog_LIPO
7239 if test -n "$LIPO"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7241 $as_echo "$LIPO" >&6; }
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7249 if test -z "$ac_cv_prog_LIPO"; then
7251 # Extract the first word of "lipo", so it can be a program name with args.
7252 set dummy lipo
; ac_word
=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7256 $as_echo_n "(cached) " >&6
7258 if test -n "$ac_ct_LIPO"; then
7259 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir
=.
7266 for ac_exec_ext
in '' $ac_executable_extensions; do
7267 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_ac_ct_LIPO
="lipo"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7279 if test -n "$ac_ct_LIPO"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7281 $as_echo "$ac_ct_LIPO" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7287 if test "x$ac_ct_LIPO" = x
; then
7290 case $cross_compiling:$ac_tool_warned in
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7294 ac_tool_warned
=yes ;;
7299 LIPO
="$ac_cv_prog_LIPO"
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7304 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_OTOOL+:} false
; then :
7308 $as_echo_n "(cached) " >&6
7310 if test -n "$OTOOL"; then
7311 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir
=.
7318 for ac_exec_ext
in '' $ac_executable_extensions; do
7319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 OTOOL
=$ac_cv_prog_OTOOL
7331 if test -n "$OTOOL"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7333 $as_echo "$OTOOL" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7341 if test -z "$ac_cv_prog_OTOOL"; then
7343 # Extract the first word of "otool", so it can be a program name with args.
7344 set dummy otool
; ac_word
=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7348 $as_echo_n "(cached) " >&6
7350 if test -n "$ac_ct_OTOOL"; then
7351 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7357 test -z "$as_dir" && as_dir
=.
7358 for ac_exec_ext
in '' $ac_executable_extensions; do
7359 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_OTOOL
="otool"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7371 if test -n "$ac_ct_OTOOL"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7373 $as_echo "$ac_ct_OTOOL" >&6; }
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7379 if test "x$ac_ct_OTOOL" = x
; then
7382 case $cross_compiling:$ac_tool_warned in
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7386 ac_tool_warned
=yes ;;
7391 OTOOL
="$ac_cv_prog_OTOOL"
7394 if test -n "$ac_tool_prefix"; then
7395 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7396 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_prog_OTOOL64+:} false
; then :
7400 $as_echo_n "(cached) " >&6
7402 if test -n "$OTOOL64"; then
7403 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7409 test -z "$as_dir" && as_dir
=.
7410 for ac_exec_ext
in '' $ac_executable_extensions; do
7411 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 OTOOL64
=$ac_cv_prog_OTOOL64
7423 if test -n "$OTOOL64"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7425 $as_echo "$OTOOL64" >&6; }
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7433 if test -z "$ac_cv_prog_OTOOL64"; then
7434 ac_ct_OTOOL64
=$OTOOL64
7435 # Extract the first word of "otool64", so it can be a program name with args.
7436 set dummy otool64
; ac_word
=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7440 $as_echo_n "(cached) " >&6
7442 if test -n "$ac_ct_OTOOL64"; then
7443 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir
=.
7450 for ac_exec_ext
in '' $ac_executable_extensions; do
7451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7463 if test -n "$ac_ct_OTOOL64"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7465 $as_echo "$ac_ct_OTOOL64" >&6; }
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7471 if test "x$ac_ct_OTOOL64" = x
; then
7474 case $cross_compiling:$ac_tool_warned in
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478 ac_tool_warned
=yes ;;
7480 OTOOL64
=$ac_ct_OTOOL64
7483 OTOOL64
="$ac_cv_prog_OTOOL64"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7513 $as_echo_n "checking for -single_module linker flag... " >&6; }
7514 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7515 $as_echo_n "(cached) " >&6
7517 lt_cv_apple_cc_single_mod
=no
7518 if test -z "${LT_MULTI_MODULE}"; then
7519 # By default we will add the -single_module flag. You can override
7520 # by either setting the environment variable LT_MULTI_MODULE
7521 # non-empty at configure time, or by adding -multi_module to the
7523 rm -rf libconftest.dylib
*
7524 echo "int foo(void){return 1;}" > conftest.c
7525 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7526 -dynamiclib -Wl,-single_module conftest.c" >&5
7527 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7528 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7530 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7531 lt_cv_apple_cc_single_mod
=yes
7533 cat conftest.err
>&5
7535 rm -rf libconftest.dylib
*
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7540 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7542 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7543 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7544 $as_echo_n "(cached) " >&6
7546 lt_cv_ld_exported_symbols_list
=no
7547 save_LDFLAGS
=$LDFLAGS
7548 echo "_main" > conftest.sym
7549 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7561 if ac_fn_c_try_link
"$LINENO"; then :
7562 lt_cv_ld_exported_symbols_list
=yes
7564 lt_cv_ld_exported_symbols_list
=no
7566 rm -f core conftest.err conftest.
$ac_objext \
7567 conftest
$ac_exeext conftest.
$ac_ext
7568 LDFLAGS
="$save_LDFLAGS"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7572 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7574 $as_echo_n "checking for -force_load linker flag... " >&6; }
7575 if ${lt_cv_ld_force_load+:} false
; then :
7576 $as_echo_n "(cached) " >&6
7578 lt_cv_ld_force_load
=no
7579 cat > conftest.c
<< _LT_EOF
7580 int forced_loaded() { return 2;}
7582 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7583 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7584 echo "$AR cru libconftest.a conftest.o" >&5
7585 $AR cru libconftest.a conftest.o
2>&5
7586 cat > conftest.c
<< _LT_EOF
7587 int main() { return 0;}
7589 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7590 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7592 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7593 lt_cv_ld_force_load
=yes
7595 cat conftest.err
>&5
7597 rm -f conftest.err libconftest.a conftest conftest.c
7598 rm -rf conftest.dSYM
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7602 $as_echo "$lt_cv_ld_force_load" >&6; }
7604 rhapsody
* | darwin1.
[012])
7605 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7607 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7608 darwin
*) # darwin 5.x on
7609 # if running on 10.5 or later, the deployment target defaults
7610 # to the OS version, if on x86, and 10.4, the deployment
7611 # target defaults to 10.4. Don't you love it?
7612 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7613 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7614 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7616 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7618 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7622 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7623 _lt_dar_single_mod
='$single_module'
7625 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7626 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7628 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7630 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7631 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7639 ac_cpp
='$CPP $CPPFLAGS'
7640 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7641 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7642 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7644 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7645 # On Suns, sometimes $CPP names a directory.
7646 if test -n "$CPP" && test -d "$CPP"; then
7649 if test -z "$CPP"; then
7650 if ${ac_cv_prog_CPP+:} false
; then :
7651 $as_echo_n "(cached) " >&6
7653 # Double quotes because CPP needs to be expanded
7654 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7657 for ac_c_preproc_warn_flag
in '' yes
7659 # Use a header file that comes with gcc, so configuring glibc
7660 # with a fresh cross-compiler works.
7661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7662 # <limits.h> exists even on freestanding compilers.
7663 # On the NeXT, cc -E runs the code through the compiler's parser,
7664 # not just through cpp. "Syntax error" is here to catch this case.
7665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7668 # include <limits.h>
7670 # include <assert.h>
7674 if ac_fn_c_try_cpp
"$LINENO"; then :
7677 # Broken: fails on valid input.
7680 rm -f conftest.err conftest.i conftest.
$ac_ext
7682 # OK, works on sane cases. Now check whether nonexistent headers
7683 # can be detected and how.
7684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 #include <ac_nonexistent.h>
7688 if ac_fn_c_try_cpp
"$LINENO"; then :
7689 # Broken: success on invalid input.
7692 # Passes both tests.
7696 rm -f conftest.err conftest.i conftest.
$ac_ext
7699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7700 rm -f conftest.i conftest.err conftest.
$ac_ext
7701 if $ac_preproc_ok; then :
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7714 $as_echo "$CPP" >&6; }
7716 for ac_c_preproc_warn_flag
in '' yes
7718 # Use a header file that comes with gcc, so configuring glibc
7719 # with a fresh cross-compiler works.
7720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721 # <limits.h> exists even on freestanding compilers.
7722 # On the NeXT, cc -E runs the code through the compiler's parser,
7723 # not just through cpp. "Syntax error" is here to catch this case.
7724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7727 # include <limits.h>
7729 # include <assert.h>
7733 if ac_fn_c_try_cpp
"$LINENO"; then :
7736 # Broken: fails on valid input.
7739 rm -f conftest.err conftest.i conftest.
$ac_ext
7741 # OK, works on sane cases. Now check whether nonexistent headers
7742 # can be detected and how.
7743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 #include <ac_nonexistent.h>
7747 if ac_fn_c_try_cpp
"$LINENO"; then :
7748 # Broken: success on invalid input.
7751 # Passes both tests.
7755 rm -f conftest.err conftest.i conftest.
$ac_ext
7758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7759 rm -f conftest.i conftest.err conftest.
$ac_ext
7760 if $ac_preproc_ok; then :
7763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7765 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7766 See \`config.log' for more details" "$LINENO" 5; }
7770 ac_cpp
='$CPP $CPPFLAGS'
7771 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7772 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7773 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7777 $as_echo_n "checking for ANSI C header files... " >&6; }
7778 if ${ac_cv_header_stdc+:} false
; then :
7779 $as_echo_n "(cached) " >&6
7781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7796 if ac_fn_c_try_compile
"$LINENO"; then :
7797 ac_cv_header_stdc
=yes
7799 ac_cv_header_stdc
=no
7801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7803 if test $ac_cv_header_stdc = yes; then
7804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811 $EGREP "memchr" >/dev
/null
2>&1; then :
7814 ac_cv_header_stdc
=no
7820 if test $ac_cv_header_stdc = yes; then
7821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7828 $EGREP "free" >/dev
/null
2>&1; then :
7831 ac_cv_header_stdc
=no
7837 if test $ac_cv_header_stdc = yes; then
7838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7839 if test "$cross_compiling" = yes; then :
7842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7846 #if ((' ' & 0x0FF) == 0x020)
7847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7850 # define ISLOWER(c) \
7851 (('a' <= (c) && (c) <= 'i') \
7852 || ('j' <= (c) && (c) <= 'r') \
7853 || ('s' <= (c) && (c) <= 'z'))
7854 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7862 for (i = 0; i < 256; i++)
7863 if (XOR (islower (i), ISLOWER (i))
7864 || toupper (i) != TOUPPER (i))
7869 if ac_fn_c_try_run
"$LINENO"; then :
7872 ac_cv_header_stdc
=no
7874 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7875 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7881 $as_echo "$ac_cv_header_stdc" >&6; }
7882 if test $ac_cv_header_stdc = yes; then
7884 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7888 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7889 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7890 inttypes.h stdint.h unistd.h
7892 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7893 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7895 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7896 cat >>confdefs.h
<<_ACEOF
7897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905 for ac_header
in dlfcn.h
7907 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7909 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7910 cat >>confdefs.h
<<_ACEOF
7911 #define HAVE_DLFCN_H 1
7932 # Check whether --enable-shared was given.
7933 if test "${enable_shared+set}" = set; then :
7934 enableval
=$enable_shared; p
=${PACKAGE-default}
7936 yes) enable_shared
=yes ;;
7937 no
) enable_shared
=no
;;
7940 # Look at the argument we got. We use all the common list separators.
7941 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7942 for pkg
in $enableval; do
7944 if test "X$pkg" = "X$p"; then
7963 # Check whether --enable-static was given.
7964 if test "${enable_static+set}" = set; then :
7965 enableval
=$enable_static; p
=${PACKAGE-default}
7967 yes) enable_static
=yes ;;
7968 no
) enable_static
=no
;;
7971 # Look at the argument we got. We use all the common list separators.
7972 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7973 for pkg
in $enableval; do
7975 if test "X$pkg" = "X$p"; then
7995 # Check whether --with-pic was given.
7996 if test "${with_pic+set}" = set; then :
7997 withval
=$with_pic; pic_mode
="$withval"
8003 test -z "$pic_mode" && pic_mode
=default
8011 # Check whether --enable-fast-install was given.
8012 if test "${enable_fast_install+set}" = set; then :
8013 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8015 yes) enable_fast_install
=yes ;;
8016 no
) enable_fast_install
=no
;;
8018 enable_fast_install
=no
8019 # Look at the argument we got. We use all the common list separators.
8020 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8021 for pkg
in $enableval; do
8023 if test "X$pkg" = "X$p"; then
8024 enable_fast_install
=yes
8031 enable_fast_install
=yes
8044 # This can be used to rebuild libtool when needed
8045 LIBTOOL_DEPS
="$ltmain"
8047 # Always use our own libtool.
8048 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8075 test -z "$LN_S" && LN_S
="ln -s"
8090 if test -n "${ZSH_VERSION+set}" ; then
8091 setopt NO_GLOB_SUBST
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8095 $as_echo_n "checking for objdir... " >&6; }
8096 if ${lt_cv_objdir+:} false
; then :
8097 $as_echo_n "(cached) " >&6
8099 rm -f .libs
2>/dev
/null
8100 mkdir .libs
2>/dev
/null
8101 if test -d .libs
; then
8104 # MS-DOS does not allow filenames that begin with a dot.
8107 rmdir .libs
2>/dev
/null
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8110 $as_echo "$lt_cv_objdir" >&6; }
8111 objdir
=$lt_cv_objdir
8117 cat >>confdefs.h
<<_ACEOF
8118 #define LT_OBJDIR "$lt_cv_objdir/"
8126 # AIX sometimes has problems with the GCC collect2 program. For some
8127 # reason, if we set the COLLECT_NAMES environment variable, the problems
8128 # vanish in a puff of smoke.
8129 if test "X${COLLECT_NAMES+set}" != Xset
; then
8131 export COLLECT_NAMES
8138 can_build_shared
=yes
8140 # All known linkers require a `.a' archive for static linking (except MSVC,
8141 # which needs '.lib').
8144 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8147 old_CFLAGS
="$CFLAGS"
8149 # Set sane defaults for various variables
8150 test -z "$CC" && CC
=cc
8151 test -z "$LTCC" && LTCC
=$CC
8152 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8153 test -z "$LD" && LD
=ld
8154 test -z "$ac_objext" && ac_objext
=o
8156 for cc_temp
in $compiler""; do
8158 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8159 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8164 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8167 # Only perform the check for file, if the check method requires it
8168 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8169 case $deplibs_check_method in
8171 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8173 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8174 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8175 $as_echo_n "(cached) " >&6
8179 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8182 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8183 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8184 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8185 for ac_dir
in $ac_dummy; do
8187 test -z "$ac_dir" && ac_dir
=.
8188 if test -f $ac_dir/${ac_tool_prefix}file; then
8189 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8190 if test -n "$file_magic_test_file"; then
8191 case $deplibs_check_method in
8193 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8194 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8195 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8196 $EGREP "$file_magic_regex" > /dev
/null
; then
8201 *** Warning: the command libtool uses to detect shared libraries,
8202 *** $file_magic_cmd, produces output that libtool cannot recognize.
8203 *** The result is that libtool may fail to recognize shared libraries
8204 *** as such. This will affect the creation of libtool libraries that
8205 *** depend on shared libraries, but programs linked with such libtool
8206 *** libraries will work regardless of this problem. Nevertheless, you
8207 *** may want to report the problem to your system manager and/or to
8208 *** bug-libtool@gnu.org
8218 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8223 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8224 if test -n "$MAGIC_CMD"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8226 $as_echo "$MAGIC_CMD" >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8236 if test -z "$lt_cv_path_MAGIC_CMD"; then
8237 if test -n "$ac_tool_prefix"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8239 $as_echo_n "checking for file... " >&6; }
8240 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8241 $as_echo_n "(cached) " >&6
8245 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8248 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8249 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8250 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8251 for ac_dir
in $ac_dummy; do
8253 test -z "$ac_dir" && ac_dir
=.
8254 if test -f $ac_dir/file; then
8255 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8256 if test -n "$file_magic_test_file"; then
8257 case $deplibs_check_method in
8259 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8260 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8261 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8262 $EGREP "$file_magic_regex" > /dev
/null
; then
8267 *** Warning: the command libtool uses to detect shared libraries,
8268 *** $file_magic_cmd, produces output that libtool cannot recognize.
8269 *** The result is that libtool may fail to recognize shared libraries
8270 *** as such. This will affect the creation of libtool libraries that
8271 *** depend on shared libraries, but programs linked with such libtool
8272 *** libraries will work regardless of this problem. Nevertheless, you
8273 *** may want to report the problem to your system manager and/or to
8274 *** bug-libtool@gnu.org
8284 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8289 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8290 if test -n "$MAGIC_CMD"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8292 $as_echo "$MAGIC_CMD" >&6; }
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8308 # Use C for the default configuration in the libtool script
8312 ac_cpp
='$CPP $CPPFLAGS'
8313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8318 # Source file extension for C test sources.
8321 # Object file extension for compiled C test sources.
8325 # Code to be used in simple compile tests
8326 lt_simple_compile_test_code
="int some_variable = 0;"
8328 # Code to be used in simple link tests
8329 lt_simple_link_test_code
='int main(){return(0);}'
8337 # If no C compiler was specified, use CC.
8340 # If no C compiler flags were specified, use CFLAGS.
8341 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8343 # Allow CC to be a program name with arguments.
8346 # Save the default compiler, since it gets overwritten when the other
8347 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8348 compiler_DEFAULT
=$CC
8350 # save warnings/boilerplate of simple test code
8351 ac_outfile
=conftest.
$ac_objext
8352 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8353 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8354 _lt_compiler_boilerplate
=`cat conftest.err`
8357 ac_outfile
=conftest.
$ac_objext
8358 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8359 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8360 _lt_linker_boilerplate
=`cat conftest.err`
8365 ## There is no encapsulation within the following macros, do not change
8366 ## the running order or otherwise move them around unless you know exactly
8367 ## what you are doing...
8368 if test -n "$compiler"; then
8370 lt_prog_compiler_no_builtin_flag
=
8372 if test "$GCC" = yes; then
8373 case $cc_basename in
8375 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8377 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8381 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8382 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8383 $as_echo_n "(cached) " >&6
8385 lt_cv_prog_compiler_rtti_exceptions
=no
8386 ac_outfile
=conftest.
$ac_objext
8387 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8388 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8389 # Insert the option either (1) after the last *FLAGS variable, or
8390 # (2) before a word containing "conftest.", or (3) at the end.
8391 # Note that $ac_compile itself does not contain backslashes and begins
8392 # with a dollar sign (not a hyphen), so the echo should work correctly.
8393 # The option is referenced via a variable to avoid confusing sed.
8394 lt_compile
=`echo "$ac_compile" | $SED \
8395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8397 -e 's:$: $lt_compiler_flag:'`
8398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8399 (eval "$lt_compile" 2>conftest.err
)
8401 cat conftest.err
>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 if (exit $ac_status) && test -s "$ac_outfile"; then
8404 # The compiler can only warn and ignore the option if not recognized
8405 # So say no if there are warnings other than the usual output.
8406 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8407 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8408 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8409 lt_cv_prog_compiler_rtti_exceptions
=yes
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8416 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8418 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8419 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8431 lt_prog_compiler_wl
=
8432 lt_prog_compiler_pic
=
8433 lt_prog_compiler_static
=
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8436 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8438 if test "$GCC" = yes; then
8439 lt_prog_compiler_wl
='-Wl,'
8440 lt_prog_compiler_static
='-static'
8444 # All AIX code is PIC.
8445 if test "$host_cpu" = ia64
; then
8446 # AIX 5 now supports IA64 processor
8447 lt_prog_compiler_static
='-Bstatic'
8449 lt_prog_compiler_pic
='-fPIC'
8455 # see comment about AmigaOS4 .so support
8456 lt_prog_compiler_pic
='-fPIC'
8459 # FIXME: we need at least 68020 code to build shared libraries, but
8460 # adding the `-m68020' flag to GCC prevents building anything better,
8462 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8467 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8468 # PIC is the default for these OSes.
8471 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8472 # This hack is so that the source file can tell whether it is being
8473 # built for inclusion in a dll (and should export symbols for example).
8474 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8475 # (--disable-auto-import) libraries
8476 lt_prog_compiler_pic
='-DDLL_EXPORT'
8479 darwin
* | rhapsody
*)
8480 # PIC is the default on this platform
8481 # Common symbols not allowed in MH_DYLIB files
8482 lt_prog_compiler_pic
='-fno-common'
8486 # PIC is the default for Haiku.
8487 # The "-static" flag exists, but is broken.
8488 lt_prog_compiler_static
=
8492 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8493 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8494 # sets the default TLS model and affects inlining.
8500 lt_prog_compiler_pic
='-fPIC'
8506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8507 # Instead, we relocate shared libraries at runtime.
8511 # Just because we use GCC doesn't mean we suddenly get shared libraries
8512 # on systems that don't support them.
8513 lt_prog_compiler_can_build_shared
=no
8518 # QNX uses GNU C++, but need to define -shared option too, otherwise
8520 lt_prog_compiler_pic
='-fPIC -shared'
8524 if test -d /usr
/nec
; then
8525 lt_prog_compiler_pic
=-Kconform_pic
8530 lt_prog_compiler_pic
='-fPIC'
8534 case $cc_basename in
8535 nvcc
*) # Cuda Compiler Driver 2.2
8536 lt_prog_compiler_wl
='-Xlinker '
8537 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8541 # PORTME Check for flag to pass linker flags through the system compiler.
8544 lt_prog_compiler_wl
='-Wl,'
8545 if test "$host_cpu" = ia64
; then
8546 # AIX 5 now supports IA64 processor
8547 lt_prog_compiler_static
='-Bstatic'
8549 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8553 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8554 # This hack is so that the source file can tell whether it is being
8555 # built for inclusion in a dll (and should export symbols for example).
8556 lt_prog_compiler_pic
='-DDLL_EXPORT'
8559 hpux9
* | hpux10
* | hpux11
*)
8560 lt_prog_compiler_wl
='-Wl,'
8561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8568 lt_prog_compiler_pic
='+Z'
8571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8572 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8575 irix5
* | irix6
* | nonstopux
*)
8576 lt_prog_compiler_wl
='-Wl,'
8577 # PIC (with -KPIC) is the default.
8578 lt_prog_compiler_static
='-non_shared'
8581 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8582 case $cc_basename in
8583 # old Intel for x86_64 which still supported -KPIC.
8585 lt_prog_compiler_wl
='-Wl,'
8586 lt_prog_compiler_pic
='-KPIC'
8587 lt_prog_compiler_static
='-static'
8589 # icc used to be incompatible with GCC.
8590 # ICC 10 doesn't accept -KPIC any more.
8592 lt_prog_compiler_wl
='-Wl,'
8593 lt_prog_compiler_pic
='-fPIC'
8594 lt_prog_compiler_static
='-static'
8596 # Lahey Fortran 8.1.
8598 lt_prog_compiler_wl
='-Wl,'
8599 lt_prog_compiler_pic
='--shared'
8600 lt_prog_compiler_static
='--static'
8602 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8603 # Portland Group compilers (*not* the Pentium gcc compiler,
8604 # which looks to be a dead project)
8605 lt_prog_compiler_wl
='-Wl,'
8606 lt_prog_compiler_pic
='-fpic'
8607 lt_prog_compiler_static
='-Bstatic'
8610 lt_prog_compiler_wl
='-Wl,'
8611 # All Alpha code is PIC.
8612 lt_prog_compiler_static
='-non_shared'
8614 xl
* | bgxl
* | bgf
* | mpixl
*)
8615 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8616 lt_prog_compiler_wl
='-Wl,'
8617 lt_prog_compiler_pic
='-qpic'
8618 lt_prog_compiler_static
='-qstaticlink'
8621 case `$CC -V 2>&1 | sed 5q` in
8622 *Sun\ F
* |
*Sun
*Fortran
*)
8623 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8624 lt_prog_compiler_pic
='-KPIC'
8625 lt_prog_compiler_static
='-Bstatic'
8626 lt_prog_compiler_wl
=''
8630 lt_prog_compiler_pic
='-KPIC'
8631 lt_prog_compiler_static
='-Bstatic'
8632 lt_prog_compiler_wl
='-Wl,'
8640 lt_prog_compiler_pic
='-KPIC'
8641 lt_prog_compiler_static
='-Bstatic'
8645 # QNX uses GNU C++, but need to define -shared option too, otherwise
8647 lt_prog_compiler_pic
='-fPIC -shared'
8650 osf3
* | osf4
* | osf5
*)
8651 lt_prog_compiler_wl
='-Wl,'
8652 # All OSF/1 code is PIC.
8653 lt_prog_compiler_static
='-non_shared'
8657 lt_prog_compiler_static
='-non_shared'
8661 lt_prog_compiler_pic
='-KPIC'
8662 lt_prog_compiler_static
='-Bstatic'
8663 case $cc_basename in
8665 lt_prog_compiler_wl
='-Qoption ld ';;
8667 lt_prog_compiler_wl
='-Wl,';;
8672 lt_prog_compiler_wl
='-Qoption ld '
8673 lt_prog_compiler_pic
='-PIC'
8674 lt_prog_compiler_static
='-Bstatic'
8677 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8678 lt_prog_compiler_wl
='-Wl,'
8679 lt_prog_compiler_pic
='-KPIC'
8680 lt_prog_compiler_static
='-Bstatic'
8684 if test -d /usr
/nec
;then
8685 lt_prog_compiler_pic
='-Kconform_pic'
8686 lt_prog_compiler_static
='-Bstatic'
8690 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8691 lt_prog_compiler_wl
='-Wl,'
8692 lt_prog_compiler_pic
='-KPIC'
8693 lt_prog_compiler_static
='-Bstatic'
8697 lt_prog_compiler_wl
='-Wl,'
8698 lt_prog_compiler_can_build_shared
=no
8702 lt_prog_compiler_pic
='-pic'
8703 lt_prog_compiler_static
='-Bstatic'
8707 lt_prog_compiler_can_build_shared
=no
8713 # For platforms which do not support PIC, -DPIC is meaningless:
8715 lt_prog_compiler_pic
=
8718 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8722 $as_echo "$lt_prog_compiler_pic" >&6; }
8730 # Check to make sure the PIC flag actually works.
8732 if test -n "$lt_prog_compiler_pic"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8734 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8735 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8736 $as_echo_n "(cached) " >&6
8738 lt_cv_prog_compiler_pic_works
=no
8739 ac_outfile
=conftest.
$ac_objext
8740 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8741 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8742 # Insert the option either (1) after the last *FLAGS variable, or
8743 # (2) before a word containing "conftest.", or (3) at the end.
8744 # Note that $ac_compile itself does not contain backslashes and begins
8745 # with a dollar sign (not a hyphen), so the echo should work correctly.
8746 # The option is referenced via a variable to avoid confusing sed.
8747 lt_compile
=`echo "$ac_compile" | $SED \
8748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8750 -e 's:$: $lt_compiler_flag:'`
8751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8752 (eval "$lt_compile" 2>conftest.err
)
8754 cat conftest.err
>&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 if (exit $ac_status) && test -s "$ac_outfile"; then
8757 # The compiler can only warn and ignore the option if not recognized
8758 # So say no if there are warnings other than the usual output.
8759 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8760 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8761 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8762 lt_cv_prog_compiler_pic_works
=yes
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8769 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8771 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8772 case $lt_prog_compiler_pic in
8774 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8777 lt_prog_compiler_pic
=
8778 lt_prog_compiler_can_build_shared
=no
8789 # Check to make sure the static flag actually works.
8791 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8793 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8794 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8795 $as_echo_n "(cached) " >&6
8797 lt_cv_prog_compiler_static_works
=no
8798 save_LDFLAGS
="$LDFLAGS"
8799 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8800 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8801 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8802 # The linker can only warn and ignore the option if not recognized
8803 # So say no if there are warnings
8804 if test -s conftest.err
; then
8805 # Append any errors to the config.log.
8806 cat conftest.err
1>&5
8807 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8808 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8809 if diff conftest.exp conftest.er2
>/dev
/null
; then
8810 lt_cv_prog_compiler_static_works
=yes
8813 lt_cv_prog_compiler_static_works
=yes
8817 LDFLAGS
="$save_LDFLAGS"
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8821 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8823 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8826 lt_prog_compiler_static
=
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8836 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8837 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8838 $as_echo_n "(cached) " >&6
8840 lt_cv_prog_compiler_c_o
=no
8841 $RM -r conftest
2>/dev
/null
8845 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8847 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8848 # Insert the option either (1) after the last *FLAGS variable, or
8849 # (2) before a word containing "conftest.", or (3) at the end.
8850 # Note that $ac_compile itself does not contain backslashes and begins
8851 # with a dollar sign (not a hyphen), so the echo should work correctly.
8852 lt_compile
=`echo "$ac_compile" | $SED \
8853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855 -e 's:$: $lt_compiler_flag:'`
8856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8857 (eval "$lt_compile" 2>out
/conftest.err
)
8859 cat out
/conftest.err
>&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8863 # The compiler can only warn and ignore the option if not recognized
8864 # So say no if there are warnings
8865 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8866 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8867 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8868 lt_cv_prog_compiler_c_o
=yes
8873 # SGI C++ compiler will create directory out/ii_files/ for
8874 # template instantiation
8875 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8876 $RM out
/* && rmdir out
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8883 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8891 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8892 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8893 $as_echo_n "(cached) " >&6
8895 lt_cv_prog_compiler_c_o
=no
8896 $RM -r conftest
2>/dev
/null
8900 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8902 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8903 # Insert the option either (1) after the last *FLAGS variable, or
8904 # (2) before a word containing "conftest.", or (3) at the end.
8905 # Note that $ac_compile itself does not contain backslashes and begins
8906 # with a dollar sign (not a hyphen), so the echo should work correctly.
8907 lt_compile
=`echo "$ac_compile" | $SED \
8908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8910 -e 's:$: $lt_compiler_flag:'`
8911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8912 (eval "$lt_compile" 2>out
/conftest.err
)
8914 cat out
/conftest.err
>&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8918 # The compiler can only warn and ignore the option if not recognized
8919 # So say no if there are warnings
8920 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8921 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8922 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8923 lt_cv_prog_compiler_c_o
=yes
8928 # SGI C++ compiler will create directory out/ii_files/ for
8929 # template instantiation
8930 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8931 $RM out
/* && rmdir out
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8938 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8943 hard_links
="nottested"
8944 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8945 # do not overwrite the value of need_locks provided by the user
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8947 $as_echo_n "checking if we can lock with hard links... " >&6; }
8950 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8952 ln conftest.a conftest.b
2>&5 || hard_links
=no
8953 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8955 $as_echo "$hard_links" >&6; }
8956 if test "$hard_links" = no
; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8958 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8971 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8974 allow_undefined_flag
=
8975 always_export_symbols
=no
8977 archive_expsym_cmds
=
8978 compiler_needs_object
=no
8979 enable_shared_with_static_runtimes
=no
8980 export_dynamic_flag_spec
=
8981 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8982 hardcode_automatic
=no
8984 hardcode_direct_absolute
=no
8985 hardcode_libdir_flag_spec
=
8986 hardcode_libdir_flag_spec_ld
=
8987 hardcode_libdir_separator
=
8989 hardcode_shlibpath_var
=unsupported
8991 link_all_deplibs
=unknown
8994 old_archive_from_new_cmds
=
8995 old_archive_from_expsyms_cmds
=
8996 thread_safe_flag_spec
=
8997 whole_archive_flag_spec
=
8998 # include_expsyms should be a list of space-separated symbols to be *always*
8999 # included in the symbol list
9001 # exclude_expsyms can be an extended regexp of symbols to exclude
9002 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9003 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9004 # as well as any symbol that contains `d'.
9005 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9006 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9007 # platforms (ab)use it in PIC code, but their linkers get confused if
9008 # the symbol is explicitly referenced. Since portable code cannot
9009 # rely on this symbol name, it's probably fine to never include it in
9010 # preloaded symbol tables.
9011 # Exclude shared library initialization/finalization symbols.
9012 extract_expsyms_cmds
=
9015 cygwin
* | mingw
* | pw32
* | cegcc
*)
9016 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9017 # When not using gcc, we currently assume that we are using
9018 # Microsoft Visual C++.
9019 if test "$GCC" != yes; then
9024 # we just hope/assume this is gcc and not c89 (= MSVC++)
9034 # On some targets, GNU ld is compatible enough with the native linker
9035 # that we're better off using the native interface for both.
9036 lt_use_gnu_ld_interface
=no
9037 if test "$with_gnu_ld" = yes; then
9040 # The AIX port of GNU ld has always aspired to compatibility
9041 # with the native linker. However, as the warning in the GNU ld
9042 # block says, versions before 2.19.5* couldn't really create working
9043 # shared libraries, regardless of the interface used.
9044 case `$LD -v 2>&1` in
9045 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9046 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9047 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9049 lt_use_gnu_ld_interface
=yes
9054 lt_use_gnu_ld_interface
=yes
9059 if test "$lt_use_gnu_ld_interface" = yes; then
9060 # If archive_cmds runs LD, not CC, wlarc should be empty
9063 # Set some defaults for GNU ld with shared library support. These
9064 # are reset later if shared libraries are not supported. Putting them
9065 # here allows them to be overridden if necessary.
9066 runpath_var
=LD_RUN_PATH
9067 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9068 export_dynamic_flag_spec
='${wl}--export-dynamic'
9069 # ancient GNU ld didn't support --whole-archive et. al.
9070 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9071 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9073 whole_archive_flag_spec
=
9075 supports_anon_versioning
=no
9076 case `$LD -v 2>&1` in
9077 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9078 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9079 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9080 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9081 *\
2.11.
*) ;; # other 2.11 versions
9082 *) supports_anon_versioning
=yes ;;
9085 # See if GNU ld supports shared libraries.
9088 # On AIX/PPC, the GNU linker is very broken
9089 if test "$host_cpu" != ia64
; then
9093 *** Warning: the GNU linker, at least up to release 2.19, is reported
9094 *** to be unable to reliably create shared libraries on AIX.
9095 *** Therefore, libtool is disabling shared libraries support. If you
9096 *** really care for shared libraries, you may want to install binutils
9097 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9098 *** You will then need to restart the configuration process.
9107 # see comment about AmigaOS4 .so support
9108 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109 archive_expsym_cmds
=''
9112 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)'
9113 hardcode_libdir_flag_spec
='-L$libdir'
9114 hardcode_minus_L
=yes
9120 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9121 allow_undefined_flag
=unsupported
9122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9123 # support --undefined. This deserves some investigation. FIXME
9124 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9130 cygwin
* | mingw
* | pw32
* | cegcc
*)
9131 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9132 # as there is no search path for DLLs.
9133 hardcode_libdir_flag_spec
='-L$libdir'
9134 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9135 allow_undefined_flag
=unsupported
9136 always_export_symbols
=no
9137 enable_shared_with_static_runtimes
=yes
9138 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9140 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9141 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9142 # If the export-symbols file already is a .def file (1st line
9143 # is EXPORTS), use it as is; otherwise, prepend...
9144 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9145 cp $export_symbols $output_objdir/$soname.def;
9147 echo EXPORTS > $output_objdir/$soname.def;
9148 cat $export_symbols >> $output_objdir/$soname.def;
9150 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9157 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158 link_all_deplibs
=yes
9163 hardcode_shlibpath_var
=no
9164 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9165 export_dynamic_flag_spec
='${wl}-E'
9166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9167 # Instead, shared libraries are loaded at an image base (0x10000000 by
9168 # default) and relocated if they conflict, which is a slow very memory
9169 # consuming and fragmenting process. To avoid this, we pick a random,
9170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9172 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9173 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'
9176 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9178 if test "$host_os" = linux-dietlibc
; then
9179 case $cc_basename in
9180 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9183 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9184 && test "$tmp_diet" = no
9186 tmp_addflag
=' $pic_flag'
9187 tmp_sharedflag
='-shared'
9188 case $cc_basename,$host_cpu in
9189 pgcc
*) # Portland Group C compiler
9190 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'
9191 tmp_addflag
=' $pic_flag'
9193 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9194 # Portland Group f77 and f90 compilers
9195 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'
9196 tmp_addflag
=' $pic_flag -Mnomain' ;;
9197 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9198 tmp_addflag
=' -i_dynamic' ;;
9199 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9200 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9201 ifc
* | ifort
*) # Intel Fortran compiler
9202 tmp_addflag
=' -nofor_main' ;;
9203 lf95
*) # Lahey Fortran 8.1
9204 whole_archive_flag_spec
=
9205 tmp_sharedflag
='--shared' ;;
9206 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9207 tmp_sharedflag
='-qmkshrobj'
9209 nvcc
*) # Cuda Compiler Driver 2.2
9210 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'
9211 compiler_needs_object
=yes
9214 case `$CC -V 2>&1 | sed 5q` in
9215 *Sun\ C
*) # Sun C 5.9
9216 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'
9217 compiler_needs_object
=yes
9218 tmp_sharedflag
='-G' ;;
9219 *Sun\ F
*) # Sun Fortran 8.3
9220 tmp_sharedflag
='-G' ;;
9222 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224 if test "x$supports_anon_versioning" = xyes
; then
9225 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9227 echo "local: *; };" >> $output_objdir/$libname.ver~
9228 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9231 case $cc_basename in
9232 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9233 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9234 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9235 hardcode_libdir_flag_spec
=
9236 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9237 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9238 if test "x$supports_anon_versioning" = xyes
; then
9239 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9241 echo "local: *; };" >> $output_objdir/$libname.ver~
9242 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9252 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9253 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9256 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9262 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9266 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9267 *** create shared libraries on Solaris systems. Therefore, libtool
9268 *** is disabling shared libraries support. We urge you to upgrade GNU
9269 *** binutils to release 2.9.1 or newer. Another option is to modify
9270 *** your PATH or compiler configuration so that the native linker is
9271 *** used, and then restart.
9274 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
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'
9282 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9283 case `$LD -v 2>&1` in
9284 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9288 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9289 *** reliably create shared libraries on SCO systems. Therefore, libtool
9290 *** is disabling shared libraries support. We urge you to upgrade GNU
9291 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9292 *** your PATH or compiler configuration so that the native linker is
9293 *** used, and then restart.
9298 # For security reasons, it is highly recommended that you always
9299 # use absolute paths for naming shared libraries, and exclude the
9300 # DT_RUNPATH tag from executables and libraries. But doing so
9301 # requires that you compile everything twice, which is a pain.
9302 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9303 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9304 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9305 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9314 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9317 hardcode_shlibpath_var
=no
9321 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9322 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9330 if test "$ld_shlibs" = no
; then
9332 hardcode_libdir_flag_spec
=
9333 export_dynamic_flag_spec
=
9334 whole_archive_flag_spec
=
9337 # PORTME fill in a description of your system's linker (not GNU ld)
9340 allow_undefined_flag
=unsupported
9341 always_export_symbols
=yes
9342 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'
9343 # Note: this linker hardcodes the directories in LIBPATH if there
9344 # are no directories specified by -L.
9345 hardcode_minus_L
=yes
9346 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9347 # Neither direct hardcoding nor static linking is supported with a
9349 hardcode_direct
=unsupported
9354 if test "$host_cpu" = ia64
; then
9355 # On IA64, the linker does run time linking by default, so we don't
9356 # have to do anything special.
9357 aix_use_runtimelinking
=no
9358 exp_sym_flag
='-Bexport'
9361 # If we're using GNU nm, then we don't want the "-C" option.
9362 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9363 # Also, AIX nm treats weak defined symbols like other global
9364 # defined symbols, whereas GNU nm marks them as "W".
9365 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9366 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'
9368 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'
9370 aix_use_runtimelinking
=no
9372 # Test if we are trying to use run time linking or normal
9373 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9374 # need to do runtime linking.
9375 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9376 for ld_flag
in $LDFLAGS; do
9377 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9378 aix_use_runtimelinking
=yes
9385 exp_sym_flag
='-bexport'
9386 no_entry_flag
='-bnoentry'
9389 # When large executables or shared objects are built, AIX ld can
9390 # have problems creating the table of contents. If linking a library
9391 # or program results in "error TOC overflow" add -mminimal-toc to
9392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9397 hardcode_direct_absolute
=yes
9398 hardcode_libdir_separator
=':'
9399 link_all_deplibs
=yes
9400 file_list_spec
='${wl}-f,'
9402 if test "$GCC" = yes; then
9403 case $host_os in aix4.
[012]|aix4.
[012].
*)
9404 # We only want to do this on AIX 4.2 and lower, the check
9405 # below for broken collect2 doesn't work under 4.3+
9406 collect2name
=`${CC} -print-prog-name=collect2`
9407 if test -f "$collect2name" &&
9408 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9410 # We have reworked collect2
9413 # We have old collect2
9414 hardcode_direct
=unsupported
9415 # It fails to find uninstalled libraries when the uninstalled
9416 # path is not listed in the libpath. Setting hardcode_minus_L
9417 # to unsupported forces relinking
9418 hardcode_minus_L
=yes
9419 hardcode_libdir_flag_spec
='-L$libdir'
9420 hardcode_libdir_separator
=
9424 shared_flag
='-shared'
9425 if test "$aix_use_runtimelinking" = yes; then
9426 shared_flag
="$shared_flag "'${wl}-G'
9430 if test "$host_cpu" = ia64
; then
9431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9432 # chokes on -Wl,-G. The following line is correct:
9435 if test "$aix_use_runtimelinking" = yes; then
9436 shared_flag
='${wl}-G'
9438 shared_flag
='${wl}-bM:SRE'
9443 export_dynamic_flag_spec
='${wl}-bexpall'
9444 # It seems that -bexpall does not export symbols beginning with
9445 # underscore (_), so it is better to generate a list of symbols to export.
9446 always_export_symbols
=yes
9447 if test "$aix_use_runtimelinking" = yes; then
9448 # Warning - without using the other runtime loading flags (-brtl),
9449 # -berok will link without error, but may produce a broken library.
9450 allow_undefined_flag
='-berok'
9451 # Determine the default libpath from the value encoded in an
9453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9464 if ac_fn_c_try_link
"$LINENO"; then :
9466 lt_aix_libpath_sed
='
9467 /Import File Strings/,/^$/ {
9473 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9474 # Check for a 64-bit object if we didn't find anything.
9475 if test -z "$aix_libpath"; then
9476 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9479 rm -f core conftest.err conftest.
$ac_objext \
9480 conftest
$ac_exeext conftest.
$ac_ext
9481 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9483 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9484 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"
9486 if test "$host_cpu" = ia64
; then
9487 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9488 allow_undefined_flag
="-z nodefs"
9489 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"
9491 # Determine the default libpath from the value encoded in an
9493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9504 if ac_fn_c_try_link
"$LINENO"; then :
9506 lt_aix_libpath_sed
='
9507 /Import File Strings/,/^$/ {
9513 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9514 # Check for a 64-bit object if we didn't find anything.
9515 if test -z "$aix_libpath"; then
9516 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9519 rm -f core conftest.err conftest.
$ac_objext \
9520 conftest
$ac_exeext conftest.
$ac_ext
9521 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9523 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9524 # Warning - without using the other run time loading flags,
9525 # -berok will link without error, but may produce a broken library.
9526 no_undefined_flag
=' ${wl}-bernotok'
9527 allow_undefined_flag
=' ${wl}-berok'
9528 if test "$with_gnu_ld" = yes; then
9529 # We only use this code for GNU lds that support --whole-archive.
9530 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9532 # Exported symbols can be pulled into shared objects from archives
9533 whole_archive_flag_spec
='$convenience'
9535 archive_cmds_need_lc
=yes
9536 # This is similar to how AIX traditionally builds its shared libraries.
9537 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'
9545 # see comment about AmigaOS4 .so support
9546 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 archive_expsym_cmds
=''
9550 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)'
9551 hardcode_libdir_flag_spec
='-L$libdir'
9552 hardcode_minus_L
=yes
9558 export_dynamic_flag_spec
=-rdynamic
9561 cygwin
* | mingw
* | pw32
* | cegcc
*)
9562 # When not using gcc, we currently assume that we are using
9563 # Microsoft Visual C++.
9564 # hardcode_libdir_flag_spec is actually meaningless, as there is
9565 # no search path for DLLs.
9566 hardcode_libdir_flag_spec
=' '
9567 allow_undefined_flag
=unsupported
9568 # Tell ltmain to make .lib files, not .a files.
9570 # Tell ltmain to make .dll files, not .so files.
9572 # FIXME: Setting linknames here is a bad hack.
9573 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9574 # The linker will automatically build a .lib file if we build a DLL.
9575 old_archive_from_new_cmds
='true'
9576 # FIXME: Should let the user specify the lib program.
9577 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9578 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9579 enable_shared_with_static_runtimes
=yes
9582 darwin
* | rhapsody
*)
9585 archive_cmds_need_lc
=no
9587 hardcode_automatic
=yes
9588 hardcode_shlibpath_var
=unsupported
9589 if test "$lt_cv_ld_force_load" = "yes"; then
9590 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\"`'
9592 whole_archive_flag_spec
=''
9594 link_all_deplibs
=yes
9595 allow_undefined_flag
="$_lt_dar_allow_undefined"
9596 case $cc_basename in
9597 ifort
*) _lt_dar_can_shared
=yes ;;
9598 *) _lt_dar_can_shared
=$GCC ;;
9600 if test "$_lt_dar_can_shared" = "yes"; then
9601 output_verbose_link_cmd
=func_echo_all
9602 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9603 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9604 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}"
9605 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}"
9614 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615 hardcode_libdir_flag_spec
='-L$libdir'
9616 hardcode_shlibpath_var
=no
9619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9620 # support. Future versions do this automatically, but an explicit c++rt0.o
9621 # does not break anything, and helps significantly (at the cost of a little
9624 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9625 hardcode_libdir_flag_spec
='-R$libdir'
9627 hardcode_shlibpath_var
=no
9630 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9632 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9634 hardcode_minus_L
=yes
9635 hardcode_shlibpath_var
=no
9638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9639 freebsd
* | dragonfly
*)
9640 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9641 hardcode_libdir_flag_spec
='-R$libdir'
9643 hardcode_shlibpath_var
=no
9647 if test "$GCC" = yes; then
9648 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'
9650 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'
9652 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9653 hardcode_libdir_separator
=:
9656 # hardcode_minus_L: Not really in the search PATH,
9657 # but as the default location of the library.
9658 hardcode_minus_L
=yes
9659 export_dynamic_flag_spec
='${wl}-E'
9663 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9664 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9668 if test "$with_gnu_ld" = no
; then
9669 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9670 hardcode_libdir_flag_spec_ld
='+b $libdir'
9671 hardcode_libdir_separator
=:
9673 hardcode_direct_absolute
=yes
9674 export_dynamic_flag_spec
='${wl}-E'
9675 # hardcode_minus_L: Not really in the search PATH,
9676 # but as the default location of the library.
9677 hardcode_minus_L
=yes
9682 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9685 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9691 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9704 # Older versions of the 11.00 compiler do not understand -b yet
9705 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9707 $as_echo_n "checking if $CC understands -b... " >&6; }
9708 if ${lt_cv_prog_compiler__b+:} false
; then :
9709 $as_echo_n "(cached) " >&6
9711 lt_cv_prog_compiler__b
=no
9712 save_LDFLAGS
="$LDFLAGS"
9713 LDFLAGS
="$LDFLAGS -b"
9714 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9715 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9716 # The linker can only warn and ignore the option if not recognized
9717 # So say no if there are warnings
9718 if test -s conftest.err
; then
9719 # Append any errors to the config.log.
9720 cat conftest.err
1>&5
9721 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9722 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9723 if diff conftest.exp conftest.er2
>/dev
/null
; then
9724 lt_cv_prog_compiler__b
=yes
9727 lt_cv_prog_compiler__b
=yes
9731 LDFLAGS
="$save_LDFLAGS"
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9735 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9737 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9738 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9746 if test "$with_gnu_ld" = no
; then
9747 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9748 hardcode_libdir_separator
=:
9753 hardcode_shlibpath_var
=no
9757 hardcode_direct_absolute
=yes
9758 export_dynamic_flag_spec
='${wl}-E'
9760 # hardcode_minus_L: Not really in the search PATH,
9761 # but as the default location of the library.
9762 hardcode_minus_L
=yes
9768 irix5
* | irix6
* | nonstopux
*)
9769 if test "$GCC" = yes; then
9770 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'
9771 # Try to use the -exported_symbol ld option, if it does not
9772 # work, assume that -exports_file does not work either and
9773 # implicitly export all symbols.
9774 save_LDFLAGS
="$LDFLAGS"
9775 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9780 if ac_fn_c_try_link
"$LINENO"; then :
9781 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'
9784 rm -f core conftest.err conftest.
$ac_objext \
9785 conftest
$ac_exeext conftest.
$ac_ext
9786 LDFLAGS
="$save_LDFLAGS"
9788 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'
9789 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'
9791 archive_cmds_need_lc
='no'
9792 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9793 hardcode_libdir_separator
=:
9795 link_all_deplibs
=yes
9799 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9800 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9802 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9804 hardcode_libdir_flag_spec
='-R$libdir'
9806 hardcode_shlibpath_var
=no
9810 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9813 hardcode_libdir_separator
=:
9814 hardcode_shlibpath_var
=no
9821 if test -f /usr
/libexec
/ld.so
; then
9823 hardcode_shlibpath_var
=no
9824 hardcode_direct_absolute
=yes
9825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9826 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9828 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9829 export_dynamic_flag_spec
='${wl}-E'
9832 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9833 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9834 hardcode_libdir_flag_spec
='-R$libdir'
9837 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9838 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9848 hardcode_libdir_flag_spec
='-L$libdir'
9849 hardcode_minus_L
=yes
9850 allow_undefined_flag
=unsupported
9851 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'
9852 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9856 if test "$GCC" = yes; then
9857 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9858 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'
9860 allow_undefined_flag
=' -expect_unresolved \*'
9861 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'
9863 archive_cmds_need_lc
='no'
9864 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9865 hardcode_libdir_separator
=:
9868 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9869 if test "$GCC" = yes; then
9870 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9871 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'
9872 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9874 allow_undefined_flag
=' -expect_unresolved \*'
9875 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'
9876 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~
9877 $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'
9879 # Both c and cxx compiler support -rpath directly
9880 hardcode_libdir_flag_spec
='-rpath $libdir'
9882 archive_cmds_need_lc
='no'
9883 hardcode_libdir_separator
=:
9887 no_undefined_flag
=' -z defs'
9888 if test "$GCC" = yes; then
9890 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9891 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9892 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9894 case `$CC -V 2>&1` in
9897 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9899 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9903 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9904 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9905 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9909 hardcode_libdir_flag_spec
='-R$libdir'
9910 hardcode_shlibpath_var
=no
9912 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9914 # The compiler driver will combine and reorder linker options,
9915 # but understands `-z linker_flag'. GCC discards it without `$wl',
9916 # but is careful enough not to reorder.
9917 # Supported since Solaris 2.6 (maybe 2.5.1?)
9918 if test "$GCC" = yes; then
9919 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9921 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9925 link_all_deplibs
=yes
9929 if test "x$host_vendor" = xsequent
; then
9930 # Use $CC to link under sequent, because it throws in some extra .o
9931 # files that make .init and .fini sections work.
9932 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9936 hardcode_libdir_flag_spec
='-L$libdir'
9938 hardcode_minus_L
=yes
9939 hardcode_shlibpath_var
=no
9943 case $host_vendor in
9945 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9946 hardcode_direct
=yes # is this really true???
9949 ## LD is ld it makes a PLAMLIB
9950 ## CC just makes a GrossModule.
9951 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9952 reload_cmds
='$CC -r -o $output$reload_objs'
9956 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9960 runpath_var
='LD_RUN_PATH'
9961 hardcode_shlibpath_var
=no
9965 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9966 hardcode_shlibpath_var
=no
9967 export_dynamic_flag_spec
='-Bexport'
9971 if test -d /usr
/nec
; then
9972 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_shlibpath_var
=no
9974 runpath_var
=LD_RUN_PATH
9975 hardcode_runpath_var
=yes
9980 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9981 no_undefined_flag
='${wl}-z,text'
9982 archive_cmds_need_lc
=no
9983 hardcode_shlibpath_var
=no
9984 runpath_var
='LD_RUN_PATH'
9986 if test "$GCC" = yes; then
9987 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 sysv5
* | sco3.2v5
* | sco5v6
*)
9996 # Note: We can NOT use -z defs as we might desire, because we do not
9997 # link with -lc, and that would cause any symbols used from libc to
9998 # always be unresolved, which means just about no library would
9999 # ever link correctly. If we're not using GNU ld we use -z text
10000 # though, which does catch some bad symbols but isn't as heavy-handed
10002 no_undefined_flag
='${wl}-z,text'
10003 allow_undefined_flag
='${wl}-z,nodefs'
10004 archive_cmds_need_lc
=no
10005 hardcode_shlibpath_var
=no
10006 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10007 hardcode_libdir_separator
=':'
10008 link_all_deplibs
=yes
10009 export_dynamic_flag_spec
='${wl}-Bexport'
10010 runpath_var
='LD_RUN_PATH'
10012 if test "$GCC" = yes; then
10013 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023 hardcode_libdir_flag_spec
='-L$libdir'
10024 hardcode_shlibpath_var
=no
10032 if test x
$host_vendor = xsni
; then
10034 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10035 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10042 $as_echo "$ld_shlibs" >&6; }
10043 test "$ld_shlibs" = no
&& can_build_shared
=no
10045 with_gnu_ld
=$with_gnu_ld
10062 # Do we need to explicitly link libc?
10064 case "x$archive_cmds_need_lc" in
10066 # Assume -lc should be added
10067 archive_cmds_need_lc
=yes
10069 if test "$enable_shared" = yes && test "$GCC" = yes; then
10070 case $archive_cmds in
10072 # FIXME: we may have to deal with multi-command sequences.
10075 # Test whether the compiler implicitly links with -lc since on some
10076 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10077 # to ld, don't add -lc before -lgcc.
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10079 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10080 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10081 $as_echo_n "(cached) " >&6
10084 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10087 (eval $ac_compile) 2>&5
10089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10090 test $ac_status = 0; } 2>conftest.err
; then
10093 libobjs
=conftest.
$ac_objext
10095 wl
=$lt_prog_compiler_wl
10096 pic_flag
=$lt_prog_compiler_pic
10102 lt_save_allow_undefined_flag
=$allow_undefined_flag
10103 allow_undefined_flag
=
10104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10105 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10108 test $ac_status = 0; }
10110 lt_cv_archive_cmds_need_lc
=no
10112 lt_cv_archive_cmds_need_lc
=yes
10114 allow_undefined_flag
=$lt_save_allow_undefined_flag
10116 cat conftest.err
1>&5
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10122 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10123 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10287 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10289 if test "$GCC" = yes; then
10291 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10292 *) lt_awk_arg
="/^libraries:/" ;;
10295 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10296 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10298 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10299 case $lt_search_path_spec in
10301 # if the path contains ";" then we assume it to be the separator
10302 # otherwise default to the standard path separator (i.e. ":") - it is
10303 # assumed that no part of a normal pathname contains ";" but that should
10304 # okay in the real world where ";" in dirpaths is itself problematic.
10305 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10308 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10311 # Ok, now we have the path, separated by spaces, we can step through it
10312 # and add multilib dir if necessary.
10313 lt_tmp_lt_search_path_spec
=
10314 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10315 for lt_sys_path
in $lt_search_path_spec; do
10316 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10317 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10319 test -d "$lt_sys_path" && \
10320 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10323 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10324 BEGIN {RS=" "; FS="/|\n";} {
10327 for (lt_i = NF; lt_i > 0; lt_i--) {
10328 if ($lt_i != "" && $lt_i != ".") {
10329 if ($lt_i == "..") {
10332 if (lt_count == 0) {
10333 lt_foo="/" $lt_i lt_foo;
10340 if (lt_foo != "") { lt_freq[lt_foo]++; }
10341 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10343 # AWK program above erroneously prepends '/' to C:/dos/paths
10346 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10347 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10349 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10351 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10353 library_names_spec
=
10354 libname_spec
='lib$name'
10358 postuninstall_cmds
=
10362 shlibpath_overrides_runpath
=unknown
10364 dynamic_linker
="$host_os ld.so"
10365 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10366 need_lib_prefix
=unknown
10367 hardcode_into_libs
=no
10369 # when you set need_version to no, make sure it does not cause -set_version
10370 # flags to be left without arguments
10371 need_version
=unknown
10376 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10377 shlibpath_var
=LIBPATH
10379 # AIX 3 has no versioning support, so we append a major version to the name.
10380 soname_spec
='${libname}${release}${shared_ext}$major'
10387 hardcode_into_libs
=yes
10388 if test "$host_cpu" = ia64
; then
10389 # AIX 5 supports IA64
10390 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10391 shlibpath_var
=LD_LIBRARY_PATH
10393 # With GCC up to 2.95.x, collect2 would create an import file
10394 # for dependence libraries. The import file would start with
10395 # the line `#! .'. This would cause the generated library to
10396 # depend on `.', always an invalid library. This was fixed in
10397 # development snapshots of GCC prior to 3.0.
10399 aix4 | aix4.
[01] | aix4.
[01].
*)
10400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10402 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10405 can_build_shared
=no
10409 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10410 # soname into executable. Probably we can add versioning support to
10411 # collect2, so additional links can be useful in future.
10412 if test "$aix_use_runtimelinking" = yes; then
10413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10414 # instead of lib<name>.a to let people know that these are not
10415 # typical AIX shared libraries.
10416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 # We preserve .a as extension for shared libraries through AIX4.2
10419 # and later when we are not doing run time linking.
10420 library_names_spec
='${libname}${release}.a $libname.a'
10421 soname_spec
='${libname}${release}${shared_ext}$major'
10423 shlibpath_var
=LIBPATH
10430 # Since July 2007 AmigaOS4 officially supports .so libraries.
10431 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435 library_names_spec
='$libname.ixlibrary $libname.a'
10436 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10437 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'
10443 library_names_spec
='${libname}${shared_ext}'
10444 dynamic_linker
="$host_os ld.so"
10445 shlibpath_var
=LIBRARY_PATH
10451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 soname_spec
='${libname}${release}${shared_ext}$major'
10453 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10454 shlibpath_var
=LD_LIBRARY_PATH
10455 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10456 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10457 # the default ld.so.conf also contains /usr/contrib/lib and
10458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10459 # libtool to hard-code these into programs
10462 cygwin
* | mingw
* | pw32
* | cegcc
*)
10463 version_type
=windows
10468 case $GCC,$host_os in
10469 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10470 library_names_spec
='$libname.dll.a'
10471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10472 postinstall_cmds
='base_file=`basename \${file}`~
10473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10474 dldir=$destdir/`dirname \$dlpath`~
10475 test -d \$dldir || mkdir -p \$dldir~
10476 $install_prog $dir/$dlname \$dldir/$dlname~
10477 chmod a+x \$dldir/$dlname~
10478 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10479 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10481 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10482 dlpath=$dir/\$dldll~
10484 shlibpath_overrides_runpath
=yes
10488 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10489 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10491 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10494 # MinGW DLLs use traditional 'lib' prefix
10495 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10498 # pw32 DLLs use 'pw' prefix rather than 'lib'
10499 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10505 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10508 dynamic_linker
='Win32 ld.exe'
10509 # FIXME: first we should search . and the directory the executable is in
10513 darwin
* | rhapsody
*)
10514 dynamic_linker
="$host_os dyld"
10515 version_type
=darwin
10518 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10519 soname_spec
='${libname}${release}${major}$shared_ext'
10520 shlibpath_overrides_runpath
=yes
10521 shlibpath_var
=DYLD_LIBRARY_PATH
10522 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10524 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10525 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10533 soname_spec
='${libname}${release}${shared_ext}$major'
10534 shlibpath_var
=LD_LIBRARY_PATH
10537 freebsd
* | dragonfly
*)
10538 # DragonFly does not have aout. When/if they implement a new
10539 # versioning mechanism, adjust this.
10540 if test -x /usr
/bin
/objformat
; then
10541 objformat
=`/usr/bin/objformat`
10544 freebsd
[23].
*) objformat
=aout
;;
10545 *) objformat
=elf
;;
10548 version_type
=freebsd-
$objformat
10549 case $version_type in
10551 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10556 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10560 shlibpath_var
=LD_LIBRARY_PATH
10563 shlibpath_overrides_runpath
=yes
10565 freebsd3.
[01]* | freebsdelf3.
[01]*)
10566 shlibpath_overrides_runpath
=yes
10567 hardcode_into_libs
=yes
10569 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10570 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10571 shlibpath_overrides_runpath
=no
10572 hardcode_into_libs
=yes
10574 *) # from 4.6 on, and DragonFly
10575 shlibpath_overrides_runpath
=yes
10576 hardcode_into_libs
=yes
10585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10586 soname_spec
='${libname}${release}${shared_ext}$major'
10587 shlibpath_var
=LD_LIBRARY_PATH
10588 hardcode_into_libs
=yes
10595 dynamic_linker
="$host_os runtime_loader"
10596 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10597 soname_spec
='${libname}${release}${shared_ext}$major'
10598 shlibpath_var
=LIBRARY_PATH
10599 shlibpath_overrides_runpath
=yes
10600 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10601 hardcode_into_libs
=yes
10604 hpux9
* | hpux10
* | hpux11
*)
10605 # Give a soname corresponding to the major version so that dld.sl refuses to
10606 # link against other versions.
10613 hardcode_into_libs
=yes
10614 dynamic_linker
="$host_os dld.so"
10615 shlibpath_var
=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32
; then
10620 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10622 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10624 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10628 hardcode_into_libs
=yes
10629 dynamic_linker
="$host_os dld.sl"
10630 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10631 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 soname_spec
='${libname}${release}${shared_ext}$major'
10634 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10635 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10639 dynamic_linker
="$host_os dld.sl"
10640 shlibpath_var
=SHLIB_PATH
10641 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10642 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643 soname_spec
='${libname}${release}${shared_ext}$major'
10646 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10647 postinstall_cmds
='chmod 555 $lib'
10648 # or fails outright, so override atomically:
10649 install_override_mode
=555
10656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10657 soname_spec
='${libname}${release}${shared_ext}$major'
10658 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10659 shlibpath_var
=LD_LIBRARY_PATH
10660 shlibpath_overrides_runpath
=no
10661 hardcode_into_libs
=yes
10664 irix5
* | irix6
* | nonstopux
*)
10666 nonstopux
*) version_type
=nonstopux
;;
10668 if test "$lt_cv_prog_gnu_ld" = yes; then
10676 soname_spec
='${libname}${release}${shared_ext}$major'
10677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10679 irix5
* | nonstopux
*)
10680 libsuff
= shlibsuff
=
10683 case $LD in # libtool.m4 will add one of these switches to LD
10684 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10685 libsuff
= shlibsuff
= libmagic
=32-bit;;
10686 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10687 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10688 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10689 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10690 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10694 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10695 shlibpath_overrides_runpath
=no
10696 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10697 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10698 hardcode_into_libs
=yes
10701 # No shared lib support for Linux oldld, aout, or coff.
10702 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10706 # This must be Linux ELF.
10707 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10711 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec
='${libname}${release}${shared_ext}$major'
10713 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10714 shlibpath_var
=LD_LIBRARY_PATH
10715 shlibpath_overrides_runpath
=no
10717 # Some binutils ld are patched to set DT_RUNPATH
10718 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10719 $as_echo_n "(cached) " >&6
10721 lt_cv_shlibpath_overrides_runpath
=no
10722 save_LDFLAGS
=$LDFLAGS
10723 save_libdir
=$libdir
10724 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10725 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10737 if ac_fn_c_try_link
"$LINENO"; then :
10738 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10739 lt_cv_shlibpath_overrides_runpath
=yes
10742 rm -f core conftest.err conftest.
$ac_objext \
10743 conftest
$ac_exeext conftest.
$ac_ext
10744 LDFLAGS
=$save_LDFLAGS
10745 libdir
=$save_libdir
10749 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10751 # This implies no fast_install, which is unacceptable.
10752 # Some rework will be needed to allow for fast_install
10753 # before this can be enabled.
10754 hardcode_into_libs
=yes
10756 # Append ld.so.conf contents to the search path
10757 if test -f /etc
/ld.so.conf
; then
10758 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' ' '`
10759 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10762 # We used to test for /lib/ld.so.1 and disable shared libraries on
10763 # powerpc, because MkLinux only supported shared libraries with the
10764 # GNU dynamic linker. Since this was broken with cross compilers,
10765 # most powerpc-linux boxes support dynamic linking these days and
10766 # people can always --disable-shared, the test was removed, and we
10767 # assume the GNU/Linux dynamic linker is in use.
10768 dynamic_linker
='GNU/Linux ld.so'
10775 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10777 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10778 dynamic_linker
='NetBSD (a.out) ld.so'
10780 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10781 soname_spec
='${libname}${release}${shared_ext}$major'
10782 dynamic_linker
='NetBSD ld.elf_so'
10784 shlibpath_var
=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath
=yes
10786 hardcode_into_libs
=yes
10791 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 shlibpath_var
=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath
=yes
10800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 soname_spec
='${libname}${release}${shared_ext}$major'
10802 shlibpath_var
=LD_LIBRARY_PATH
10803 shlibpath_overrides_runpath
=no
10804 hardcode_into_libs
=yes
10805 dynamic_linker
='ldqnx.so'
10810 sys_lib_dlsearch_path_spec
="/usr/lib"
10812 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10814 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10815 *) need_version
=no
;;
10817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10818 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10819 shlibpath_var
=LD_LIBRARY_PATH
10820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10822 openbsd2.
[89] | openbsd2.
[89].
*)
10823 shlibpath_overrides_runpath
=no
10826 shlibpath_overrides_runpath
=yes
10830 shlibpath_overrides_runpath
=yes
10835 libname_spec
='$name'
10838 library_names_spec
='$libname${shared_ext} $libname.a'
10839 dynamic_linker
='OS/2 ld.exe'
10840 shlibpath_var
=LIBPATH
10843 osf3
* | osf4
* | osf5
*)
10847 soname_spec
='${libname}${release}${shared_ext}$major'
10848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 shlibpath_var
=LD_LIBRARY_PATH
10850 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10851 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863 soname_spec
='${libname}${release}${shared_ext}$major'
10864 shlibpath_var
=LD_LIBRARY_PATH
10865 shlibpath_overrides_runpath
=yes
10866 hardcode_into_libs
=yes
10867 # ldd complains unless libraries are executable
10868 postinstall_cmds
='chmod +x $lib'
10873 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10874 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10875 shlibpath_var
=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath
=yes
10877 if test "$with_gnu_ld" = yes; then
10885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886 soname_spec
='${libname}${release}${shared_ext}$major'
10887 shlibpath_var
=LD_LIBRARY_PATH
10888 case $host_vendor in
10890 shlibpath_overrides_runpath
=no
10892 runpath_var
=LD_RUN_PATH
10900 shlibpath_overrides_runpath
=no
10901 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10907 if test -d /usr
/nec
;then
10909 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10910 soname_spec
='$libname${shared_ext}.$major'
10911 shlibpath_var
=LD_LIBRARY_PATH
10915 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10916 version_type
=freebsd-elf
10919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10920 soname_spec
='${libname}${release}${shared_ext}$major'
10921 shlibpath_var
=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath
=yes
10923 hardcode_into_libs
=yes
10924 if test "$with_gnu_ld" = yes; then
10925 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10927 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10930 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10934 sys_lib_dlsearch_path_spec
='/usr/lib'
10938 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 shlibpath_var
=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath
=no
10945 hardcode_into_libs
=yes
10950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 soname_spec
='${libname}${release}${shared_ext}$major'
10952 shlibpath_var
=LD_LIBRARY_PATH
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10960 $as_echo "$dynamic_linker" >&6; }
10961 test "$dynamic_linker" = no
&& can_build_shared
=no
10963 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10964 if test "$GCC" = yes; then
10965 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10968 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10969 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10971 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10972 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11067 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11069 if test -n "$hardcode_libdir_flag_spec" ||
11070 test -n "$runpath_var" ||
11071 test "X$hardcode_automatic" = "Xyes" ; then
11073 # We can hardcode non-existent directories.
11074 if test "$hardcode_direct" != no
&&
11075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11076 # have to relink, otherwise we might link with an installed library
11077 # when we should be linking with a yet-to-be-installed one
11078 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11079 test "$hardcode_minus_L" != no
; then
11080 # Linking always hardcodes the temporary library directory.
11081 hardcode_action
=relink
11083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11084 hardcode_action
=immediate
11087 # We cannot hardcode anything, or else we can only hardcode existing
11089 hardcode_action
=unsupported
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11092 $as_echo "$hardcode_action" >&6; }
11094 if test "$hardcode_action" = relink ||
11095 test "$inherit_rpath" = yes; then
11096 # Fast installation is not supported
11097 enable_fast_install
=no
11098 elif test "$shlibpath_overrides_runpath" = yes ||
11099 test "$enable_shared" = no
; then
11100 # Fast installation is not necessary
11101 enable_fast_install
=needless
11109 if test "x$enable_dlopen" != xyes
; then
11110 enable_dlopen
=unknown
11111 enable_dlopen_self
=unknown
11112 enable_dlopen_self_static
=unknown
11119 lt_cv_dlopen
="load_add_on"
11121 lt_cv_dlopen_self
=yes
11124 mingw
* | pw32
* | cegcc
*)
11125 lt_cv_dlopen
="LoadLibrary"
11130 lt_cv_dlopen
="dlopen"
11135 # if libdl is installed we need to link against it
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11138 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11139 $as_echo_n "(cached) " >&6
11141 ac_check_lib_save_LIBS
=$LIBS
11143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11146 /* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11161 if ac_fn_c_try_link
"$LINENO"; then :
11162 ac_cv_lib_dl_dlopen
=yes
11164 ac_cv_lib_dl_dlopen
=no
11166 rm -f core conftest.err conftest.
$ac_objext \
11167 conftest
$ac_exeext conftest.
$ac_ext
11168 LIBS
=$ac_check_lib_save_LIBS
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11172 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11173 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11176 lt_cv_dlopen
="dyld"
11178 lt_cv_dlopen_self
=yes
11185 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11186 if test "x$ac_cv_func_shl_load" = xyes
; then :
11187 lt_cv_dlopen
="shl_load"
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11190 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11191 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11192 $as_echo_n "(cached) " >&6
11194 ac_check_lib_save_LIBS
=$LIBS
11196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11199 /* Override any GCC internal prototype to avoid an error.
11200 Use char because int might match the return type of a GCC
11201 builtin and then its argument prototype would still apply. */
11209 return shl_load ();
11214 if ac_fn_c_try_link
"$LINENO"; then :
11215 ac_cv_lib_dld_shl_load
=yes
11217 ac_cv_lib_dld_shl_load
=no
11219 rm -f core conftest.err conftest.
$ac_objext \
11220 conftest
$ac_exeext conftest.
$ac_ext
11221 LIBS
=$ac_check_lib_save_LIBS
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11224 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11225 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11226 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11228 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11229 if test "x$ac_cv_func_dlopen" = xyes
; then :
11230 lt_cv_dlopen
="dlopen"
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11234 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11235 $as_echo_n "(cached) " >&6
11237 ac_check_lib_save_LIBS
=$LIBS
11239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11242 /* Override any GCC internal prototype to avoid an error.
11243 Use char because int might match the return type of a GCC
11244 builtin and then its argument prototype would still apply. */
11257 if ac_fn_c_try_link
"$LINENO"; then :
11258 ac_cv_lib_dl_dlopen
=yes
11260 ac_cv_lib_dl_dlopen
=no
11262 rm -f core conftest.err conftest.
$ac_objext \
11263 conftest
$ac_exeext conftest.
$ac_ext
11264 LIBS
=$ac_check_lib_save_LIBS
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11268 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11269 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11272 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11273 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11274 $as_echo_n "(cached) " >&6
11276 ac_check_lib_save_LIBS
=$LIBS
11277 LIBS
="-lsvld $LIBS"
11278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11296 if ac_fn_c_try_link
"$LINENO"; then :
11297 ac_cv_lib_svld_dlopen
=yes
11299 ac_cv_lib_svld_dlopen
=no
11301 rm -f core conftest.err conftest.
$ac_objext \
11302 conftest
$ac_exeext conftest.
$ac_ext
11303 LIBS
=$ac_check_lib_save_LIBS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11306 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11307 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11308 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11311 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11312 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11313 $as_echo_n "(cached) " >&6
11315 ac_check_lib_save_LIBS
=$LIBS
11317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11330 return dld_link ();
11335 if ac_fn_c_try_link
"$LINENO"; then :
11336 ac_cv_lib_dld_dld_link
=yes
11338 ac_cv_lib_dld_dld_link
=no
11340 rm -f core conftest.err conftest.
$ac_objext \
11341 conftest
$ac_exeext conftest.
$ac_ext
11342 LIBS
=$ac_check_lib_save_LIBS
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11345 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11346 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11347 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11368 if test "x$lt_cv_dlopen" != xno
; then
11374 case $lt_cv_dlopen in
11376 save_CPPFLAGS
="$CPPFLAGS"
11377 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11379 save_LDFLAGS
="$LDFLAGS"
11380 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11383 LIBS
="$lt_cv_dlopen_libs $LIBS"
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11386 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11387 if ${lt_cv_dlopen_self+:} false
; then :
11388 $as_echo_n "(cached) " >&6
11390 if test "$cross_compiling" = yes; then :
11391 lt_cv_dlopen_self
=cross
11393 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11394 lt_status
=$lt_dlunknown
11395 cat > conftest.
$ac_ext <<_LT_EOF
11396 #line 11396 "configure"
11397 #include "confdefs.h"
11406 # define LT_DLGLOBAL RTLD_GLOBAL
11409 # define LT_DLGLOBAL DL_GLOBAL
11411 # define LT_DLGLOBAL 0
11415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11416 find out it does not work in some platform. */
11417 #ifndef LT_DLLAZY_OR_NOW
11419 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11422 # define LT_DLLAZY_OR_NOW DL_LAZY
11425 # define LT_DLLAZY_OR_NOW RTLD_NOW
11428 # define LT_DLLAZY_OR_NOW DL_NOW
11430 # define LT_DLLAZY_OR_NOW 0
11437 /* When -fvisbility=hidden is used, assume the code has been annotated
11438 correspondingly for the symbols needed. */
11439 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11440 void fnord () __attribute__((visibility("default")));
11443 void fnord () { int i=42; }
11446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11447 int status = $lt_dlunknown;
11451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11454 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11455 else puts (dlerror ());
11457 /* dlclose (self); */
11465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11466 (eval $ac_link) 2>&5
11468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11469 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11470 (.
/conftest
; exit; ) >&5 2>/dev
/null
11472 case x
$lt_status in
11473 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11474 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11475 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11478 # compilation failed
11479 lt_cv_dlopen_self
=no
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11487 $as_echo "$lt_cv_dlopen_self" >&6; }
11489 if test "x$lt_cv_dlopen_self" = xyes
; then
11490 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11492 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11493 if ${lt_cv_dlopen_self_static+:} false
; then :
11494 $as_echo_n "(cached) " >&6
11496 if test "$cross_compiling" = yes; then :
11497 lt_cv_dlopen_self_static
=cross
11499 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11500 lt_status
=$lt_dlunknown
11501 cat > conftest.
$ac_ext <<_LT_EOF
11502 #line 11502 "configure"
11503 #include "confdefs.h"
11512 # define LT_DLGLOBAL RTLD_GLOBAL
11515 # define LT_DLGLOBAL DL_GLOBAL
11517 # define LT_DLGLOBAL 0
11521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11522 find out it does not work in some platform. */
11523 #ifndef LT_DLLAZY_OR_NOW
11525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11528 # define LT_DLLAZY_OR_NOW DL_LAZY
11531 # define LT_DLLAZY_OR_NOW RTLD_NOW
11534 # define LT_DLLAZY_OR_NOW DL_NOW
11536 # define LT_DLLAZY_OR_NOW 0
11543 /* When -fvisbility=hidden is used, assume the code has been annotated
11544 correspondingly for the symbols needed. */
11545 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11546 void fnord () __attribute__((visibility("default")));
11549 void fnord () { int i=42; }
11552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553 int status = $lt_dlunknown;
11557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11561 else puts (dlerror ());
11563 /* dlclose (self); */
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11572 (eval $ac_link) 2>&5
11574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11576 (.
/conftest
; exit; ) >&5 2>/dev
/null
11578 case x
$lt_status in
11579 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11580 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11581 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11584 # compilation failed
11585 lt_cv_dlopen_self_static
=no
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11593 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11596 CPPFLAGS
="$save_CPPFLAGS"
11597 LDFLAGS
="$save_LDFLAGS"
11602 case $lt_cv_dlopen_self in
11603 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11604 *) enable_dlopen_self
=unknown
;;
11607 case $lt_cv_dlopen_self_static in
11608 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11609 *) enable_dlopen_self_static
=unknown
;;
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11632 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11633 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11634 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11635 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11637 $as_echo "yes" >&6; }
11639 # FIXME - insert some real tests, host_os isn't really good enough
11642 if test -n "$STRIP" ; then
11643 striplib
="$STRIP -x"
11644 old_striplib
="$STRIP -S"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11646 $as_echo "yes" >&6; }
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 $as_echo "no" >&6; }
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11670 # Report which library types will actually be built
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11672 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11674 $as_echo "$can_build_shared" >&6; }
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11677 $as_echo_n "checking whether to build shared libraries... " >&6; }
11678 test "$can_build_shared" = "no" && enable_shared
=no
11680 # On AIX, shared libraries and static libraries use the same namespace, and
11681 # are all built from PIC.
11684 test "$enable_shared" = yes && enable_static
=no
11685 if test -n "$RANLIB"; then
11686 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11687 postinstall_cmds
='$RANLIB $lib'
11692 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11693 test "$enable_shared" = yes && enable_static
=no
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11698 $as_echo "$enable_shared" >&6; }
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11701 $as_echo_n "checking whether to build static libraries... " >&6; }
11702 # Make sure either enable_shared or enable_static is yes.
11703 test "$enable_shared" = yes || enable_static
=yes
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11705 $as_echo "$enable_static" >&6; }
11712 ac_cpp
='$CPP $CPPFLAGS'
11713 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11714 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11715 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11731 ac_config_commands
="$ac_config_commands libtool"
11736 # Only expand once:
11743 *-cygwin* |
*-mingw*)
11744 # 'host' will be top-level target in the case of a target lib,
11745 # we must compare to with_cross_host to decide if this is a native
11746 # or cross-compiler and select where to install dlls appropriately.
11747 if test -n "$with_cross_host" &&
11748 test x
"$with_cross_host" != x
"no"; then
11749 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11751 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11766 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11767 # Check whether --enable-maintainer-mode was given.
11768 if test "${enable_maintainer_mode+set}" = set; then :
11769 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11771 USE_MAINTAINER_MODE
=no
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11775 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11776 if test $USE_MAINTAINER_MODE = yes; then
11777 MAINTAINER_MODE_TRUE
=
11778 MAINTAINER_MODE_FALSE
='#'
11780 MAINTAINER_MODE_TRUE
='#'
11781 MAINTAINER_MODE_FALSE
=
11784 MAINT
=$MAINTAINER_MODE_TRUE
11788 # Create a spec file, so that compile/link tests don't fail
11789 test -f libgfortran.spec ||
touch libgfortran.spec
11790 FCFLAGS
="$FCFLAGS -L."
11792 # We need gfortran to compile parts of the library
11793 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11794 #AC_PROG_FC(gfortran)
11795 case `echo $GFORTRAN` in
11799 set dummy
$GFORTRAN; ac_word
=$2
11800 if test -x "$ac_word"; then
11806 ac_ext
=${ac_fc_srcext-f}
11807 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11808 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11809 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11810 if test -n "$ac_tool_prefix"; then
11811 for ac_prog
in gfortran
11813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11814 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_prog_FC+:} false
; then :
11818 $as_echo_n "(cached) " >&6
11820 if test -n "$FC"; then
11821 ac_cv_prog_FC
="$FC" # Let the user override the test.
11823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11824 for as_dir
in $PATH
11827 test -z "$as_dir" && as_dir
=.
11828 for ac_exec_ext
in '' $ac_executable_extensions; do
11829 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11830 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 if test -n "$FC"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11843 $as_echo "$FC" >&6; }
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11850 test -n "$FC" && break
11853 if test -z "$FC"; then
11855 for ac_prog
in gfortran
11857 # Extract the first word of "$ac_prog", so it can be a program name with args.
11858 set dummy
$ac_prog; ac_word
=$2
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860 $as_echo_n "checking for $ac_word... " >&6; }
11861 if ${ac_cv_prog_ac_ct_FC+:} false
; then :
11862 $as_echo_n "(cached) " >&6
11864 if test -n "$ac_ct_FC"; then
11865 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11868 for as_dir
in $PATH
11871 test -z "$as_dir" && as_dir
=.
11872 for ac_exec_ext
in '' $ac_executable_extensions; do
11873 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11874 ac_cv_prog_ac_ct_FC
="$ac_prog"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11885 if test -n "$ac_ct_FC"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11887 $as_echo "$ac_ct_FC" >&6; }
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11894 test -n "$ac_ct_FC" && break
11897 if test "x$ac_ct_FC" = x
; then
11900 case $cross_compiling:$ac_tool_warned in
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11904 ac_tool_warned
=yes ;;
11911 # Provide some information about the compiler.
11912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11915 for ac_option
in --version -v -V -qversion; do
11916 { { ac_try
="$ac_compiler $ac_option >&5"
11917 case "(($ac_try" in
11918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11922 $as_echo "$ac_try_echo"; } >&5
11923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11925 if test -s conftest.err; then
11927 ... rest of stderr output deleted ...
11928 10q' conftest.err >conftest.er1
11929 cat conftest.er1 >&5
11931 rm -f conftest.er1 conftest.err
11932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933 test $ac_status = 0; }
11937 # If we don't use `.F
' as extension, the preprocessor is not run on the
11938 # input file. (Note that this only needs to work for GNU compilers.)
11939 ac_save_ext=$ac_ext
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11942 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11943 if ${ac_cv_fc_compiler_gnu+:} false; then :
11944 $as_echo_n "(cached) " >&6
11946 cat > conftest.$ac_ext <<_ACEOF
11954 if ac_fn_fc_try_compile "$LINENO"; then :
11955 ac_compiler_gnu=yes
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11964 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11965 ac_ext=$ac_save_ext
11966 ac_test_FCFLAGS=${FCFLAGS+set}
11967 ac_save_FCFLAGS=$FCFLAGS
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11970 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11971 if ${ac_cv_prog_fc_g+:} false; then :
11972 $as_echo_n "(cached) " >&6
11975 cat > conftest.$ac_ext <<_ACEOF
11980 if ac_fn_fc_try_compile "$LINENO"; then :
11981 ac_cv_prog_fc_g=yes
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11989 $as_echo "$ac_cv_prog_fc_g" >&6; }
11990 if test "$ac_test_FCFLAGS" = set; then
11991 FCFLAGS=$ac_save_FCFLAGS
11992 elif test $ac_cv_prog_fc_g = yes; then
11993 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11999 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12006 if test $ac_compiler_gnu = yes; then
12012 ac_cpp='$CPP $CPPFLAGS'
12013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12014 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12017 ac_ext=${ac_fc_srcext-f}
12018 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
12019 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
12020 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12023 if test -z "$FC" || test "X$FC" = "Xno"; then
12027 archive_cmds_need_lc_FC=no
12028 allow_undefined_flag_FC=
12029 always_export_symbols_FC=no
12030 archive_expsym_cmds_FC=
12031 export_dynamic_flag_spec_FC=
12032 hardcode_direct_FC=no
12033 hardcode_direct_absolute_FC=no
12034 hardcode_libdir_flag_spec_FC=
12035 hardcode_libdir_flag_spec_ld_FC=
12036 hardcode_libdir_separator_FC=
12037 hardcode_minus_L_FC=no
12038 hardcode_automatic_FC=no
12039 inherit_rpath_FC=no
12041 module_expsym_cmds_FC=
12042 link_all_deplibs_FC=unknown
12043 old_archive_cmds_FC=$old_archive_cmds
12044 reload_flag_FC=$reload_flag
12045 reload_cmds_FC=$reload_cmds
12046 no_undefined_flag_FC=
12047 whole_archive_flag_spec_FC=
12048 enable_shared_with_static_runtimes_FC=no
12050 # Source file extension for fc test sources.
12051 ac_ext=${ac_fc_srcext-f}
12053 # Object file extension for compiled fc test sources.
12057 # No sense in running all these tests if we already determined that
12058 # the FC compiler isn't working. Some variables
(like enable_shared
)
12059 # are currently assumed to apply to all compilers on this platform,
12060 # and will be corrupted by setting them based on a non-working compiler.
12061 if test "$_lt_disable_FC" != yes; then
12062 # Code to be used in simple compile tests
12063 lt_simple_compile_test_code
="\
12069 # Code to be used in simple link tests
12070 lt_simple_link_test_code
="\
12075 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12082 # If no C compiler was specified, use CC.
12085 # If no C compiler flags were specified, use CFLAGS.
12086 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12088 # Allow CC to be a program name with arguments.
12092 # save warnings/boilerplate of simple test code
12093 ac_outfile
=conftest.
$ac_objext
12094 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12095 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12096 _lt_compiler_boilerplate
=`cat conftest.err`
12099 ac_outfile
=conftest.
$ac_objext
12100 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12101 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12102 _lt_linker_boilerplate
=`cat conftest.err`
12106 # Allow CC to be a program name with arguments.
12111 GCC
=$ac_cv_fc_compiler_gnu
12114 for cc_temp
in $compiler""; do
12116 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12117 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12122 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12125 if test -n "$compiler"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12127 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12129 $as_echo "$can_build_shared" >&6; }
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12132 $as_echo_n "checking whether to build shared libraries... " >&6; }
12133 test "$can_build_shared" = "no" && enable_shared
=no
12135 # On AIX, shared libraries and static libraries use the same namespace, and
12136 # are all built from PIC.
12139 test "$enable_shared" = yes && enable_static
=no
12140 if test -n "$RANLIB"; then
12141 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12142 postinstall_cmds
='$RANLIB $lib'
12146 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12147 test "$enable_shared" = yes && enable_static
=no
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12152 $as_echo "$enable_shared" >&6; }
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12155 $as_echo_n "checking whether to build static libraries... " >&6; }
12156 # Make sure either enable_shared or enable_static is yes.
12157 test "$enable_shared" = yes || enable_static
=yes
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12159 $as_echo "$enable_static" >&6; }
12161 GCC_FC
="$ac_cv_fc_compiler_gnu"
12165 ## There is no encapsulation within the following macros, do not change
12166 ## the running order or otherwise move them around unless you know exactly
12167 ## what you are doing...
12168 # Dependencies to place before and after the object being linked:
12170 postdep_objects_FC
=
12173 compiler_lib_search_path_FC
=
12175 cat > conftest.
$ac_ext <<_LT_EOF
12184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12185 (eval $ac_compile) 2>&5
12187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12188 test $ac_status = 0; }; then
12189 # Parse the compiler output and extract the necessary
12190 # objects, libraries and library flags.
12192 # Sentinel used to keep track of whether or not we are before
12193 # the conftest object file.
12194 pre_test_object_deps_done
=no
12196 for p
in `eval "$output_verbose_link_cmd"`; do
12200 # Some compilers place space between "-{L,R}" and the path.
12201 # Remove the space.
12202 if test $p = "-L" ||
12203 test $p = "-R"; then
12210 if test "$pre_test_object_deps_done" = no
; then
12213 # Internal compiler library paths should come after those
12214 # provided the user. The postdeps already come after the
12215 # user supplied libs so there is no need to process them.
12216 if test -z "$compiler_lib_search_path_FC"; then
12217 compiler_lib_search_path_FC
="${prev}${p}"
12219 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
12222 # The "-l" case would never come before the object being
12223 # linked, so don't bother handling this case.
12226 if test -z "$postdeps_FC"; then
12227 postdeps_FC
="${prev}${p}"
12229 postdeps_FC
="${postdeps_FC} ${prev}${p}"
12235 # This assumes that the test object file only shows up
12236 # once in the compiler output.
12237 if test "$p" = "conftest.$objext"; then
12238 pre_test_object_deps_done
=yes
12242 if test "$pre_test_object_deps_done" = no
; then
12243 if test -z "$predep_objects_FC"; then
12244 predep_objects_FC
="$p"
12246 predep_objects_FC
="$predep_objects_FC $p"
12249 if test -z "$postdep_objects_FC"; then
12250 postdep_objects_FC
="$p"
12252 postdep_objects_FC
="$postdep_objects_FC $p"
12257 *) ;; # Ignore the rest.
12265 echo "libtool.m4: error: problem compiling FC test program"
12268 $RM -f confest.
$objext
12270 # PORTME: override above test on systems where it is broken
12273 case " $postdeps_FC " in
12274 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12276 compiler_lib_search_dirs_FC
=
12277 if test -n "${compiler_lib_search_path_FC}"; then
12278 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12311 lt_prog_compiler_wl_FC
=
12312 lt_prog_compiler_pic_FC
=
12313 lt_prog_compiler_static_FC
=
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12316 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12318 if test "$GCC" = yes; then
12319 lt_prog_compiler_wl_FC
='-Wl,'
12320 lt_prog_compiler_static_FC
='-static'
12324 # All AIX code is PIC.
12325 if test "$host_cpu" = ia64
; then
12326 # AIX 5 now supports IA64 processor
12327 lt_prog_compiler_static_FC
='-Bstatic'
12329 lt_prog_compiler_pic_FC
='-fPIC'
12335 # see comment about AmigaOS4 .so support
12336 lt_prog_compiler_pic_FC
='-fPIC'
12339 # FIXME: we need at least 68020 code to build shared libraries, but
12340 # adding the `-m68020' flag to GCC prevents building anything better,
12342 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12347 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12348 # PIC is the default for these OSes.
12351 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12352 # This hack is so that the source file can tell whether it is being
12353 # built for inclusion in a dll (and should export symbols for example).
12354 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12355 # (--disable-auto-import) libraries
12356 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12359 darwin
* | rhapsody
*)
12360 # PIC is the default on this platform
12361 # Common symbols not allowed in MH_DYLIB files
12362 lt_prog_compiler_pic_FC
='-fno-common'
12366 # PIC is the default for Haiku.
12367 # The "-static" flag exists, but is broken.
12368 lt_prog_compiler_static_FC
=
12372 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12373 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12374 # sets the default TLS model and affects inlining.
12380 lt_prog_compiler_pic_FC
='-fPIC'
12386 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12387 # Instead, we relocate shared libraries at runtime.
12391 # Just because we use GCC doesn't mean we suddenly get shared libraries
12392 # on systems that don't support them.
12393 lt_prog_compiler_can_build_shared_FC
=no
12398 # QNX uses GNU C++, but need to define -shared option too, otherwise
12399 # it will coredump.
12400 lt_prog_compiler_pic_FC
='-fPIC -shared'
12404 if test -d /usr
/nec
; then
12405 lt_prog_compiler_pic_FC
=-Kconform_pic
12410 lt_prog_compiler_pic_FC
='-fPIC'
12414 case $cc_basename in
12415 nvcc
*) # Cuda Compiler Driver 2.2
12416 lt_prog_compiler_wl_FC
='-Xlinker '
12417 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12421 # PORTME Check for flag to pass linker flags through the system compiler.
12424 lt_prog_compiler_wl_FC
='-Wl,'
12425 if test "$host_cpu" = ia64
; then
12426 # AIX 5 now supports IA64 processor
12427 lt_prog_compiler_static_FC
='-Bstatic'
12429 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12433 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12434 # This hack is so that the source file can tell whether it is being
12435 # built for inclusion in a dll (and should export symbols for example).
12436 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12439 hpux9
* | hpux10
* | hpux11
*)
12440 lt_prog_compiler_wl_FC
='-Wl,'
12441 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12442 # not for PA HP-UX.
12448 lt_prog_compiler_pic_FC
='+Z'
12451 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12452 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12455 irix5
* | irix6
* | nonstopux
*)
12456 lt_prog_compiler_wl_FC
='-Wl,'
12457 # PIC (with -KPIC) is the default.
12458 lt_prog_compiler_static_FC
='-non_shared'
12461 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12462 case $cc_basename in
12463 # old Intel for x86_64 which still supported -KPIC.
12465 lt_prog_compiler_wl_FC
='-Wl,'
12466 lt_prog_compiler_pic_FC
='-KPIC'
12467 lt_prog_compiler_static_FC
='-static'
12469 # icc used to be incompatible with GCC.
12470 # ICC 10 doesn't accept -KPIC any more.
12472 lt_prog_compiler_wl_FC
='-Wl,'
12473 lt_prog_compiler_pic_FC
='-fPIC'
12474 lt_prog_compiler_static_FC
='-static'
12476 # Lahey Fortran 8.1.
12478 lt_prog_compiler_wl_FC
='-Wl,'
12479 lt_prog_compiler_pic_FC
='--shared'
12480 lt_prog_compiler_static_FC
='--static'
12482 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12483 # Portland Group compilers (*not* the Pentium gcc compiler,
12484 # which looks to be a dead project)
12485 lt_prog_compiler_wl_FC
='-Wl,'
12486 lt_prog_compiler_pic_FC
='-fpic'
12487 lt_prog_compiler_static_FC
='-Bstatic'
12490 lt_prog_compiler_wl_FC
='-Wl,'
12491 # All Alpha code is PIC.
12492 lt_prog_compiler_static_FC
='-non_shared'
12494 xl
* | bgxl
* | bgf
* | mpixl
*)
12495 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12496 lt_prog_compiler_wl_FC
='-Wl,'
12497 lt_prog_compiler_pic_FC
='-qpic'
12498 lt_prog_compiler_static_FC
='-qstaticlink'
12501 case `$CC -V 2>&1 | sed 5q` in
12502 *Sun\ F
* |
*Sun
*Fortran
*)
12503 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12504 lt_prog_compiler_pic_FC
='-KPIC'
12505 lt_prog_compiler_static_FC
='-Bstatic'
12506 lt_prog_compiler_wl_FC
=''
12510 lt_prog_compiler_pic_FC
='-KPIC'
12511 lt_prog_compiler_static_FC
='-Bstatic'
12512 lt_prog_compiler_wl_FC
='-Wl,'
12520 lt_prog_compiler_pic_FC
='-KPIC'
12521 lt_prog_compiler_static_FC
='-Bstatic'
12525 # QNX uses GNU C++, but need to define -shared option too, otherwise
12526 # it will coredump.
12527 lt_prog_compiler_pic_FC
='-fPIC -shared'
12530 osf3
* | osf4
* | osf5
*)
12531 lt_prog_compiler_wl_FC
='-Wl,'
12532 # All OSF/1 code is PIC.
12533 lt_prog_compiler_static_FC
='-non_shared'
12537 lt_prog_compiler_static_FC
='-non_shared'
12541 lt_prog_compiler_pic_FC
='-KPIC'
12542 lt_prog_compiler_static_FC
='-Bstatic'
12543 case $cc_basename in
12544 f77
* | f90
* | f95
*)
12545 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12547 lt_prog_compiler_wl_FC
='-Wl,';;
12552 lt_prog_compiler_wl_FC
='-Qoption ld '
12553 lt_prog_compiler_pic_FC
='-PIC'
12554 lt_prog_compiler_static_FC
='-Bstatic'
12557 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12558 lt_prog_compiler_wl_FC
='-Wl,'
12559 lt_prog_compiler_pic_FC
='-KPIC'
12560 lt_prog_compiler_static_FC
='-Bstatic'
12564 if test -d /usr
/nec
;then
12565 lt_prog_compiler_pic_FC
='-Kconform_pic'
12566 lt_prog_compiler_static_FC
='-Bstatic'
12570 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12571 lt_prog_compiler_wl_FC
='-Wl,'
12572 lt_prog_compiler_pic_FC
='-KPIC'
12573 lt_prog_compiler_static_FC
='-Bstatic'
12577 lt_prog_compiler_wl_FC
='-Wl,'
12578 lt_prog_compiler_can_build_shared_FC
=no
12582 lt_prog_compiler_pic_FC
='-pic'
12583 lt_prog_compiler_static_FC
='-Bstatic'
12587 lt_prog_compiler_can_build_shared_FC
=no
12593 # For platforms which do not support PIC, -DPIC is meaningless:
12595 lt_prog_compiler_pic_FC
=
12598 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12602 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12607 # Check to make sure the PIC flag actually works.
12609 if test -n "$lt_prog_compiler_pic_FC"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12611 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12612 if ${lt_cv_prog_compiler_pic_works_FC+:} false
; then :
12613 $as_echo_n "(cached) " >&6
12615 lt_cv_prog_compiler_pic_works_FC
=no
12616 ac_outfile
=conftest.
$ac_objext
12617 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12618 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12619 # Insert the option either (1) after the last *FLAGS variable, or
12620 # (2) before a word containing "conftest.", or (3) at the end.
12621 # Note that $ac_compile itself does not contain backslashes and begins
12622 # with a dollar sign (not a hyphen), so the echo should work correctly.
12623 # The option is referenced via a variable to avoid confusing sed.
12624 lt_compile
=`echo "$ac_compile" | $SED \
12625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12627 -e 's:$: $lt_compiler_flag:'`
12628 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12629 (eval "$lt_compile" 2>conftest.err
)
12631 cat conftest.err
>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 if (exit $ac_status) && test -s "$ac_outfile"; then
12634 # The compiler can only warn and ignore the option if not recognized
12635 # So say no if there are warnings other than the usual output.
12636 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12637 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12638 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12639 lt_cv_prog_compiler_pic_works_FC
=yes
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12646 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12648 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12649 case $lt_prog_compiler_pic_FC in
12651 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12654 lt_prog_compiler_pic_FC
=
12655 lt_prog_compiler_can_build_shared_FC
=no
12663 # Check to make sure the static flag actually works.
12665 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12667 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12668 if ${lt_cv_prog_compiler_static_works_FC+:} false
; then :
12669 $as_echo_n "(cached) " >&6
12671 lt_cv_prog_compiler_static_works_FC
=no
12672 save_LDFLAGS
="$LDFLAGS"
12673 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12674 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12675 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12676 # The linker can only warn and ignore the option if not recognized
12677 # So say no if there are warnings
12678 if test -s conftest.err
; then
12679 # Append any errors to the config.log.
12680 cat conftest.err
1>&5
12681 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12682 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12683 if diff conftest.exp conftest.er2
>/dev
/null
; then
12684 lt_cv_prog_compiler_static_works_FC
=yes
12687 lt_cv_prog_compiler_static_works_FC
=yes
12691 LDFLAGS
="$save_LDFLAGS"
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12695 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12697 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12700 lt_prog_compiler_static_FC
=
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12707 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12708 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12709 $as_echo_n "(cached) " >&6
12711 lt_cv_prog_compiler_c_o_FC
=no
12712 $RM -r conftest
2>/dev
/null
12716 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12718 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12719 # Insert the option either (1) after the last *FLAGS variable, or
12720 # (2) before a word containing "conftest.", or (3) at the end.
12721 # Note that $ac_compile itself does not contain backslashes and begins
12722 # with a dollar sign (not a hyphen), so the echo should work correctly.
12723 lt_compile
=`echo "$ac_compile" | $SED \
12724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12726 -e 's:$: $lt_compiler_flag:'`
12727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12728 (eval "$lt_compile" 2>out
/conftest.err
)
12730 cat out
/conftest.err
>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12734 # The compiler can only warn and ignore the option if not recognized
12735 # So say no if there are warnings
12736 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12737 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12738 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12739 lt_cv_prog_compiler_c_o_FC
=yes
12744 # SGI C++ compiler will create directory out/ii_files/ for
12745 # template instantiation
12746 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12747 $RM out
/* && rmdir out
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12754 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12759 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12760 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12761 $as_echo_n "(cached) " >&6
12763 lt_cv_prog_compiler_c_o_FC
=no
12764 $RM -r conftest
2>/dev
/null
12768 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12770 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12771 # Insert the option either (1) after the last *FLAGS variable, or
12772 # (2) before a word containing "conftest.", or (3) at the end.
12773 # Note that $ac_compile itself does not contain backslashes and begins
12774 # with a dollar sign (not a hyphen), so the echo should work correctly.
12775 lt_compile
=`echo "$ac_compile" | $SED \
12776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12778 -e 's:$: $lt_compiler_flag:'`
12779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12780 (eval "$lt_compile" 2>out
/conftest.err
)
12782 cat out
/conftest.err
>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12786 # The compiler can only warn and ignore the option if not recognized
12787 # So say no if there are warnings
12788 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12789 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12790 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12791 lt_cv_prog_compiler_c_o_FC
=yes
12796 # SGI C++ compiler will create directory out/ii_files/ for
12797 # template instantiation
12798 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12799 $RM out
/* && rmdir out
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12806 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12811 hard_links
="nottested"
12812 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12813 # do not overwrite the value of need_locks provided by the user
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12815 $as_echo_n "checking if we can lock with hard links... " >&6; }
12818 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12820 ln conftest.a conftest.b
2>&5 || hard_links
=no
12821 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12823 $as_echo "$hard_links" >&6; }
12824 if test "$hard_links" = no
; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12826 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12836 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12839 allow_undefined_flag_FC
=
12840 always_export_symbols_FC
=no
12842 archive_expsym_cmds_FC
=
12843 compiler_needs_object_FC
=no
12844 enable_shared_with_static_runtimes_FC
=no
12845 export_dynamic_flag_spec_FC
=
12846 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12847 hardcode_automatic_FC
=no
12848 hardcode_direct_FC
=no
12849 hardcode_direct_absolute_FC
=no
12850 hardcode_libdir_flag_spec_FC
=
12851 hardcode_libdir_flag_spec_ld_FC
=
12852 hardcode_libdir_separator_FC
=
12853 hardcode_minus_L_FC
=no
12854 hardcode_shlibpath_var_FC
=unsupported
12855 inherit_rpath_FC
=no
12856 link_all_deplibs_FC
=unknown
12858 module_expsym_cmds_FC
=
12859 old_archive_from_new_cmds_FC
=
12860 old_archive_from_expsyms_cmds_FC
=
12861 thread_safe_flag_spec_FC
=
12862 whole_archive_flag_spec_FC
=
12863 # include_expsyms should be a list of space-separated symbols to be *always*
12864 # included in the symbol list
12865 include_expsyms_FC
=
12866 # exclude_expsyms can be an extended regexp of symbols to exclude
12867 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12868 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12869 # as well as any symbol that contains `d'.
12870 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12871 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12872 # platforms (ab)use it in PIC code, but their linkers get confused if
12873 # the symbol is explicitly referenced. Since portable code cannot
12874 # rely on this symbol name, it's probably fine to never include it in
12875 # preloaded symbol tables.
12876 # Exclude shared library initialization/finalization symbols.
12877 extract_expsyms_cmds
=
12880 cygwin
* | mingw
* | pw32
* | cegcc
*)
12881 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12882 # When not using gcc, we currently assume that we are using
12883 # Microsoft Visual C++.
12884 if test "$GCC" != yes; then
12889 # we just hope/assume this is gcc and not c89 (= MSVC++)
12899 # On some targets, GNU ld is compatible enough with the native linker
12900 # that we're better off using the native interface for both.
12901 lt_use_gnu_ld_interface
=no
12902 if test "$with_gnu_ld" = yes; then
12905 # The AIX port of GNU ld has always aspired to compatibility
12906 # with the native linker. However, as the warning in the GNU ld
12907 # block says, versions before 2.19.5* couldn't really create working
12908 # shared libraries, regardless of the interface used.
12909 case `$LD -v 2>&1` in
12910 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12911 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12912 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12914 lt_use_gnu_ld_interface
=yes
12919 lt_use_gnu_ld_interface
=yes
12924 if test "$lt_use_gnu_ld_interface" = yes; then
12925 # If archive_cmds runs LD, not CC, wlarc should be empty
12928 # Set some defaults for GNU ld with shared library support. These
12929 # are reset later if shared libraries are not supported. Putting them
12930 # here allows them to be overridden if necessary.
12931 runpath_var
=LD_RUN_PATH
12932 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12933 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12934 # ancient GNU ld didn't support --whole-archive et. al.
12935 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12936 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12938 whole_archive_flag_spec_FC
=
12940 supports_anon_versioning
=no
12941 case `$LD -v 2>&1` in
12942 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12943 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12944 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12945 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12946 *\
2.11.
*) ;; # other 2.11 versions
12947 *) supports_anon_versioning
=yes ;;
12950 # See if GNU ld supports shared libraries.
12953 # On AIX/PPC, the GNU linker is very broken
12954 if test "$host_cpu" != ia64
; then
12958 *** Warning: the GNU linker, at least up to release 2.19, is reported
12959 *** to be unable to reliably create shared libraries on AIX.
12960 *** Therefore, libtool is disabling shared libraries support. If you
12961 *** really care for shared libraries, you may want to install binutils
12962 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12963 *** You will then need to restart the configuration process.
12972 # see comment about AmigaOS4 .so support
12973 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 archive_expsym_cmds_FC
=''
12977 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)'
12978 hardcode_libdir_flag_spec_FC
='-L$libdir'
12979 hardcode_minus_L_FC
=yes
12985 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12986 allow_undefined_flag_FC
=unsupported
12987 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12988 # support --undefined. This deserves some investigation. FIXME
12989 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995 cygwin
* | mingw
* | pw32
* | cegcc
*)
12996 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12997 # as there is no search path for DLLs.
12998 hardcode_libdir_flag_spec_FC
='-L$libdir'
12999 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
13000 allow_undefined_flag_FC
=unsupported
13001 always_export_symbols_FC
=no
13002 enable_shared_with_static_runtimes_FC
=yes
13003 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13005 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13006 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13007 # If the export-symbols file already is a .def file (1st line
13008 # is EXPORTS), use it as is; otherwise, prepend...
13009 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13010 cp $export_symbols $output_objdir/$soname.def;
13012 echo EXPORTS > $output_objdir/$soname.def;
13013 cat $export_symbols >> $output_objdir/$soname.def;
13015 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13022 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023 link_all_deplibs_FC
=yes
13027 hardcode_direct_FC
=no
13028 hardcode_shlibpath_var_FC
=no
13029 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13030 export_dynamic_flag_spec_FC
='${wl}-E'
13031 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13032 # Instead, shared libraries are loaded at an image base (0x10000000 by
13033 # default) and relocated if they conflict, which is a slow very memory
13034 # consuming and fragmenting process. To avoid this, we pick a random,
13035 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13036 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13037 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'
13038 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'
13041 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13043 if test "$host_os" = linux-dietlibc
; then
13044 case $cc_basename in
13045 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13048 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13049 && test "$tmp_diet" = no
13051 tmp_addflag
=' $pic_flag'
13052 tmp_sharedflag
='-shared'
13053 case $cc_basename,$host_cpu in
13054 pgcc
*) # Portland Group C compiler
13055 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'
13056 tmp_addflag
=' $pic_flag'
13058 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13059 # Portland Group f77 and f90 compilers
13060 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'
13061 tmp_addflag
=' $pic_flag -Mnomain' ;;
13062 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13063 tmp_addflag
=' -i_dynamic' ;;
13064 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13065 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13066 ifc
* | ifort
*) # Intel Fortran compiler
13067 tmp_addflag
=' -nofor_main' ;;
13068 lf95
*) # Lahey Fortran 8.1
13069 whole_archive_flag_spec_FC
=
13070 tmp_sharedflag
='--shared' ;;
13071 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13072 tmp_sharedflag
='-qmkshrobj'
13074 nvcc
*) # Cuda Compiler Driver 2.2
13075 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'
13076 compiler_needs_object_FC
=yes
13079 case `$CC -V 2>&1 | sed 5q` in
13080 *Sun\ C
*) # Sun C 5.9
13081 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'
13082 compiler_needs_object_FC
=yes
13083 tmp_sharedflag
='-G' ;;
13084 *Sun\ F
*) # Sun Fortran 8.3
13085 tmp_sharedflag
='-G' ;;
13087 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13089 if test "x$supports_anon_versioning" = xyes
; then
13090 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13092 echo "local: *; };" >> $output_objdir/$libname.ver~
13093 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13096 case $cc_basename in
13097 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13098 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13099 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
13100 hardcode_libdir_flag_spec_FC
=
13101 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
13102 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13103 if test "x$supports_anon_versioning" = xyes
; then
13104 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13105 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13106 echo "local: *; };" >> $output_objdir/$libname.ver~
13107 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13117 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13118 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13121 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13122 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13127 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13131 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13132 *** create shared libraries on Solaris systems. Therefore, libtool
13133 *** is disabling shared libraries support. We urge you to upgrade GNU
13134 *** binutils to release 2.9.1 or newer. Another option is to modify
13135 *** your PATH or compiler configuration so that the native linker is
13136 *** used, and then restart.
13139 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13140 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13141 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13147 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13148 case `$LD -v 2>&1` in
13149 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13153 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13154 *** reliably create shared libraries on SCO systems. Therefore, libtool
13155 *** is disabling shared libraries support. We urge you to upgrade GNU
13156 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13157 *** your PATH or compiler configuration so that the native linker is
13158 *** used, and then restart.
13163 # For security reasons, it is highly recommended that you always
13164 # use absolute paths for naming shared libraries, and exclude the
13165 # DT_RUNPATH tag from executables and libraries. But doing so
13166 # requires that you compile everything twice, which is a pain.
13167 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13168 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13169 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13170 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13179 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13181 hardcode_direct_FC
=yes
13182 hardcode_shlibpath_var_FC
=no
13186 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13187 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13188 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13195 if test "$ld_shlibs_FC" = no
; then
13197 hardcode_libdir_flag_spec_FC
=
13198 export_dynamic_flag_spec_FC
=
13199 whole_archive_flag_spec_FC
=
13202 # PORTME fill in a description of your system's linker (not GNU ld)
13205 allow_undefined_flag_FC
=unsupported
13206 always_export_symbols_FC
=yes
13207 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'
13208 # Note: this linker hardcodes the directories in LIBPATH if there
13209 # are no directories specified by -L.
13210 hardcode_minus_L_FC
=yes
13211 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13212 # Neither direct hardcoding nor static linking is supported with a
13214 hardcode_direct_FC
=unsupported
13219 if test "$host_cpu" = ia64
; then
13220 # On IA64, the linker does run time linking by default, so we don't
13221 # have to do anything special.
13222 aix_use_runtimelinking
=no
13223 exp_sym_flag
='-Bexport'
13226 # If we're using GNU nm, then we don't want the "-C" option.
13227 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13228 # Also, AIX nm treats weak defined symbols like other global
13229 # defined symbols, whereas GNU nm marks them as "W".
13230 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13231 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'
13233 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'
13235 aix_use_runtimelinking
=no
13237 # Test if we are trying to use run time linking or normal
13238 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13239 # need to do runtime linking.
13240 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13241 for ld_flag
in $LDFLAGS; do
13242 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13243 aix_use_runtimelinking
=yes
13250 exp_sym_flag
='-bexport'
13251 no_entry_flag
='-bnoentry'
13254 # When large executables or shared objects are built, AIX ld can
13255 # have problems creating the table of contents. If linking a library
13256 # or program results in "error TOC overflow" add -mminimal-toc to
13257 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13258 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13261 hardcode_direct_FC
=yes
13262 hardcode_direct_absolute_FC
=yes
13263 hardcode_libdir_separator_FC
=':'
13264 link_all_deplibs_FC
=yes
13265 file_list_spec_FC
='${wl}-f,'
13267 if test "$GCC" = yes; then
13268 case $host_os in aix4.
[012]|aix4.
[012].
*)
13269 # We only want to do this on AIX 4.2 and lower, the check
13270 # below for broken collect2 doesn't work under 4.3+
13271 collect2name
=`${CC} -print-prog-name=collect2`
13272 if test -f "$collect2name" &&
13273 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13275 # We have reworked collect2
13278 # We have old collect2
13279 hardcode_direct_FC
=unsupported
13280 # It fails to find uninstalled libraries when the uninstalled
13281 # path is not listed in the libpath. Setting hardcode_minus_L
13282 # to unsupported forces relinking
13283 hardcode_minus_L_FC
=yes
13284 hardcode_libdir_flag_spec_FC
='-L$libdir'
13285 hardcode_libdir_separator_FC
=
13289 shared_flag
='-shared'
13290 if test "$aix_use_runtimelinking" = yes; then
13291 shared_flag
="$shared_flag "'${wl}-G'
13295 if test "$host_cpu" = ia64
; then
13296 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13297 # chokes on -Wl,-G. The following line is correct:
13300 if test "$aix_use_runtimelinking" = yes; then
13301 shared_flag
='${wl}-G'
13303 shared_flag
='${wl}-bM:SRE'
13308 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13309 # It seems that -bexpall does not export symbols beginning with
13310 # underscore (_), so it is better to generate a list of symbols to export.
13311 always_export_symbols_FC
=yes
13312 if test "$aix_use_runtimelinking" = yes; then
13313 # Warning - without using the other runtime loading flags (-brtl),
13314 # -berok will link without error, but may produce a broken library.
13315 allow_undefined_flag_FC
='-berok'
13316 # Determine the default libpath from the value encoded in an
13317 # empty executable.
13318 cat > conftest.
$ac_ext <<_ACEOF
13323 if ac_fn_fc_try_link
"$LINENO"; then :
13325 lt_aix_libpath_sed
='
13326 /Import File Strings/,/^$/ {
13332 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13333 # Check for a 64-bit object if we didn't find anything.
13334 if test -z "$aix_libpath"; then
13335 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13338 rm -f core conftest.err conftest.
$ac_objext \
13339 conftest
$ac_exeext conftest.
$ac_ext
13340 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13342 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13343 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"
13345 if test "$host_cpu" = ia64
; then
13346 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13347 allow_undefined_flag_FC
="-z nodefs"
13348 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"
13350 # Determine the default libpath from the value encoded in an
13351 # empty executable.
13352 cat > conftest.
$ac_ext <<_ACEOF
13357 if ac_fn_fc_try_link
"$LINENO"; then :
13359 lt_aix_libpath_sed
='
13360 /Import File Strings/,/^$/ {
13366 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13367 # Check for a 64-bit object if we didn't find anything.
13368 if test -z "$aix_libpath"; then
13369 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13372 rm -f core conftest.err conftest.
$ac_objext \
13373 conftest
$ac_exeext conftest.
$ac_ext
13374 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13376 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13377 # Warning - without using the other run time loading flags,
13378 # -berok will link without error, but may produce a broken library.
13379 no_undefined_flag_FC
=' ${wl}-bernotok'
13380 allow_undefined_flag_FC
=' ${wl}-berok'
13381 if test "$with_gnu_ld" = yes; then
13382 # We only use this code for GNU lds that support --whole-archive.
13383 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13385 # Exported symbols can be pulled into shared objects from archives
13386 whole_archive_flag_spec_FC
='$convenience'
13388 archive_cmds_need_lc_FC
=yes
13389 # This is similar to how AIX traditionally builds its shared libraries.
13390 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'
13398 # see comment about AmigaOS4 .so support
13399 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13400 archive_expsym_cmds_FC
=''
13403 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)'
13404 hardcode_libdir_flag_spec_FC
='-L$libdir'
13405 hardcode_minus_L_FC
=yes
13411 export_dynamic_flag_spec_FC
=-rdynamic
13414 cygwin
* | mingw
* | pw32
* | cegcc
*)
13415 # When not using gcc, we currently assume that we are using
13416 # Microsoft Visual C++.
13417 # hardcode_libdir_flag_spec is actually meaningless, as there is
13418 # no search path for DLLs.
13419 hardcode_libdir_flag_spec_FC
=' '
13420 allow_undefined_flag_FC
=unsupported
13421 # Tell ltmain to make .lib files, not .a files.
13423 # Tell ltmain to make .dll files, not .so files.
13425 # FIXME: Setting linknames here is a bad hack.
13426 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13427 # The linker will automatically build a .lib file if we build a DLL.
13428 old_archive_from_new_cmds_FC
='true'
13429 # FIXME: Should let the user specify the lib program.
13430 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13431 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13432 enable_shared_with_static_runtimes_FC
=yes
13435 darwin
* | rhapsody
*)
13438 archive_cmds_need_lc_FC
=no
13439 hardcode_direct_FC
=no
13440 hardcode_automatic_FC
=yes
13441 hardcode_shlibpath_var_FC
=unsupported
13442 if test "$lt_cv_ld_force_load" = "yes"; then
13443 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\"`'
13445 whole_archive_flag_spec_FC
=''
13447 link_all_deplibs_FC
=yes
13448 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13449 case $cc_basename in
13450 ifort
*) _lt_dar_can_shared
=yes ;;
13451 *) _lt_dar_can_shared
=$GCC ;;
13453 if test "$_lt_dar_can_shared" = "yes"; then
13454 output_verbose_link_cmd
=func_echo_all
13455 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}"
13456 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13457 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}"
13458 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}"
13467 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468 hardcode_libdir_flag_spec_FC
='-L$libdir'
13469 hardcode_shlibpath_var_FC
=no
13472 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13473 # support. Future versions do this automatically, but an explicit c++rt0.o
13474 # does not break anything, and helps significantly (at the cost of a little
13477 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13478 hardcode_libdir_flag_spec_FC
='-R$libdir'
13479 hardcode_direct_FC
=yes
13480 hardcode_shlibpath_var_FC
=no
13483 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13485 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13486 hardcode_direct_FC
=yes
13487 hardcode_minus_L_FC
=yes
13488 hardcode_shlibpath_var_FC
=no
13491 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13492 freebsd
* | dragonfly
*)
13493 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13494 hardcode_libdir_flag_spec_FC
='-R$libdir'
13495 hardcode_direct_FC
=yes
13496 hardcode_shlibpath_var_FC
=no
13500 if test "$GCC" = yes; then
13501 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'
13503 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'
13505 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13506 hardcode_libdir_separator_FC
=:
13507 hardcode_direct_FC
=yes
13509 # hardcode_minus_L: Not really in the search PATH,
13510 # but as the default location of the library.
13511 hardcode_minus_L_FC
=yes
13512 export_dynamic_flag_spec_FC
='${wl}-E'
13516 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13517 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13519 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13521 if test "$with_gnu_ld" = no
; then
13522 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13523 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13524 hardcode_libdir_separator_FC
=:
13525 hardcode_direct_FC
=yes
13526 hardcode_direct_absolute_FC
=yes
13527 export_dynamic_flag_spec_FC
='${wl}-E'
13528 # hardcode_minus_L: Not really in the search PATH,
13529 # but as the default location of the library.
13530 hardcode_minus_L_FC
=yes
13535 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13538 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13541 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13544 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13550 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13553 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13556 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13560 if test "$with_gnu_ld" = no
; then
13561 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13562 hardcode_libdir_separator_FC
=:
13566 hardcode_direct_FC
=no
13567 hardcode_shlibpath_var_FC
=no
13570 hardcode_direct_FC
=yes
13571 hardcode_direct_absolute_FC
=yes
13572 export_dynamic_flag_spec_FC
='${wl}-E'
13574 # hardcode_minus_L: Not really in the search PATH,
13575 # but as the default location of the library.
13576 hardcode_minus_L_FC
=yes
13582 irix5
* | irix6
* | nonstopux
*)
13583 if test "$GCC" = yes; then
13584 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'
13585 # Try to use the -exported_symbol ld option, if it does not
13586 # work, assume that -exports_file does not work either and
13587 # implicitly export all symbols.
13588 save_LDFLAGS
="$LDFLAGS"
13589 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13590 cat > conftest.
$ac_ext <<_ACEOF
13593 if ac_fn_fc_try_link
"$LINENO"; then :
13594 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'
13597 rm -f core conftest.err conftest.
$ac_objext \
13598 conftest
$ac_exeext conftest.
$ac_ext
13599 LDFLAGS
="$save_LDFLAGS"
13601 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'
13602 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'
13604 archive_cmds_need_lc_FC
='no'
13605 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13606 hardcode_libdir_separator_FC
=:
13607 inherit_rpath_FC
=yes
13608 link_all_deplibs_FC
=yes
13612 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13613 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13615 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13617 hardcode_libdir_flag_spec_FC
='-R$libdir'
13618 hardcode_direct_FC
=yes
13619 hardcode_shlibpath_var_FC
=no
13623 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13624 hardcode_direct_FC
=yes
13625 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13626 hardcode_libdir_separator_FC
=:
13627 hardcode_shlibpath_var_FC
=no
13634 if test -f /usr
/libexec
/ld.so
; then
13635 hardcode_direct_FC
=yes
13636 hardcode_shlibpath_var_FC
=no
13637 hardcode_direct_absolute_FC
=yes
13638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13639 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13640 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13641 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13642 export_dynamic_flag_spec_FC
='${wl}-E'
13645 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13646 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13647 hardcode_libdir_flag_spec_FC
='-R$libdir'
13650 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13651 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13661 hardcode_libdir_flag_spec_FC
='-L$libdir'
13662 hardcode_minus_L_FC
=yes
13663 allow_undefined_flag_FC
=unsupported
13664 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'
13665 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13669 if test "$GCC" = yes; then
13670 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13671 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'
13673 allow_undefined_flag_FC
=' -expect_unresolved \*'
13674 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'
13676 archive_cmds_need_lc_FC
='no'
13677 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13678 hardcode_libdir_separator_FC
=:
13681 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13682 if test "$GCC" = yes; then
13683 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13684 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'
13685 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13687 allow_undefined_flag_FC
=' -expect_unresolved \*'
13688 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'
13689 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~
13690 $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'
13692 # Both c and cxx compiler support -rpath directly
13693 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13695 archive_cmds_need_lc_FC
='no'
13696 hardcode_libdir_separator_FC
=:
13700 no_undefined_flag_FC
=' -z defs'
13701 if test "$GCC" = yes; then
13703 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13705 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13707 case `$CC -V 2>&1` in
13710 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13711 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13716 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13717 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13722 hardcode_libdir_flag_spec_FC
='-R$libdir'
13723 hardcode_shlibpath_var_FC
=no
13725 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13727 # The compiler driver will combine and reorder linker options,
13728 # but understands `-z linker_flag'. GCC discards it without `$wl',
13729 # but is careful enough not to reorder.
13730 # Supported since Solaris 2.6 (maybe 2.5.1?)
13731 if test "$GCC" = yes; then
13732 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13734 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13738 link_all_deplibs_FC
=yes
13742 if test "x$host_vendor" = xsequent
; then
13743 # Use $CC to link under sequent, because it throws in some extra .o
13744 # files that make .init and .fini sections work.
13745 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13747 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13749 hardcode_libdir_flag_spec_FC
='-L$libdir'
13750 hardcode_direct_FC
=yes
13751 hardcode_minus_L_FC
=yes
13752 hardcode_shlibpath_var_FC
=no
13756 case $host_vendor in
13758 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13759 hardcode_direct_FC
=yes # is this really true???
13762 ## LD is ld it makes a PLAMLIB
13763 ## CC just makes a GrossModule.
13764 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13765 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13766 hardcode_direct_FC
=no
13769 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13773 runpath_var
='LD_RUN_PATH'
13774 hardcode_shlibpath_var_FC
=no
13778 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13779 hardcode_shlibpath_var_FC
=no
13780 export_dynamic_flag_spec_FC
='-Bexport'
13784 if test -d /usr
/nec
; then
13785 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13786 hardcode_shlibpath_var_FC
=no
13787 runpath_var
=LD_RUN_PATH
13788 hardcode_runpath_var
=yes
13793 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13794 no_undefined_flag_FC
='${wl}-z,text'
13795 archive_cmds_need_lc_FC
=no
13796 hardcode_shlibpath_var_FC
=no
13797 runpath_var
='LD_RUN_PATH'
13799 if test "$GCC" = yes; then
13800 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13803 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13808 sysv5
* | sco3.2v5
* | sco5v6
*)
13809 # Note: We can NOT use -z defs as we might desire, because we do not
13810 # link with -lc, and that would cause any symbols used from libc to
13811 # always be unresolved, which means just about no library would
13812 # ever link correctly. If we're not using GNU ld we use -z text
13813 # though, which does catch some bad symbols but isn't as heavy-handed
13815 no_undefined_flag_FC
='${wl}-z,text'
13816 allow_undefined_flag_FC
='${wl}-z,nodefs'
13817 archive_cmds_need_lc_FC
=no
13818 hardcode_shlibpath_var_FC
=no
13819 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13820 hardcode_libdir_separator_FC
=':'
13821 link_all_deplibs_FC
=yes
13822 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13823 runpath_var
='LD_RUN_PATH'
13825 if test "$GCC" = yes; then
13826 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13836 hardcode_libdir_flag_spec_FC
='-L$libdir'
13837 hardcode_shlibpath_var_FC
=no
13845 if test x
$host_vendor = xsni
; then
13847 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13848 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13855 $as_echo "$ld_shlibs_FC" >&6; }
13856 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13858 with_gnu_ld_FC
=$with_gnu_ld
13866 # Do we need to explicitly link libc?
13868 case "x$archive_cmds_need_lc_FC" in
13870 # Assume -lc should be added
13871 archive_cmds_need_lc_FC
=yes
13873 if test "$enable_shared" = yes && test "$GCC" = yes; then
13874 case $archive_cmds_FC in
13876 # FIXME: we may have to deal with multi-command sequences.
13879 # Test whether the compiler implicitly links with -lc since on some
13880 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13881 # to ld, don't add -lc before -lgcc.
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13883 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13884 if ${lt_cv_archive_cmds_need_lc_FC+:} false
; then :
13885 $as_echo_n "(cached) " >&6
13888 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13891 (eval $ac_compile) 2>&5
13893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13894 test $ac_status = 0; } 2>conftest.err
; then
13897 libobjs
=conftest.
$ac_objext
13899 wl
=$lt_prog_compiler_wl_FC
13900 pic_flag
=$lt_prog_compiler_pic_FC
13906 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13907 allow_undefined_flag_FC
=
13908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13909 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13912 test $ac_status = 0; }
13914 lt_cv_archive_cmds_need_lc_FC
=no
13916 lt_cv_archive_cmds_need_lc_FC
=yes
13918 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13920 cat conftest.err
1>&5
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13926 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13927 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13998 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14000 library_names_spec
=
14001 libname_spec
='lib$name'
14005 postuninstall_cmds
=
14009 shlibpath_overrides_runpath
=unknown
14011 dynamic_linker
="$host_os ld.so"
14012 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14013 need_lib_prefix
=unknown
14014 hardcode_into_libs
=no
14016 # when you set need_version to no, make sure it does not cause -set_version
14017 # flags to be left without arguments
14018 need_version
=unknown
14023 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14024 shlibpath_var
=LIBPATH
14026 # AIX 3 has no versioning support, so we append a major version to the name.
14027 soname_spec
='${libname}${release}${shared_ext}$major'
14034 hardcode_into_libs
=yes
14035 if test "$host_cpu" = ia64
; then
14036 # AIX 5 supports IA64
14037 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14038 shlibpath_var
=LD_LIBRARY_PATH
14040 # With GCC up to 2.95.x, collect2 would create an import file
14041 # for dependence libraries. The import file would start with
14042 # the line `#! .'. This would cause the generated library to
14043 # depend on `.', always an invalid library. This was fixed in
14044 # development snapshots of GCC prior to 3.0.
14046 aix4 | aix4.
[01] | aix4.
[01].
*)
14047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14049 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14052 can_build_shared
=no
14056 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14057 # soname into executable. Probably we can add versioning support to
14058 # collect2, so additional links can be useful in future.
14059 if test "$aix_use_runtimelinking" = yes; then
14060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14061 # instead of lib<name>.a to let people know that these are not
14062 # typical AIX shared libraries.
14063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14065 # We preserve .a as extension for shared libraries through AIX4.2
14066 # and later when we are not doing run time linking.
14067 library_names_spec
='${libname}${release}.a $libname.a'
14068 soname_spec
='${libname}${release}${shared_ext}$major'
14070 shlibpath_var
=LIBPATH
14077 # Since July 2007 AmigaOS4 officially supports .so libraries.
14078 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082 library_names_spec
='$libname.ixlibrary $libname.a'
14083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14084 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'
14090 library_names_spec
='${libname}${shared_ext}'
14091 dynamic_linker
="$host_os ld.so"
14092 shlibpath_var
=LIBRARY_PATH
14098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099 soname_spec
='${libname}${release}${shared_ext}$major'
14100 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14101 shlibpath_var
=LD_LIBRARY_PATH
14102 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14103 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14104 # the default ld.so.conf also contains /usr/contrib/lib and
14105 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14106 # libtool to hard-code these into programs
14109 cygwin
* | mingw
* | pw32
* | cegcc
*)
14110 version_type
=windows
14115 case $GCC,$host_os in
14116 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14117 library_names_spec
='$libname.dll.a'
14118 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14119 postinstall_cmds
='base_file=`basename \${file}`~
14120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14121 dldir=$destdir/`dirname \$dlpath`~
14122 test -d \$dldir || mkdir -p \$dldir~
14123 $install_prog $dir/$dlname \$dldir/$dlname~
14124 chmod a+x \$dldir/$dlname~
14125 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14126 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14128 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14129 dlpath=$dir/\$dldll~
14131 shlibpath_overrides_runpath
=yes
14135 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14136 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14140 # MinGW DLLs use traditional 'lib' prefix
14141 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14144 # pw32 DLLs use 'pw' prefix rather than 'lib'
14145 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14151 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14154 dynamic_linker
='Win32 ld.exe'
14155 # FIXME: first we should search . and the directory the executable is in
14159 darwin
* | rhapsody
*)
14160 dynamic_linker
="$host_os dyld"
14161 version_type
=darwin
14164 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14165 soname_spec
='${libname}${release}${major}$shared_ext'
14166 shlibpath_overrides_runpath
=yes
14167 shlibpath_var
=DYLD_LIBRARY_PATH
14168 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14170 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14178 soname_spec
='${libname}${release}${shared_ext}$major'
14179 shlibpath_var
=LD_LIBRARY_PATH
14182 freebsd
* | dragonfly
*)
14183 # DragonFly does not have aout. When/if they implement a new
14184 # versioning mechanism, adjust this.
14185 if test -x /usr
/bin
/objformat
; then
14186 objformat
=`/usr/bin/objformat`
14189 freebsd
[23].
*) objformat
=aout
;;
14190 *) objformat
=elf
;;
14193 version_type
=freebsd-
$objformat
14194 case $version_type in
14196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14201 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14205 shlibpath_var
=LD_LIBRARY_PATH
14208 shlibpath_overrides_runpath
=yes
14210 freebsd3.
[01]* | freebsdelf3.
[01]*)
14211 shlibpath_overrides_runpath
=yes
14212 hardcode_into_libs
=yes
14214 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14215 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14216 shlibpath_overrides_runpath
=no
14217 hardcode_into_libs
=yes
14219 *) # from 4.6 on, and DragonFly
14220 shlibpath_overrides_runpath
=yes
14221 hardcode_into_libs
=yes
14230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14231 soname_spec
='${libname}${release}${shared_ext}$major'
14232 shlibpath_var
=LD_LIBRARY_PATH
14233 hardcode_into_libs
=yes
14240 dynamic_linker
="$host_os runtime_loader"
14241 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14242 soname_spec
='${libname}${release}${shared_ext}$major'
14243 shlibpath_var
=LIBRARY_PATH
14244 shlibpath_overrides_runpath
=yes
14245 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14246 hardcode_into_libs
=yes
14249 hpux9
* | hpux10
* | hpux11
*)
14250 # Give a soname corresponding to the major version so that dld.sl refuses to
14251 # link against other versions.
14258 hardcode_into_libs
=yes
14259 dynamic_linker
="$host_os dld.so"
14260 shlibpath_var
=LD_LIBRARY_PATH
14261 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263 soname_spec
='${libname}${release}${shared_ext}$major'
14264 if test "X$HPUX_IA64_MODE" = X32
; then
14265 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14267 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14269 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14273 hardcode_into_libs
=yes
14274 dynamic_linker
="$host_os dld.sl"
14275 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14276 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14278 soname_spec
='${libname}${release}${shared_ext}$major'
14279 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14280 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14284 dynamic_linker
="$host_os dld.sl"
14285 shlibpath_var
=SHLIB_PATH
14286 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
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'
14291 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14292 postinstall_cmds
='chmod 555 $lib'
14293 # or fails outright, so override atomically:
14294 install_override_mode
=555
14301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14302 soname_spec
='${libname}${release}${shared_ext}$major'
14303 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14304 shlibpath_var
=LD_LIBRARY_PATH
14305 shlibpath_overrides_runpath
=no
14306 hardcode_into_libs
=yes
14309 irix5
* | irix6
* | nonstopux
*)
14311 nonstopux
*) version_type
=nonstopux
;;
14313 if test "$lt_cv_prog_gnu_ld" = yes; then
14321 soname_spec
='${libname}${release}${shared_ext}$major'
14322 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14324 irix5
* | nonstopux
*)
14325 libsuff
= shlibsuff
=
14328 case $LD in # libtool.m4 will add one of these switches to LD
14329 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14330 libsuff
= shlibsuff
= libmagic
=32-bit;;
14331 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14332 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14333 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14334 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14335 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14339 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14340 shlibpath_overrides_runpath
=no
14341 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14342 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14343 hardcode_into_libs
=yes
14346 # No shared lib support for Linux oldld, aout, or coff.
14347 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14351 # This must be Linux ELF.
14352 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357 soname_spec
='${libname}${release}${shared_ext}$major'
14358 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14359 shlibpath_var
=LD_LIBRARY_PATH
14360 shlibpath_overrides_runpath
=no
14362 # Some binutils ld are patched to set DT_RUNPATH
14363 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14364 $as_echo_n "(cached) " >&6
14366 lt_cv_shlibpath_overrides_runpath
=no
14367 save_LDFLAGS
=$LDFLAGS
14368 save_libdir
=$libdir
14369 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14370 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14371 cat > conftest.
$ac_ext <<_ACEOF
14376 if ac_fn_fc_try_link
"$LINENO"; then :
14377 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14378 lt_cv_shlibpath_overrides_runpath
=yes
14381 rm -f core conftest.err conftest.
$ac_objext \
14382 conftest
$ac_exeext conftest.
$ac_ext
14383 LDFLAGS
=$save_LDFLAGS
14384 libdir
=$save_libdir
14388 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14390 # This implies no fast_install, which is unacceptable.
14391 # Some rework will be needed to allow for fast_install
14392 # before this can be enabled.
14393 hardcode_into_libs
=yes
14395 # Append ld.so.conf contents to the search path
14396 if test -f /etc
/ld.so.conf
; then
14397 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' ' '`
14398 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14401 # We used to test for /lib/ld.so.1 and disable shared libraries on
14402 # powerpc, because MkLinux only supported shared libraries with the
14403 # GNU dynamic linker. Since this was broken with cross compilers,
14404 # most powerpc-linux boxes support dynamic linking these days and
14405 # people can always --disable-shared, the test was removed, and we
14406 # assume the GNU/Linux dynamic linker is in use.
14407 dynamic_linker
='GNU/Linux ld.so'
14414 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14415 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14416 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14417 dynamic_linker
='NetBSD (a.out) ld.so'
14419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14420 soname_spec
='${libname}${release}${shared_ext}$major'
14421 dynamic_linker
='NetBSD ld.elf_so'
14423 shlibpath_var
=LD_LIBRARY_PATH
14424 shlibpath_overrides_runpath
=yes
14425 hardcode_into_libs
=yes
14430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431 shlibpath_var
=LD_LIBRARY_PATH
14432 shlibpath_overrides_runpath
=yes
14439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440 soname_spec
='${libname}${release}${shared_ext}$major'
14441 shlibpath_var
=LD_LIBRARY_PATH
14442 shlibpath_overrides_runpath
=no
14443 hardcode_into_libs
=yes
14444 dynamic_linker
='ldqnx.so'
14449 sys_lib_dlsearch_path_spec
="/usr/lib"
14451 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14453 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14454 *) need_version
=no
;;
14456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14457 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14458 shlibpath_var
=LD_LIBRARY_PATH
14459 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14461 openbsd2.
[89] | openbsd2.
[89].
*)
14462 shlibpath_overrides_runpath
=no
14465 shlibpath_overrides_runpath
=yes
14469 shlibpath_overrides_runpath
=yes
14474 libname_spec
='$name'
14477 library_names_spec
='$libname${shared_ext} $libname.a'
14478 dynamic_linker
='OS/2 ld.exe'
14479 shlibpath_var
=LIBPATH
14482 osf3
* | osf4
* | osf5
*)
14486 soname_spec
='${libname}${release}${shared_ext}$major'
14487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488 shlibpath_var
=LD_LIBRARY_PATH
14489 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14490 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14501 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502 soname_spec
='${libname}${release}${shared_ext}$major'
14503 shlibpath_var
=LD_LIBRARY_PATH
14504 shlibpath_overrides_runpath
=yes
14505 hardcode_into_libs
=yes
14506 # ldd complains unless libraries are executable
14507 postinstall_cmds
='chmod +x $lib'
14512 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14513 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14514 shlibpath_var
=LD_LIBRARY_PATH
14515 shlibpath_overrides_runpath
=yes
14516 if test "$with_gnu_ld" = yes; then
14524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec
='${libname}${release}${shared_ext}$major'
14526 shlibpath_var
=LD_LIBRARY_PATH
14527 case $host_vendor in
14529 shlibpath_overrides_runpath
=no
14531 runpath_var
=LD_RUN_PATH
14539 shlibpath_overrides_runpath
=no
14540 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14546 if test -d /usr
/nec
;then
14548 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14549 soname_spec
='$libname${shared_ext}.$major'
14550 shlibpath_var
=LD_LIBRARY_PATH
14554 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14555 version_type
=freebsd-elf
14558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14559 soname_spec
='${libname}${release}${shared_ext}$major'
14560 shlibpath_var
=LD_LIBRARY_PATH
14561 shlibpath_overrides_runpath
=yes
14562 hardcode_into_libs
=yes
14563 if test "$with_gnu_ld" = yes; then
14564 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14566 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14569 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14573 sys_lib_dlsearch_path_spec
='/usr/lib'
14577 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582 shlibpath_var
=LD_LIBRARY_PATH
14583 shlibpath_overrides_runpath
=no
14584 hardcode_into_libs
=yes
14589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590 soname_spec
='${libname}${release}${shared_ext}$major'
14591 shlibpath_var
=LD_LIBRARY_PATH
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14599 $as_echo "$dynamic_linker" >&6; }
14600 test "$dynamic_linker" = no
&& can_build_shared
=no
14602 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14603 if test "$GCC" = yes; then
14604 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14607 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14608 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14610 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14611 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14652 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14653 hardcode_action_FC
=
14654 if test -n "$hardcode_libdir_flag_spec_FC" ||
14655 test -n "$runpath_var_FC" ||
14656 test "X$hardcode_automatic_FC" = "Xyes" ; then
14658 # We can hardcode non-existent directories.
14659 if test "$hardcode_direct_FC" != no
&&
14660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14661 # have to relink, otherwise we might link with an installed library
14662 # when we should be linking with a yet-to-be-installed one
14663 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14664 test "$hardcode_minus_L_FC" != no
; then
14665 # Linking always hardcodes the temporary library directory.
14666 hardcode_action_FC
=relink
14668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14669 hardcode_action_FC
=immediate
14672 # We cannot hardcode anything, or else we can only hardcode existing
14674 hardcode_action_FC
=unsupported
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14677 $as_echo "$hardcode_action_FC" >&6; }
14679 if test "$hardcode_action_FC" = relink ||
14680 test "$inherit_rpath_FC" = yes; then
14681 # Fast installation is not supported
14682 enable_fast_install
=no
14683 elif test "$shlibpath_overrides_runpath" = yes ||
14684 test "$enable_shared" = no
; then
14685 # Fast installation is not necessary
14686 enable_fast_install
=needless
14695 fi # test -n "$compiler"
14699 fi # test "$_lt_disable_FC" != yes
14702 ac_cpp
='$CPP $CPPFLAGS'
14703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14708 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14710 # For libtool versioning info, format is CURRENT:REVISION:AGE
14711 libtool_VERSION
=1:0:0
14714 # Check header files.
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14716 $as_echo_n "checking for ANSI C header files... " >&6; }
14717 if ${ac_cv_header_stdc+:} false
; then :
14718 $as_echo_n "(cached) " >&6
14720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14722 #include <stdlib.h>
14723 #include <stdarg.h>
14724 #include <string.h>
14735 if ac_fn_c_try_compile
"$LINENO"; then :
14736 ac_cv_header_stdc
=yes
14738 ac_cv_header_stdc
=no
14740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14742 if test $ac_cv_header_stdc = yes; then
14743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14746 #include <string.h>
14749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14750 $EGREP "memchr" >/dev
/null
2>&1; then :
14753 ac_cv_header_stdc
=no
14759 if test $ac_cv_header_stdc = yes; then
14760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 #include <stdlib.h>
14766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14767 $EGREP "free" >/dev
/null
2>&1; then :
14770 ac_cv_header_stdc
=no
14776 if test $ac_cv_header_stdc = yes; then
14777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14778 if test "$cross_compiling" = yes; then :
14781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14784 #include <stdlib.h>
14785 #if ((' ' & 0x0FF) == 0x020)
14786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14789 # define ISLOWER(c) \
14790 (('a' <= (c) && (c) <= 'i') \
14791 || ('j' <= (c) && (c) <= 'r') \
14792 || ('s' <= (c) && (c) <= 'z'))
14793 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14801 for (i = 0; i < 256; i++)
14802 if (XOR (islower (i), ISLOWER (i))
14803 || toupper (i) != TOUPPER (i))
14808 if ac_fn_c_try_run
"$LINENO"; then :
14811 ac_cv_header_stdc
=no
14813 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14814 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14820 $as_echo "$ac_cv_header_stdc" >&6; }
14821 if test $ac_cv_header_stdc = yes; then
14823 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14828 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14829 if ${ac_cv_header_time+:} false
; then :
14830 $as_echo_n "(cached) " >&6
14832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14834 #include <sys/types.h>
14835 #include <sys/time.h>
14841 if ((struct tm *) 0)
14847 if ac_fn_c_try_compile
"$LINENO"; then :
14848 ac_cv_header_time
=yes
14850 ac_cv_header_time
=no
14852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14855 $as_echo "$ac_cv_header_time" >&6; }
14856 if test $ac_cv_header_time = yes; then
14858 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14863 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14864 if ${gcc_cv_header_string+:} false
; then :
14865 $as_echo_n "(cached) " >&6
14867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14869 #include <string.h>
14870 #include <strings.h>
14879 if ac_fn_c_try_compile
"$LINENO"; then :
14880 gcc_cv_header_string
=yes
14882 gcc_cv_header_string
=no
14884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14887 $as_echo "$gcc_cv_header_string" >&6; }
14888 if test $gcc_cv_header_string = yes; then
14890 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14894 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14896 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14897 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14898 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14899 cat >>confdefs.h
<<_ACEOF
14900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14910 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14912 acx_cv_header_stdint
=stddef.h
14913 acx_cv_header_stdint_kind
="(already complete)"
14914 for i
in stdint.h
$inttype_headers; do
14915 unset ac_cv_type_uintptr_t
14916 unset ac_cv_type_uintmax_t
14917 unset ac_cv_type_int_least32_t
14918 unset ac_cv_type_int_fast32_t
14919 unset ac_cv_type_uint64_t
14920 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14921 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14924 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
14925 acx_cv_header_stdint
=$i
14930 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14933 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
14936 acx_cv_header_stdint_kind
="(mostly complete)"
14939 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14942 if test "x$ac_cv_type_int_least32_t" = xyes
; then :
14945 acx_cv_header_stdint_kind
="(mostly complete)"
14948 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14951 if test "x$ac_cv_type_int_fast32_t" = xyes
; then :
14954 acx_cv_header_stdint_kind
="(mostly complete)"
14957 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14960 if test "x$ac_cv_type_uint64_t" = xyes
; then :
14963 acx_cv_header_stdint_kind
="(lacks uint64_t)"
14968 if test "$acx_cv_header_stdint" = stddef.h
; then
14969 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
14970 for i
in stdint.h
$inttype_headers; do
14971 unset ac_cv_type_uintptr_t
14972 unset ac_cv_type_uint32_t
14973 unset ac_cv_type_uint64_t
14974 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14975 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14978 if test "x$ac_cv_type_uint32_t" = xyes
; then :
14979 acx_cv_header_stdint
=$i
14984 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14987 if test "x$ac_cv_type_uint64_t" = xyes
; then :
14991 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14994 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
15001 if test "$acx_cv_header_stdint" = stddef.h
; then
15002 acx_cv_header_stdint_kind
="(u_intXX_t style)"
15003 for i
in sys
/types.h
$inttype_headers; do
15004 unset ac_cv_type_u_int32_t
15005 unset ac_cv_type_u_int64_t
15006 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15007 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15010 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
15011 acx_cv_header_stdint
=$i
15016 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15019 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
15026 if test "$acx_cv_header_stdint" = stddef.h
; then
15027 acx_cv_header_stdint_kind
="(using manual detection)"
15030 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
15031 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
15032 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
15033 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
15034 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
15036 # ----------------- Summarize what we found so far
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15039 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15041 case `$as_basename -- gstdint.h ||
15042 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15043 Xgstdint.h : 'X\(//\)$' \| \
15044 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15045 $as_echo X/gstdint.h |
15046 sed '/^.*\/\([^/][^/]*\)\/*$/{
15059 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15060 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15061 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15062 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15067 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15069 # ----------------- done included file, check C basic types --------
15071 # Lacking an uintptr_t? Test size of void *
15072 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15073 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
15074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15076 # This bug is HP SR number 8606223364.
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15078 $as_echo_n "checking size of void *... " >&6; }
15079 if ${ac_cv_sizeof_void_p+:} false
; then :
15080 $as_echo_n "(cached) " >&6
15082 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15085 if test "$ac_cv_type_void_p" = yes; then
15086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15088 as_fn_error
77 "cannot compute sizeof (void *)
15089 See \`config.log' for more details" "$LINENO" 5; }
15091 ac_cv_sizeof_void_p
=0
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15097 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15101 cat >>confdefs.h
<<_ACEOF
15102 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15108 # Lacking an uint64_t? Test size of long
15109 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15110 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
15111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15113 # This bug is HP SR number 8606223364.
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15115 $as_echo_n "checking size of long... " >&6; }
15116 if ${ac_cv_sizeof_long+:} false
; then :
15117 $as_echo_n "(cached) " >&6
15119 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15122 if test "$ac_cv_type_long" = yes; then
15123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15125 as_fn_error
77 "cannot compute sizeof (long)
15126 See \`config.log' for more details" "$LINENO" 5; }
15128 ac_cv_sizeof_long
=0
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15134 $as_echo "$ac_cv_sizeof_long" >&6; }
15138 cat >>confdefs.h
<<_ACEOF
15139 #define SIZEOF_LONG $ac_cv_sizeof_long
15145 if test $acx_cv_header_stdint = stddef.h
; then
15146 # Lacking a good header? Test size of everything and deduce all types.
15147 # The cast to long int works around a bug in the HP C Compiler
15148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15150 # This bug is HP SR number 8606223364.
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15152 $as_echo_n "checking size of int... " >&6; }
15153 if ${ac_cv_sizeof_int+:} false
; then :
15154 $as_echo_n "(cached) " >&6
15156 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15159 if test "$ac_cv_type_int" = yes; then
15160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15162 as_fn_error
77 "cannot compute sizeof (int)
15163 See \`config.log' for more details" "$LINENO" 5; }
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15171 $as_echo "$ac_cv_sizeof_int" >&6; }
15175 cat >>confdefs.h
<<_ACEOF
15176 #define SIZEOF_INT $ac_cv_sizeof_int
15180 # The cast to long int works around a bug in the HP C Compiler
15181 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15182 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15183 # This bug is HP SR number 8606223364.
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15185 $as_echo_n "checking size of short... " >&6; }
15186 if ${ac_cv_sizeof_short+:} false
; then :
15187 $as_echo_n "(cached) " >&6
15189 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15192 if test "$ac_cv_type_short" = yes; then
15193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15195 as_fn_error
77 "cannot compute sizeof (short)
15196 See \`config.log' for more details" "$LINENO" 5; }
15198 ac_cv_sizeof_short
=0
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15204 $as_echo "$ac_cv_sizeof_short" >&6; }
15208 cat >>confdefs.h
<<_ACEOF
15209 #define SIZEOF_SHORT $ac_cv_sizeof_short
15213 # The cast to long int works around a bug in the HP C Compiler
15214 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15215 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15216 # This bug is HP SR number 8606223364.
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15218 $as_echo_n "checking size of char... " >&6; }
15219 if ${ac_cv_sizeof_char+:} false
; then :
15220 $as_echo_n "(cached) " >&6
15222 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15225 if test "$ac_cv_type_char" = yes; then
15226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15228 as_fn_error
77 "cannot compute sizeof (char)
15229 See \`config.log' for more details" "$LINENO" 5; }
15231 ac_cv_sizeof_char
=0
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15237 $as_echo "$ac_cv_sizeof_char" >&6; }
15241 cat >>confdefs.h
<<_ACEOF
15242 #define SIZEOF_CHAR $ac_cv_sizeof_char
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15248 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15249 case "$ac_cv_sizeof_char" in
15250 1) acx_cv_type_int8_t
=char
;;
15251 *) as_fn_error $?
"no 8-bit type, please report a bug" "$LINENO" 5
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15254 $as_echo "$acx_cv_type_int8_t" >&6; }
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15257 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15258 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15259 2:*) acx_cv_type_int16_t
=int
;;
15260 *:2) acx_cv_type_int16_t
=short
;;
15261 *) as_fn_error $?
"no 16-bit type, please report a bug" "$LINENO" 5
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15264 $as_echo "$acx_cv_type_int16_t" >&6; }
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15267 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15268 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15269 4:*) acx_cv_type_int32_t
=int
;;
15270 *:4) acx_cv_type_int32_t
=long
;;
15271 *) as_fn_error $?
"no 32-bit type, please report a bug" "$LINENO" 5
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15274 $as_echo "$acx_cv_type_int32_t" >&6; }
15277 # These tests are here to make the output prettier
15279 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15280 case "$ac_cv_sizeof_long" in
15281 8) acx_cv_type_int64_t
=long
;;
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15284 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15286 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15289 # Now we can use the above types
15291 if test "$ac_cv_type_uintptr_t" != yes; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15293 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15294 case $ac_cv_sizeof_void_p in
15295 2) acx_cv_type_intptr_t
=int16_t
;;
15296 4) acx_cv_type_intptr_t
=int32_t
;;
15297 8) acx_cv_type_intptr_t
=int64_t
;;
15298 *) as_fn_error $?
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15301 $as_echo "$acx_cv_type_intptr_t" >&6; }
15304 # ----------------- done all checks, emit header -------------
15305 ac_config_commands
="$ac_config_commands gstdint.h"
15313 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15316 # NVPTX does not support Pthreads, has its own code replacement.
15317 libgomp_use_pthreads
=no
15318 # NVPTX is an accelerator-only target
15319 libgomp_offloaded_only
=yes
15322 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15323 # In case the pthread.h system header is not found, this test will fail.
15324 CFLAGS
="$CFLAGS -pthread"
15325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15327 #include <pthread.h>
15328 void *g(void *d) { return NULL; }
15332 pthread_t t; pthread_create(&t,NULL,g,NULL);
15337 if ac_fn_c_try_link
"$LINENO"; then :
15338 XPCFLAGS
=" -Wc,-pthread"
15340 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
15341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15343 #include <pthread.h>
15344 void *g(void *d) { return NULL; }
15348 pthread_t t; pthread_create(&t,NULL,g,NULL);
15353 if ac_fn_c_try_link
"$LINENO"; then :
15356 as_fn_error $?
"Pthreads are required to build libgomp" "$LINENO" 5
15358 rm -f core conftest.err conftest.
$ac_objext \
15359 conftest
$ac_exeext conftest.
$ac_ext
15361 rm -f core conftest.err conftest.
$ac_objext \
15362 conftest
$ac_exeext conftest.
$ac_ext
15365 if test x
$libgomp_use_pthreads != xno
; then
15367 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15371 if test x
$libgomp_offloaded_only = xyes
; then
15373 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15377 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15379 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
15381 # Contributed by Mentor Embedded.
15383 # This file is part of the GNU Offloading and Multi Processing Library
15386 # Libgomp is free software; you can redistribute it and/or modify it
15387 # under the terms of the GNU General Public License as published by
15388 # the Free Software Foundation; either version 3, or (at your option)
15389 # any later version.
15391 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15392 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15393 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15396 # Under Section 7 of GPL version 3, you are granted additional
15397 # permissions described in the GCC Runtime Library Exception, version
15398 # 3.1, as published by the Free Software Foundation.
15400 # You should have received a copy of the GNU General Public License and
15401 # a copy of the GCC Runtime Library Exception along with this program;
15402 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15403 # <http://www.gnu.org/licenses/>.
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15407 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15408 if ${ac_cv_lib_dl_dlsym+:} false
; then :
15409 $as_echo_n "(cached) " >&6
15411 ac_check_lib_save_LIBS
=$LIBS
15413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15416 /* Override any GCC internal prototype to avoid an error.
15417 Use char because int might match the return type of a GCC
15418 builtin and then its argument prototype would still apply. */
15431 if ac_fn_c_try_link
"$LINENO"; then :
15432 ac_cv_lib_dl_dlsym
=yes
15434 ac_cv_lib_dl_dlsym
=no
15436 rm -f core conftest.err conftest.
$ac_objext \
15437 conftest
$ac_exeext conftest.
$ac_ext
15438 LIBS
=$ac_check_lib_save_LIBS
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15441 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15442 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
15443 cat >>confdefs.h
<<_ACEOF
15444 #define HAVE_LIBDL 1
15453 if test x
"$plugin_support" = xyes
; then
15455 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15457 elif test "x${enable_offload_targets-no}" != xno
; then
15458 as_fn_error $?
"Can't support offloading without support for plugins" "$LINENO" 5
15463 for ac_header
in $ac_header_list
15465 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15468 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15469 cat >>confdefs.h
<<_ACEOF
15470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15483 for ac_func
in $ac_func_list
15485 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15486 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15487 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15488 cat >>confdefs.h
<<_ACEOF
15489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15510 # Look for the CUDA driver package.
15511 CUDA_DRIVER_INCLUDE
=
15515 CUDA_DRIVER_CPPFLAGS
=
15516 CUDA_DRIVER_LDFLAGS
=
15518 # Check whether --with-cuda-driver was given.
15519 if test "${with_cuda_driver+set}" = set; then :
15520 withval
=$with_cuda_driver;
15524 # Check whether --with-cuda-driver-include was given.
15525 if test "${with_cuda_driver_include+set}" = set; then :
15526 withval
=$with_cuda_driver_include;
15530 # Check whether --with-cuda-driver-lib was given.
15531 if test "${with_cuda_driver_lib+set}" = set; then :
15532 withval
=$with_cuda_driver_lib;
15535 case "x$with_cuda_driver" in
15538 CUDA_DRIVER_INCLUDE
=no
15541 *) CUDA_DRIVER_INCLUDE
=$with_cuda_driver/include
15542 CUDA_DRIVER_LIB
=$with_cuda_driver/lib
15545 if test "x$with_cuda_driver_include" != x
; then
15546 CUDA_DRIVER_INCLUDE
=$with_cuda_driver_include
15548 if test "x$with_cuda_driver_lib" != x
; then
15549 CUDA_DRIVER_LIB
=$with_cuda_driver_lib
15551 if test "x$CUDA_DRIVER_INCLUDE" != x \
15552 && test "x$CUDA_DRIVER_INCLUDE" != xno
; then
15553 CUDA_DRIVER_CPPFLAGS
=-I$CUDA_DRIVER_INCLUDE
15555 if test "x$CUDA_DRIVER_LIB" != x \
15556 && test "x$CUDA_DRIVER_LIB" != xno
; then
15557 CUDA_DRIVER_LDFLAGS
=-L$CUDA_DRIVER_LIB
15561 PLUGIN_NVPTX_CPPFLAGS
=
15562 PLUGIN_NVPTX_LDFLAGS
=
15564 PLUGIN_NVPTX_DYNAMIC
=0
15570 # Look for HSA run-time, its includes and libraries
15572 HSA_RUNTIME_INCLUDE
=
15576 HSA_RUNTIME_CPPFLAGS
=
15577 HSA_RUNTIME_LDFLAGS
=
15580 # Check whether --with-hsa-runtime was given.
15581 if test "${with_hsa_runtime+set}" = set; then :
15582 withval
=$with_hsa_runtime;
15586 # Check whether --with-hsa-runtime-include was given.
15587 if test "${with_hsa_runtime_include+set}" = set; then :
15588 withval
=$with_hsa_runtime_include;
15592 # Check whether --with-hsa-runtime-lib was given.
15593 if test "${with_hsa_runtime_lib+set}" = set; then :
15594 withval
=$with_hsa_runtime_lib;
15597 if test "x$with_hsa_runtime" != x
; then
15598 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime/include
15599 HSA_RUNTIME_LIB
=$with_hsa_runtime/lib
15601 if test "x$with_hsa_runtime_include" != x
; then
15602 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime_include
15604 if test "x$with_hsa_runtime_lib" != x
; then
15605 HSA_RUNTIME_LIB
=$with_hsa_runtime_lib
15607 if test "x$HSA_RUNTIME_INCLUDE" != x
; then
15608 HSA_RUNTIME_CPPFLAGS
=-I$HSA_RUNTIME_INCLUDE
15610 if test "x$HSA_RUNTIME_LIB" != x
; then
15611 HSA_RUNTIME_LDFLAGS
=-L$HSA_RUNTIME_LIB
15615 PLUGIN_HSA_CPPFLAGS
=
15616 PLUGIN_HSA_LDFLAGS
=
15623 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15624 # plugins, and configure to find the corresponding offload compilers.
15625 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15630 offload_additional_options
=
15631 offload_additional_lib_paths
=
15634 if test x
"$enable_offload_targets" != x
; then
15635 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15636 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15637 tgt
=`echo $tgt | sed 's/=.*//'`
15640 *-intelmic-* |
*-intelmicemul-*)
15641 tgt_plugin
=intelmic
15646 if test "x$CUDA_DRIVER_LIB" != xno \
15647 && test "x$CUDA_DRIVER_LIB" != xno
; then
15648 PLUGIN_NVPTX_CPPFLAGS
=$CUDA_DRIVER_CPPFLAGS
15649 PLUGIN_NVPTX_LDFLAGS
=$CUDA_DRIVER_LDFLAGS
15650 PLUGIN_NVPTX_LIBS
='-lcuda'
15652 PLUGIN_NVPTX_save_CPPFLAGS
=$CPPFLAGS
15653 CPPFLAGS
="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15654 PLUGIN_NVPTX_save_LDFLAGS
=$LDFLAGS
15655 LDFLAGS
="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15656 PLUGIN_NVPTX_save_LIBS
=$LIBS
15657 LIBS
="$PLUGIN_NVPTX_LIBS $LIBS"
15658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15664 CUresult r = cuCtxPushCurrent (NULL);
15669 if ac_fn_c_try_link
"$LINENO"; then :
15672 rm -f core conftest.err conftest.
$ac_objext \
15673 conftest
$ac_exeext conftest.
$ac_ext
15674 CPPFLAGS
=$PLUGIN_NVPTX_save_CPPFLAGS
15675 LDFLAGS
=$PLUGIN_NVPTX_save_LDFLAGS
15676 LIBS
=$PLUGIN_NVPTX_save_LIBS
15678 case $PLUGIN_NVPTX in
15680 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15681 ||
test "x$CUDA_DRIVER_INCLUDE" = xno
) \
15682 && (test "x$CUDA_DRIVER_LIB" = x \
15683 ||
test "x$CUDA_DRIVER_LIB" = xno
); then
15685 PLUGIN_NVPTX_CPPFLAGS
='-I$(srcdir)/plugin/cuda'
15686 PLUGIN_NVPTX_LIBS
='-ldl'
15687 PLUGIN_NVPTX_DYNAMIC
=1
15690 as_fn_error $?
"CUDA driver package required for nvptx support" "$LINENO" 5
15696 case "${target}" in
15698 case " ${CC} ${CFLAGS} " in
15705 PLUGIN_HSA_CPPFLAGS
=$HSA_RUNTIME_CPPFLAGS
15706 PLUGIN_HSA_LDFLAGS
="$HSA_RUNTIME_LDFLAGS"
15707 PLUGIN_HSA_LIBS
="-ldl"
15709 PLUGIN_HSA_save_CPPFLAGS
=$CPPFLAGS
15710 CPPFLAGS
="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15711 PLUGIN_HSA_save_LDFLAGS
=$LDFLAGS
15712 LDFLAGS
="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15713 PLUGIN_HSA_save_LIBS
=$LIBS
15714 LIBS
="$PLUGIN_HSA_LIBS $LIBS"
15717 CPPFLAGS
=$PLUGIN_HSA_save_CPPFLAGS
15718 LDFLAGS
=$PLUGIN_HSA_save_LDFLAGS
15719 LIBS
=$PLUGIN_HSA_save_LIBS
15720 case $PLUGIN_HSA in
15723 as_fn_error $?
"HSA run-time package required for HSA support" "$LINENO" 5
15735 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
15738 if test x
"$tgt_plugin" = x
; then
15739 # Not configuring libgomp for this offload target if we're not building
15740 # the corresponding offload plugin.
15742 elif test x
"$offload_plugins" = x
; then
15743 offload_plugins
=$tgt_plugin
15744 offload_targets
=$tgt
15746 offload_plugins
=$offload_plugins,$tgt_plugin
15747 offload_targets
=$offload_targets,$tgt
15749 # Configure additional search paths.
15750 if test "$tgt_plugin" = hsa
; then
15751 # Offloading compilation is all handled by the target compiler.
15753 elif test x
"$tgt_dir" != x
; then
15754 offload_additional_options
="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15755 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15757 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15758 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15763 cat >>confdefs.h
<<_ACEOF
15764 #define OFFLOAD_PLUGINS "$offload_plugins"
15767 if test $PLUGIN_NVPTX = 1; then
15769 PLUGIN_NVPTX_FALSE
='#'
15771 PLUGIN_NVPTX_TRUE
='#'
15772 PLUGIN_NVPTX_FALSE
=
15776 cat >>confdefs.h
<<_ACEOF
15777 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15781 cat >>confdefs.h
<<_ACEOF
15782 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15785 if test $PLUGIN_HSA = 1; then
15787 PLUGIN_HSA_FALSE
='#'
15789 PLUGIN_HSA_TRUE
='#'
15794 cat >>confdefs.h
<<_ACEOF
15795 #define PLUGIN_HSA $PLUGIN_HSA
15799 if test "$HSA_RUNTIME_LIB" != ""; then
15800 HSA_RUNTIME_LIB
="$HSA_RUNTIME_LIB/"
15804 cat >>confdefs.h
<<_ACEOF
15805 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15810 # Check for functions needed.
15811 for ac_func
in getloadavg clock_gettime strtoull
15813 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15814 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15815 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15816 cat >>confdefs.h
<<_ACEOF
15817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15823 for ac_func
in aligned_alloc posix_memalign memalign _aligned_malloc
15825 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15826 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15827 eval as_val
=\$
$as_ac_var
15828 if test "x$as_val" = x
""yes; then :
15829 cat >>confdefs.h
<<_ACEOF
15830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15837 # Check for broken semaphore implementation on darwin.
15838 # sem_init returns: sem_init error: Function not implemented.
15842 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15847 # RTEMS specific checks
15850 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15852 if test "x$ac_cv_type_struct__Mutex_Control" = xyes
; then :
15854 cat >>confdefs.h
<<_ACEOF
15855 #define HAVE_STRUCT__MUTEX_CONTROL 1
15864 # Check whether --enable-linux-futex was given.
15865 if test "${enable_linux_futex+set}" = set; then :
15866 enableval
=$enable_linux_futex;
15867 case "$enableval" in
15869 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15873 enable_linux_futex
=default
15879 case "$enable_linux_futex" in
15881 # If headers don't have gettid/futex syscalls definition, then
15882 # default to no, otherwise there will be compile time failures.
15883 # Otherwise, default to yes. If we don't detect we are
15884 # compiled/linked against NPTL and not cross-compiling, check
15885 # if programs are run by default against NPTL and if not, issue
15887 enable_linux_futex
=no
15888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890 #include <sys/syscall.h>
15895 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15900 if ac_fn_c_try_link
"$LINENO"; then :
15902 LIBS
="-lpthread $LIBS"
15903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905 #ifndef _GNU_SOURCE
15906 #define _GNU_SOURCE 1
15908 #include <pthread.h>
15909 pthread_t th; void *status;
15913 pthread_tryjoin_np (th, &status);
15918 if ac_fn_c_try_link
"$LINENO"; then :
15919 enable_linux_futex
=yes
15921 if test x
$cross_compiling = xno
; then
15922 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15923 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15925 If so, please configure with --disable-linux-futex" >&5
15926 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15927 If so, please configure with --disable-linux-futex" >&2;}
15930 enable_linux_futex
=yes
15932 rm -f core conftest.err conftest.
$ac_objext \
15933 conftest
$ac_exeext conftest.
$ac_ext
15936 rm -f core conftest.err conftest.
$ac_objext \
15937 conftest
$ac_exeext conftest.
$ac_ext
15940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15942 #include <sys/syscall.h>
15947 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15952 if ac_fn_c_try_link
"$LINENO"; then :
15955 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15957 rm -f core conftest.err conftest.
$ac_objext \
15958 conftest
$ac_exeext conftest.
$ac_ext
15963 enable_linux_futex
=no
15966 if test x
$enable_linux_futex = xyes
; then
15971 # Check for pthread_{,attr_}[sg]etaffinity_np.
15972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15974 #define _GNU_SOURCE
15975 #include <pthread.h>
15980 pthread_attr_t attr;
15981 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15982 if (CPU_ISSET (0, &cpuset))
15983 CPU_SET (1, &cpuset);
15985 CPU_ZERO (&cpuset);
15986 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15987 pthread_attr_init (&attr);
15988 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15989 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15994 if ac_fn_c_try_link
"$LINENO"; then :
15996 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15999 rm -f core conftest.err conftest.
$ac_objext \
16000 conftest
$ac_exeext conftest.
$ac_ext
16002 # At least for glibc, clock_gettime is in librt. But don't pull that
16003 # in if it still doesn't give us the function we want.
16004 if test $ac_cv_func_clock_gettime = no
; then
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16006 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16007 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
16008 $as_echo_n "(cached) " >&6
16010 ac_check_lib_save_LIBS
=$LIBS
16012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16015 /* Override any GCC internal prototype to avoid an error.
16016 Use char because int might match the return type of a GCC
16017 builtin and then its argument prototype would still apply. */
16021 char clock_gettime ();
16025 return clock_gettime ();
16030 if ac_fn_c_try_link
"$LINENO"; then :
16031 ac_cv_lib_rt_clock_gettime
=yes
16033 ac_cv_lib_rt_clock_gettime
=no
16035 rm -f core conftest.err conftest.
$ac_objext \
16036 conftest
$ac_exeext conftest.
$ac_ext
16037 LIBS
=$ac_check_lib_save_LIBS
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16040 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16041 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
16044 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053 #include <string.h>
16054 #include <stdlib.h>
16055 #include <sys/utsname.h>
16059 struct utsname buf;
16060 volatile size_t len = 0;
16062 len = strlen (buf.nodename);
16067 if ac_fn_c_try_compile
"$LINENO"; then :
16069 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
16072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16074 # Check for gethostname.
16075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077 #include <unistd.h>
16083 if (gethostname (buf, sizeof (buf) - 1) == 0)
16090 if ac_fn_c_try_compile
"$LINENO"; then :
16092 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
16095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16097 # Check for getpid.
16098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16100 #include <unistd.h>
16104 int pid = getpid ();
16109 if ac_fn_c_try_compile
"$LINENO"; then :
16111 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
16114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16116 # See if we support thread-local storage.
16119 # Check whether --enable-tls was given.
16120 if test "${enable_tls+set}" = set; then :
16121 enableval
=$enable_tls;
16122 case "$enableval" in
16124 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16133 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16134 if ${gcc_cv_have_tls+:} false
; then :
16135 $as_echo_n "(cached) " >&6
16138 if test "$cross_compiling" = yes; then :
16139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16140 /* end confdefs.h. */
16141 __thread int a; int b; int main() { return a = b; }
16143 if ac_fn_c_try_link
"$LINENO"; then :
16144 chktls_save_LDFLAGS
="$LDFLAGS"
16147 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
16150 chktls_save_CFLAGS
="$CFLAGS"
16151 CFLAGS
="-fPIC $CFLAGS"
16152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16154 int f() { return 0; }
16156 if ac_fn_c_try_link
"$LINENO"; then :
16157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16159 __thread int a; int b; int f() { return a = b; }
16161 if ac_fn_c_try_link
"$LINENO"; then :
16162 gcc_cv_have_tls
=yes
16166 rm -f core conftest.err conftest.
$ac_objext \
16167 conftest
$ac_exeext conftest.
$ac_ext
16169 gcc_cv_have_tls
=yes
16171 rm -f core conftest.err conftest.
$ac_objext \
16172 conftest
$ac_exeext conftest.
$ac_ext
16173 CFLAGS
="$chktls_save_CFLAGS"
16174 LDFLAGS
="$chktls_save_LDFLAGS"
16178 rm -f core conftest.err conftest.
$ac_objext \
16179 conftest
$ac_exeext conftest.
$ac_ext
16183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16185 __thread int a; int b; int main() { return a = b; }
16187 if ac_fn_c_try_run
"$LINENO"; then :
16188 chktls_save_LDFLAGS
="$LDFLAGS"
16189 LDFLAGS
="-static $LDFLAGS"
16190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 int main() { return 0; }
16194 if ac_fn_c_try_link
"$LINENO"; then :
16195 if test "$cross_compiling" = yes; then :
16196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16198 as_fn_error $?
"cannot run test program while cross compiling
16199 See \`config.log' for more details" "$LINENO" 5; }
16201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 __thread int a; int b; int main() { return a = b; }
16205 if ac_fn_c_try_run
"$LINENO"; then :
16206 gcc_cv_have_tls
=yes
16210 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16211 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16215 gcc_cv_have_tls
=yes
16217 rm -f core conftest.err conftest.
$ac_objext \
16218 conftest
$ac_exeext conftest.
$ac_ext
16219 LDFLAGS
="$chktls_save_LDFLAGS"
16220 if test $gcc_cv_have_tls = yes; then
16221 chktls_save_CFLAGS
="$CFLAGS"
16222 thread_CFLAGS
=failed
16223 for flag
in '' '-pthread' '-lpthread'; do
16224 CFLAGS
="$flag $chktls_save_CFLAGS"
16225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16227 #include <pthread.h>
16228 void *g(void *d) { return NULL; }
16232 pthread_t t; pthread_create(&t,NULL,g,NULL);
16237 if ac_fn_c_try_link
"$LINENO"; then :
16238 thread_CFLAGS
="$flag"
16240 rm -f core conftest.err conftest.
$ac_objext \
16241 conftest
$ac_exeext conftest.
$ac_ext
16242 if test "X$thread_CFLAGS" != Xfailed
; then
16246 CFLAGS
="$chktls_save_CFLAGS"
16247 if test "X$thread_CFLAGS" != Xfailed
; then
16248 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
16249 if test "$cross_compiling" = yes; then :
16250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16252 as_fn_error $?
"cannot run test program while cross compiling
16253 See \`config.log' for more details" "$LINENO" 5; }
16255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h. */
16257 #include <pthread.h>
16259 static int *volatile a_in_other_thread;
16261 thread_func (void *arg)
16263 a_in_other_thread = &a;
16270 void *thread_retval;
16271 int *volatile a_in_main_thread;
16272 a_in_main_thread = &a;
16273 if (pthread_create (&thread, (pthread_attr_t *)0,
16274 thread_func, (void *)0))
16276 if (pthread_join (thread, &thread_retval))
16278 return (a_in_other_thread == a_in_main_thread);
16283 if ac_fn_c_try_run
"$LINENO"; then :
16284 gcc_cv_have_tls
=yes
16288 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16289 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16292 CFLAGS
="$chktls_save_CFLAGS"
16298 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16299 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16304 $as_echo "$gcc_cv_have_tls" >&6; }
16305 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16307 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16311 # See if we have emulated thread-local storage.
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
16314 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
16315 if ${gcc_cv_use_emutls+:} false
; then :
16316 $as_echo_n "(cached) " >&6
16319 gcc_cv_use_emutls
=no
16320 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16321 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16323 (eval $ac_try) 2>&5
16325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16326 test $ac_status = 0; }; }; then
16327 if grep __emutls_get_address conftest.s
> /dev
/null
; then
16328 gcc_cv_use_emutls
=yes
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16335 $as_echo "$gcc_cv_use_emutls" >&6; }
16336 if test "$gcc_cv_use_emutls" = "yes" ; then
16338 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16342 # See what sort of export controls are available.
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16345 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16346 if ${libgomp_cv_have_attribute_visibility+:} false
; then :
16347 $as_echo_n "(cached) " >&6
16350 save_CFLAGS
="$CFLAGS"
16351 CFLAGS
="$CFLAGS -Werror"
16352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 void __attribute__((visibility("hidden"))) foo(void) { }
16363 if ac_fn_c_try_compile
"$LINENO"; then :
16364 libgomp_cv_have_attribute_visibility
=yes
16366 libgomp_cv_have_attribute_visibility
=no
16368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16369 CFLAGS
="$save_CFLAGS"
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16372 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16373 if test $libgomp_cv_have_attribute_visibility = yes; then
16375 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16380 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16381 if ${libgomp_cv_have_attribute_dllexport+:} false
; then :
16382 $as_echo_n "(cached) " >&6
16385 save_CFLAGS
="$CFLAGS"
16386 CFLAGS
="$CFLAGS -Werror"
16387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 void __attribute__((dllexport)) foo(void) { }
16398 if ac_fn_c_try_compile
"$LINENO"; then :
16399 libgomp_cv_have_attribute_dllexport
=yes
16401 libgomp_cv_have_attribute_dllexport
=no
16403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16404 CFLAGS
="$save_CFLAGS"
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16407 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16408 if test $libgomp_cv_have_attribute_dllexport = yes; then
16410 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16415 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16416 if ${libgomp_cv_have_attribute_alias+:} false
; then :
16417 $as_echo_n "(cached) " >&6
16420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16424 extern void bar(void) __attribute__((alias("foo")));
16433 if ac_fn_c_try_link
"$LINENO"; then :
16434 libgomp_cv_have_attribute_alias
=yes
16436 libgomp_cv_have_attribute_alias
=no
16438 rm -f core conftest.err conftest.
$ac_objext \
16439 conftest
$ac_exeext conftest.
$ac_ext
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16442 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16443 if test $libgomp_cv_have_attribute_alias = yes; then
16445 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16450 # Check whether --with-gnu-ld was given.
16451 if test "${with_gnu_ld+set}" = set; then :
16452 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16458 if test "$GCC" = yes; then
16459 # Check if gcc -print-prog-name=ld gives a path.
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16461 $as_echo_n "checking for ld used by $CC... " >&6; }
16464 # gcc leaves a trailing carriage return which upsets mingw
16465 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16467 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16470 # Accept absolute paths.
16472 re_direlt
='/[^/][^/]*/\.\./'
16473 # Canonicalize the pathname of ld
16474 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16475 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16476 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16478 test -z "$LD" && LD
="$ac_prog"
16481 # If it fails, then pretend we aren't using GCC.
16485 # If it is relative, then search for the first ld in PATH.
16486 with_gnu_ld
=unknown
16489 elif test "$with_gnu_ld" = yes; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16491 $as_echo_n "checking for GNU ld... " >&6; }
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16494 $as_echo_n "checking for non-GNU ld... " >&6; }
16496 if ${lt_cv_path_LD+:} false
; then :
16497 $as_echo_n "(cached) " >&6
16499 if test -z "$LD"; then
16500 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16501 for ac_dir
in $PATH; do
16503 test -z "$ac_dir" && ac_dir
=.
16504 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16505 lt_cv_path_LD
="$ac_dir/$ac_prog"
16506 # Check to see if the program is GNU ld. I'd rather use --version,
16507 # but apparently some variants of GNU ld only accept -v.
16508 # Break only if it was the GNU/non-GNU ld that we prefer.
16509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16510 *GNU
* |
*'with BFD'*)
16511 test "$with_gnu_ld" != no
&& break
16514 test "$with_gnu_ld" != yes && break
16521 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16525 LD
="$lt_cv_path_LD"
16526 if test -n "$LD"; then
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16528 $as_echo "$LD" >&6; }
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531 $as_echo "no" >&6; }
16533 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16535 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16536 if ${lt_cv_prog_gnu_ld+:} false
; then :
16537 $as_echo_n "(cached) " >&6
16539 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16540 case `$LD -v 2>&1 </dev/null` in
16541 *GNU
* |
*'with BFD'*)
16542 lt_cv_prog_gnu_ld
=yes
16545 lt_cv_prog_gnu_ld
=no
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16550 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16551 with_gnu_ld
=$lt_cv_prog_gnu_ld
16559 # If we're not using GNU ld, then there's no point in even trying these
16560 # tests. Check for that first. We should have already tested for gld
16561 # by now (in libtool), but require it now just to be safe...
16562 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16563 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16567 # The name set by libtool depends on the version of libtool. Shame on us
16568 # for depending on an impl detail, but c'est la vie. Older versions used
16569 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16570 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16571 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16572 # set (hence we're using an older libtool), then set it.
16573 if test x
${with_gnu_ld+set} != xset
; then
16574 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16575 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16578 with_gnu_ld
=$ac_cv_prog_gnu_ld
16582 # Start by getting the version number. I think the libtool test already
16583 # does some of this, but throws away the result.
16584 libgomp_ld_is_gold
=no
16585 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16586 libgomp_ld_is_gold
=yes
16589 ldver
=`$LD --version 2>/dev/null |
16590 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16592 libgomp_gnu_ld_version
=`echo $ldver | \
16593 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16595 # Set --gc-sections.
16596 if test "$with_gnu_ld" = "notbroken"; then
16597 # GNU ld it is! Joy and bunny rabbits!
16599 # All these tests are for C++; save the language and the compiler flags.
16600 # Need to do this so that g++ won't try to link in libstdc++
16601 ac_test_CFLAGS
="${CFLAGS+set}"
16602 ac_save_CFLAGS
="$CFLAGS"
16603 CFLAGS
='-x c++ -Wl,--gc-sections'
16605 # Check for -Wl,--gc-sections
16606 # XXX This test is broken at the moment, as symbols required for linking
16607 # are now in libsupc++ (not built yet). In addition, this test has
16608 # cored on solaris in the past. In addition, --gc-sections doesn't
16609 # really work at the moment (keeps on discarding used sections, first
16610 # .eh_frame and now some of the glibc sections for iconv).
16611 # Bzzzzt. Thanks for playing, maybe next time.
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16613 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16614 if test "$cross_compiling" = yes; then :
16615 ac_sectionLDflags
=yes
16617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16628 if ac_fn_c_try_run
"$LINENO"; then :
16629 ac_sectionLDflags
=yes
16631 ac_sectionLDflags
=no
16633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16634 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16637 if test "$ac_test_CFLAGS" = set; then
16638 CFLAGS
="$ac_save_CFLAGS"
16640 # this is the suspicious part
16643 if test "$ac_sectionLDflags" = "yes"; then
16644 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16647 $as_echo "$ac_sectionLDflags" >&6; }
16650 # Set linker optimization flags.
16651 if test x
"$with_gnu_ld" = x
"yes"; then
16652 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16660 # Check whether --enable-symvers was given.
16661 if test "${enable_symvers+set}" = set; then :
16662 enableval
=$enable_symvers;
16663 case "$enableval" in
16664 yes|no|gnu
*|sun
) ;;
16665 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16674 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16675 # don't know enough about $LD to do tricks...
16678 # Turn a 'yes' into a suitable default.
16679 if test x
$enable_symvers = xyes
; then
16680 # FIXME The following test is too strict, in theory.
16681 if test $enable_shared = no ||
test "x$LD" = x
; then
16684 if test $with_gnu_ld = yes ; then
16687 case ${target_os} in
16688 # Sun symbol versioning exists since Solaris 2.5.
16689 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16690 enable_symvers
=sun
;;
16692 enable_symvers
=no
;;
16698 # Check if 'sun' was requested on non-Solaris 2 platforms.
16699 if test x
$enable_symvers = xsun
; then
16700 case ${target_os} in
16705 # Unlikely to work.
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16707 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16709 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16711 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16717 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16718 if test $enable_symvers != no
; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16720 $as_echo_n "checking for shared libgcc... " >&6; }
16721 ac_save_CFLAGS
="$CFLAGS"
16723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16734 if ac_fn_c_try_link
"$LINENO"; then :
16735 libgomp_shared_libgcc
=yes
16737 libgomp_shared_libgcc
=no
16739 rm -f core conftest.err conftest.
$ac_objext \
16740 conftest
$ac_exeext conftest.
$ac_ext
16741 CFLAGS
="$ac_save_CFLAGS"
16742 if test $libgomp_shared_libgcc = no
; then
16743 cat > conftest.c
<<EOF
16744 int main (void) { return 0; }
16746 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16747 -shared -shared-libgcc -o conftest.so \
16748 conftest.c -v 2>&1 >/dev/null \
16749 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16750 rm -f conftest.c conftest.so
16751 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16752 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16764 if ac_fn_c_try_link
"$LINENO"; then :
16765 libgomp_shared_libgcc
=yes
16767 rm -f core conftest.err conftest.
$ac_objext \
16768 conftest
$ac_exeext conftest.
$ac_ext
16769 CFLAGS
="$ac_save_CFLAGS"
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16773 $as_echo "$libgomp_shared_libgcc" >&6; }
16776 # For GNU ld, we need at least this version. The format is described in
16777 # LIBGOMP_CHECK_LINKER_FEATURES above.
16778 libgomp_min_gnu_ld_version
=21400
16779 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16781 # Check to see if unspecified "yes" value can win, given results above.
16782 # Change "yes" into either "no" or a style name.
16783 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16784 if test $with_gnu_ld = yes; then
16785 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16787 elif test $libgomp_ld_is_gold = yes ; then
16790 # The right tools, the right setup, but too old. Fallbacks?
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16792 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16794 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16796 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16798 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16799 if test $libgomp_gnu_ld_version -ge 21200 ; then
16800 # Globbing fix is present, proper block support is not.
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16802 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16807 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16811 elif test $enable_symvers = sun
; then
16812 : All interesting versions of Sun ld support sun style symbol versioning.
16814 # just fail for now
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16816 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16818 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16820 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16822 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16828 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16829 if ${libgomp_cv_have_as_symver_directive+:} false
; then :
16830 $as_echo_n "(cached) " >&6
16833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16835 void foo (void); __asm (".symver foo, bar@SYMVER");
16844 if ac_fn_c_try_compile
"$LINENO"; then :
16845 libgomp_cv_have_as_symver_directive
=yes
16847 libgomp_cv_have_as_symver_directive
=no
16849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16852 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16853 if test $libgomp_cv_have_as_symver_directive = yes; then
16855 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16859 if test $enable_symvers != no
; then
16860 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16861 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16863 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16864 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16867 if test $enable_symvers = gnu
; then
16868 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16869 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16871 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16872 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16875 if test $enable_symvers = sun
; then
16876 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16877 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16879 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16880 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16884 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16886 if test $enable_symvers != no
; then
16887 case ${target_os} in
16888 # The Solaris 2 runtime linker doesn't support the GNU extension of
16889 # binding the same symbol to different versions
16892 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16895 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16902 if test $enable_symvers = gnu
; then
16904 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16908 # Get target configury.
16909 .
${srcdir}/configure.tgt
16910 CFLAGS
="$save_CFLAGS $XCFLAGS"
16912 # Check for __sync_val_compare_and_swap, but only after the target has
16913 # had a chance to set XCFLAGS.
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16916 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16917 if ${libgomp_cv_have_sync_builtins+:} false
; then :
16918 $as_echo_n "(cached) " >&6
16921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16922 /* end confdefs.h. */
16927 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16932 if ac_fn_c_try_link
"$LINENO"; then :
16933 libgomp_cv_have_sync_builtins
=yes
16935 libgomp_cv_have_sync_builtins
=no
16937 rm -f core conftest.err conftest.
$ac_objext \
16938 conftest
$ac_exeext conftest.
$ac_ext
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16941 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16942 if test $libgomp_cv_have_sync_builtins = yes; then
16944 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16948 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16950 # Add CET specific flags if CET is enabled
16951 # Check whether --enable-cet was given.
16952 if test "${enable_cet+set}" = set; then :
16953 enableval
=$enable_cet;
16954 case "$enableval" in
16956 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16965 $as_echo_n "checking for CET support... " >&6; }
16968 i
[34567]86-*-linux* | x86_64-
*-linux*)
16969 case "$enable_cet" in
16971 # Check if target supports multi-byte NOPs
16972 # and if assembler supports CET insn.
16973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16980 #if !defined(__SSE2__)
16981 #error target does not support multi-byte NOPs
16990 if ac_fn_c_try_compile
"$LINENO"; then :
16995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16998 # Check if assembler supports CET.
16999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17010 if ac_fn_c_try_compile
"$LINENO"; then :
17013 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
17015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17023 if test x
$enable_cet = xyes
; then
17024 CET_FLAGS
="-fcf-protection -mshstk"
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17026 $as_echo "yes" >&6; }
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17029 $as_echo "no" >&6; }
17032 XCFLAGS
="$XCFLAGS $CET_FLAGS"
17033 FCFLAGS
="$FCFLAGS $CET_FLAGS"
17039 # Cleanup and exit.
17040 CFLAGS
="$save_CFLAGS"
17041 cat >confcache
<<\_ACEOF
17042 # This file is a shell script that caches the results of configure
17043 # tests run on this system so they can be shared between configure
17044 # scripts and configure runs, see configure's option --config-cache.
17045 # It is not useful on other systems. If it contains results you don't
17046 # want to keep, you may remove or edit it.
17048 # config.status only pays attention to the cache file if you give it
17049 # the --recheck option to rerun configure.
17051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17053 # following values.
17057 # The following way of writing the cache mishandles newlines in values,
17058 # but we know of no workaround that is simple, portable, and efficient.
17059 # So, we kill variables containing newlines.
17060 # Ultrix sh set writes to stderr and can't be redirected directly,
17061 # and sets the high bit in the cache file unless we assign to the vars.
17063 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17064 eval ac_val
=\$
$ac_var
17068 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17069 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17072 _ | IFS | as_nl
) ;; #(
17073 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17074 *) { eval $ac_var=; unset $ac_var;} ;;
17080 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17081 *${as_nl}ac_space
=\
*)
17082 # `set' does not quote correctly, so add quotes: double-quote
17083 # substitution turns \\\\ into \\, and sed turns \\ into \.
17086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17089 # `set' quotes correctly as required by POSIX, so do not add quotes.
17090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17099 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17101 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17103 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17104 if test -w "$cache_file"; then
17105 if test "x$cache_file" != "x/dev/null"; then
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17107 $as_echo "$as_me: updating cache $cache_file" >&6;}
17108 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17109 cat confcache
>"$cache_file"
17111 case $cache_file in #(
17113 mv -f confcache
"$cache_file"$$
&&
17114 mv -f "$cache_file"$$
"$cache_file" ;; #(
17116 mv -f confcache
"$cache_file" ;;
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17122 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17127 if test ${multilib} = yes; then
17128 multilib_arg
="--enable-multilib"
17133 # Set up the set of libraries that we need to link against for libgomp.
17134 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
17135 # which will force linkage against -lpthread (or equivalent for the system).
17136 # That's not 100% ideal, but about the best we can do easily.
17137 if test $enable_shared = yes; then
17138 link_gomp
="-lgomp %{static: $LIBS}"
17140 link_gomp
="-lgomp $LIBS"
17144 if test "$ac_cv_fc_compiler_gnu" = yes; then
17146 USE_FORTRAN_FALSE
='#'
17148 USE_FORTRAN_TRUE
='#'
17153 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
17154 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
17155 # the underscore here and update the PREREQ. If it doesn't, then we'll
17156 # need to copy this macro to our acinclude.m4.
17157 save_CFLAGS
="$CFLAGS"
17158 for i
in $config_path; do
17159 if test -f $srcdir/config
/$i/omp-lock.h
; then
17160 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
17165 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
17168 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
17172 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
17177 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
17182 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
17187 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
17190 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
17194 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
17199 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
17204 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
17210 # If the lock fits in an integer, then arrange for Fortran to use that
17211 # integer. If it doesn't, then arrange for Fortran to use a pointer.
17212 # Except that we don't have a way at present to multi-lib the installed
17213 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
17215 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
17216 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
17217 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17220 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17221 OMP_NEST_LOCK_KIND
=8
17223 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
17224 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
17225 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17228 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17229 OMP_NEST_LOCK_25_KIND
=8
17244 CFLAGS
="$save_CFLAGS"
17246 # Determine what GCC version number to use in filesystem paths.
17248 get_gcc_base_ver
="cat"
17250 # Check whether --with-gcc-major-version-only was given.
17251 if test "${with_gcc_major_version_only+set}" = set; then :
17252 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
17253 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
17261 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17263 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17265 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17267 cat >confcache
<<\_ACEOF
17268 # This file is a shell script that caches the results of configure
17269 # tests run on this system so they can be shared between configure
17270 # scripts and configure runs, see configure's option --config-cache.
17271 # It is not useful on other systems. If it contains results you don't
17272 # want to keep, you may remove or edit it.
17274 # config.status only pays attention to the cache file if you give it
17275 # the --recheck option to rerun configure.
17277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17279 # following values.
17283 # The following way of writing the cache mishandles newlines in values,
17284 # but we know of no workaround that is simple, portable, and efficient.
17285 # So, we kill variables containing newlines.
17286 # Ultrix sh set writes to stderr and can't be redirected directly,
17287 # and sets the high bit in the cache file unless we assign to the vars.
17289 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17290 eval ac_val
=\$
$ac_var
17294 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17298 _ | IFS | as_nl
) ;; #(
17299 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17300 *) { eval $ac_var=; unset $ac_var;} ;;
17306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17307 *${as_nl}ac_space
=\
*)
17308 # `set' does not quote correctly, so add quotes: double-quote
17309 # substitution turns \\\\ into \\, and sed turns \\ into \.
17312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17315 # `set' quotes correctly as required by POSIX, so do not add quotes.
17316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17329 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17330 if test -w "$cache_file"; then
17331 if test "x$cache_file" != "x/dev/null"; then
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17333 $as_echo "$as_me: updating cache $cache_file" >&6;}
17334 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17335 cat confcache
>"$cache_file"
17337 case $cache_file in #(
17339 mv -f confcache
"$cache_file"$$
&&
17340 mv -f "$cache_file"$$
"$cache_file" ;; #(
17342 mv -f confcache
"$cache_file" ;;
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17348 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17353 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17354 # Let make expand exec_prefix.
17355 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17357 DEFS
=-DHAVE_CONFIG_H
17362 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17363 # 1. Remove the extension, and $U if already installed.
17364 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17365 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17367 # will be set to the directory where LIBOBJS objects are built.
17368 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17369 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17371 LIBOBJS
=$ac_libobjs
17373 LTLIBOBJS
=$ac_ltlibobjs
17376 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17377 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
17378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17381 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17382 if test -n "$am_sleep_pid"; then
17383 # Hide warnings about reused PIDs.
17384 wait $am_sleep_pid 2>/dev
/null
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17387 $as_echo "done" >&6; }
17388 if test -n "$EXEEXT"; then
17390 am__EXEEXT_FALSE
='#'
17392 am__EXEEXT_TRUE
='#'
17396 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17397 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17400 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17401 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17404 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17405 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
17406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17408 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17409 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17412 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17413 as_fn_error $?
"conditional \"PLUGIN_NVPTX\" was never defined.
17414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17416 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17417 as_fn_error $?
"conditional \"PLUGIN_HSA\" was never defined.
17418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17420 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17421 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17424 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17425 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17428 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17429 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17432 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17433 as_fn_error $?
"conditional \"USE_FORTRAN\" was never defined.
17434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17437 : "${CONFIG_STATUS=./config.status}"
17439 ac_clean_files_save
=$ac_clean_files
17440 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17442 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17444 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17446 # Generated by $as_me.
17447 # Run this file to recreate the current configuration.
17448 # Compiler output produced by configure, useful for debugging
17449 # configure, is in config.log if it exists.
17452 ac_cs_recheck=false
17455 SHELL=\${CONFIG_SHELL-$SHELL}
17458 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17459 ## -------------------- ##
17460 ## M4sh Initialization. ##
17461 ## -------------------- ##
17463 # Be more Bourne compatible
17464 DUALCASE
=1; export DUALCASE
# for MKS sh
17465 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17468 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17469 # is contrary to our usage. Disable this feature.
17470 alias -g '${1+"$@"}'='"$@"'
17471 setopt NO_GLOB_SUBST
17473 case `(set -o) 2>/dev/null` in #(
17485 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17486 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17487 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17489 # Prefer a ksh shell builtin over an external printf program on Solaris,
17490 # but without wasting forks for bash or zsh.
17491 if test -z "$BASH_VERSION$ZSH_VERSION" \
17492 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17493 as_echo='print
-r --'
17494 as_echo_n='print
-rn --'
17495 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17496 as_echo='printf %s
\n'
17497 as_echo_n='printf %s
'
17499 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17500 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17501 as_echo_n='/usr
/ucb
/echo -n'
17503 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17504 as_echo_n_body='eval
17508 expr "X$arg" : "X\\(.*\\)$as_nl";
17509 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17511 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17513 export as_echo_n_body
17514 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17516 export as_echo_body
17517 as_echo='sh
-c $as_echo_body as_echo
'
17520 # The user is always right.
17521 if test "${PATH_SEPARATOR+set}" != set; then
17523 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17524 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17531 # We need space, tab and new line, in precisely that order. Quoting is
17532 # there to prevent editors from complaining about space-tab.
17533 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17534 # splitting by setting IFS to empty value.)
17537 # Find who we are. Look in the path if we contain no directory separator.
17540 *[\\/]* ) as_myself=$0 ;;
17541 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17542 for as_dir in $PATH
17545 test -z "$as_dir" && as_dir=.
17546 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17552 # We did not find ourselves, most probably we were run as `sh COMMAND'
17553 # in which case we are not to be found in the path.
17554 if test "x$as_myself" = x
; then
17557 if test ! -f "$as_myself"; then
17558 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17562 # Unset variables that we do not need and which cause bugs (e.g. in
17563 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17564 # suppresses any "Segmentation fault" message there. '((' could
17565 # trigger a bug in pdksh 5.2.14.
17566 for as_var
in BASH_ENV ENV MAIL MAILPATH
17567 do eval test x\
${$as_var+set} = xset \
17568 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17581 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17584 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17585 # ----------------------------------------
17586 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17587 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17588 # script with STATUS, using 1 if that was 0.
17591 as_status
=$1; test $as_status -eq 0 && as_status
=1
17593 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17594 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17596 $as_echo "$as_me: error: $2" >&2
17597 as_fn_exit
$as_status
17601 # as_fn_set_status STATUS
17602 # -----------------------
17603 # Set $? to STATUS, without forking.
17604 as_fn_set_status
()
17607 } # as_fn_set_status
17609 # as_fn_exit STATUS
17610 # -----------------
17611 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17615 as_fn_set_status
$1
17621 # Portably unset VAR.
17624 { eval $1=; unset $1;}
17626 as_unset
=as_fn_unset
17627 # as_fn_append VAR VALUE
17628 # ----------------------
17629 # Append the text in VALUE to the end of the definition contained in VAR. Take
17630 # advantage of any shell optimizations that allow amortized linear growth over
17631 # repeated appends, instead of the typical quadratic growth present in naive
17633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17634 eval 'as_fn_append ()
17645 # as_fn_arith ARG...
17646 # ------------------
17647 # Perform arithmetic evaluation on the ARGs, and store the result in the
17648 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17649 # must be portable across $(()) and expr.
17650 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17651 eval 'as_fn_arith ()
17658 as_val
=`expr "$@" || test $? -eq 1`
17663 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17664 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17670 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17671 as_basename
=basename
17676 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17682 as_me
=`$as_basename -- "$0" ||
17683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17684 X"$0" : 'X\(//\)$' \| \
17685 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17687 sed '/^.*\/\([^/][^/]*\)\/*$/{
17701 # Avoid depending upon Character Ranges.
17702 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17703 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17704 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17705 as_cr_digits
='0123456789'
17706 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17708 ECHO_C
= ECHO_N
= ECHO_T
=
17709 case `echo -n x` in #(((((
17711 case `echo 'xy\c'` in
17712 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17714 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17721 rm -f conf$$ conf$$.exe conf$$.
file
17722 if test -d conf$$.dir
; then
17723 rm -f conf$$.dir
/conf$$.
file
17726 mkdir conf$$.dir
2>/dev
/null
17728 if (echo >conf$$.
file) 2>/dev
/null
; then
17729 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17731 # ... but there are two gotchas:
17732 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17733 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17734 # In both cases, we have to default to `cp -pR'.
17735 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17737 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17745 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17746 rmdir conf$$.dir
2>/dev
/null
17751 # Create "$as_dir" as a directory, including parents if necessary.
17756 -*) as_dir
=.
/$as_dir;;
17758 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17762 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17763 *) as_qdir
=$as_dir;;
17765 as_dirs
="'$as_qdir' $as_dirs"
17766 as_dir
=`$as_dirname -- "$as_dir" ||
17767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17768 X"$as_dir" : 'X\(//\)[^/]' \| \
17769 X"$as_dir" : 'X\(//\)$' \| \
17770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17771 $as_echo X"$as_dir" |
17772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17776 /^X\(\/\/\)[^/].*/{
17789 test -d "$as_dir" && break
17791 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17792 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17796 if mkdir
-p .
2>/dev
/null
; then
17797 as_mkdir_p
='mkdir -p "$as_dir"'
17799 test -d .
/-p && rmdir .
/-p
17804 # as_fn_executable_p FILE
17805 # -----------------------
17806 # Test if FILE is an executable regular file.
17807 as_fn_executable_p
()
17809 test -f "$1" && test -x "$1"
17810 } # as_fn_executable_p
17811 as_test_x
='test -x'
17812 as_executable_p
=as_fn_executable_p
17814 # Sed expression to map a string onto a valid CPP name.
17815 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17817 # Sed expression to map a string onto a valid variable name.
17818 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17822 ## ----------------------------------- ##
17823 ## Main body of $CONFIG_STATUS script. ##
17824 ## ----------------------------------- ##
17826 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17829 # Save the log message, to keep $0 and so on meaningful, and to
17830 # report actual input values of CONFIG_FILES etc. instead of their
17831 # values after options handling.
17833 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17834 generated by GNU Autoconf 2.69. Invocation command line was
17836 CONFIG_FILES = $CONFIG_FILES
17837 CONFIG_HEADERS = $CONFIG_HEADERS
17838 CONFIG_LINKS = $CONFIG_LINKS
17839 CONFIG_COMMANDS = $CONFIG_COMMANDS
17842 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17847 case $ac_config_files in *"
17848 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17851 case $ac_config_headers in *"
17852 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17857 # Files that config.status was made for.
17858 config_files="$ac_config_files"
17859 config_headers="$ac_config_headers"
17860 config_commands="$ac_config_commands"
17864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17866 \`$as_me' instantiates files and other configuration actions
17867 from templates according to the current configuration. Unless the files
17868 and actions are specified as TAGs, all are instantiated by default.
17870 Usage: $0 [OPTION]... [TAG]...
17872 -h, --help print this help, then exit
17873 -V, --version print version number and configuration settings, then exit
17874 --config print configuration, then exit
17875 -q, --quiet, --silent
17876 do not print progress messages
17877 -d, --debug don't remove temporary files
17878 --recheck update $as_me by reconfiguring in the same conditions
17879 --file=FILE[:TEMPLATE]
17880 instantiate the configuration file FILE
17881 --header=FILE[:TEMPLATE]
17882 instantiate the configuration header FILE
17884 Configuration files:
17887 Configuration headers:
17890 Configuration commands:
17893 Report bugs to the package provider.
17894 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17895 General help using GNU software: <http://www.gnu.org/gethelp/>."
17898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17899 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17901 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17902 configured by $0, generated by GNU Autoconf 2.69,
17903 with options \\"\$ac_cs_config\\"
17905 Copyright (C) 2012 Free Software Foundation, Inc.
17906 This config.status script is free software; the Free Software Foundation
17907 gives unlimited permission to copy, distribute and modify it."
17914 test -n "\$AWK" || AWK=awk
17917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17918 # The default lists apply if the user does not specify any file.
17924 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17925 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17929 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17941 # Handling of the options.
17942 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17944 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17945 $as_echo "$ac_cs_version"; exit ;;
17946 --config |
--confi |
--conf |
--con |
--co |
--c )
17947 $as_echo "$ac_cs_config"; exit ;;
17948 --debug |
--debu |
--deb |
--de |
--d |
-d )
17950 --file |
--fil |
--fi |
--f )
17953 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17954 '') as_fn_error $?
"missing file argument" ;;
17956 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17957 ac_need_defaults
=false
;;
17958 --header |
--heade |
--head |
--hea )
17961 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17963 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17964 ac_need_defaults
=false
;;
17966 # Conflict between --help and --header
17967 as_fn_error $?
"ambiguous option: \`$1'
17968 Try \`$0 --help' for more information.";;
17969 --help |
--hel |
-h )
17970 $as_echo "$ac_cs_usage"; exit ;;
17971 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17972 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17975 # This is an error.
17976 -*) as_fn_error $?
"unrecognized option: \`$1'
17977 Try \`$0 --help' for more information." ;;
17979 *) as_fn_append ac_config_targets
" $1"
17980 ac_need_defaults
=false
;;
17986 ac_configure_extra_args
=
17988 if $ac_cs_silent; then
17990 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17995 if \$ac_cs_recheck; then
17996 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17998 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17999 CONFIG_SHELL='$SHELL'
18000 export CONFIG_SHELL
18005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18010 ## Running $as_me. ##
18016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18024 with_multisubdir="$with_multisubdir"
18025 with_multisrctop="$with_multisrctop"
18026 with_target_subdir="$with_target_subdir"
18027 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18028 multi_basedir="$multi_basedir"
18029 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18032 GFORTRAN="$GFORTRAN"
18034 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18037 # The HP-UX ksh and POSIX shell print the target directory to stdout
18038 # if CDPATH is set.
18039 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18041 sed_quote_subst='$sed_quote_subst'
18042 double_quote_subst='$double_quote_subst'
18043 delay_variable_subst='$delay_variable_subst'
18044 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18045 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18046 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18047 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18048 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18049 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18050 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18051 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18052 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18053 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18054 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18055 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18056 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18057 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18058 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18059 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18060 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18061 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18062 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18063 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18064 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18065 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18066 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18067 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18068 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18069 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18070 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18071 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18072 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18073 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18074 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18075 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18076 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18077 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18078 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18079 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18080 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18081 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18082 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18083 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18084 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18085 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18086 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18087 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18088 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18089 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18090 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18091 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18092 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"`'
18093 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18094 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18095 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18096 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18097 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18098 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18099 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18100 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18101 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18102 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18103 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18104 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18105 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18106 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18107 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18108 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18109 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18110 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18111 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18112 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18113 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18114 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18115 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18116 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18117 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18118 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18119 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18120 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18121 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18122 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18123 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18124 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18125 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18126 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18127 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18128 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18129 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18130 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18131 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18132 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18133 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18134 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18135 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18136 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18137 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18138 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18139 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18140 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18141 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18142 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18143 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18144 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18145 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18146 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18147 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18148 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18149 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18150 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18151 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18152 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18153 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18154 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18155 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18156 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18157 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18158 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18159 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18160 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18161 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18162 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18163 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18164 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18165 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18166 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18167 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18168 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18169 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18170 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
18171 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
18172 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
18173 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18174 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
18175 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
18176 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
18177 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
18178 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
18179 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
18180 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
18181 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
18182 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
18183 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18184 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18185 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
18186 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
18187 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
18188 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18189 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18190 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
18191 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18192 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
18193 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18194 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18195 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18196 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
18197 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
18198 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
18199 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
18200 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
18201 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
18202 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
18203 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
18204 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
18205 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
18206 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
18207 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
18208 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18209 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18210 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18211 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18212 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18213 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18214 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18215 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18216 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18217 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18218 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18221 LTCFLAGS='$LTCFLAGS'
18222 compiler='$compiler_DEFAULT'
18224 # A function that is used when there is no print builtin or printf.
18225 func_fallback_echo ()
18227 eval 'cat <<_LTECHO_EOF
18232 # Quote evaled strings.
18246 deplibs_check_method \
18255 lt_cv_sys_global_symbol_pipe \
18256 lt_cv_sys_global_symbol_to_cdecl \
18257 lt_cv_sys_global_symbol_to_c_name_address \
18258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18259 lt_prog_compiler_no_builtin_flag \
18260 lt_prog_compiler_wl \
18261 lt_prog_compiler_pic \
18262 lt_prog_compiler_static \
18263 lt_cv_prog_compiler_c_o \
18271 export_dynamic_flag_spec \
18272 whole_archive_flag_spec \
18273 compiler_needs_object \
18275 allow_undefined_flag \
18276 no_undefined_flag \
18277 hardcode_libdir_flag_spec \
18278 hardcode_libdir_flag_spec_ld \
18279 hardcode_libdir_separator \
18284 variables_saved_for_relink \
18286 library_names_spec \
18288 install_override_mode \
18292 compiler_lib_search_dirs \
18297 compiler_lib_search_path \
18301 lt_prog_compiler_no_builtin_flag_FC \
18302 lt_prog_compiler_wl_FC \
18303 lt_prog_compiler_pic_FC \
18304 lt_prog_compiler_static_FC \
18305 lt_cv_prog_compiler_c_o_FC \
18306 export_dynamic_flag_spec_FC \
18307 whole_archive_flag_spec_FC \
18308 compiler_needs_object_FC \
18310 allow_undefined_flag_FC \
18311 no_undefined_flag_FC \
18312 hardcode_libdir_flag_spec_FC \
18313 hardcode_libdir_flag_spec_ld_FC \
18314 hardcode_libdir_separator_FC \
18315 fix_srcfile_path_FC \
18316 exclude_expsyms_FC \
18317 include_expsyms_FC \
18318 file_list_spec_FC \
18319 compiler_lib_search_dirs_FC \
18320 predep_objects_FC \
18321 postdep_objects_FC \
18324 compiler_lib_search_path_FC; do
18325 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18326 *[\\\\\\\`\\"\\\$]*)
18327 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18330 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18335 # Double-quote double-evaled strings.
18336 for var in reload_cmds \
18337 old_postinstall_cmds \
18338 old_postuninstall_cmds \
18340 extract_expsyms_cmds \
18341 old_archive_from_new_cmds \
18342 old_archive_from_expsyms_cmds \
18344 archive_expsym_cmds \
18346 module_expsym_cmds \
18347 export_symbols_cmds \
18350 postuninstall_cmds \
18352 sys_lib_search_path_spec \
18353 sys_lib_dlsearch_path_spec \
18355 old_archive_cmds_FC \
18356 old_archive_from_new_cmds_FC \
18357 old_archive_from_expsyms_cmds_FC \
18359 archive_expsym_cmds_FC \
18361 module_expsym_cmds_FC \
18362 export_symbols_cmds_FC \
18363 prelink_cmds_FC; do
18364 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18365 *[\\\\\\\`\\"\\\$]*)
18366 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18369 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18374 ac_aux_dir='$ac_aux_dir'
18375 xsi_shell='$xsi_shell'
18376 lt_shell_append='$lt_shell_append'
18378 # See if we are running on zsh, and set the options which allow our
18379 # commands through without removal of \ escapes INIT.
18380 if test -n "\${ZSH_VERSION+set}" ; then
18381 setopt NO_GLOB_SUBST
18387 TIMESTAMP='$TIMESTAMP'
18398 acx_cv_header_stdint="$acx_cv_header_stdint"
18399 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18400 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18401 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18402 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18403 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18404 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18405 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18406 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18407 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18408 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18409 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18410 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18411 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18418 # Handling of arguments.
18419 for ac_config_target
in $ac_config_targets
18421 case $ac_config_target in
18422 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18423 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18424 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18425 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18426 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
18427 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
18428 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
18429 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
18430 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
18431 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18432 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18433 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
18434 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18436 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18441 # If the user did not use the arguments to specify the items to instantiate,
18442 # then the envvar interface is used. Set only those that are not.
18443 # We use the long form for the default assignment because of an extremely
18444 # bizarre bug on SunOS 4.1.3.
18445 if $ac_need_defaults; then
18446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18451 # Have a temporary directory for convenience. Make it in the build tree
18452 # simply because there is no reason against having it here, and in addition,
18453 # creating and moving files from /tmp can sometimes cause problems.
18454 # Hook for its removal unless debugging.
18455 # Note that there is a small window in which the directory will not be cleaned:
18456 # after its creation but before its name has been assigned to `$tmp'.
18460 trap 'exit_status=$?
18461 : "${ac_tmp:=$tmp}"
18462 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18464 trap 'as_fn_exit 1' 1 2 13 15
18466 # Create a (secure) tmp directory for tmp files.
18469 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18473 tmp
=.
/conf$$
-$RANDOM
18474 (umask 077 && mkdir
"$tmp")
18475 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18478 # Set up the scripts for CONFIG_FILES section.
18479 # No need to generate them if there are no CONFIG_FILES.
18480 # This happens for instance with `./config.status config.h'.
18481 if test -n "$CONFIG_FILES"; then
18484 ac_cr
=`echo X | tr X '\015'`
18485 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18486 # But we know of no other shell where ac_cr would be empty at this
18487 # point, so we can use a bashism as a fallback.
18488 if test "x$ac_cr" = x
; then
18489 eval ac_cr
=\$
\'\\r
\'
18491 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18492 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18495 ac_cs_awk_cr
=$ac_cr
18498 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18503 echo "cat >conf$$subs.awk <<_ACEOF" &&
18504 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18506 } >conf$$subs.sh ||
18507 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18508 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18510 for ac_last_try in false false false false false :; do
18511 . ./conf$$subs.sh ||
18512 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18514 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18515 if test $ac_delim_n = $ac_delim_num; then
18517 elif $ac_last_try; then
18518 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18520 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18523 rm -f conf$$subs.sh
18525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18526 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18530 s/^/S["/; s
/!.
*/"]=/
18540 s/\(.\{148\}\)..*/\1/
18542 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18547 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18554 s/\(.\{148\}\)..*/\1/
18556 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18560 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18565 ' <conf$$subs.awk | sed '
18570 ' >>$CONFIG_STATUS || ac_write_fail=1
18571 rm -f conf$$subs.awk
18572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18574 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18575 for (key in S) S_is_set[key] = 1
18581 nfields = split(line, field, "@
")
18583 len = length(field[1])
18584 for (i = 2; i < nfields; i++) {
18586 keylen = length(key)
18587 if (S_is_set[key]) {
18589 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18590 len += length(value) + length(field[++i])
18601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18602 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18603 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18606 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18607 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18610 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18611 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18612 # trailing colons and then remove the whole line if VPATH becomes empty
18613 # (actually we leave an empty line to preserve line numbers).
18614 if test "x
$srcdir" = x.; then
18615 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18634 fi # test -n "$CONFIG_FILES"
18636 # Set up the scripts for CONFIG_HEADERS section.
18637 # No need to generate them if there are no CONFIG_HEADERS.
18638 # This happens for instance with `./config.status Makefile'.
18639 if test -n "$CONFIG_HEADERS"; then
18640 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18644 # Transform confdefs.h into an awk script `defines.awk', embedded as
18645 # here-document in config.status, that substitutes the proper values into
18646 # config.h.in to produce config.h.
18648 # Create a delimiter string that does not exist in confdefs.h, to ease
18649 # handling of long lines.
18651 for ac_last_try in false false :; do
18652 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18653 if test -z "$ac_tt"; then
18655 elif $ac_last_try; then
18656 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18658 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18662 # For the awk script, D is an array of macro values keyed by name,
18663 # likewise P contains macro parameters if any. Preserve backslash
18664 # newline sequences.
18666 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18668 s/.\{148\}/&'"$ac_delim"'/g
18671 s/^[ ]*#[ ]*define[ ][ ]*/ /
18678 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18680 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18685 D["\
1"]=" \
3\\\\\\n
"\\/p
18687 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18692 s/.\{148\}/&'"$ac_delim"'/g
18697 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18700 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18702 ' <confdefs.h | sed '
18703 s/'"$ac_delim"'/"\\\
18704 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18707 for (key in D) D_is_set[key] = 1
18710 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18712 split(line, arg, " ")
18713 if (arg[1] == "#") {
18717 defundef
= substr
(arg
[1], 2)
18720 split(mac1
, mac2
, "(") #)
18722 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18723 if (D_is_set
[macro
]) {
18724 # Preserve the white space surrounding the "#".
18725 print prefix
"define", macro P
[macro
] D
[macro
]
18728 # Replace #undef with comments. This is necessary, for example,
18729 # in the case of _POSIX_SOURCE, which is predefined and required
18730 # on some systems where configure will not decide to define it.
18731 if (defundef
== "undef") {
18732 print
"/*", prefix defundef
, macro
, "*/"
18740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18741 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18742 fi # test -n "$CONFIG_HEADERS"
18745 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18750 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18752 case $ac_mode$ac_tag in
18754 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18755 :[FH
]-) ac_tag
=-:-;;
18756 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18773 -) ac_f
="$ac_tmp/stdin";;
18774 *) # Look for the file first in the build tree, then in the source tree
18775 # (if the path is not absolute). The absolute path cannot be DOS-style,
18776 # because $ac_f cannot contain `:'.
18780 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18782 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18784 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18785 as_fn_append ac_file_inputs
" '$ac_f'"
18788 # Let's still pretend it is `configure' which instantiates (i.e., don't
18789 # use $as_me), people would be surprised to read:
18790 # /* config.h. Generated by config.status. */
18791 configure_input
='Generated from '`
18792 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18794 if test x
"$ac_file" != x-
; then
18795 configure_input
="$ac_file. $configure_input"
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18797 $as_echo "$as_me: creating $ac_file" >&6;}
18799 # Neutralize special characters interpreted by sed in replacement strings.
18800 case $configure_input in #(
18801 *\
&* |
*\|
* |
*\\* )
18802 ac_sed_conf_input
=`$as_echo "$configure_input" |
18803 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18804 *) ac_sed_conf_input
=$configure_input;;
18808 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18809 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18814 ac_dir
=`$as_dirname -- "$ac_file" ||
18815 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18816 X"$ac_file" : 'X\(//\)[^/]' \| \
18817 X"$ac_file" : 'X\(//\)$' \| \
18818 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18819 $as_echo X"$ac_file" |
18820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18824 /^X\(\/\/\)[^/].*/{
18837 as_dir
="$ac_dir"; as_fn_mkdir_p
18841 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18843 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18844 # A ".." for each directory in $ac_dir_suffix.
18845 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18846 case $ac_top_builddir_sub in
18847 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18848 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18851 ac_abs_top_builddir
=$ac_pwd
18852 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18853 # for backward compatibility:
18854 ac_top_builddir
=$ac_top_build_prefix
18857 .
) # We are building in place.
18859 ac_top_srcdir
=$ac_top_builddir_sub
18860 ac_abs_top_srcdir
=$ac_pwd ;;
18861 [\\/]* | ?
:[\\/]* ) # Absolute name.
18862 ac_srcdir
=$srcdir$ac_dir_suffix;
18863 ac_top_srcdir
=$srcdir
18864 ac_abs_top_srcdir
=$srcdir ;;
18865 *) # Relative name.
18866 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18867 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18868 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18870 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18880 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18881 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18883 ac_MKDIR_P
=$MKDIR_P
18885 [\\/$
]* | ?
:[\\/]* ) ;;
18886 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18891 # If the template does not know about datarootdir, expand it.
18892 # FIXME: This hack should be removed a few years after 2.60.
18893 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18904 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18905 *datarootdir
*) ac_datarootdir_seen
=yes;;
18906 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18908 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18911 ac_datarootdir_hack='
18912 s&@datadir@&$datadir&g
18913 s&@docdir@&$docdir&g
18914 s&@infodir@&$infodir&g
18915 s&@localedir@&$localedir&g
18916 s&@mandir@&$mandir&g
18917 s&\\\${datarootdir}&$datarootdir&g' ;;
18921 # Neutralize VPATH when `$srcdir' = `.'.
18922 # Shell code in configure.ac might set extrasub.
18923 # FIXME: do we really want to maintain this feature?
18924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18925 ac_sed_extra="$ac_vpsub
18928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18930 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18931 s|@configure_input@|
$ac_sed_conf_input|
;t t
18932 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18933 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18934 s
&@srcdir@
&$ac_srcdir&;t t
18935 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18936 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18937 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18938 s
&@builddir@
&$ac_builddir&;t t
18939 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18940 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18941 s
&@INSTALL@
&$ac_INSTALL&;t t
18942 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18943 $ac_datarootdir_hack
18945 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18946 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18948 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18949 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18950 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18951 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18953 which seems to be undefined. Please make sure it is defined" >&5
18954 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18955 which seems to be undefined. Please make sure it is defined" >&2;}
18957 rm -f "$ac_tmp/stdin"
18959 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18960 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18962 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18968 if test x"$ac_file" != x-; then
18970 $as_echo "/* $configure_input */" \
18971 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18972 } >"$ac_tmp/config.h" \
18973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18974 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18976 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18979 mv "$ac_tmp/config.h" "$ac_file" \
18980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18983 $as_echo "/* $configure_input */" \
18984 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18985 || as_fn_error $? "could not create -" "$LINENO" 5
18987 # Compute "$ac_file"'s index
in $config_headers.
18990 for _am_header
in $config_headers :; do
18991 case $_am_header in
18992 $_am_arg |
$_am_arg:* )
18995 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18998 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18999 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19000 X"$_am_arg" : 'X\(//\)[^/]' \| \
19001 X"$_am_arg" : 'X\(//\)$' \| \
19002 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19003 $as_echo X"$_am_arg" |
19004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19008 /^X\(\/\/\)[^/].*/{
19020 s/.*/./; q'`/stamp-h
$_am_stamp_count
19023 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19024 $as_echo "$as_me: executing $ac_file commands" >&6;}
19029 case $ac_file$ac_mode in
19031 # Only add multilib support code if we just rebuilt the top-level
19033 case " $CONFIG_FILES " in
19035 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
19038 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19039 # Older Autoconf quotes --file arguments for eval, but not when files
19040 # are listed without --file. Let's play safe and only enable the eval
19041 # if we detect the quoting.
19042 case $CONFIG_FILES in
19043 *\'*) eval set x
"$CONFIG_FILES" ;;
19044 *) set x
$CONFIG_FILES ;;
19049 # Strip MF so we end up with the name of the file.
19050 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19051 # Check whether this is an Automake generated Makefile or not.
19052 # We used to match only the files named 'Makefile.in', but
19053 # some people rename them; so instead we look at the file content.
19054 # Grep'ing the first line is not enough: some people post-process
19055 # each Makefile.in and add a new line on top of each file to say so.
19056 # Grep'ing the whole file is not good either: AIX grep has a line
19057 # limit of 2048, but all sed's we know have understand at least 4000.
19058 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19059 dirpart
=`$as_dirname -- "$mf" ||
19060 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19061 X"$mf" : 'X\(//\)[^/]' \| \
19062 X"$mf" : 'X\(//\)$' \| \
19063 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19069 /^X\(\/\/\)[^/].*/{
19085 # Extract the definition of DEPDIR, am__include, and am__quote
19086 # from the Makefile without running 'make'.
19087 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19088 test -z "$DEPDIR" && continue
19089 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19090 test -z "$am__include" && continue
19091 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19092 # Find all dependency output files, they are included files with
19093 # $(DEPDIR) in their names. We invoke sed twice because it is the
19094 # simplest approach to changing $(DEPDIR) to its actual value in the
19096 for file in `sed -n "
19097 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19098 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19099 # Make sure the directory exists.
19100 test -f "$dirpart/$file" && continue
19101 fdir
=`$as_dirname -- "$file" ||
19102 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19103 X"$file" : 'X\(//\)[^/]' \| \
19104 X"$file" : 'X\(//\)$' \| \
19105 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19106 $as_echo X"$file" |
19107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19111 /^X\(\/\/\)[^/].*/{
19124 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19125 # echo "creating $dirpart/$file"
19126 echo '# dummy' > "$dirpart/$file"
19133 # See if we are running on zsh, and set the options which allow our
19134 # commands through without removal of \ escapes.
19135 if test -n "${ZSH_VERSION+set}" ; then
19136 setopt NO_GLOB_SUBST
19139 cfgfile
="${ofile}T"
19140 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19143 cat <<_LT_EOF >> "$cfgfile"
19146 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19147 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19149 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19151 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19152 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19153 # Written by Gordon Matzigkeit, 1996
19155 # This file is part of GNU Libtool.
19157 # GNU Libtool is free software; you can redistribute it and/or
19158 # modify it under the terms of the GNU General Public License as
19159 # published by the Free Software Foundation; either version 2 of
19160 # the License, or (at your option) any later version.
19162 # As a special exception to the GNU General Public License,
19163 # if you distribute this file as part of a program or library that
19164 # is built using GNU Libtool, you may include this file under the
19165 # same distribution terms that you use for the rest of that program.
19167 # GNU Libtool is distributed in the hope that it will be useful,
19168 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19169 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19170 # GNU General Public License for more details.
19172 # You should have received a copy of the GNU General Public License
19173 # along with GNU Libtool; see the file COPYING. If not, a copy
19174 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19175 # obtained by writing to the Free Software Foundation, Inc.,
19176 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19179 # The names of the tagged configurations supported by this script.
19180 available_tags="FC "
19182 # ### BEGIN LIBTOOL CONFIG
19184 # Which release of libtool.m4 was used?
19185 macro_version=$macro_version
19186 macro_revision=$macro_revision
19188 # Whether or not to build shared libraries.
19189 build_libtool_libs=$enable_shared
19191 # Whether or not to build static libraries.
19192 build_old_libs=$enable_static
19194 # What type of objects to build.
19197 # Whether or not to optimize for fast installation.
19198 fast_install=$enable_fast_install
19200 # Shell to use when invoking shell scripts.
19203 # An echo program that protects backslashes.
19207 host_alias=$host_alias
19211 # The build system.
19212 build_alias=$build_alias
19216 # A sed program that does not truncate output.
19219 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19220 Xsed="\$SED -e 1s/^X//"
19222 # A grep program that handles long lines.
19228 # A literal string matcher.
19231 # A BSD- or MS-compatible name lister.
19234 # Whether we need soft or hard links.
19237 # What is the maximum length of a command?
19238 max_cmd_len=$max_cmd_len
19240 # Object file suffix (normally "o").
19243 # Executable file suffix (normally "").
19246 # whether the shell understands "unset".
19249 # turn spaces into newlines.
19252 # turn newlines into spaces.
19255 # An object symbol dumper.
19256 OBJDUMP=$lt_OBJDUMP
19258 # Method to check whether dependent libraries are shared objects.
19259 deplibs_check_method=$lt_deplibs_check_method
19261 # Command to use when deplibs_check_method == "file_magic".
19262 file_magic_cmd=$lt_file_magic_cmd
19266 AR_FLAGS=$lt_AR_FLAGS
19268 # A symbol stripping program.
19271 # Commands used to install an old-style archive.
19273 old_postinstall_cmds=$lt_old_postinstall_cmds
19274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19276 # Whether to use a lock for old archive extraction.
19277 lock_old_archive_extraction=$lock_old_archive_extraction
19282 # LTCC compiler flags.
19283 LTCFLAGS=$lt_CFLAGS
19285 # Take the output of nm and produce a listing of raw symbols and C names.
19286 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19288 # Transform the output of nm in a proper C declaration.
19289 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19291 # Transform the output of nm in a C name address pair.
19292 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19294 # Transform the output of nm in a C name address pair when lib prefix is needed.
19295 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19297 # The name of the directory that contains temporary libtool files.
19300 # Used to examine libraries when file_magic_cmd begins with "file".
19301 MAGIC_CMD=$MAGIC_CMD
19303 # Must we lock files when doing compilation?
19304 need_locks=$lt_need_locks
19306 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19307 DSYMUTIL=$lt_DSYMUTIL
19309 # Tool to change global to local symbols on Mac OS X.
19312 # Tool to manipulate fat objects and archives on Mac OS X.
19315 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19318 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19319 OTOOL64=$lt_OTOOL64
19321 # Old archive suffix (normally "a").
19324 # Shared library suffix (normally ".so").
19325 shrext_cmds=$lt_shrext_cmds
19327 # The commands to extract the exported symbol list from a shared archive.
19328 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19330 # Variables whose values should be saved in libtool wrapper scripts and
19331 # restored at link time.
19332 variables_saved_for_relink=$lt_variables_saved_for_relink
19334 # Do we need the "lib" prefix for modules?
19335 need_lib_prefix=$need_lib_prefix
19337 # Do we need a version for libraries?
19338 need_version=$need_version
19340 # Library versioning type.
19341 version_type=$version_type
19343 # Shared library runtime path variable.
19344 runpath_var=$runpath_var
19346 # Shared library path variable.
19347 shlibpath_var=$shlibpath_var
19349 # Is shlibpath searched before the hard-coded library search path?
19350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19352 # Format of library name prefix.
19353 libname_spec=$lt_libname_spec
19355 # List of archive names. First name is the real one, the rest are links.
19356 # The last name is the one that the linker finds with -lNAME
19357 library_names_spec=$lt_library_names_spec
19359 # The coded name of the library, if different from the real name.
19360 soname_spec=$lt_soname_spec
19362 # Permission mode override for installation of shared libraries.
19363 install_override_mode=$lt_install_override_mode
19365 # Command to use after installation of a shared archive.
19366 postinstall_cmds=$lt_postinstall_cmds
19368 # Command to use after uninstallation of a shared archive.
19369 postuninstall_cmds=$lt_postuninstall_cmds
19371 # Commands used to finish a libtool library installation in a directory.
19372 finish_cmds=$lt_finish_cmds
19374 # As "finish_cmds", except a single script fragment to be evaled but
19376 finish_eval=$lt_finish_eval
19378 # Whether we should hardcode library paths into libraries.
19379 hardcode_into_libs=$hardcode_into_libs
19381 # Compile-time system search path for libraries.
19382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19384 # Run-time system search path for libraries.
19385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19387 # Whether dlopen is supported.
19388 dlopen_support=$enable_dlopen
19390 # Whether dlopen of programs is supported.
19391 dlopen_self=$enable_dlopen_self
19393 # Whether dlopen of statically linked programs is supported.
19394 dlopen_self_static=$enable_dlopen_self_static
19396 # Commands to strip libraries.
19397 old_striplib=$lt_old_striplib
19398 striplib=$lt_striplib
19401 # The linker used to build libraries.
19404 # How to create reloadable object files.
19405 reload_flag=$lt_reload_flag
19406 reload_cmds=$lt_reload_cmds
19408 # Commands used to build an old-style archive.
19409 old_archive_cmds=$lt_old_archive_cmds
19411 # A language specific compiler.
19414 # Is the compiler the GNU compiler?
19417 # Compiler flag to turn off builtin functions.
19418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19420 # How to pass a linker flag through the compiler.
19421 wl=$lt_lt_prog_compiler_wl
19423 # Additional compiler flags for building library objects.
19424 pic_flag=$lt_lt_prog_compiler_pic
19426 # Compiler flag to prevent dynamic linking.
19427 link_static_flag=$lt_lt_prog_compiler_static
19429 # Does compiler simultaneously support -c and -o options?
19430 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19432 # Whether or not to add -lc for building shared libraries.
19433 build_libtool_need_lc=$archive_cmds_need_lc
19435 # Whether or not to disallow shared libs when runtime libs are static.
19436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19438 # Compiler flag to allow reflexive dlopens.
19439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19441 # Compiler flag to generate shared objects directly from archives.
19442 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19444 # Whether the compiler copes with passing no objects directly.
19445 compiler_needs_object=$lt_compiler_needs_object
19447 # Create an old-style archive from a shared archive.
19448 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19450 # Create a temporary old-style archive to link instead of a shared archive.
19451 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19453 # Commands used to build a shared archive.
19454 archive_cmds=$lt_archive_cmds
19455 archive_expsym_cmds=$lt_archive_expsym_cmds
19457 # Commands used to build a loadable module if different from building
19458 # a shared archive.
19459 module_cmds=$lt_module_cmds
19460 module_expsym_cmds=$lt_module_expsym_cmds
19462 # Whether we are building with GNU ld or not.
19463 with_gnu_ld=$lt_with_gnu_ld
19465 # Flag that allows shared libraries with undefined symbols to be built.
19466 allow_undefined_flag=$lt_allow_undefined_flag
19468 # Flag that enforces no undefined symbols.
19469 no_undefined_flag=$lt_no_undefined_flag
19471 # Flag to hardcode \$libdir into a binary during linking.
19472 # This must work even if \$libdir does not exist
19473 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19475 # If ld is used when linking, flag to hardcode \$libdir into a binary
19476 # during linking. This must work even if \$libdir does not exist.
19477 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19479 # Whether we need a single "-rpath" flag with a separated argument.
19480 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19483 # DIR into the resulting binary.
19484 hardcode_direct=$hardcode_direct
19486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19487 # DIR into the resulting binary and the resulting library dependency is
19488 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19489 # library is relocated.
19490 hardcode_direct_absolute=$hardcode_direct_absolute
19492 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19493 # into the resulting binary.
19494 hardcode_minus_L=$hardcode_minus_L
19496 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19497 # into the resulting binary.
19498 hardcode_shlibpath_var=$hardcode_shlibpath_var
19500 # Set to "yes" if building a shared library automatically hardcodes DIR
19501 # into the library and all subsequent libraries and executables linked
19503 hardcode_automatic=$hardcode_automatic
19505 # Set to yes if linker adds runtime paths of dependent libraries
19506 # to runtime path list.
19507 inherit_rpath=$inherit_rpath
19509 # Whether libtool must link a program against all its dependency libraries.
19510 link_all_deplibs=$link_all_deplibs
19512 # Fix the shell variable \$srcfile for the compiler.
19513 fix_srcfile_path=$lt_fix_srcfile_path
19515 # Set to "yes" if exported symbols are required.
19516 always_export_symbols=$always_export_symbols
19518 # The commands to list exported symbols.
19519 export_symbols_cmds=$lt_export_symbols_cmds
19521 # Symbols that should not be listed in the preloaded symbols.
19522 exclude_expsyms=$lt_exclude_expsyms
19524 # Symbols that must always be exported.
19525 include_expsyms=$lt_include_expsyms
19527 # Commands necessary for linking programs (against libraries) with templates.
19528 prelink_cmds=$lt_prelink_cmds
19530 # Specify filename containing input files.
19531 file_list_spec=$lt_file_list_spec
19533 # How to hardcode a shared library path into an executable.
19534 hardcode_action=$hardcode_action
19536 # The directories searched by this compiler when creating a shared library.
19537 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19539 # Dependencies to place before and after the objects being linked to
19540 # create a shared library.
19541 predep_objects=$lt_predep_objects
19542 postdep_objects=$lt_postdep_objects
19543 predeps=$lt_predeps
19544 postdeps=$lt_postdeps
19546 # The library search path used internally by the compiler when linking
19547 # a shared library.
19548 compiler_lib_search_path=$lt_compiler_lib_search_path
19550 # ### END LIBTOOL CONFIG
19556 cat <<\_LT_EOF
>> "$cfgfile"
19557 # AIX sometimes has problems with the GCC collect2 program. For some
19558 # reason, if we set the COLLECT_NAMES environment variable, the problems
19559 # vanish in a puff of smoke.
19560 if test "X${COLLECT_NAMES+set}" != Xset
; then
19562 export COLLECT_NAMES
19569 ltmain
="$ac_aux_dir/ltmain.sh"
19572 # We use sed instead of cat because bash on DJGPP gets confused if
19573 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19574 # text mode, it properly converts lines to CR/LF. This bash problem
19575 # is reportedly fixed, but why not run on old versions too?
19576 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19577 ||
(rm -f "$cfgfile"; exit 1)
19581 cat << \_LT_EOF
>> "$cfgfile"
19583 # func_dirname file append nondir_replacement
19584 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19585 # otherwise set result to NONDIR_REPLACEMENT.
19589 */*) func_dirname_result
="${1%/*}${2}" ;;
19590 * ) func_dirname_result
="${3}" ;;
19594 # func_basename file
19597 func_basename_result
="${1##*/}"
19600 # func_dirname_and_basename file append nondir_replacement
19601 # perform func_basename and func_dirname in a single function
19603 # dirname: Compute the dirname of FILE. If nonempty,
19604 # add APPEND to the result, otherwise set result
19605 # to NONDIR_REPLACEMENT.
19606 # value returned in "$func_dirname_result"
19607 # basename: Compute filename of FILE.
19608 # value retuned in "$func_basename_result"
19609 # Implementation must be kept synchronized with func_dirname
19610 # and func_basename. For efficiency, we do not delegate to
19611 # those functions but instead duplicate the functionality here.
19612 func_dirname_and_basename
()
19615 */*) func_dirname_result
="${1%/*}${2}" ;;
19616 * ) func_dirname_result
="${3}" ;;
19618 func_basename_result
="${1##*/}"
19621 # func_stripname prefix suffix name
19622 # strip PREFIX and SUFFIX off of NAME.
19623 # PREFIX and SUFFIX must not contain globbing or regex special
19624 # characters, hashes, percent signs, but SUFFIX may contain a leading
19625 # dot (in which case that matches only a dot).
19628 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19629 # positional parameters, so assign one to ordinary parameter first.
19630 func_stripname_result
=${3}
19631 func_stripname_result
=${func_stripname_result#"${1}"}
19632 func_stripname_result
=${func_stripname_result%"${2}"}
19638 func_opt_split_opt
=${1%%=*}
19639 func_opt_split_arg
=${1#*=}
19646 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19647 *) func_lo2o_result
=${1} ;;
19651 # func_xform libobj-or-source
19654 func_xform_result
=${1%.*}.lo
19657 # func_arith arithmetic-term...
19660 func_arith_result
=$
(( $
* ))
19664 # STRING may not start with a hyphen.
19667 func_len_result
=${#1}
19672 *) # Bourne compatible functions.
19673 cat << \_LT_EOF
>> "$cfgfile"
19675 # func_dirname file append nondir_replacement
19676 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19677 # otherwise set result to NONDIR_REPLACEMENT.
19680 # Extract subdirectory from the argument.
19681 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19682 if test "X$func_dirname_result" = "X${1}"; then
19683 func_dirname_result
="${3}"
19685 func_dirname_result
="$func_dirname_result${2}"
19689 # func_basename file
19692 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19696 # func_stripname prefix suffix name
19697 # strip PREFIX and SUFFIX off of NAME.
19698 # PREFIX and SUFFIX must not contain globbing or regex special
19699 # characters, hashes, percent signs, but SUFFIX may contain a leading
19700 # dot (in which case that matches only a dot).
19701 # func_strip_suffix prefix name
19705 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19706 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19711 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19712 my_sed_long_arg
='1s/^-[^=]*=//'
19717 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19718 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19724 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19727 # func_xform libobj-or-source
19730 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19733 # func_arith arithmetic-term...
19736 func_arith_result
=`expr "$@"`
19740 # STRING may not start with a hyphen.
19743 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19749 case $lt_shell_append in
19751 cat << \_LT_EOF
>> "$cfgfile"
19753 # func_append var value
19754 # Append VALUE to the end of shell variable VAR.
19762 cat << \_LT_EOF
>> "$cfgfile"
19764 # func_append var value
19765 # Append VALUE to the end of shell variable VAR.
19776 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19777 ||
(rm -f "$cfgfile"; exit 1)
19779 mv -f "$cfgfile" "$ofile" ||
19780 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19784 cat <<_LT_EOF >> "$ofile"
19786 # ### BEGIN LIBTOOL TAG CONFIG: FC
19788 # The linker used to build libraries.
19791 # How to create reloadable object files.
19792 reload_flag=$lt_reload_flag_FC
19793 reload_cmds=$lt_reload_cmds_FC
19795 # Commands used to build an old-style archive.
19796 old_archive_cmds=$lt_old_archive_cmds_FC
19798 # A language specific compiler.
19801 # Is the compiler the GNU compiler?
19804 # Compiler flag to turn off builtin functions.
19805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19807 # How to pass a linker flag through the compiler.
19808 wl=$lt_lt_prog_compiler_wl_FC
19810 # Additional compiler flags for building library objects.
19811 pic_flag=$lt_lt_prog_compiler_pic_FC
19813 # Compiler flag to prevent dynamic linking.
19814 link_static_flag=$lt_lt_prog_compiler_static_FC
19816 # Does compiler simultaneously support -c and -o options?
19817 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19819 # Whether or not to add -lc for building shared libraries.
19820 build_libtool_need_lc=$archive_cmds_need_lc_FC
19822 # Whether or not to disallow shared libs when runtime libs are static.
19823 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19825 # Compiler flag to allow reflexive dlopens.
19826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19828 # Compiler flag to generate shared objects directly from archives.
19829 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19831 # Whether the compiler copes with passing no objects directly.
19832 compiler_needs_object=$lt_compiler_needs_object_FC
19834 # Create an old-style archive from a shared archive.
19835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19837 # Create a temporary old-style archive to link instead of a shared archive.
19838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19840 # Commands used to build a shared archive.
19841 archive_cmds=$lt_archive_cmds_FC
19842 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19844 # Commands used to build a loadable module if different from building
19845 # a shared archive.
19846 module_cmds=$lt_module_cmds_FC
19847 module_expsym_cmds=$lt_module_expsym_cmds_FC
19849 # Whether we are building with GNU ld or not.
19850 with_gnu_ld=$lt_with_gnu_ld_FC
19852 # Flag that allows shared libraries with undefined symbols to be built.
19853 allow_undefined_flag=$lt_allow_undefined_flag_FC
19855 # Flag that enforces no undefined symbols.
19856 no_undefined_flag=$lt_no_undefined_flag_FC
19858 # Flag to hardcode \$libdir into a binary during linking.
19859 # This must work even if \$libdir does not exist
19860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19862 # If ld is used when linking, flag to hardcode \$libdir into a binary
19863 # during linking. This must work even if \$libdir does not exist.
19864 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19866 # Whether we need a single "-rpath" flag with a separated argument.
19867 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19869 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19870 # DIR into the resulting binary.
19871 hardcode_direct=$hardcode_direct_FC
19873 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19874 # DIR into the resulting binary and the resulting library dependency is
19875 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19876 # library is relocated.
19877 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19879 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19880 # into the resulting binary.
19881 hardcode_minus_L=$hardcode_minus_L_FC
19883 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19884 # into the resulting binary.
19885 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19887 # Set to "yes" if building a shared library automatically hardcodes DIR
19888 # into the library and all subsequent libraries and executables linked
19890 hardcode_automatic=$hardcode_automatic_FC
19892 # Set to yes if linker adds runtime paths of dependent libraries
19893 # to runtime path list.
19894 inherit_rpath=$inherit_rpath_FC
19896 # Whether libtool must link a program against all its dependency libraries.
19897 link_all_deplibs=$link_all_deplibs_FC
19899 # Fix the shell variable \$srcfile for the compiler.
19900 fix_srcfile_path=$lt_fix_srcfile_path_FC
19902 # Set to "yes" if exported symbols are required.
19903 always_export_symbols=$always_export_symbols_FC
19905 # The commands to list exported symbols.
19906 export_symbols_cmds=$lt_export_symbols_cmds_FC
19908 # Symbols that should not be listed in the preloaded symbols.
19909 exclude_expsyms=$lt_exclude_expsyms_FC
19911 # Symbols that must always be exported.
19912 include_expsyms=$lt_include_expsyms_FC
19914 # Commands necessary for linking programs (against libraries) with templates.
19915 prelink_cmds=$lt_prelink_cmds_FC
19917 # Specify filename containing input files.
19918 file_list_spec=$lt_file_list_spec_FC
19920 # How to hardcode a shared library path into an executable.
19921 hardcode_action=$hardcode_action_FC
19923 # The directories searched by this compiler when creating a shared library.
19924 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19926 # Dependencies to place before and after the objects being linked to
19927 # create a shared library.
19928 predep_objects=$lt_predep_objects_FC
19929 postdep_objects=$lt_postdep_objects_FC
19930 predeps=$lt_predeps_FC
19931 postdeps=$lt_postdeps_FC
19933 # The library search path used internally by the compiler when linking
19934 # a shared library.
19935 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19937 # ### END LIBTOOL TAG CONFIG: FC
19942 if test "$GCC" = yes; then
19943 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19945 echo "/* generated for $CC */" > tmp-stdint.h
19948 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19950 #ifndef GCC_GENERATED_STDINT_H
19951 #define GCC_GENERATED_STDINT_H 1
19953 #include <sys/types.h>
19956 if test "$acx_cv_header_stdint" != stdint.h
; then
19957 echo "#include <stddef.h>" >> tmp-stdint.h
19959 if test "$acx_cv_header_stdint" != stddef.h
; then
19960 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19963 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19964 /* glibc uses these symbols as guards to prevent redefinitions. */
19965 #ifdef __int8_t_defined
19970 #ifdef __uint32_t_defined
19976 # ----------------- done header, emit basic int types -------------
19977 if test "$acx_cv_header_stdint" = stddef.h
; then
19978 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19982 #ifndef __uint8_t_defined
19983 #define __uint8_t_defined
19985 typedef unsigned $acx_cv_type_int8_t uint8_t;
19992 #ifndef __uint16_t_defined
19993 #define __uint16_t_defined
19995 typedef unsigned $acx_cv_type_int16_t uint16_t;
20002 #ifndef __uint32_t_defined
20003 #define __uint32_t_defined
20005 typedef unsigned $acx_cv_type_int32_t uint32_t;
20012 #ifndef __int8_t_defined
20013 #define __int8_t_defined
20015 typedef $acx_cv_type_int8_t int8_t;
20022 #ifndef __int16_t_defined
20023 #define __int16_t_defined
20025 typedef $acx_cv_type_int16_t int16_t;
20032 #ifndef __int32_t_defined
20033 #define __int32_t_defined
20035 typedef $acx_cv_type_int32_t int32_t;
20040 elif test "$ac_cv_type_u_int32_t" = yes; then
20041 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20043 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20056 #ifndef __uint8_t_defined
20057 #define __uint8_t_defined
20059 typedef u_int8_t uint8_t;
20066 #ifndef __uint16_t_defined
20067 #define __uint16_t_defined
20069 typedef u_int16_t uint16_t;
20076 #ifndef __uint32_t_defined
20077 #define __uint32_t_defined
20079 typedef u_int32_t uint32_t;
20085 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20087 /* Some systems have guard macros to prevent redefinitions, define them. */
20109 # ------------- done basic int types, emit int64_t types ------------
20110 if test "$ac_cv_type_uint64_t" = yes; then
20111 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20113 /* system headers have good uint64_t and int64_t */
20121 elif test "$ac_cv_type_u_int64_t" = yes; then
20122 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20124 /* system headers have an u_int64_t (and int64_t) */
20130 #ifndef __uint64_t_defined
20131 #define __uint64_t_defined
20133 typedef u_int64_t uint64_t;
20138 elif test -n "$acx_cv_type_int64_t"; then
20139 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20141 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20145 typedef $acx_cv_type_int64_t int64_t;
20150 #ifndef __uint64_t_defined
20151 #define __uint64_t_defined
20153 typedef unsigned $acx_cv_type_int64_t uint64_t;
20159 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20161 /* some common heuristics for int64_t, using compiler-specific tests */
20162 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20165 #ifndef __int64_t_defined
20167 typedef long long int64_t;
20174 typedef unsigned long long uint64_t;
20178 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20179 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20180 does not implement __extension__. But that compiler doesn't define
20182 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20183 # define __extension__
20189 __extension__ typedef long long int64_t;
20195 __extension__ typedef unsigned long long uint64_t;
20199 #elif !defined __STRICT_ANSI__
20200 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20205 typedef __int64 int64_t;
20211 typedef unsigned __int64 uint64_t;
20214 # endif /* compiler */
20216 #endif /* ANSI version */
20220 # ------------- done int64_t types, emit intptr types ------------
20221 if test "$ac_cv_type_uintptr_t" != yes; then
20222 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20224 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20225 #ifndef __uintptr_t_defined
20227 typedef u$acx_cv_type_intptr_t uintptr_t;
20230 #ifndef __intptr_t_defined
20232 typedef $acx_cv_type_intptr_t intptr_t;
20238 # ------------- done intptr types, emit int_least types ------------
20239 if test "$ac_cv_type_int_least32_t" != yes; then
20240 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20242 /* Define int_least types */
20243 typedef int8_t int_least8_t;
20244 typedef int16_t int_least16_t;
20245 typedef int32_t int_least32_t;
20247 typedef int64_t int_least64_t;
20250 typedef uint8_t uint_least8_t;
20251 typedef uint16_t uint_least16_t;
20252 typedef uint32_t uint_least32_t;
20254 typedef uint64_t uint_least64_t;
20259 # ------------- done intptr types, emit int_fast types ------------
20260 if test "$ac_cv_type_int_fast32_t" != yes; then
20261 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20263 /* Define int_fast types. short is often slow */
20264 typedef int8_t int_fast8_t;
20265 typedef int int_fast16_t;
20266 typedef int32_t int_fast32_t;
20268 typedef int64_t int_fast64_t;
20271 typedef uint8_t uint_fast8_t;
20272 typedef unsigned int uint_fast16_t;
20273 typedef uint32_t uint_fast32_t;
20275 typedef uint64_t uint_fast64_t;
20280 if test "$ac_cv_type_uintmax_t" != yes; then
20281 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20283 /* Define intmax based on what we found */
20286 typedef int64_t intmax_t;
20288 typedef long intmax_t;
20293 typedef uint64_t uintmax_t;
20295 typedef unsigned long uintmax_t;
20301 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20303 #endif /* GCC_GENERATED_STDINT_H */
20306 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
20309 mv -f tmp-stdint.h gstdint.h
20320 ac_clean_files
=$ac_clean_files_save
20322 test $ac_write_fail = 0 ||
20323 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20326 # configure is writing to config.log, and then calls config.status.
20327 # config.status does its own redirection, appending to config.log.
20328 # Unfortunately, on DOS this fails, as config.log is still kept open
20329 # by configure, so config.status won't be able to write to it; its
20330 # output is simply discarded. So we exec the FD to /dev/null,
20331 # effectively closing config.log, so it can be properly (re)opened and
20332 # appended to by config.status. When coming back to configure, we
20333 # need to make the FD available again.
20334 if test "$no_create" != yes; then
20336 ac_config_status_args
=
20337 test "$silent" = yes &&
20338 ac_config_status_args
="$ac_config_status_args --quiet"
20340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20343 # would make configure fail if this is the last instruction.
20344 $ac_cs_success || as_fn_exit
1
20346 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20348 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}