2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
557 PACKAGE_NAME
='GNU Offloading and Multi Processing Runtime Library'
558 PACKAGE_TARNAME
='libgomp'
559 PACKAGE_VERSION
='1.0'
560 PACKAGE_STRING
='GNU Offloading and Multi Processing Runtime Library 1.0'
562 PACKAGE_URL
='http://www.gnu.org/software/libgomp/'
564 # Factoring default headers for most tests.
565 ac_includes_default
="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
602 ac_subst_vars
='am__EXEEXT_FALSE
606 OMP_NEST_LOCK_25_KIND
608 OMP_NEST_LOCK_25_ALIGN
609 OMP_NEST_LOCK_25_SIZE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
636 offload_additional_lib_paths
637 offload_additional_options
646 PLUGIN_NVPTX_CPPFLAGS
656 MAINTAINER_MODE_FALSE
710 INSTALL_STRIP_PROGRAM
766 program_transform_name
779 enable_option_checking
780 enable_version_specific_runtime_libs
781 enable_generated_files_in_srcdir
783 enable_dependency_tracking
790 enable_maintainer_mode
792 with_cuda_driver_include
795 with_hsa_runtime_include
801 ac_precious_vars
='build_alias
812 # Initialize some variables set by options.
814 ac_init_version
=false
815 ac_unrecognized_opts
=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
826 program_transform_name
=s
,x
,x
,
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir
='${exec_prefix}/bin'
841 sbindir
='${exec_prefix}/sbin'
842 libexecdir
='${exec_prefix}/libexec'
843 datarootdir
='${prefix}/share'
844 datadir
='${datarootdir}'
845 sysconfdir
='${prefix}/etc'
846 sharedstatedir
='${prefix}/com'
847 localstatedir
='${prefix}/var'
848 includedir
='${prefix}/include'
849 oldincludedir
='/usr/include'
850 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir
='${datarootdir}/info'
856 libdir
='${exec_prefix}/lib'
857 localedir
='${datarootdir}/locale'
858 mandir
='${datarootdir}/man'
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\
$ac_option
872 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 # Accept the important Cygnus configure options, so we can diagnose typos.
878 case $ac_dashdash$ac_option in
882 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
884 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
887 -build |
--build |
--buil |
--bui |
--bu)
888 ac_prev
=build_alias
;;
889 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
890 build_alias
=$ac_optarg ;;
892 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
893 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
894 ac_prev
=cache_file
;;
895 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
896 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
897 cache_file
=$ac_optarg ;;
900 cache_file
=config.cache
;;
902 -datadir |
--datadir |
--datadi |
--datad)
904 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
905 datadir
=$ac_optarg ;;
907 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
908 |
--dataroo |
--dataro |
--datar)
909 ac_prev
=datarootdir
;;
910 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
911 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
912 datarootdir
=$ac_optarg ;;
914 -disable-* |
--disable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 as_fn_error
"invalid feature name: $ac_useropt"
919 ac_useropt_orig
=$ac_useropt
920 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep
=', ';;
928 eval enable_
$ac_useropt=no
;;
930 -docdir |
--docdir |
--docdi |
--doc |
--do)
932 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
935 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
937 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
940 -enable-* |
--enable-*)
941 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
944 as_fn_error
"invalid feature name: $ac_useropt"
945 ac_useropt_orig
=$ac_useropt
946 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
951 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep
=', ';;
954 eval enable_
$ac_useropt=\
$ac_optarg ;;
956 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
957 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
958 |
--exec |
--exe |
--ex)
959 ac_prev
=exec_prefix
;;
960 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
961 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
962 |
--exec=* |
--exe=* |
--ex=*)
963 exec_prefix
=$ac_optarg ;;
965 -gas |
--gas |
--ga |
--g)
966 # Obsolete; use --with-gas.
969 -help |
--help |
--hel |
--he |
-h)
971 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
972 ac_init_help
=recursive
;;
973 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
974 ac_init_help
=short
;;
976 -host |
--host |
--hos |
--ho)
977 ac_prev
=host_alias
;;
978 -host=* |
--host=* |
--hos=* |
--ho=*)
979 host_alias
=$ac_optarg ;;
981 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
983 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
985 htmldir
=$ac_optarg ;;
987 -includedir |
--includedir |
--includedi |
--included |
--include \
988 |
--includ |
--inclu |
--incl |
--inc)
989 ac_prev
=includedir
;;
990 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
991 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
992 includedir
=$ac_optarg ;;
994 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
996 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
997 infodir
=$ac_optarg ;;
999 -libdir |
--libdir |
--libdi |
--libd)
1001 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1002 libdir
=$ac_optarg ;;
1004 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1005 |
--libexe |
--libex |
--libe)
1006 ac_prev
=libexecdir
;;
1007 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1008 |
--libexe=* |
--libex=* |
--libe=*)
1009 libexecdir
=$ac_optarg ;;
1011 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1012 ac_prev
=localedir
;;
1013 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1014 localedir
=$ac_optarg ;;
1016 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1017 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1018 ac_prev
=localstatedir
;;
1019 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1020 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1021 localstatedir
=$ac_optarg ;;
1023 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1025 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1026 mandir
=$ac_optarg ;;
1028 -nfp |
--nfp |
--nf)
1029 # Obsolete; use --without-fp.
1032 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1033 |
--no-cr |
--no-c |
-n)
1036 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1037 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1040 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1041 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1042 |
--oldin |
--oldi |
--old |
--ol |
--o)
1043 ac_prev
=oldincludedir
;;
1044 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1045 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1046 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1047 oldincludedir
=$ac_optarg ;;
1049 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1051 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1052 prefix
=$ac_optarg ;;
1054 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1055 |
--program-pre |
--program-pr |
--program-p)
1056 ac_prev
=program_prefix
;;
1057 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1058 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1059 program_prefix
=$ac_optarg ;;
1061 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1062 |
--program-suf |
--program-su |
--program-s)
1063 ac_prev
=program_suffix
;;
1064 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1065 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1066 program_suffix
=$ac_optarg ;;
1068 -program-transform-name |
--program-transform-name \
1069 |
--program-transform-nam |
--program-transform-na \
1070 |
--program-transform-n |
--program-transform- \
1071 |
--program-transform |
--program-transfor \
1072 |
--program-transfo |
--program-transf \
1073 |
--program-trans |
--program-tran \
1074 |
--progr-tra |
--program-tr |
--program-t)
1075 ac_prev
=program_transform_name
;;
1076 -program-transform-name=* |
--program-transform-name=* \
1077 |
--program-transform-nam=* |
--program-transform-na=* \
1078 |
--program-transform-n=* |
--program-transform-=* \
1079 |
--program-transform=* |
--program-transfor=* \
1080 |
--program-transfo=* |
--program-transf=* \
1081 |
--program-trans=* |
--program-tran=* \
1082 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1083 program_transform_name
=$ac_optarg ;;
1085 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1087 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1088 pdfdir
=$ac_optarg ;;
1090 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1092 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1095 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1096 |
-silent |
--silent |
--silen |
--sile |
--sil)
1099 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1101 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1103 sbindir
=$ac_optarg ;;
1105 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1106 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1107 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1109 ac_prev
=sharedstatedir
;;
1110 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1111 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1112 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1114 sharedstatedir
=$ac_optarg ;;
1116 -site |
--site |
--sit)
1118 -site=* |
--site=* |
--sit=*)
1121 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1123 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1124 srcdir
=$ac_optarg ;;
1126 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1127 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1128 ac_prev
=sysconfdir
;;
1129 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1130 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1131 sysconfdir
=$ac_optarg ;;
1133 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1134 ac_prev
=target_alias
;;
1135 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1136 target_alias
=$ac_optarg ;;
1138 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1141 -version |
--version |
--versio |
--versi |
--vers |
-V)
1142 ac_init_version
=: ;;
1145 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1148 as_fn_error
"invalid package name: $ac_useropt"
1149 ac_useropt_orig
=$ac_useropt
1150 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1155 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep
=', ';;
1158 eval with_
$ac_useropt=\
$ac_optarg ;;
1160 -without-* |
--without-*)
1161 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1164 as_fn_error
"invalid package name: $ac_useropt"
1165 ac_useropt_orig
=$ac_useropt
1166 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1171 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep
=', ';;
1174 eval with_
$ac_useropt=no
;;
1177 # Obsolete; use --with-x.
1180 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1181 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1182 ac_prev
=x_includes
;;
1183 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1184 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1185 x_includes
=$ac_optarg ;;
1187 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1188 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1189 ac_prev
=x_libraries
;;
1190 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1191 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1192 x_libraries
=$ac_optarg ;;
1194 -*) as_fn_error
"unrecognized option: \`$ac_option'
1195 Try \`$0 --help' for more information."
1199 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1203 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1205 eval $ac_envvar=\
$ac_optarg
1206 export $ac_envvar ;;
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219 if test -n "$ac_prev"; then
1220 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1221 as_fn_error
"missing argument to $ac_option"
1224 if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1227 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 # Check all directory arguments for consistency.
1233 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1238 eval ac_val
=\$
$ac_var
1239 # Remove trailing slashes.
1242 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\
$ac_val;;
1245 # Be sure to have absolute directory names.
1247 [\\/$
]* | ?
:[\\/]* ) continue;;
1248 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1250 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1258 target
=$target_alias
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x
; then
1262 if test "x$build_alias" = x
; then
1263 cross_compiling
=maybe
1264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1272 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1274 test "$silent" = yes && exec 6>/dev
/null
1277 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di
=`ls -di .` &&
1279 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error
"working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error
"pwd does not report name of working directory"
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted
=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir
=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1317 ac_srcdir_defaulted
=no
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1321 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1323 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1335 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 for ac_var
in $ac_precious_vars; do
1338 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1340 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1345 # Report the --help message.
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1351 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1358 Defaults for the options are specified in brackets.
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1382 For better control, use the options below.
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1414 --build=BUILD configure
for building on BUILD
[guessed
]
1415 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1416 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1427 --disable-option-checking ignore unrecognized
--enable/--with options
1428 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1429 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1430 --enable-version-specific-runtime-libs
1431 Specify that runtime libraries should be installed
1432 in a compiler-specific directory
[default
=no
]
1433 --enable-generated-files-in-srcdir
1434 put copies of generated files
in source dir intended
1435 for creating
source tarballs
for users without
1436 texinfo bison or flex.
[default
=no
]
1437 --enable-multilib build many library versions
(default
)
1438 --disable-dependency-tracking speeds up one-time build
1439 --enable-dependency-tracking do not reject slow dependency extractors
1440 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1441 --enable-static[=PKGS
] build static libraries
[default
=yes]
1442 --enable-fast-install[=PKGS
]
1443 optimize
for fast installation
[default
=yes]
1444 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1445 --enable-maintainer-mode enable make rules and dependencies not useful
1446 (and sometimes confusing
) to the casual installer
1447 --enable-linux-futex use the Linux futex system call
[default
=default
]
1448 --enable-tls Use thread-local storage
[default
=yes]
1449 --enable-symvers=STYLE enables symbol versioning of the shared library
1453 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1454 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1455 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1457 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1458 --with-cuda-driver=PATH specify prefix directory
for installed CUDA driver
1459 package. Equivalent to
1460 --with-cuda-driver-include=PATH
/include plus
1461 --with-cuda-driver-lib=PATH
/lib
1462 --with-cuda-driver-include=PATH
1463 specify directory
for installed CUDA driver include
1465 --with-cuda-driver-lib=PATH
1466 specify directory
for the installed CUDA driver
1468 --with-hsa-runtime=PATH specify prefix directory
for installed HSA run-time
1469 package. Equivalent to
1470 --with-hsa-runtime-include=PATH
/include plus
1471 --with-hsa-runtime-lib=PATH
/lib
1472 --with-hsa-runtime-include=PATH
1473 specify directory
for installed HSA run-time include
1475 --with-hsa-runtime-lib=PATH
1476 specify directory
for the installed HSA run-time
1479 Some influential environment variables
:
1480 CC C compiler
command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1483 nonstandard directory
<lib dir
>
1484 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1485 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1486 you have headers
in a nonstandard directory
<include dir
>
1488 FC Fortran compiler
command
1489 FCFLAGS Fortran compiler flags
1491 Use these variables to override the choices made by
`configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1494 Report bugs to the package provider.
1495 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1496 General help using GNU software: <http://www.gnu.org/gethelp/>.
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1526 .) # We are building in place.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1559 GNU Offloading and Multi Processing Runtime Library configure 1.0
1560 generated by GNU Autoconf 2.64
1562 Copyright (C) 2009 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1583 *) ac_try_echo
=$ac_try;;
1585 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1589 if test -s conftest.err
; then
1590 grep -v '^ *+' conftest.err
>conftest.er1
1591 cat conftest.er1
>&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.
$ac_objext; then :
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.
$ac_ext >&5
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1609 } # ac_fn_c_try_compile
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1617 rm -f conftest.
$ac_objext conftest
$ac_exeext
1618 if { { ac_try
="$ac_link"
1620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>conftest.err
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest$ac_exeext && {
1637 test "$cross_compiling" = yes ||
1638 $as_test_x conftest$ac_exeext
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 } # ac_fn_c_try_link
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 $as_echo_n "(cached) " >&6
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 } # ac_fn_c_check_header_compile
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1697 *) ac_try_echo
=$ac_try;;
1699 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 if test -s conftest.err
; then
1704 grep -v '^ *+' conftest.err
>conftest.er1
1705 cat conftest.er1
>&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } >/dev
/null
&& {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.
$ac_ext >&5
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1732 if { { ac_try
="$ac_link"
1734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
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_try") 2>&5
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.
$ac_ext >&5
1759 ac_retval
=$ac_status
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func
()
1772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below.
1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787 <limits.h> exists even on freestanding compilers. */
1790 # include <limits.h>
1792 # include <assert.h>
1797 /* Override any GCC internal prototype to avoid an error.
1798 Use char because int might match the return type of a GCC
1799 builtin and then its argument prototype would still apply. */
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined __stub_$2 || defined __stub___$2
1819 if ac_fn_c_try_link
"$LINENO"; then :
1824 rm -f core conftest.err conftest.
$ac_objext \
1825 conftest
$ac_exeext conftest.
$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1832 } # ac_fn_c_check_func
1834 # ac_fn_fc_try_compile LINENO
1835 # ---------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_fc_try_compile
()
1839 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1840 rm -f conftest.
$ac_objext
1841 if { { ac_try
="$ac_compile"
1843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_fc_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 } # ac_fn_fc_try_compile
1872 # ac_fn_fc_try_link LINENO
1873 # ------------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_fc_try_link ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext conftest$ac_exeext
1879 if { { ac_try="$ac_link"
1881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1882 *) ac_try_echo
=$ac_try;;
1884 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>conftest.err
1888 if test -s conftest.err
; then
1889 grep -v '^ *+' conftest.err
>conftest.er1
1890 cat conftest.er1
>&5
1891 mv -f conftest.er1 conftest.err
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_fc_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest
$ac_exeext && {
1898 test "$cross_compiling" = yes ||
1899 $as_test_x conftest
$ac_exeext
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.
$ac_ext >&5
1908 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910 # interfere with the next link command; also delete a directory that is
1911 # left behind by Apple's compiler. We do this before executing the actions.
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1916 } # ac_fn_fc_try_link
1918 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1921 # the include files in INCLUDES and setting the cache variable VAR
1923 ac_fn_c_check_header_mongrel
()
1925 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1926 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1936 # Is the header compilable?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1938 $as_echo_n "checking $2 usability... " >&6; }
1939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1944 if ac_fn_c_try_compile
"$LINENO"; then :
1945 ac_header_compiler
=yes
1947 ac_header_compiler
=no
1949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1951 $as_echo "$ac_header_compiler" >&6; }
1953 # Is the header present?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1955 $as_echo_n "checking $2 presence... " >&6; }
1956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 if ac_fn_c_try_cpp
"$LINENO"; then :
1961 ac_header_preproc
=yes
1963 ac_header_preproc
=no
1965 rm -f conftest.err conftest.
$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1967 $as_echo "$ac_header_preproc" >&6; }
1969 # So? What about this header?
1970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1973 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1979 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1981 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1983 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1985 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 $as_echo_n "(cached) " >&6
1995 eval "$3=\$ac_header_compiler"
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2003 } # ac_fn_c_check_header_mongrel
2005 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2006 # -------------------------------------------
2007 # Tests whether TYPE exists after having included INCLUDES, setting cache
2008 # variable VAR accordingly.
2009 ac_fn_c_check_type
()
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 $as_echo_n "(cached) " >&6
2018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2043 if ac_fn_c_try_compile
"$LINENO"; then :
2048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2057 } # ac_fn_c_check_type
2059 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2060 # --------------------------------------------
2061 # Tries to find the compile-time value of EXPR in a program that includes
2062 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2064 ac_fn_c_compute_int
()
2066 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2067 if test "$cross_compiling" = yes; then
2068 # Depending upon the size, compute the lo and hi bounds.
2069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) >= 0)];
2082 if ac_fn_c_try_compile
"$LINENO"; then :
2085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2091 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2098 if ac_fn_c_try_compile
"$LINENO"; then :
2099 ac_hi
=$ac_mid; break
2101 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2102 if test $ac_lo -le $ac_mid; then
2106 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2117 static int test_array [1 - 2 * !(($2) < 0)];
2124 if ac_fn_c_try_compile
"$LINENO"; then :
2127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2133 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2140 if ac_fn_c_try_compile
"$LINENO"; then :
2141 ac_lo
=$ac_mid; break
2143 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2144 if test $ac_mid -le $ac_hi; then
2148 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2158 # Binary search between lo and hi bounds.
2159 while test "x$ac_lo" != "x$ac_hi"; do
2160 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2167 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2174 if ac_fn_c_try_compile
"$LINENO"; then :
2177 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2182 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2189 static long int longval () { return $2; }
2190 static unsigned long int ulongval () { return $2; }
2197 FILE *f = fopen ("conftest.val", "w");
2202 long int i = longval ();
2205 fprintf (f, "%ld", i);
2209 unsigned long int i = ulongval ();
2212 fprintf (f, "%lu", i);
2214 /* Do not output a trailing newline, as this causes \r\n confusion
2215 on some platforms. */
2216 return ferror (f) || fclose (f) != 0;
2222 if ac_fn_c_try_run
"$LINENO"; then :
2223 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2228 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2235 } # ac_fn_c_compute_int
2236 cat >config.log
<<_ACEOF
2237 This file contains any messages produced by compilers while
2238 running configure, to aid debugging if configure makes a mistake.
2240 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2241 generated by GNU Autoconf 2.64. Invocation command line was
2253 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2254 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2255 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2256 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2257 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2259 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2260 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2262 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2263 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2264 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2265 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2266 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2267 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2268 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2276 test -z "$as_dir" && as_dir
=.
2277 $as_echo "PATH: $as_dir"
2293 # Keep a trace of the command line.
2294 # Strip out --no-create and --no-recursion so they do not pile up.
2295 # Strip out --silent because we don't want to record it for future runs.
2296 # Also quote any args containing shell meta-characters.
2297 # Make two passes to allow for proper duplicate-argument suppression.
2301 ac_must_keep_next
=false
2307 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2309 |
-silent |
--silent |
--silen |
--sile |
--sil)
2312 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2315 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2317 as_fn_append ac_configure_args1
" '$ac_arg'"
2318 if test $ac_must_keep_next = true
; then
2319 ac_must_keep_next
=false
# Got value, back to normal.
2322 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2323 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2324 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2325 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2326 case "$ac_configure_args0 " in
2327 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2330 -* ) ac_must_keep_next
=true
;;
2333 as_fn_append ac_configure_args
" '$ac_arg'"
2338 { ac_configure_args0
=; unset ac_configure_args0
;}
2339 { ac_configure_args1
=; unset ac_configure_args1
;}
2341 # When interrupted or exit'd, cleanup temporary files, and complete
2342 # config.log. We remove comments because anyway the quotes in there
2343 # would cause problems or look ugly.
2344 # WARNING: Use '\'' to represent an apostrophe within the trap.
2345 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2346 trap 'exit_status=$?
2347 # Save into config.log some information that might help in debugging.
2352 ## ---------------- ##
2353 ## Cache variables. ##
2354 ## ---------------- ##
2357 # The following way of writing the cache mishandles newlines in values,
2359 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2360 eval ac_val=\$$ac_var
2364 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2365 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2368 _ | IFS | as_nl) ;; #(
2369 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2370 *) { eval $ac_var=; unset $ac_var;} ;;
2375 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2376 *${as_nl}ac_space=\ *)
2378 "s/'\''/'\''\\\\'\'''\''/g;
2379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2390 ## ----------------- ##
2391 ## Output variables. ##
2392 ## ----------------- ##
2395 for ac_var in $ac_subst_vars
2397 eval ac_val=\$$ac_var
2399 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2401 $as_echo "$ac_var='\''$ac_val'\''"
2405 if test -n "$ac_subst_files"; then
2407 ## ------------------- ##
2408 ## File substitutions. ##
2409 ## ------------------- ##
2412 for ac_var
in $ac_subst_files
2414 eval ac_val
=\$
$ac_var
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 $as_echo "$ac_var='\''$ac_val'\''"
2423 if test -s confdefs.h; then
2433 test "$ac_signal" != 0 &&
2434 $as_echo "$as_me: caught signal $ac_signal"
2435 $as_echo "$as_me: exit $exit_status"
2437 rm -f core *.core core.conftest.* &&
2438 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2441 for ac_signal
in 1 2 13 15; do
2442 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2447 rm -f -r conftest
* confdefs.h
2449 $as_echo "/* confdefs.h */" > confdefs.h
2451 # Predefined preprocessor variables.
2453 cat >>confdefs.h
<<_ACEOF
2454 #define PACKAGE_NAME "$PACKAGE_NAME"
2457 cat >>confdefs.h
<<_ACEOF
2458 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2461 cat >>confdefs.h
<<_ACEOF
2462 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2465 cat >>confdefs.h
<<_ACEOF
2466 #define PACKAGE_STRING "$PACKAGE_STRING"
2469 cat >>confdefs.h
<<_ACEOF
2470 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2473 cat >>confdefs.h
<<_ACEOF
2474 #define PACKAGE_URL "$PACKAGE_URL"
2478 # Let the site file select an alternate cache file if it wants to.
2479 # Prefer an explicitly selected file to automatically selected ones.
2482 if test -n "$CONFIG_SITE"; then
2483 ac_site_file1
=$CONFIG_SITE
2484 elif test "x$prefix" != xNONE
; then
2485 ac_site_file1
=$prefix/share
/config.site
2486 ac_site_file2
=$prefix/etc
/config.site
2488 ac_site_file1
=$ac_default_prefix/share
/config.site
2489 ac_site_file2
=$ac_default_prefix/etc
/config.site
2491 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2493 test "x$ac_site_file" = xNONE
&& continue
2494 if test -r "$ac_site_file"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2496 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2497 sed 's/^/| /' "$ac_site_file" >&5
2502 if test -r "$cache_file"; then
2503 # Some versions of bash will fail to source /dev/null (special
2504 # files actually), so we avoid doing that.
2505 if test -f "$cache_file"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2507 $as_echo "$as_me: loading cache $cache_file" >&6;}
2509 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2510 *) .
"./$cache_file";;
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2515 $as_echo "$as_me: creating cache $cache_file" >&6;}
2519 as_fn_append ac_header_list
" unistd.h"
2520 as_fn_append ac_func_list
" secure_getenv"
2521 as_fn_append ac_func_list
" __secure_getenv"
2522 as_fn_append ac_func_list
" getuid"
2523 as_fn_append ac_func_list
" geteuid"
2524 as_fn_append ac_func_list
" getgid"
2525 as_fn_append ac_func_list
" getegid"
2526 # Check that the precious variables saved in the cache have kept the same
2528 ac_cache_corrupted
=false
2529 for ac_var
in $ac_precious_vars; do
2530 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2531 eval ac_new_set
=\
$ac_env_${ac_var}_set
2532 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2533 eval ac_new_val
=\
$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted
=: ;;
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted
=: ;;
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w
=`echo x $ac_old_val`
2548 ac_new_val_w
=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted
=:
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\
$ac_old_val
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2567 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568 *) ac_arg
=$ac_var=$ac_new_val ;;
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2576 if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2583 ## -------------------- ##
2584 ## Main body of script. ##
2585 ## -------------------- ##
2588 ac_cpp
='$CPP $CPPFLAGS'
2589 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2597 ac_config_headers
="$ac_config_headers config.h"
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2605 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2606 # Check whether --enable-version-specific-runtime-libs was given.
2607 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2608 enableval
=$enable_version_specific_runtime_libs;
2609 case "$enableval" in
2611 *) as_fn_error
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2615 enable_version_specific_runtime_libs
=no
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2620 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2622 # We would like our source tree to be readonly. However when releases or
2623 # pre-releases are generated, the flex/bison generated files as well as the
2624 # various formats of manuals need to be included along with the rest of the
2625 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2628 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2629 # Check whether --enable-generated-files-in-srcdir was given.
2630 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2631 enableval
=$enable_generated_files_in_srcdir;
2632 case "$enableval" in
2634 *) as_fn_error
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2638 enable_generated_files_in_srcdir
=no
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2643 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2644 if test "$enable_generated_files_in_srcdir" = yes; then
2657 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2659 # You will slowly go insane if you do not grok the following fact: when
2660 # building this library, the top-level /target/ becomes the library's /host/.
2662 # configure then causes --target to default to --host, exactly like any
2663 # other package using autoconf. Therefore, 'target' and 'host' will
2664 # always be the same. This makes sense both for native and cross compilers
2665 # just think about it for a little while. :-)
2667 # Also, if this library is being configured as part of a cross compiler, the
2668 # top-level configure script will pass the "real" host as $with_cross_host.
2670 # Do not delete or change the following two lines. For why, see
2671 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2673 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2674 for ac_t
in install-sh
install.sh shtool
; do
2675 if test -f "$ac_dir/$ac_t"; then
2677 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2682 if test -z "$ac_aux_dir"; then
2683 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2686 # These three variables are undocumented and unsupported,
2687 # and are intended to be withdrawn in a future Autoconf release.
2688 # They can cause serious problems if a builder's source tree is in a directory
2689 # whose full name contains unusual characters.
2690 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2691 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2692 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2695 # Make sure we can run config.sub.
2696 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2697 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2700 $as_echo_n "checking build system type... " >&6; }
2701 if test "${ac_cv_build+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2704 ac_build_alias
=$build_alias
2705 test "x$ac_build_alias" = x
&&
2706 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2707 test "x$ac_build_alias" = x
&&
2708 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2709 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2710 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2714 $as_echo "$ac_cv_build" >&6; }
2715 case $ac_cv_build in
2717 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2720 ac_save_IFS
=$IFS; IFS
='-'
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2730 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2734 $as_echo_n "checking host system type... " >&6; }
2735 if test "${ac_cv_host+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2738 if test "x$host_alias" = x
; then
2739 ac_cv_host
=$ac_cv_build
2741 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2742 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2747 $as_echo "$ac_cv_host" >&6; }
2750 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2753 ac_save_IFS
=$IFS; IFS
='-'
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2763 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2767 $as_echo_n "checking target system type... " >&6; }
2768 if test "${ac_cv_target+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2771 if test "x$target_alias" = x
; then
2772 ac_cv_target
=$ac_cv_host
2774 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2775 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2780 $as_echo "$ac_cv_target" >&6; }
2781 case $ac_cv_target in
2783 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2785 target
=$ac_cv_target
2786 ac_save_IFS
=$IFS; IFS
='-'
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2796 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2799 # The aliases save the names the user supplied, while $host etc.
2800 # will get canonicalized.
2801 test -n "$target_alias" &&
2802 test "$program_prefix$program_suffix$program_transform_name" = \
2804 program_prefix
=${target_alias}-
2806 target_alias
=${target_alias-$host_alias}
2808 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2809 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2810 # 1.9.0: minimum required version
2811 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2812 # of other PACKAGE_* variables will, however, and there's nothing
2813 # we can do about that; they come from AC_INIT).
2814 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2815 # file in the top srcdir, etc, etc), so stop complaining.
2816 # no-dist: we don't want 'dist' and related rules.
2817 # -Wall: turns on all automake warnings...
2818 # -Wno-portability: ...except this one, since GNU make is required.
2819 # -Wno-override: ... and this one, since we do want this in testsuite.
2820 am__api_version
='1.11'
2822 # Find a good install program. We prefer a C program (faster),
2823 # so one script is as good as another. But avoid the broken or
2824 # incompatible versions:
2825 # SysV /etc/install, /usr/sbin/install
2826 # SunOS /usr/etc/install
2827 # IRIX /sbin/install
2829 # AmigaOS /C/install, which installs bootblocks on floppy discs
2830 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2831 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2832 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2833 # OS/2's system install, which has a completely different semantic
2834 # ./install, which can be erroneously created by make from ./install.sh.
2835 # Reject install programs that cannot install multiple files.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2837 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2838 if test -z "$INSTALL"; then
2839 if test "${ac_cv_path_install+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
2842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir
=.
2847 # Account for people who put trailing slashes in PATH elements.
2848 case $as_dir/ in #((
2849 .
/ | .
// |
/[cC
]/* | \
2850 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2851 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2854 # OSF1 and SCO ODT 3.0 have their own names for install.
2855 # Don't use installbsd from OSF since it installs stuff as root
2857 for ac_prog
in ginstall scoinst
install; do
2858 for ac_exec_ext
in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2860 if test $ac_prog = install &&
2861 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2862 # AIX install. It has an incompatible calling convention.
2864 elif test $ac_prog = install &&
2865 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2866 # program-specific install script used by HP pwplus--don't use.
2869 rm -rf conftest.one conftest.two conftest.dir
2870 echo one
> conftest.one
2871 echo two
> conftest.two
2873 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2874 test -s conftest.one
&& test -s conftest.two
&&
2875 test -s conftest.dir
/conftest.one
&&
2876 test -s conftest.dir
/conftest.two
2878 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2891 rm -rf conftest.one conftest.two conftest.dir
2894 if test "${ac_cv_path_install+set}" = set; then
2895 INSTALL
=$ac_cv_path_install
2897 # As a last resort, use the slow shell script. Don't cache a
2898 # value for INSTALL within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the value is a relative name.
2901 INSTALL
=$ac_install_sh
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2905 $as_echo "$INSTALL" >&6; }
2907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2908 # It thinks the first close brace ends the variable substitution.
2909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2913 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2916 $as_echo_n "checking whether build environment is sane... " >&6; }
2919 echo timestamp
> conftest.
file
2920 # Reject unsafe characters in $srcdir or the absolute working directory
2921 # name. Accept space and tab only in the latter.
2925 *[\\\"\
#\$\&\'\`$am_lf]*)
2926 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2929 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2930 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2933 # Do `set' in a subshell so we don't clobber the current shell's
2934 # arguments. Must try -L first in case configure is actually a
2935 # symlink; some systems play weird games with the mod time of symlinks
2936 # (eg FreeBSD returns the mod time of the symlink's containing
2939 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2940 if test "$*" = "X"; then
2942 set X
`ls -t "$srcdir/configure" conftest.file`
2945 if test "$*" != "X $srcdir/configure conftest.file" \
2946 && test "$*" != "X conftest.file $srcdir/configure"; then
2948 # If neither matched, then we have a broken ls. This can happen
2949 # if, for instance, CONFIG_SHELL is bash and it inherits a
2950 # broken ls alias from the environment. This has actually
2951 # happened. Such a system could not be considered "sane".
2952 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2953 alias in your environment" "$LINENO" 5
2956 test "$2" = conftest.
file
2962 as_fn_error
"newly created file is older than distributed files!
2963 Check your system clock" "$LINENO" 5
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2966 $as_echo "yes" >&6; }
2967 test "$program_prefix" != NONE
&&
2968 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2969 # Use a double $ so make ignores it.
2970 test "$program_suffix" != NONE
&&
2971 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2972 # Double any \ or $.
2973 # By default was `s,x,x', remove it if useless.
2974 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2975 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2977 # expand $ac_aux_dir to an absolute path
2978 am_aux_dir
=`cd $ac_aux_dir && pwd`
2980 if test x
"${MISSING+set}" != xset
; then
2983 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2985 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2988 # Use eval to expand $SHELL
2989 if eval "$MISSING --run true"; then
2990 am_missing_run
="$MISSING --run "
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2994 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2997 if test x
"${install_sh}" != xset
; then
3000 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3002 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3006 # Installed binaries are usually stripped using `strip' when the user
3007 # run `make install-strip'. However `strip' might not be the right
3008 # tool to use in cross-compilation environments, therefore Automake
3009 # will honor the `STRIP' environment variable to overrule this program.
3010 if test "$cross_compiling" != no
; then
3011 if test -n "$ac_tool_prefix"; then
3012 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3013 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_STRIP+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3019 if test -n "$STRIP"; then
3020 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3026 test -z "$as_dir" && as_dir
=.
3027 for ac_exec_ext
in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 STRIP
=$ac_cv_prog_STRIP
3040 if test -n "$STRIP"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3042 $as_echo "$STRIP" >&6; }
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3050 if test -z "$ac_cv_prog_STRIP"; then
3052 # Extract the first word of "strip", so it can be a program name with args.
3053 set dummy strip
; ac_word
=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3059 if test -n "$ac_ct_STRIP"; then
3060 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3066 test -z "$as_dir" && as_dir
=.
3067 for ac_exec_ext
in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_ac_ct_STRIP
="strip"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3080 if test -n "$ac_ct_STRIP"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3082 $as_echo "$ac_ct_STRIP" >&6; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3088 if test "x$ac_ct_STRIP" = x
; then
3091 case $cross_compiling:$ac_tool_warned in
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3095 ac_tool_warned
=yes ;;
3100 STRIP
="$ac_cv_prog_STRIP"
3104 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3107 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3108 if test -z "$MKDIR_P"; then
3109 if test "${ac_cv_path_mkdir+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
3112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3113 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3116 test -z "$as_dir" && as_dir
=.
3117 for ac_prog
in mkdir gmkdir
; do
3118 for ac_exec_ext
in '' $ac_executable_extensions; do
3119 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3120 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3121 'mkdir (GNU coreutils) '* | \
3122 'mkdir (coreutils) '* | \
3123 'mkdir (fileutils) '4.1*)
3124 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3134 if test "${ac_cv_path_mkdir+set}" = set; then
3135 MKDIR_P
="$ac_cv_path_mkdir -p"
3137 # As a last resort, use the slow shell script. Don't cache a
3138 # value for MKDIR_P within a source directory, because that will
3139 # break other packages using the cache if that directory is
3140 # removed, or if the value is a relative name.
3141 test -d .
/--version && rmdir .
/--version
3142 MKDIR_P
="$ac_install_sh -d"
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3146 $as_echo "$MKDIR_P" >&6; }
3150 [\\/$
]* | ?
:[\\/]*) ;;
3151 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3154 for ac_prog
in gawk mawk nawk
awk
3156 # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy
$ac_prog; ac_word
=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_AWK+set}" = set; then :
3161 $as_echo_n "(cached) " >&6
3163 if test -n "$AWK"; then
3164 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir
=.
3171 for ac_exec_ext
in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_AWK
="$ac_prog"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 if test -n "$AWK"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3186 $as_echo "$AWK" >&6; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3193 test -n "$AWK" && break
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3197 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3199 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3200 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3201 $as_echo_n "(cached) " >&6
3203 cat >conftest.
make <<\_ACEOF
3206 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3209 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3211 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3213 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3217 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219 $as_echo "yes" >&6; }
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 SET_MAKE
="MAKE=${MAKE-make}"
3227 rm -rf .tst
2>/dev
/null
3228 mkdir .tst
2>/dev
/null
3229 if test -d .tst
; then
3234 rmdir .tst
2>/dev
/null
3236 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3237 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3238 # is not polluted with repeated "-I."
3239 am__isrc
=' -I$(srcdir)'
3240 # test to see if srcdir already configured
3241 if test -f $srcdir/config.status
; then
3242 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3246 # test whether we have cygpath
3247 if test -z "$CYGPATH_W"; then
3248 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3249 CYGPATH_W
='cygpath -w'
3256 # Define the identity of the package.
3261 cat >>confdefs.h
<<_ACEOF
3262 #define PACKAGE "$PACKAGE"
3266 cat >>confdefs.h
<<_ACEOF
3267 #define VERSION "$VERSION"
3270 # Some tools Automake needs.
3272 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3275 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3278 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3281 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3284 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3286 # We need awk for the "check" target. The system "awk" is bad on
3288 # Always define AMTAR for backward compatibility.
3290 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3292 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3298 # Default to --enable-multilib
3299 # Check whether --enable-multilib was given.
3300 if test "${enable_multilib+set}" = set; then :
3301 enableval
=$enable_multilib; case "$enableval" in
3302 yes) multilib
=yes ;;
3304 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3311 # We may get other options which we leave undocumented:
3312 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3313 # See config-ml.in if you want the gory details.
3315 if test "$srcdir" = "."; then
3316 if test "$with_target_subdir" != "."; then
3317 multi_basedir
="$srcdir/$with_multisrctop../.."
3319 multi_basedir
="$srcdir/$with_multisrctop.."
3322 multi_basedir
="$srcdir/.."
3326 # Even if the default multilib is not a cross compilation,
3327 # it may be that some of the other multilibs are.
3328 if test $cross_compiling = no
&& test $multilib = yes \
3329 && test "x${with_multisubdir}" != x
; then
3330 cross_compiling
=maybe
3333 ac_config_commands
="$ac_config_commands default-1"
3336 # Calculate toolexeclibdir
3337 # Also toolexecdir, though it's only used in toolexeclibdir
3338 case ${enable_version_specific_runtime_libs} in
3340 # Need the gcc compiler version to know where to install libraries
3341 # and header files if --enable-version-specific-runtime-libs option
3343 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3344 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3347 if test -n "$with_cross_host" &&
3348 test x
"$with_cross_host" != x
"no"; then
3349 # Install a library built with a cross compiler in tooldir, not libdir.
3350 toolexecdir
='$(exec_prefix)/$(target_alias)'
3351 toolexeclibdir
='$(toolexecdir)/lib'
3353 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3354 toolexeclibdir
='$(libdir)'
3356 multi_os_directory
=`$CC -print-multi-os-directory`
3357 case $multi_os_directory in
3358 .
) ;; # Avoid trailing /.
3359 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3366 # Check the compiler.
3367 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3368 # We must force CC to /not/ be precious variables; otherwise
3369 # the wrong, non-multilib-adjusted value will be used in multilibs.
3370 # As a side effect, we have to subst CFLAGS ourselves.
3375 ac_cpp
='$CPP $CPPFLAGS'
3376 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3381 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then :
3385 $as_echo_n "(cached) " >&6
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC
="$CC" # Let the user override the test.
3390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir
=.
3395 for ac_exec_ext
in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3418 if test -z "$ac_cv_prog_CC"; then
3420 # Extract the first word of "gcc", so it can be a program name with args.
3421 set dummy gcc
; ac_word
=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 if test -n "$ac_ct_CC"; then
3428 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir
=.
3435 for ac_exec_ext
in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_ac_ct_CC
="gcc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3456 if test "x$ac_ct_CC" = x
; then
3459 case $cross_compiling:$ac_tool_warned in
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned
=yes ;;
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if test "${ac_cv_prog_CC+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC
="$CC" # Let the user override the test.
3483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir
=.
3488 for ac_exec_ext
in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3512 if test -z "$CC"; then
3513 # Extract the first word of "cc", so it can be a program name with args.
3514 set dummy cc
; ac_word
=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if test "${ac_cv_prog_CC+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC
="$CC" # Let the user override the test.
3524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir
=.
3529 for ac_exec_ext
in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3532 ac_prog_rejected
=yes
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 if test $ac_prog_rejected = yes; then
3544 # We found a bogon in the path, so make sure we never use it.
3545 set dummy
$ac_cv_prog_CC
3547 if test $# != 0; then
3548 # We chose a different compiler from the bogus one.
3549 # However, it has the same basename, so the bogon will be chosen
3550 # first if we set CC to just the basename; use the full file name.
3552 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3558 if test -n "$CC"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3568 if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 for ac_prog
in cl.exe
3572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if test "${ac_cv_prog_CC+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC
="$CC" # Let the user override the test.
3582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir
=.
3587 for ac_exec_ext
in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3609 test -n "$CC" && break
3612 if test -z "$CC"; then
3614 for ac_prog
in cl.exe
3616 # Extract the first word of "$ac_prog", so it can be a program name with args.
3617 set dummy
$ac_prog; ac_word
=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3623 if test -n "$ac_ct_CC"; then
3624 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir
=.
3631 for ac_exec_ext
in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633 ac_cv_prog_ac_ct_CC
="$ac_prog"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3644 if test -n "$ac_ct_CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646 $as_echo "$ac_ct_CC" >&6; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3653 test -n "$ac_ct_CC" && break
3656 if test "x$ac_ct_CC" = x
; then
3659 case $cross_compiling:$ac_tool_warned in
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663 ac_tool_warned
=yes ;;
3672 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error
"no acceptable C compiler found in \$PATH
3675 See \`config.log' for more details." "$LINENO" 5; }
3677 # Provide some information about the compiler.
3678 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3681 for ac_option
in --version -v -V -qversion; do
3682 { { ac_try
="$ac_compiler $ac_option >&5"
3684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3691 if test -s conftest.err; then
3693 ... rest of stderr output deleted ...
3694 10q' conftest.err >conftest.er1
3695 cat conftest.er1 >&5
3696 rm -f conftest.er1 conftest.err
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3713 ac_clean_files_save=$ac_clean_files
3714 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3715 # Try to create an executable without -o first, disregard a.out.
3716 # It will help us diagnose broken compilers, and finding out an intuition
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3719 $as_echo_n "checking for C compiler default output file name... " >&6; }
3720 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3722 # The possible output files:
3723 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3726 for ac_file in $ac_files
3729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3730 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3735 if { { ac_try="$ac_link_default"
3737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3738 *) ac_try_echo
=$ac_try;;
3740 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_link_default") 2>&5
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }; then :
3746 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3747 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3748 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3749 # so that the user can short-circuit this test for compilers unknown to
3751 for ac_file
in $ac_files ''
3753 test -f "$ac_file" ||
continue
3755 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3758 # We found the default executable, but exeext='' is most
3762 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3764 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3766 # We set ac_cv_exeext here because the later test for it is not
3767 # safe: cross compilers may not add the suffix if given an `-o'
3768 # argument, so we may need to know it at that point already.
3769 # Even if this section looks crufty: it has the advantage of
3776 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3782 $as_echo "$ac_file" >&6; }
3783 if test -z "$ac_file"; then :
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.
$ac_ext >&5
3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 { as_fn_set_status
77
3790 as_fn_error
"C compiler cannot create executables
3791 See \`config.log' for more details." "$LINENO" 5; }; }
3793 ac_exeext
=$ac_cv_exeext
3795 # Check that the compiler produces executables we can run. If not, either
3796 # the compiler is broken, or we cross compile.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 # If not cross compiling, check that we can run a simple program.
3800 if test "$cross_compiling" != yes; then
3801 if { ac_try
='./$ac_file'
3802 { { case "(($ac_try" in
3803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_try") 2>&5
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; }; then
3814 if test "$cross_compiling" = maybe; then
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error "cannot run C compiled programs.
3820 If you meant to cross compile
, use \
`--host'.
3821 See \`config.log
' for more details." "$LINENO" 5; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3826 $as_echo "yes" >&6; }
3828 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3829 ac_clean_files=$ac_clean_files_save
3830 # Check that the compiler produces executables we can run. If not, either
3831 # the compiler is broken, or we cross compile.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3833 $as_echo_n "checking whether we are cross compiling... " >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3835 $as_echo "$cross_compiling" >&6; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3838 $as_echo_n "checking for suffix of executables... " >&6; }
3839 if { { ac_try="$ac_link"
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_link") 2>&5
3848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }; then :
3850 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3851 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3852 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3854 for ac_file
in conftest.exe conftest conftest.
*; do
3855 test -f "$ac_file" ||
continue
3857 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3858 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3867 See \`config.log' for more details." "$LINENO" 5; }
3869 rm -f conftest
$ac_cv_exeext
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3871 $as_echo "$ac_cv_exeext" >&6; }
3873 rm -f conftest.
$ac_ext
3874 EXEEXT
=$ac_cv_exeext
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3877 $as_echo_n "checking for suffix of object files... " >&6; }
3878 if test "${ac_cv_objext+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3892 rm -f conftest.o conftest.obj
3893 if { { ac_try
="$ac_compile"
3895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_compile") 2>&5
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 for ac_file in conftest.o conftest.obj conftest.*; do
3905 test -f "$ac_file" || continue;
3907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3913 $as_echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 as_fn_error "cannot compute suffix of object files
: cannot compile
3919 See \
`config.log' for more details." "$LINENO" 5; }
3921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3924 $as_echo "$ac_cv_objext" >&6; }
3925 OBJEXT=$ac_cv_objext
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3928 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3929 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3946 if ac_fn_c_try_compile "$LINENO"; then :
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3956 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3957 if test $ac_compiler_gnu = yes; then
3962 ac_test_CFLAGS=${CFLAGS+set}
3963 ac_save_CFLAGS=$CFLAGS
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3965 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3966 if test "${ac_cv_prog_cc_g+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3969 ac_save_c_werror_flag=$ac_c_werror_flag
3970 ac_c_werror_flag=yes
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3984 if ac_fn_c_try_compile "$LINENO"; then :
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3999 if ac_fn_c_try_compile "$LINENO"; then :
4002 ac_c_werror_flag=$ac_save_c_werror_flag
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4015 if ac_fn_c_try_compile "$LINENO"; then :
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4026 $as_echo "$ac_cv_prog_cc_g" >&6; }
4027 if test "$ac_test_CFLAGS" = set; then
4028 CFLAGS=$ac_save_CFLAGS
4029 elif test $ac_cv_prog_cc_g = yes; then
4030 if test "$GCC" = yes; then
4036 if test "$GCC" = yes; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4043 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4044 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 ac_cv_prog_cc_c89=no
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4053 #include <sys/types.h>
4054 #include <sys/stat.h>
4055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4056 struct buf { int x; };
4057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4058 static char *e (p, i)
4064 static char *f (char * (*g) (char **, int), char **p, ...)
4069 s = g (p, va_arg (v,int));
4074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4075 function prototypes and stuff, but not '\xHH' hex character constants.
4076 These don't provoke an error unfortunately, instead are silently treated
4077 as 'x'. The following induces an error, until -std is added to get
4078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4079 array size at least. It's necessary to write '\x00'==0 to get something
4080 that's true only with -std. */
4081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4083 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4084 inside strings and character constants. */
4086 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4088 int test (int i, double x);
4089 struct s1 {int (*f) (int a);};
4090 struct s2 {int (*f) (double a);};
4091 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4097 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4105 CC="$ac_save_CC $ac_arg"
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_cv_prog_cc_c89=$ac_arg
4109 rm -f core conftest.err conftest.$ac_objext
4110 test "x$ac_cv_prog_cc_c89" != "xno" && break
4112 rm -f conftest.$ac_ext
4117 case "x$ac_cv_prog_cc_c89" in
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4120 $as_echo "none needed" >&6; } ;;
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4123 $as_echo "unsupported" >&6; } ;;
4125 CC="$CC $ac_cv_prog_cc_c89"
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4127 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4129 if test "x$ac_cv_prog_cc_c89" != xno; then :
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138 DEPDIR="${am__leading_dot}deps"
4140 ac_config_commands="$ac_config_commands depfiles"
4143 am_make=${MAKE-make}
4144 cat > confinc << 'END'
4146 @echo this is the am__doit target
4149 # If we don't find an include directive, just comment out the code.
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4151 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4155 # First try GNU make style include.
4156 echo "include confinc" > confmf
4157 # Ignore all kinds of additional output from `make'.
4158 case `$am_make -s -f confmf 2> /dev/null` in #(
4159 *the\ am__doit\ target*)
4165 # Now try BSD make style include.
4166 if test "$am__include" = "#"; then
4167 echo '.include
"confinc"' > confmf
4168 case `$am_make -s -f confmf 2> /dev/null` in #(
4169 *the\ am__doit\ target*)
4170 am__include=.include
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4179 $as_echo "$_am_result" >&6; }
4180 rm -f confinc confmf
4182 # Check whether --enable-dependency-tracking was given.
4183 if test "${enable_dependency_tracking+set}" = set; then :
4184 enableval=$enable_dependency_tracking;
4187 if test "x$enable_dependency_tracking" != xno; then
4188 am_depcomp="$ac_aux_dir/depcomp"
4191 if test "x$enable_dependency_tracking" != xno
; then
4201 depcc
="$CC" am_compiler_list
=
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4204 $as_echo_n "checking dependency style of $depcc... " >&6; }
4205 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4209 # We make a subdir and do the tests there. Otherwise we can end up
4210 # making bogus files that we don't know about and never remove. For
4211 # instance it was reported that on HP-UX the gcc test will end up
4212 # making a dummy file named `D' -- because `-MD' means `put the output
4215 # Copy depcomp to subdir because otherwise we won't find it if we're
4216 # using a relative directory.
4217 cp "$am_depcomp" conftest.dir
4219 # We will build objects and dependencies in a subdirectory because
4220 # it helps to detect inapplicable dependency modes. For instance
4221 # both Tru64's cc and ICC support -MD to output dependencies as a
4222 # side effect of compilation, but ICC will put the dependencies in
4223 # the current directory while Tru64 will put them in the object
4227 am_cv_CC_dependencies_compiler_type
=none
4228 if test "$am_compiler_list" = ""; then
4229 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4232 case " $depcc " in #(
4233 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4236 for depmode
in $am_compiler_list; do
4237 # Setup a source with many dependencies, because some compilers
4238 # like to wrap large dependency lists on column 80 (with \), and
4239 # we should not choose a depcomp mode which is confused by this.
4241 # We need to recreate these files for each test, as the compiler may
4242 # overwrite some of them when testing with obscure command lines.
4243 # This happens at least with the AIX C compiler.
4245 for i
in 1 2 3 4 5 6; do
4246 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4247 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4248 # Solaris 8's {/usr,}/bin/sh.
4249 touch sub
/conftst
$i.h
4251 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4253 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4254 # mode. It turns out that the SunPro C++ compiler does not properly
4255 # handle `-M -o', and we need to detect this. Also, some Intel
4256 # versions had trouble with output in subdirs
4257 am__obj
=sub
/conftest.
${OBJEXT-o}
4258 am__minus_obj
="-o $am__obj"
4261 # This depmode causes a compiler race in universal mode.
4262 test "$am__universal" = false ||
continue
4265 # after this tag, mechanisms are not by side-effect, so they'll
4266 # only be used when explicitly requested
4267 if test "x$enable_dependency_tracking" = xyes
; then
4273 msvisualcpp | msvcmsys
)
4274 # This compiler won't grok `-c -o', but also, the minuso test has
4275 # not run yet. These depmodes are late enough in the game, and
4276 # so weak that their functioning should not be impacted.
4277 am__obj
=conftest.
${OBJEXT-o}
4282 if depmode
=$depmode \
4283 source=sub
/conftest.c object
=$am__obj \
4284 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4285 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4286 >/dev
/null
2>conftest.err
&&
4287 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4288 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4289 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4290 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4291 # icc doesn't choke on unknown options, it will just issue warnings
4292 # or remarks (even with -Werror). So we grep stderr for any message
4293 # that says an option was ignored or not supported.
4294 # When given -MP, icc 7.0 and 7.1 complain thusly:
4295 # icc: Command line warning: ignoring option '-M'; no argument required
4296 # The diagnosis changed in icc 8.0:
4297 # icc: Command line remark: option '-MP' not supported
4298 if (grep 'ignoring option' conftest.err ||
4299 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4300 am_cv_CC_dependencies_compiler_type
=$depmode
4309 am_cv_CC_dependencies_compiler_type
=none
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4314 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4315 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4318 test "x$enable_dependency_tracking" != xno \
4319 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4321 am__fastdepCC_FALSE
='#'
4323 am__fastdepCC_TRUE
='#'
4324 am__fastdepCC_FALSE
=
4332 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4333 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4334 # in both places for now and restore CFLAGS at the end of config.
4335 save_CFLAGS
="$CFLAGS"
4337 # Add -Wall -Werror if we are using GCC.
4338 if test "x$GCC" = "xyes"; then
4339 XCFLAGS
="$XCFLAGS -Wall -Werror"
4342 # Find other programs we need.
4343 if test -n "$ac_tool_prefix"; then
4344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4345 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if test "${ac_cv_prog_AR+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4351 if test -n "$AR"; then
4352 ac_cv_prog_AR
="$AR" # Let the user override the test.
4354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir
=.
4359 for ac_exec_ext
in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4361 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 if test -n "$AR"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4374 $as_echo "$AR" >&6; }
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4382 if test -z "$ac_cv_prog_AR"; then
4384 # Extract the first word of "ar", so it can be a program name with args.
4385 set dummy
ar; ac_word
=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
4391 if test -n "$ac_ct_AR"; then
4392 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir
=.
4399 for ac_exec_ext
in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_ac_ct_AR
="ar"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4412 if test -n "$ac_ct_AR"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4414 $as_echo "$ac_ct_AR" >&6; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4420 if test "x$ac_ct_AR" = x
; then
4423 case $cross_compiling:$ac_tool_warned in
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4427 ac_tool_warned
=yes ;;
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4437 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4443 if test -n "$RANLIB"; then
4444 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir
=.
4451 for ac_exec_ext
in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 RANLIB
=$ac_cv_prog_RANLIB
4464 if test -n "$RANLIB"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4466 $as_echo "$RANLIB" >&6; }
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4474 if test -z "$ac_cv_prog_RANLIB"; then
4475 ac_ct_RANLIB
=$RANLIB
4476 # Extract the first word of "ranlib", so it can be a program name with args.
4477 set dummy ranlib
; ac_word
=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4483 if test -n "$ac_ct_RANLIB"; then
4484 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4490 test -z "$as_dir" && as_dir
=.
4491 for ac_exec_ext
in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4504 if test -n "$ac_ct_RANLIB"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4506 $as_echo "$ac_ct_RANLIB" >&6; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4512 if test "x$ac_ct_RANLIB" = x
; then
4513 RANLIB
="ranlib-not-found-in-path-error"
4515 case $cross_compiling:$ac_tool_warned in
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4519 ac_tool_warned
=yes ;;
4521 RANLIB
=$ac_ct_RANLIB
4524 RANLIB
="$ac_cv_prog_RANLIB"
4527 # Extract the first word of "perl", so it can be a program name with args.
4528 set dummy perl
; ac_word
=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_path_PERL+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4536 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
4539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir
=.
4544 for ac_exec_ext
in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl-not-found-in-path-error"
4558 PERL
=$ac_cv_path_PERL
4559 if test -n "$PERL"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4561 $as_echo "$PERL" >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4569 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4571 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4572 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4573 $as_echo_n "(cached) " >&6
4575 cat >conftest.
make <<\_ACEOF
4578 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4583 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4585 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4589 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4591 $as_echo "yes" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 SET_MAKE
="MAKE=${MAKE-make}"
4601 # See if makeinfo has been installed and is modern enough
4602 # that we can use it.
4604 # Extract the first word of "makeinfo", so it can be a program name with args.
4605 set dummy makeinfo
; ac_word
=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4611 if test -n "$MAKEINFO"; then
4612 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir
=.
4619 for ac_exec_ext
in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_MAKEINFO
="makeinfo"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 MAKEINFO
=$ac_cv_prog_MAKEINFO
4632 if test -n "$MAKEINFO"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4634 $as_echo "$MAKEINFO" >&6; }
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4641 if test -n "$MAKEINFO"; then
4642 # Found it, now check the version.
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4644 $as_echo_n "checking for modern makeinfo... " >&6; }
4645 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4648 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
4649 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4651 case $ac_prog_version in
4652 '') gcc_cv_prog_makeinfo_modern
=no
;;
4653 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
4654 *) gcc_cv_prog_makeinfo_modern
=no
;;
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4659 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4661 gcc_cv_prog_makeinfo_modern
=no
4663 if test $gcc_cv_prog_makeinfo_modern = no
; then
4664 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4667 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4669 BUILD_INFO_FALSE
='#'
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4681 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4686 macro_version
='2.2.7a'
4687 macro_revision
='1.3134'
4701 ltmain
="$ac_aux_dir/ltmain.sh"
4703 # Backslashify metacharacters that are still active within
4704 # double-quoted strings.
4705 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4707 # Same as above, but do not quote variable references.
4708 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4710 # Sed substitution to delay expansion of an escaped shell variable in a
4711 # double_quote_subst'ed string.
4712 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4714 # Sed substitution to delay expansion of an escaped single quote.
4715 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4717 # Sed substitution to avoid accidental globbing in evaled expressions
4718 no_glob_subst
='s/\*/\\\*/g'
4720 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4725 $as_echo_n "checking how to print strings... " >&6; }
4726 # Test print first, because it will be a builtin if present.
4727 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4728 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4730 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4733 # Use this function as a fallback that always works.
4734 func_fallback_echo ()
4736 eval 'cat <<_LTECHO_EOF
4740 ECHO='func_fallback_echo
'
4743 # func_echo_all arg...
4744 # Invoke $ECHO with all args, space-separated.
4751 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4752 $as_echo "printf" >&6; } ;;
4753 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4754 $as_echo "print -r" >&6; } ;;
4755 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4756 $as_echo "cat" >&6; } ;;
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4773 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4774 if test "${ac_cv_path_SED+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4777 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4778 for ac_i in 1 2 3 4 5 6 7; do
4779 ac_script="$ac_script$as_nl$ac_script"
4781 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4782 { ac_script=; unset ac_script;}
4783 if test -z "$SED"; then
4784 ac_path_SED_found=false
4785 # Loop through the user's path and
test for each of PROGNAME-LIST
4786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir
=.
4791 for ac_prog
in sed gsed
; do
4792 for ac_exec_ext
in '' $ac_executable_extensions; do
4793 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4794 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4795 # Check for GNU ac_path_SED and select it if it is found.
4796 # Check for GNU $ac_path_SED
4797 case `"$ac_path_SED" --version 2>&1` in
4799 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4802 $as_echo_n 0123456789 >"conftest.in"
4805 cat "conftest.in" "conftest.in" >"conftest.tmp"
4806 mv "conftest.tmp" "conftest.in"
4807 cp "conftest.in" "conftest.nl"
4808 $as_echo '' >> "conftest.nl"
4809 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4810 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4811 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4812 if test $ac_count -gt ${ac_path_SED_max-0}; then
4813 # Best one so far, save it but keep looking for a better one
4814 ac_cv_path_SED
="$ac_path_SED"
4815 ac_path_SED_max
=$ac_count
4817 # 10*(2^10) chars as input seems more than enough
4818 test $ac_count -gt 10 && break
4820 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4823 $ac_path_SED_found && break 3
4828 if test -z "$ac_cv_path_SED"; then
4829 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4837 $as_echo "$ac_cv_path_SED" >&6; }
4838 SED
="$ac_cv_path_SED"
4841 test -z "$SED" && SED
=sed
4842 Xsed
="$SED -e 1s/^X//"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4855 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4856 if test "${ac_cv_path_GREP+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4859 if test -z "$GREP"; then
4860 ac_path_GREP_found
=false
4861 # Loop through the user's path and test for each of PROGNAME-LIST
4862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4863 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4866 test -z "$as_dir" && as_dir
=.
4867 for ac_prog
in grep ggrep
; do
4868 for ac_exec_ext
in '' $ac_executable_extensions; do
4869 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4870 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4871 # Check for GNU ac_path_GREP and select it if it is found.
4872 # Check for GNU $ac_path_GREP
4873 case `"$ac_path_GREP" --version 2>&1` in
4875 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4878 $as_echo_n 0123456789 >"conftest.in"
4881 cat "conftest.in" "conftest.in" >"conftest.tmp"
4882 mv "conftest.tmp" "conftest.in"
4883 cp "conftest.in" "conftest.nl"
4884 $as_echo 'GREP' >> "conftest.nl"
4885 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4886 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4887 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4888 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4889 # Best one so far, save it but keep looking for a better one
4890 ac_cv_path_GREP
="$ac_path_GREP"
4891 ac_path_GREP_max
=$ac_count
4893 # 10*(2^10) chars as input seems more than enough
4894 test $ac_count -gt 10 && break
4896 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4899 $ac_path_GREP_found && break 3
4904 if test -z "$ac_cv_path_GREP"; then
4905 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4908 ac_cv_path_GREP
=$GREP
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4913 $as_echo "$ac_cv_path_GREP" >&6; }
4914 GREP
="$ac_cv_path_GREP"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4918 $as_echo_n "checking for egrep... " >&6; }
4919 if test "${ac_cv_path_EGREP+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4923 then ac_cv_path_EGREP
="$GREP -E"
4925 if test -z "$EGREP"; then
4926 ac_path_EGREP_found
=false
4927 # Loop through the user's path and test for each of PROGNAME-LIST
4928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4929 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4932 test -z "$as_dir" && as_dir
=.
4933 for ac_prog
in egrep; do
4934 for ac_exec_ext
in '' $ac_executable_extensions; do
4935 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4936 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4937 # Check for GNU ac_path_EGREP and select it if it is found.
4938 # Check for GNU $ac_path_EGREP
4939 case `"$ac_path_EGREP" --version 2>&1` in
4941 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4944 $as_echo_n 0123456789 >"conftest.in"
4947 cat "conftest.in" "conftest.in" >"conftest.tmp"
4948 mv "conftest.tmp" "conftest.in"
4949 cp "conftest.in" "conftest.nl"
4950 $as_echo 'EGREP' >> "conftest.nl"
4951 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4952 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4953 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4954 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4955 # Best one so far, save it but keep looking for a better one
4956 ac_cv_path_EGREP
="$ac_path_EGREP"
4957 ac_path_EGREP_max
=$ac_count
4959 # 10*(2^10) chars as input seems more than enough
4960 test $ac_count -gt 10 && break
4962 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4965 $ac_path_EGREP_found && break 3
4970 if test -z "$ac_cv_path_EGREP"; then
4971 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4974 ac_cv_path_EGREP
=$EGREP
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4980 $as_echo "$ac_cv_path_EGREP" >&6; }
4981 EGREP
="$ac_cv_path_EGREP"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4985 $as_echo_n "checking for fgrep... " >&6; }
4986 if test "${ac_cv_path_FGREP+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4989 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4990 then ac_cv_path_FGREP
="$GREP -F"
4992 if test -z "$FGREP"; then
4993 ac_path_FGREP_found
=false
4994 # Loop through the user's path and test for each of PROGNAME-LIST
4995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4996 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4999 test -z "$as_dir" && as_dir
=.
5000 for ac_prog
in fgrep
; do
5001 for ac_exec_ext
in '' $ac_executable_extensions; do
5002 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5003 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
5004 # Check for GNU ac_path_FGREP and select it if it is found.
5005 # Check for GNU $ac_path_FGREP
5006 case `"$ac_path_FGREP" --version 2>&1` in
5008 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5011 $as_echo_n 0123456789 >"conftest.in"
5014 cat "conftest.in" "conftest.in" >"conftest.tmp"
5015 mv "conftest.tmp" "conftest.in"
5016 cp "conftest.in" "conftest.nl"
5017 $as_echo 'FGREP' >> "conftest.nl"
5018 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5019 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5020 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5021 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5022 # Best one so far, save it but keep looking for a better one
5023 ac_cv_path_FGREP
="$ac_path_FGREP"
5024 ac_path_FGREP_max
=$ac_count
5026 # 10*(2^10) chars as input seems more than enough
5027 test $ac_count -gt 10 && break
5029 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5032 $ac_path_FGREP_found && break 3
5037 if test -z "$ac_cv_path_FGREP"; then
5038 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041 ac_cv_path_FGREP
=$FGREP
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5047 $as_echo "$ac_cv_path_FGREP" >&6; }
5048 FGREP
="$ac_cv_path_FGREP"
5051 test -z "$GREP" && GREP
=grep
5071 # Check whether --with-gnu-ld was given.
5072 if test "${with_gnu_ld+set}" = set; then :
5073 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5079 if test "$GCC" = yes; then
5080 # Check if gcc -print-prog-name=ld gives a path.
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5082 $as_echo_n "checking for ld used by $CC... " >&6; }
5085 # gcc leaves a trailing carriage return which upsets mingw
5086 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5088 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5091 # Accept absolute paths.
5093 re_direlt
='/[^/][^/]*/\.\./'
5094 # Canonicalize the pathname of ld
5095 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5096 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5097 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5099 test -z "$LD" && LD
="$ac_prog"
5102 # If it fails, then pretend we aren't using GCC.
5106 # If it is relative, then search for the first ld in PATH.
5110 elif test "$with_gnu_ld" = yes; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5112 $as_echo_n "checking for GNU ld... " >&6; }
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5115 $as_echo_n "checking for non-GNU ld... " >&6; }
5117 if test "${lt_cv_path_LD+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5120 if test -z "$LD"; then
5121 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5122 for ac_dir
in $PATH; do
5124 test -z "$ac_dir" && ac_dir
=.
5125 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5126 lt_cv_path_LD
="$ac_dir/$ac_prog"
5127 # Check to see if the program is GNU ld. I'd rather use --version,
5128 # but apparently some variants of GNU ld only accept -v.
5129 # Break only if it was the GNU/non-GNU ld that we prefer.
5130 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5131 *GNU
* |
*'with BFD'*)
5132 test "$with_gnu_ld" != no
&& break
5135 test "$with_gnu_ld" != yes && break
5142 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5147 if test -n "$LD"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5149 $as_echo "$LD" >&6; }
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5154 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5156 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5157 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5160 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5161 case `$LD -v 2>&1 </dev/null` in
5162 *GNU
* |
*'with BFD'*)
5163 lt_cv_prog_gnu_ld
=yes
5166 lt_cv_prog_gnu_ld
=no
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5171 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5172 with_gnu_ld
=$lt_cv_prog_gnu_ld
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5183 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5184 if test "${lt_cv_path_NM+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5187 if test -n "$NM"; then
5188 # Let the user override the test.
5191 lt_nm_to_check
="${ac_tool_prefix}nm"
5192 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5193 lt_nm_to_check
="$lt_nm_to_check nm"
5195 for lt_tmp_nm
in $lt_nm_to_check; do
5196 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5197 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5199 test -z "$ac_dir" && ac_dir
=.
5200 tmp_nm
="$ac_dir/$lt_tmp_nm"
5201 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5202 # Check to see if the nm accepts a BSD-compat flag.
5203 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5204 # nm: unknown option "B" ignored
5205 # Tru64's nm complains that /dev/null is an invalid object file
5206 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5207 */dev
/null
* |
*'Invalid file or object type'*)
5208 lt_cv_path_NM
="$tmp_nm -B"
5212 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5214 lt_cv_path_NM
="$tmp_nm -p"
5218 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5219 continue # so that we can try to find one that supports BSD flags
5228 : ${lt_cv_path_NM=no}
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5232 $as_echo "$lt_cv_path_NM" >&6; }
5233 if test "$lt_cv_path_NM" != "no"; then
5236 # Didn't find any BSD compatible name lister, look for dumpbin.
5237 if test -n "$DUMPBIN"; then :
5238 # Let the user override the test.
5240 if test -n "$ac_tool_prefix"; then
5241 for ac_prog
in dumpbin
"link -dump"
5243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5244 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5250 if test -n "$DUMPBIN"; then
5251 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5257 test -z "$as_dir" && as_dir
=.
5258 for ac_exec_ext
in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 DUMPBIN
=$ac_cv_prog_DUMPBIN
5271 if test -n "$DUMPBIN"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5273 $as_echo "$DUMPBIN" >&6; }
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5280 test -n "$DUMPBIN" && break
5283 if test -z "$DUMPBIN"; then
5284 ac_ct_DUMPBIN
=$DUMPBIN
5285 for ac_prog
in dumpbin
"link -dump"
5287 # Extract the first word of "$ac_prog", so it can be a program name with args.
5288 set dummy
$ac_prog; ac_word
=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5294 if test -n "$ac_ct_DUMPBIN"; then
5295 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5301 test -z "$as_dir" && as_dir
=.
5302 for ac_exec_ext
in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5315 if test -n "$ac_ct_DUMPBIN"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5317 $as_echo "$ac_ct_DUMPBIN" >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5324 test -n "$ac_ct_DUMPBIN" && break
5327 if test "x$ac_ct_DUMPBIN" = x
; then
5330 case $cross_compiling:$ac_tool_warned in
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5334 ac_tool_warned
=yes ;;
5336 DUMPBIN
=$ac_ct_DUMPBIN
5340 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5342 DUMPBIN
="$DUMPBIN -symbols"
5350 if test "$DUMPBIN" != ":"; then
5354 test -z "$NM" && NM
=nm
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5362 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5363 if test "${lt_cv_nm_interface+set}" = set; then :
5364 $as_echo_n "(cached) " >&6
5366 lt_cv_nm_interface
="BSD nm"
5367 echo "int some_variable = 0;" > conftest.
$ac_ext
5368 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5369 (eval "$ac_compile" 2>conftest.err
)
5370 cat conftest.err
>&5
5371 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5372 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5373 cat conftest.err
>&5
5374 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5375 cat conftest.out
>&5
5376 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5377 lt_cv_nm_interface
="MS dumpbin"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5382 $as_echo "$lt_cv_nm_interface" >&6; }
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5385 $as_echo_n "checking whether ln -s works... " >&6; }
5387 if test "$LN_S" = "ln -s"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5389 $as_echo "yes" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5392 $as_echo "no, using $LN_S" >&6; }
5395 # find the maximum length of command line arguments
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5397 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5398 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5406 # On DJGPP, this test can blow up pretty badly due to problems in libc
5407 # (any single argument exceeding 2000 bytes causes a buffer overrun
5408 # during glob expansion). Even if it were fixed, the result of this
5409 # check would be larger than it should be.
5410 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5414 # Under GNU Hurd, this test is not required because there is
5415 # no limit to the length of command line arguments.
5416 # Libtool will interpret -1 as no limit whatsoever
5417 lt_cv_sys_max_cmd_len
=-1;
5420 cygwin
* | mingw
* | cegcc
*)
5421 # On Win9x/ME, this test blows up -- it succeeds, but takes
5422 # about 5 minutes as the teststring grows exponentially.
5423 # Worse, since 9x/ME are not pre-emptively multitasking,
5424 # you end up with a "frozen" computer, even though with patience
5425 # the test eventually succeeds (with a max line length of 256k).
5426 # Instead, let's just punt: use the minimum linelength reported by
5427 # all of the supported platforms: 8192 (on NT/2K/XP).
5428 lt_cv_sys_max_cmd_len
=8192;
5432 # On MiNT this can take a long time and run out of memory.
5433 lt_cv_sys_max_cmd_len
=8192;
5437 # On AmigaOS with pdksh, this test takes hours, literally.
5438 # So we just punt and use a minimum line length of 8192.
5439 lt_cv_sys_max_cmd_len
=8192;
5442 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5443 # This has been around since 386BSD, at least. Likely further.
5444 if test -x /sbin
/sysctl
; then
5445 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5446 elif test -x /usr
/sbin
/sysctl
; then
5447 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5449 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5451 # And add a safety zone
5452 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5453 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5457 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5458 lt_cv_sys_max_cmd_len
=196608
5462 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5463 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5464 # nice to cause kernel panics so lets avoid the loop below.
5465 # First set a reasonable default.
5466 lt_cv_sys_max_cmd_len
=16384
5468 if test -x /sbin
/sysconfig
; then
5469 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5470 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5475 lt_cv_sys_max_cmd_len
=102400
5477 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5478 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5479 if test -n "$kargmax"; then
5480 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5482 lt_cv_sys_max_cmd_len
=32768
5486 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5487 if test -n "$lt_cv_sys_max_cmd_len"; then
5488 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5489 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5491 # Make teststring a little bigger before we do anything with it.
5492 # a 1K string should be a reasonable start.
5493 for i
in 1 2 3 4 5 6 7 8 ; do
5494 teststring
=$teststring$teststring
5496 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5497 # If test is not a shell built-in, we'll probably end up computing a
5498 # maximum length that is only half of the actual maximum length, but
5500 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5501 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5502 test $i != 17 # 1/2 MB should be enough
5505 teststring
=$teststring$teststring
5507 # Only check the string length outside the loop.
5508 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5510 # Add a significant safety factor because C++ compilers can tack on
5511 # massive amounts of additional arguments before passing them to the
5512 # linker. It appears as though 1/2 is a usable value.
5513 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5520 if test -n $lt_cv_sys_max_cmd_len ; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5522 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5525 $as_echo "none" >&6; }
5527 max_cmd_len
=$lt_cv_sys_max_cmd_len
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5539 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5540 # Try some XSI features
5543 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5545 && eval 'test $(( 1 + 1 )) -eq 2 \
5546 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5549 $as_echo "$xsi_shell" >&6; }
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5553 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5555 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5557 && lt_shell_append=yes
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5559 $as_echo "$lt_shell_append" >&6; }
5562 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5572 # test EBCDIC or ASCII
5573 case `echo X|tr X '\101'` in
5574 A) # ASCII based system
5575 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5576 lt_SP2NL='tr \040 \012'
5577 lt_NL2SP='tr \015\012 \040\040'
5579 *) # EBCDIC based system
5580 lt_SP2NL='tr \100 \n'
5581 lt_NL2SP='tr \r\n \100\100'
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5594 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5595 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5596 $as_echo_n "(cached
) " >&6
5598 lt_cv_ld_reload_flag='-r'
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5601 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5602 reload_flag=$lt_cv_ld_reload_flag
5603 case $reload_flag in
5605 *) reload_flag=" $reload_flag" ;;
5607 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5610 if test "$GCC" = yes; then
5611 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5613 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5626 if test -n "$ac_tool_prefix"; then
5627 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5628 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5630 $as_echo_n "checking
for $ac_word...
" >&6; }
5631 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5632 $as_echo_n "(cached
) " >&6
5634 if test -n "$OBJDUMP"; then
5635 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5654 OBJDUMP=$ac_cv_prog_OBJDUMP
5655 if test -n "$OBJDUMP"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5657 $as_echo "$OBJDUMP" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5660 $as_echo "no
" >&6; }
5665 if test -z "$ac_cv_prog_OBJDUMP"; then
5666 ac_ct_OBJDUMP=$OBJDUMP
5667 # Extract the first word of "objdump
", so it can be a program name with args.
5668 set dummy objdump; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5670 $as_echo_n "checking
for $ac_word...
" >&6; }
5671 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5672 $as_echo_n "(cached
) " >&6
5674 if test -n "$ac_ct_OBJDUMP"; then
5675 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5694 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5695 if test -n "$ac_ct_OBJDUMP"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5697 $as_echo "$ac_ct_OBJDUMP" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5700 $as_echo "no
" >&6; }
5703 if test "x
$ac_ct_OBJDUMP" = x; then
5706 case $cross_compiling:$ac_tool_warned in
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5709 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5710 ac_tool_warned=yes ;;
5712 OBJDUMP=$ac_ct_OBJDUMP
5715 OBJDUMP="$ac_cv_prog_OBJDUMP"
5718 test -z "$OBJDUMP" && OBJDUMP=objdump
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5729 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5730 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5731 $as_echo_n "(cached
) " >&6
5733 lt_cv_file_magic_cmd='$MAGIC_CMD'
5734 lt_cv_file_magic_test_file=
5735 lt_cv_deplibs_check_method='unknown'
5736 # Need to set the preceding variable on all platforms that support
5737 # interlibrary dependencies.
5738 # 'none' -- dependencies not supported.
5739 # `unknown' -- same as none, but documents that we really don't know.
5740 # 'pass_all' -- all dependencies passed with no checks.
5741 # 'test_compile' -- check by making test program.
5742 # 'file_magic [[regex]]' -- check by looking for files in library path
5743 # which responds to the $file_magic_cmd with a given extended regex.
5744 # If you have `file' or equivalent on your system and you're not sure
5745 # whether `pass_all' will *always* work, you probably want this one.
5749 lt_cv_deplibs_check_method=pass_all
5753 lt_cv_deplibs_check_method=pass_all
5757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5758 lt_cv_file_magic_cmd='/usr/bin/file -L'
5759 lt_cv_file_magic_test_file=/shlib/libc.so
5763 # func_win32_libid is a shell function defined in ltmain.sh
5764 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5765 lt_cv_file_magic_cmd='func_win32_libid'
5769 # Base MSYS/MinGW do not provide the 'file' command needed by
5770 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5771 # unless we find 'file', for example because we are cross-compiling.
5772 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5773 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5775 lt_cv_file_magic_cmd='func_win32_libid'
5777 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5778 lt_cv_file_magic_cmd='$OBJDUMP -f'
5783 # use the weaker test based on 'objdump'. See mingw*.
5784 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5785 lt_cv_file_magic_cmd='$OBJDUMP -f'
5788 darwin* | rhapsody*)
5789 lt_cv_deplibs_check_method=pass_all
5792 freebsd* | dragonfly*)
5793 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5796 # Not sure whether the presence of OpenBSD here was a mistake.
5797 # Let's accept both of them until this is cleared up.
5798 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5799 lt_cv_file_magic_cmd=/usr/bin/file
5800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5804 lt_cv_deplibs_check_method=pass_all
5809 lt_cv_deplibs_check_method=pass_all
5813 lt_cv_deplibs_check_method=pass_all
5816 hpux10.20* | hpux11*)
5817 lt_cv_file_magic_cmd=/usr/bin/file
5820 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5821 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5824 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]'
5825 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5828 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5829 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5835 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5839 irix5* | irix6* | nonstopux*)
5841 *-32|*"-32 ") libmagic=32-bit;;
5842 *-n32|*"-n32 ") libmagic=N32;;
5843 *-64|*"-64 ") libmagic=64-bit;;
5844 *) libmagic=never-match;;
5846 lt_cv_deplibs_check_method=pass_all
5849 # This must be Linux ELF.
5850 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5851 lt_cv_deplibs_check_method=pass_all
5855 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5864 lt_cv_file_magic_cmd=/usr/bin/file
5865 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5869 lt_cv_deplibs_check_method=pass_all
5873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5880 osf3* | osf4* | osf5*)
5881 lt_cv_deplibs_check_method=pass_all
5885 lt_cv_deplibs_check_method=pass_all
5889 lt_cv_deplibs_check_method=pass_all
5892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5893 lt_cv_deplibs_check_method=pass_all
5897 case $host_vendor in
5899 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]'
5900 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5903 lt_cv_deplibs_check_method=pass_all
5906 lt_cv_file_magic_cmd='/bin/file'
5907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5910 lt_cv_file_magic_cmd='/bin/file'
5911 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5912 lt_cv_file_magic_test_file=/lib/libc.so
5915 lt_cv_deplibs_check_method=pass_all
5918 lt_cv_deplibs_check_method=pass_all
5924 lt_cv_deplibs_check_method=pass_all
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5930 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5931 file_magic_cmd=$lt_cv_file_magic_cmd
5932 deplibs_check_method=$lt_cv_deplibs_check_method
5933 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5946 if test -n "$ac_tool_prefix"; then
5947 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5948 set dummy ${ac_tool_prefix}ar; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5950 $as_echo_n "checking
for $ac_word...
" >&6; }
5951 if test "${ac_cv_prog_AR+set}" = set; then :
5952 $as_echo_n "(cached
) " >&6
5954 if test -n "$AR"; then
5955 ac_cv_prog_AR="$AR" # Let the user override the test.
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964 ac_cv_prog_AR="${ac_tool_prefix}ar"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5975 if test -n "$AR"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5977 $as_echo "$AR" >&6; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5980 $as_echo "no
" >&6; }
5985 if test -z "$ac_cv_prog_AR"; then
5987 # Extract the first word of "ar", so it can be a program name with args.
5988 set dummy ar; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5990 $as_echo_n "checking
for $ac_word...
" >&6; }
5991 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5992 $as_echo_n "(cached
) " >&6
5994 if test -n "$ac_ct_AR"; then
5995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_ac_ct_AR="ar"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6015 if test -n "$ac_ct_AR"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6017 $as_echo "$ac_ct_AR" >&6; }
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6020 $as_echo "no
" >&6; }
6023 if test "x
$ac_ct_AR" = x; then
6026 case $cross_compiling:$ac_tool_warned in
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6029 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6030 ac_tool_warned=yes ;;
6038 test -z "$AR" && AR=ar
6039 test -z "$AR_FLAGS" && AR_FLAGS=cru
6051 if test -n "$ac_tool_prefix"; then
6052 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6053 set dummy ${ac_tool_prefix}strip; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6055 $as_echo_n "checking
for $ac_word...
" >&6; }
6056 if test "${ac_cv_prog_STRIP+set}" = set; then :
6057 $as_echo_n "(cached
) " >&6
6059 if test -n "$STRIP"; then
6060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6079 STRIP=$ac_cv_prog_STRIP
6080 if test -n "$STRIP"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6082 $as_echo "$STRIP" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6085 $as_echo "no
" >&6; }
6090 if test -z "$ac_cv_prog_STRIP"; then
6092 # Extract the first word of "strip
", so it can be a program name with args.
6093 set dummy strip; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6095 $as_echo_n "checking
for $ac_word...
" >&6; }
6096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6097 $as_echo_n "(cached
) " >&6
6099 if test -n "$ac_ct_STRIP"; then
6100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_ac_ct_STRIP="strip
"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6120 if test -n "$ac_ct_STRIP"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6122 $as_echo "$ac_ct_STRIP" >&6; }
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6125 $as_echo "no
" >&6; }
6128 if test "x
$ac_ct_STRIP" = x; then
6131 case $cross_compiling:$ac_tool_warned in
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6134 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6135 ac_tool_warned=yes ;;
6140 STRIP="$ac_cv_prog_STRIP"
6143 test -z "$STRIP" && STRIP=:
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6154 $as_echo_n "checking
for $ac_word...
" >&6; }
6155 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6156 $as_echo_n "(cached
) " >&6
6158 if test -n "$RANLIB"; then
6159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6178 RANLIB=$ac_cv_prog_RANLIB
6179 if test -n "$RANLIB"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6181 $as_echo "$RANLIB" >&6; }
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6184 $as_echo "no
" >&6; }
6189 if test -z "$ac_cv_prog_RANLIB"; then
6190 ac_ct_RANLIB=$RANLIB
6191 # Extract the first word of "ranlib
", so it can be a program name with args.
6192 set dummy ranlib; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6194 $as_echo_n "checking
for $ac_word...
" >&6; }
6195 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6196 $as_echo_n "(cached
) " >&6
6198 if test -n "$ac_ct_RANLIB"; then
6199 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6218 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6219 if test -n "$ac_ct_RANLIB"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6221 $as_echo "$ac_ct_RANLIB" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6224 $as_echo "no
" >&6; }
6227 if test "x
$ac_ct_RANLIB" = x; then
6230 case $cross_compiling:$ac_tool_warned in
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6233 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6234 ac_tool_warned=yes ;;
6236 RANLIB=$ac_ct_RANLIB
6239 RANLIB="$ac_cv_prog_RANLIB"
6242 test -z "$RANLIB" && RANLIB=:
6249 # Determine commands to create old-style static archives.
6250 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6251 old_postinstall_cmds='chmod 644 $oldlib'
6252 old_postuninstall_cmds=
6254 if test -n "$RANLIB"; then
6257 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6260 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6263 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6268 lock_old_archive_extraction=yes ;;
6270 lock_old_archive_extraction=no ;;
6311 # If no C compiler was specified, use CC.
6314 # If no C compiler flags were specified, use CFLAGS.
6315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6317 # Allow CC to be a program name with arguments.
6321 # Check for command to grab the raw symbol name followed by C symbol from nm.
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6323 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6324 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6325 $as_echo_n "(cached
) " >&6
6328 # These are sane defaults that work on at least a few old systems.
6329 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6331 # Character class describing NM global symbol codes.
6332 symcode='[BCDEGRST]'
6334 # Regexp to match symbols that can be accessed directly from C.
6335 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6337 # Define system-specific variables.
6342 cygwin* | mingw* | pw32* | cegcc*)
6343 symcode='[ABCDGISTW]'
6346 if test "$host_cpu" = ia64; then
6347 symcode='[ABCDEGRST]'
6351 symcode='[BCDEGRST]'
6354 symcode='[BCDEGQRST]'
6365 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6373 # If we're using GNU nm, then use its standard symbol codes.
6374 case `$NM -V 2>&1` in
6375 *GNU* | *'with BFD'*)
6376 symcode='[ABCDGIRSTW]' ;;
6379 # Transform an extracted symbol line into a proper C declaration.
6380 # Some systems (esp. on ia64) link data and code symbols differently,
6381 # so use this general approach.
6382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6384 # Transform an extracted symbol line into symbol name and symbol address
6385 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6386 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'"
6388 # Handle CRLF in mingw tool chain
6392 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6396 # Try without a prefix underscore, then with it.
6397 for ac_symprfx in "" "_
"; do
6399 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6400 symxfrm="\\1 $ac_symprfx\\2 \\2"
6402 # Write the raw and C identifiers.
6403 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6404 # Fake it for dumpbin and say T for any non-static function
6405 # and D for any global variable.
6406 # Also find C++ and __fastcall symbols from MSVC++,
6407 # which start with @ or ?.
6408 lt_cv_sys_global_symbol_pipe="$AWK '"\
6409 " {last_section=section; section=\$ 3};"\
6410 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6411 " \$ 0!~/External *\|/{next};"\
6412 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6413 " {if(hide[section]) next};"\
6414 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6415 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6416 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6417 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6418 " ' prfx
=^
$ac_symprfx"
6420 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6423 # Check to see that the pipe works correctly.
6427 cat > conftest.$ac_ext <<_LT_EOF
6432 void nm_test_func(void);
6433 void nm_test_func(void){}
6437 int main(){nm_test_var='a';nm_test_func();return(0);}
6440 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441 (eval $ac_compile) 2>&5
6443 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6444 test $ac_status = 0; }; then
6445 # Now try to grab the symbols.
6447 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6448 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6450 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6451 test $ac_status = 0; } && test -s "$nlist"; then
6452 # Try sorting and uniquifying the output.
6453 if sort "$nlist" | uniq > "$nlist"T; then
6454 mv -f "$nlist"T "$nlist"
6459 # Make sure that we snagged all the symbols we need.
6460 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6461 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6462 cat <<_LT_EOF > conftest.$ac_ext
6468 # Now generate the symbol file.
6469 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6471 cat <<_LT_EOF >> conftest.$ac_ext
6473 /* The mapping between symbol names and symbols. */
6478 lt__PROGRAM__LTX_preloaded_symbols[] =
6480 { "@PROGRAM@
", (void *) 0 },
6482 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6483 cat <<\_LT_EOF >> conftest.$ac_ext
6487 /* This works around a problem in FreeBSD linker */
6488 #ifdef FREEBSD_WORKAROUND
6489 static const void *lt_preloaded_setup() {
6490 return lt__PROGRAM__LTX_preloaded_symbols;
6498 # Now try linking the two files.
6499 mv conftest.$ac_objext conftstm.$ac_objext
6500 lt_save_LIBS="$LIBS"
6501 lt_save_CFLAGS="$CFLAGS"
6502 LIBS="conftstm.
$ac_objext"
6503 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6504 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6505 (eval $ac_link) 2>&5
6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6508 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6511 LIBS="$lt_save_LIBS"
6512 CFLAGS="$lt_save_CFLAGS"
6514 echo "cannot
find nm_test_func
in $nlist" >&5
6517 echo "cannot
find nm_test_var
in $nlist" >&5
6520 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6523 echo "$progname: failed program was
:" >&5
6524 cat conftest.$ac_ext >&5
6526 rm -rf conftest* conftst*
6528 # Do not use the global_symbol_pipe unless it works.
6529 if test "$pipe_works" = yes; then
6532 lt_cv_sys_global_symbol_pipe=
6538 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6539 lt_cv_sys_global_symbol_to_cdecl=
6541 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6543 $as_echo "failed
" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6546 $as_echo "ok
" >&6; }
6571 # Check whether --enable-libtool-lock was given.
6572 if test "${enable_libtool_lock+set}" = set; then :
6573 enableval=$enable_libtool_lock;
6576 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6578 # Some flags need to be propagated to the compiler or linker for good
6582 # Find out which ABI we are using.
6583 echo 'int i;' > conftest.$ac_ext
6584 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6585 (eval $ac_compile) 2>&5
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6588 test $ac_status = 0; }; then
6589 case `/usr/bin/file conftest.$ac_objext` in
6601 # Find out which ABI we are using.
6602 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6603 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6604 (eval $ac_compile) 2>&5
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6607 test $ac_status = 0; }; then
6608 if test "$lt_cv_prog_gnu_ld" = yes; then
6609 case `/usr/bin/file conftest.$ac_objext` in
6611 LD="${LD-ld} -melf32bsmip"
6614 LD="${LD-ld} -melf32bmipn32"
6617 LD="${LD-ld} -melf64bmip"
6621 case `/usr/bin/file conftest.$ac_objext` in
6637 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6638 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6639 # Find out which ABI we are using.
6640 echo 'int i;' > conftest.$ac_ext
6641 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6642 (eval $ac_compile) 2>&5
6644 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6645 test $ac_status = 0; }; then
6646 case `/usr/bin/file conftest.o` in
6649 x86_64-*kfreebsd*-gnu)
6650 LD="${LD-ld} -m elf_i386_fbsd
"
6653 case `/usr/bin/file conftest.o` in
6655 LD="${LD-ld} -m elf32_x86_64
"
6658 LD="${LD-ld} -m elf_i386
"
6662 powerpc64le-*linux*)
6663 LD="${LD-ld} -m elf32lppclinux
"
6666 LD="${LD-ld} -m elf32ppclinux
"
6669 LD="${LD-ld} -m elf_s390
"
6672 LD="${LD-ld} -m elf32_sparc
"
6678 x86_64-*kfreebsd*-gnu)
6679 LD="${LD-ld} -m elf_x86_64_fbsd
"
6682 LD="${LD-ld} -m elf_x86_64
"
6685 LD="${LD-ld} -m elf64lppc
"
6688 LD="${LD-ld} -m elf64ppc
"
6690 s390*-*linux*|s390*-*tpf*)
6691 LD="${LD-ld} -m elf64_s390
"
6694 LD="${LD-ld} -m elf64_sparc
"
6704 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6705 SAVE_CFLAGS="$CFLAGS"
6706 CFLAGS="$CFLAGS -belf"
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6708 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6709 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6710 $as_echo_n "(cached
) " >&6
6713 ac_cpp='$CPP $CPPFLAGS'
6714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6729 if ac_fn_c_try_link "$LINENO"; then :
6730 lt_cv_cc_needs_belf=yes
6732 lt_cv_cc_needs_belf=no
6734 rm -f core conftest.err conftest.$ac_objext \
6735 conftest$ac_exeext conftest.$ac_ext
6737 ac_cpp='$CPP $CPPFLAGS'
6738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6744 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6745 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6746 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6747 CFLAGS="$SAVE_CFLAGS"
6751 # Find out which ABI we are using.
6752 echo 'int i;' > conftest.$ac_ext
6753 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6754 (eval $ac_compile) 2>&5
6756 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6757 test $ac_status = 0; }; then
6758 case `/usr/bin/file conftest.o` in
6760 case $lt_cv_prog_gnu_ld in
6761 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6763 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6775 need_locks="$enable_libtool_lock"
6779 rhapsody* | darwin*)
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6784 $as_echo_n "checking
for $ac_word...
" >&6; }
6785 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6786 $as_echo_n "(cached
) " >&6
6788 if test -n "$DSYMUTIL"; then
6789 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6808 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6809 if test -n "$DSYMUTIL"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6811 $as_echo "$DSYMUTIL" >&6; }
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6814 $as_echo "no
" >&6; }
6819 if test -z "$ac_cv_prog_DSYMUTIL"; then
6820 ac_ct_DSYMUTIL=$DSYMUTIL
6821 # Extract the first word of "dsymutil
", so it can be a program name with args.
6822 set dummy dsymutil; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6824 $as_echo_n "checking
for $ac_word...
" >&6; }
6825 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6826 $as_echo_n "(cached
) " >&6
6828 if test -n "$ac_ct_DSYMUTIL"; then
6829 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6848 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6849 if test -n "$ac_ct_DSYMUTIL"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6851 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6854 $as_echo "no
" >&6; }
6857 if test "x
$ac_ct_DSYMUTIL" = x; then
6860 case $cross_compiling:$ac_tool_warned in
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6863 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6864 ac_tool_warned=yes ;;
6866 DSYMUTIL=$ac_ct_DSYMUTIL
6869 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6876 $as_echo_n "checking
for $ac_word...
" >&6; }
6877 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6878 $as_echo_n "(cached
) " >&6
6880 if test -n "$NMEDIT"; then
6881 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6900 NMEDIT=$ac_cv_prog_NMEDIT
6901 if test -n "$NMEDIT"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6903 $as_echo "$NMEDIT" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6906 $as_echo "no
" >&6; }
6911 if test -z "$ac_cv_prog_NMEDIT"; then
6912 ac_ct_NMEDIT=$NMEDIT
6913 # Extract the first word of "nmedit
", so it can be a program name with args.
6914 set dummy nmedit; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6916 $as_echo_n "checking
for $ac_word...
" >&6; }
6917 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6918 $as_echo_n "(cached
) " >&6
6920 if test -n "$ac_ct_NMEDIT"; then
6921 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6940 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6941 if test -n "$ac_ct_NMEDIT"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6943 $as_echo "$ac_ct_NMEDIT" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6946 $as_echo "no
" >&6; }
6949 if test "x
$ac_ct_NMEDIT" = x; then
6952 case $cross_compiling:$ac_tool_warned in
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6955 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6956 ac_tool_warned=yes ;;
6958 NMEDIT=$ac_ct_NMEDIT
6961 NMEDIT="$ac_cv_prog_NMEDIT"
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6968 $as_echo_n "checking
for $ac_word...
" >&6; }
6969 if test "${ac_cv_prog_LIPO+set}" = set; then :
6970 $as_echo_n "(cached
) " >&6
6972 if test -n "$LIPO"; then
6973 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6992 LIPO=$ac_cv_prog_LIPO
6993 if test -n "$LIPO"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6995 $as_echo "$LIPO" >&6; }
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6998 $as_echo "no
" >&6; }
7003 if test -z "$ac_cv_prog_LIPO"; then
7005 # Extract the first word of "lipo
", so it can be a program name with args.
7006 set dummy lipo; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7008 $as_echo_n "checking
for $ac_word...
" >&6; }
7009 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7010 $as_echo_n "(cached
) " >&6
7012 if test -n "$ac_ct_LIPO"; then
7013 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_prog_ac_ct_LIPO="lipo
"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7032 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7033 if test -n "$ac_ct_LIPO"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7035 $as_echo "$ac_ct_LIPO" >&6; }
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7038 $as_echo "no
" >&6; }
7041 if test "x
$ac_ct_LIPO" = x; then
7044 case $cross_compiling:$ac_tool_warned in
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7047 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7048 ac_tool_warned=yes ;;
7053 LIPO="$ac_cv_prog_LIPO"
7056 if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}otool; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7060 $as_echo_n "checking
for $ac_word...
" >&6; }
7061 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7062 $as_echo_n "(cached
) " >&6
7064 if test -n "$OTOOL"; then
7065 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7084 OTOOL=$ac_cv_prog_OTOOL
7085 if test -n "$OTOOL"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7087 $as_echo "$OTOOL" >&6; }
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7090 $as_echo "no
" >&6; }
7095 if test -z "$ac_cv_prog_OTOOL"; then
7097 # Extract the first word of "otool
", so it can be a program name with args.
7098 set dummy otool; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7100 $as_echo_n "checking
for $ac_word...
" >&6; }
7101 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7102 $as_echo_n "(cached
) " >&6
7104 if test -n "$ac_ct_OTOOL"; then
7105 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_ac_ct_OTOOL="otool
"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7124 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7125 if test -n "$ac_ct_OTOOL"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7127 $as_echo "$ac_ct_OTOOL" >&6; }
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7130 $as_echo "no
" >&6; }
7133 if test "x
$ac_ct_OTOOL" = x; then
7136 case $cross_compiling:$ac_tool_warned in
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7139 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7140 ac_tool_warned=yes ;;
7145 OTOOL="$ac_cv_prog_OTOOL"
7148 if test -n "$ac_tool_prefix"; then
7149 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7150 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7152 $as_echo_n "checking
for $ac_word...
" >&6; }
7153 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7154 $as_echo_n "(cached
) " >&6
7156 if test -n "$OTOOL64"; then
7157 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7176 OTOOL64=$ac_cv_prog_OTOOL64
7177 if test -n "$OTOOL64"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7179 $as_echo "$OTOOL64" >&6; }
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7182 $as_echo "no
" >&6; }
7187 if test -z "$ac_cv_prog_OTOOL64"; then
7188 ac_ct_OTOOL64=$OTOOL64
7189 # Extract the first word of "otool64
", so it can be a program name with args.
7190 set dummy otool64; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7192 $as_echo_n "checking
for $ac_word...
" >&6; }
7193 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7194 $as_echo_n "(cached
) " >&6
7196 if test -n "$ac_ct_OTOOL64"; then
7197 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7216 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7217 if test -n "$ac_ct_OTOOL64"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7219 $as_echo "$ac_ct_OTOOL64" >&6; }
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7222 $as_echo "no
" >&6; }
7225 if test "x
$ac_ct_OTOOL64" = x; then
7228 case $cross_compiling:$ac_tool_warned in
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7231 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7232 ac_tool_warned=yes ;;
7234 OTOOL64=$ac_ct_OTOOL64
7237 OTOOL64="$ac_cv_prog_OTOOL64"
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7267 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7268 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7269 $as_echo_n "(cached
) " >&6
7271 lt_cv_apple_cc_single_mod=no
7272 if test -z "${LT_MULTI_MODULE}"; then
7273 # By default we will add the -single_module flag. You can override
7274 # by either setting the environment variable LT_MULTI_MODULE
7275 # non-empty at configure time, or by adding -multi_module to the
7277 rm -rf libconftest.dylib*
7278 echo "int foo
(void
){return 1;}" > conftest.c
7279 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7280 -dynamiclib -Wl,-single_module conftest.c
" >&5
7281 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7282 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7284 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7285 lt_cv_apple_cc_single_mod=yes
7287 cat conftest.err >&5
7289 rm -rf libconftest.dylib*
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7294 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7296 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7297 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7298 $as_echo_n "(cached
) " >&6
7300 lt_cv_ld_exported_symbols_list=no
7301 save_LDFLAGS=$LDFLAGS
7302 echo "_main
" > conftest.sym
7303 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7315 if ac_fn_c_try_link "$LINENO"; then :
7316 lt_cv_ld_exported_symbols_list=yes
7318 lt_cv_ld_exported_symbols_list=no
7320 rm -f core conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext conftest.$ac_ext
7322 LDFLAGS="$save_LDFLAGS"
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7326 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7328 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7329 if test "${lt_cv_ld_force_load+set}" = set; then :
7330 $as_echo_n "(cached
) " >&6
7332 lt_cv_ld_force_load=no
7333 cat > conftest.c << _LT_EOF
7334 int forced_loaded() { return 2;}
7336 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7337 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7338 echo "$AR cru libconftest.a conftest.o
" >&5
7339 $AR cru libconftest.a conftest.o 2>&5
7340 cat > conftest.c << _LT_EOF
7341 int main() { return 0;}
7343 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7344 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7346 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7347 lt_cv_ld_force_load=yes
7349 cat conftest.err >&5
7351 rm -f conftest.err libconftest.a conftest conftest.c
7352 rm -rf conftest.dSYM
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7356 $as_echo "$lt_cv_ld_force_load" >&6; }
7358 rhapsody* | darwin1.[012])
7359 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7361 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7362 darwin*) # darwin 5.x on
7363 # if running on 10.5 or later, the deployment target defaults
7364 # to the OS version, if on x86, and 10.4, the deployment
7365 # target defaults to 10.4. Don't you love it?
7366 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7367 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7368 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7370 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7372 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7376 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7377 _lt_dar_single_mod='$single_module'
7379 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7380 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7382 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7384 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7385 _lt_dsymutil='~$DSYMUTIL $lib || :'
7393 ac_cpp='$CPP $CPPFLAGS'
7394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7398 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7399 # On Suns, sometimes $CPP names a directory.
7400 if test -n "$CPP" && test -d "$CPP"; then
7403 if test -z "$CPP"; then
7404 if test "${ac_cv_prog_CPP+set}" = set; then :
7405 $as_echo_n "(cached
) " >&6
7407 # Double quotes because CPP needs to be expanded
7408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7411 for ac_c_preproc_warn_flag in '' yes
7413 # Use a header file that comes with gcc, so configuring glibc
7414 # with a fresh cross-compiler works.
7415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7416 # <limits.h> exists even on freestanding compilers.
7417 # On the NeXT, cc -E runs the code through the compiler's parser,
7418 # not just through cpp. "Syntax error
" is here to catch this case.
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7422 # include <limits.h>
7424 # include <assert.h>
7428 if ac_fn_c_try_cpp "$LINENO"; then :
7431 # Broken: fails on valid input.
7434 rm -f conftest.err conftest.$ac_ext
7436 # OK, works on sane cases. Now check whether nonexistent headers
7437 # can be detected and how.
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 #include <ac_nonexistent.h>
7442 if ac_fn_c_try_cpp "$LINENO"; then :
7443 # Broken: success on invalid input.
7446 # Passes both tests.
7450 rm -f conftest.err conftest.$ac_ext
7453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7454 rm -f conftest.err conftest.$ac_ext
7455 if $ac_preproc_ok; then :
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7468 $as_echo "$CPP" >&6; }
7470 for ac_c_preproc_warn_flag in '' yes
7472 # Use a header file that comes with gcc, so configuring glibc
7473 # with a fresh cross-compiler works.
7474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475 # <limits.h> exists even on freestanding compilers.
7476 # On the NeXT, cc -E runs the code through the compiler's parser,
7477 # not just through cpp. "Syntax error
" is here to catch this case.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7481 # include <limits.h>
7483 # include <assert.h>
7487 if ac_fn_c_try_cpp "$LINENO"; then :
7490 # Broken: fails on valid input.
7493 rm -f conftest.err conftest.$ac_ext
7495 # OK, works on sane cases. Now check whether nonexistent headers
7496 # can be detected and how.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #include <ac_nonexistent.h>
7501 if ac_fn_c_try_cpp "$LINENO"; then :
7502 # Broken: success on invalid input.
7505 # Passes both tests.
7509 rm -f conftest.err conftest.$ac_ext
7512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7513 rm -f conftest.err conftest.$ac_ext
7514 if $ac_preproc_ok; then :
7517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7519 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7520 See \`config.log' for more details.
" "$LINENO" 5; }
7524 ac_cpp='$CPP $CPPFLAGS'
7525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7531 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7532 if test "${ac_cv_header_stdc+set}" = set; then :
7533 $as_echo_n "(cached
) " >&6
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7550 if ac_fn_c_try_compile "$LINENO"; then :
7551 ac_cv_header_stdc=yes
7553 ac_cv_header_stdc=no
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 if test $ac_cv_header_stdc = yes; then
7558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7564 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7565 $EGREP "memchr
" >/dev/null 2>&1; then :
7568 ac_cv_header_stdc=no
7574 if test $ac_cv_header_stdc = yes; then
7575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7581 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7582 $EGREP "free
" >/dev/null 2>&1; then :
7585 ac_cv_header_stdc=no
7591 if test $ac_cv_header_stdc = yes; then
7592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7593 if test "$cross_compiling" = yes; then :
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7600 #if ((' ' & 0x0FF) == 0x020)
7601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7604 # define ISLOWER(c) \
7605 (('a' <= (c) && (c) <= 'i') \
7606 || ('j' <= (c) && (c) <= 'r') \
7607 || ('s' <= (c) && (c) <= 'z'))
7608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7616 for (i = 0; i < 256; i++)
7617 if (XOR (islower (i), ISLOWER (i))
7618 || toupper (i) != TOUPPER (i))
7623 if ac_fn_c_try_run "$LINENO"; then :
7626 ac_cv_header_stdc=no
7628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7629 conftest.$ac_objext conftest.beam conftest.$ac_ext
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7635 $as_echo "$ac_cv_header_stdc" >&6; }
7636 if test $ac_cv_header_stdc = yes; then
7638 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7642 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7643 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7644 inttypes.h stdint.h unistd.h
7646 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7647 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7649 eval as_val
=\$
$as_ac_Header
7650 if test "x$as_val" = x
""yes; then :
7651 cat >>confdefs.h
<<_ACEOF
7652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7660 for ac_header
in dlfcn.h
7662 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7664 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7665 cat >>confdefs.h
<<_ACEOF
7666 #define HAVE_DLFCN_H 1
7687 # Check whether --enable-shared was given.
7688 if test "${enable_shared+set}" = set; then :
7689 enableval
=$enable_shared; p
=${PACKAGE-default}
7691 yes) enable_shared
=yes ;;
7692 no
) enable_shared
=no
;;
7695 # Look at the argument we got. We use all the common list separators.
7696 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7697 for pkg
in $enableval; do
7699 if test "X$pkg" = "X$p"; then
7718 # Check whether --enable-static was given.
7719 if test "${enable_static+set}" = set; then :
7720 enableval
=$enable_static; p
=${PACKAGE-default}
7722 yes) enable_static
=yes ;;
7723 no
) enable_static
=no
;;
7726 # Look at the argument we got. We use all the common list separators.
7727 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7728 for pkg
in $enableval; do
7730 if test "X$pkg" = "X$p"; then
7750 # Check whether --with-pic was given.
7751 if test "${with_pic+set}" = set; then :
7752 withval
=$with_pic; pic_mode
="$withval"
7758 test -z "$pic_mode" && pic_mode
=default
7766 # Check whether --enable-fast-install was given.
7767 if test "${enable_fast_install+set}" = set; then :
7768 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7770 yes) enable_fast_install
=yes ;;
7771 no
) enable_fast_install
=no
;;
7773 enable_fast_install
=no
7774 # Look at the argument we got. We use all the common list separators.
7775 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7776 for pkg
in $enableval; do
7778 if test "X$pkg" = "X$p"; then
7779 enable_fast_install
=yes
7786 enable_fast_install
=yes
7799 # This can be used to rebuild libtool when needed
7800 LIBTOOL_DEPS
="$ltmain"
7802 # Always use our own libtool.
7803 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7830 test -z "$LN_S" && LN_S
="ln -s"
7845 if test -n "${ZSH_VERSION+set}" ; then
7846 setopt NO_GLOB_SUBST
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7850 $as_echo_n "checking for objdir... " >&6; }
7851 if test "${lt_cv_objdir+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7854 rm -f .libs
2>/dev
/null
7855 mkdir .libs
2>/dev
/null
7856 if test -d .libs
; then
7859 # MS-DOS does not allow filenames that begin with a dot.
7862 rmdir .libs
2>/dev
/null
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7865 $as_echo "$lt_cv_objdir" >&6; }
7866 objdir
=$lt_cv_objdir
7872 cat >>confdefs.h
<<_ACEOF
7873 #define LT_OBJDIR "$lt_cv_objdir/"
7881 # AIX sometimes has problems with the GCC collect2 program. For some
7882 # reason, if we set the COLLECT_NAMES environment variable, the problems
7883 # vanish in a puff of smoke.
7884 if test "X${COLLECT_NAMES+set}" != Xset
; then
7886 export COLLECT_NAMES
7893 can_build_shared
=yes
7895 # All known linkers require a `.a' archive for static linking (except MSVC,
7896 # which needs '.lib').
7899 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7902 old_CFLAGS
="$CFLAGS"
7904 # Set sane defaults for various variables
7905 test -z "$CC" && CC
=cc
7906 test -z "$LTCC" && LTCC
=$CC
7907 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7908 test -z "$LD" && LD
=ld
7909 test -z "$ac_objext" && ac_objext
=o
7911 for cc_temp
in $compiler""; do
7913 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7914 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7919 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7922 # Only perform the check for file, if the check method requires it
7923 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7924 case $deplibs_check_method in
7926 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7928 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7929 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7934 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7937 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7938 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7939 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7940 for ac_dir
in $ac_dummy; do
7942 test -z "$ac_dir" && ac_dir
=.
7943 if test -f $ac_dir/${ac_tool_prefix}file; then
7944 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7945 if test -n "$file_magic_test_file"; then
7946 case $deplibs_check_method in
7948 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7949 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7950 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7951 $EGREP "$file_magic_regex" > /dev
/null
; then
7956 *** Warning: the command libtool uses to detect shared libraries,
7957 *** $file_magic_cmd, produces output that libtool cannot recognize.
7958 *** The result is that libtool may fail to recognize shared libraries
7959 *** as such. This will affect the creation of libtool libraries that
7960 *** depend on shared libraries, but programs linked with such libtool
7961 *** libraries will work regardless of this problem. Nevertheless, you
7962 *** may want to report the problem to your system manager and/or to
7963 *** bug-libtool@gnu.org
7973 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7978 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7979 if test -n "$MAGIC_CMD"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7981 $as_echo "$MAGIC_CMD" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7991 if test -z "$lt_cv_path_MAGIC_CMD"; then
7992 if test -n "$ac_tool_prefix"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7994 $as_echo_n "checking for file... " >&6; }
7995 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
8000 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8003 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8004 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8005 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8006 for ac_dir
in $ac_dummy; do
8008 test -z "$ac_dir" && ac_dir
=.
8009 if test -f $ac_dir/file; then
8010 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8011 if test -n "$file_magic_test_file"; then
8012 case $deplibs_check_method in
8014 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8015 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8016 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8017 $EGREP "$file_magic_regex" > /dev
/null
; then
8022 *** Warning: the command libtool uses to detect shared libraries,
8023 *** $file_magic_cmd, produces output that libtool cannot recognize.
8024 *** The result is that libtool may fail to recognize shared libraries
8025 *** as such. This will affect the creation of libtool libraries that
8026 *** depend on shared libraries, but programs linked with such libtool
8027 *** libraries will work regardless of this problem. Nevertheless, you
8028 *** may want to report the problem to your system manager and/or to
8029 *** bug-libtool@gnu.org
8039 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8044 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8045 if test -n "$MAGIC_CMD"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8047 $as_echo "$MAGIC_CMD" >&6; }
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8063 # Use C for the default configuration in the libtool script
8067 ac_cpp
='$CPP $CPPFLAGS'
8068 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8073 # Source file extension for C test sources.
8076 # Object file extension for compiled C test sources.
8080 # Code to be used in simple compile tests
8081 lt_simple_compile_test_code
="int some_variable = 0;"
8083 # Code to be used in simple link tests
8084 lt_simple_link_test_code
='int main(){return(0);}'
8092 # If no C compiler was specified, use CC.
8095 # If no C compiler flags were specified, use CFLAGS.
8096 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8098 # Allow CC to be a program name with arguments.
8101 # Save the default compiler, since it gets overwritten when the other
8102 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8103 compiler_DEFAULT
=$CC
8105 # save warnings/boilerplate of simple test code
8106 ac_outfile
=conftest.
$ac_objext
8107 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8108 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8109 _lt_compiler_boilerplate
=`cat conftest.err`
8112 ac_outfile
=conftest.
$ac_objext
8113 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8114 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8115 _lt_linker_boilerplate
=`cat conftest.err`
8120 ## There is no encapsulation within the following macros, do not change
8121 ## the running order or otherwise move them around unless you know exactly
8122 ## what you are doing...
8123 if test -n "$compiler"; then
8125 lt_prog_compiler_no_builtin_flag
=
8127 if test "$GCC" = yes; then
8128 case $cc_basename in
8130 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8132 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8136 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8137 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
8140 lt_cv_prog_compiler_rtti_exceptions
=no
8141 ac_outfile
=conftest.
$ac_objext
8142 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8143 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8144 # Insert the option either (1) after the last *FLAGS variable, or
8145 # (2) before a word containing "conftest.", or (3) at the end.
8146 # Note that $ac_compile itself does not contain backslashes and begins
8147 # with a dollar sign (not a hyphen), so the echo should work correctly.
8148 # The option is referenced via a variable to avoid confusing sed.
8149 lt_compile
=`echo "$ac_compile" | $SED \
8150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8152 -e 's:$: $lt_compiler_flag:'`
8153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8154 (eval "$lt_compile" 2>conftest.err
)
8156 cat conftest.err
>&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 if (exit $ac_status) && test -s "$ac_outfile"; then
8159 # The compiler can only warn and ignore the option if not recognized
8160 # So say no if there are warnings other than the usual output.
8161 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8162 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8163 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8164 lt_cv_prog_compiler_rtti_exceptions
=yes
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8171 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8173 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8174 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8186 lt_prog_compiler_wl
=
8187 lt_prog_compiler_pic
=
8188 lt_prog_compiler_static
=
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8191 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8193 if test "$GCC" = yes; then
8194 lt_prog_compiler_wl
='-Wl,'
8195 lt_prog_compiler_static
='-static'
8199 # All AIX code is PIC.
8200 if test "$host_cpu" = ia64
; then
8201 # AIX 5 now supports IA64 processor
8202 lt_prog_compiler_static
='-Bstatic'
8204 lt_prog_compiler_pic
='-fPIC'
8210 # see comment about AmigaOS4 .so support
8211 lt_prog_compiler_pic
='-fPIC'
8214 # FIXME: we need at least 68020 code to build shared libraries, but
8215 # adding the `-m68020' flag to GCC prevents building anything better,
8217 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8222 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8223 # PIC is the default for these OSes.
8226 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8227 # This hack is so that the source file can tell whether it is being
8228 # built for inclusion in a dll (and should export symbols for example).
8229 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8230 # (--disable-auto-import) libraries
8231 lt_prog_compiler_pic
='-DDLL_EXPORT'
8234 darwin
* | rhapsody
*)
8235 # PIC is the default on this platform
8236 # Common symbols not allowed in MH_DYLIB files
8237 lt_prog_compiler_pic
='-fno-common'
8241 # PIC is the default for Haiku.
8242 # The "-static" flag exists, but is broken.
8243 lt_prog_compiler_static
=
8247 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8248 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8249 # sets the default TLS model and affects inlining.
8255 lt_prog_compiler_pic
='-fPIC'
8261 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8262 # Instead, we relocate shared libraries at runtime.
8266 # Just because we use GCC doesn't mean we suddenly get shared libraries
8267 # on systems that don't support them.
8268 lt_prog_compiler_can_build_shared
=no
8273 # QNX uses GNU C++, but need to define -shared option too, otherwise
8275 lt_prog_compiler_pic
='-fPIC -shared'
8279 if test -d /usr
/nec
; then
8280 lt_prog_compiler_pic
=-Kconform_pic
8285 lt_prog_compiler_pic
='-fPIC'
8289 case $cc_basename in
8290 nvcc
*) # Cuda Compiler Driver 2.2
8291 lt_prog_compiler_wl
='-Xlinker '
8292 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8296 # PORTME Check for flag to pass linker flags through the system compiler.
8299 lt_prog_compiler_wl
='-Wl,'
8300 if test "$host_cpu" = ia64
; then
8301 # AIX 5 now supports IA64 processor
8302 lt_prog_compiler_static
='-Bstatic'
8304 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8308 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8309 # This hack is so that the source file can tell whether it is being
8310 # built for inclusion in a dll (and should export symbols for example).
8311 lt_prog_compiler_pic
='-DDLL_EXPORT'
8314 hpux9
* | hpux10
* | hpux11
*)
8315 lt_prog_compiler_wl
='-Wl,'
8316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8323 lt_prog_compiler_pic
='+Z'
8326 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8327 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8330 irix5
* | irix6
* | nonstopux
*)
8331 lt_prog_compiler_wl
='-Wl,'
8332 # PIC (with -KPIC) is the default.
8333 lt_prog_compiler_static
='-non_shared'
8336 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8337 case $cc_basename in
8338 # old Intel for x86_64 which still supported -KPIC.
8340 lt_prog_compiler_wl
='-Wl,'
8341 lt_prog_compiler_pic
='-KPIC'
8342 lt_prog_compiler_static
='-static'
8344 # icc used to be incompatible with GCC.
8345 # ICC 10 doesn't accept -KPIC any more.
8347 lt_prog_compiler_wl
='-Wl,'
8348 lt_prog_compiler_pic
='-fPIC'
8349 lt_prog_compiler_static
='-static'
8351 # Lahey Fortran 8.1.
8353 lt_prog_compiler_wl
='-Wl,'
8354 lt_prog_compiler_pic
='--shared'
8355 lt_prog_compiler_static
='--static'
8357 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8358 # Portland Group compilers (*not* the Pentium gcc compiler,
8359 # which looks to be a dead project)
8360 lt_prog_compiler_wl
='-Wl,'
8361 lt_prog_compiler_pic
='-fpic'
8362 lt_prog_compiler_static
='-Bstatic'
8365 lt_prog_compiler_wl
='-Wl,'
8366 # All Alpha code is PIC.
8367 lt_prog_compiler_static
='-non_shared'
8369 xl
* | bgxl
* | bgf
* | mpixl
*)
8370 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8371 lt_prog_compiler_wl
='-Wl,'
8372 lt_prog_compiler_pic
='-qpic'
8373 lt_prog_compiler_static
='-qstaticlink'
8376 case `$CC -V 2>&1 | sed 5q` in
8377 *Sun\ F
* |
*Sun
*Fortran
*)
8378 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8379 lt_prog_compiler_pic
='-KPIC'
8380 lt_prog_compiler_static
='-Bstatic'
8381 lt_prog_compiler_wl
=''
8385 lt_prog_compiler_pic
='-KPIC'
8386 lt_prog_compiler_static
='-Bstatic'
8387 lt_prog_compiler_wl
='-Wl,'
8395 lt_prog_compiler_pic
='-KPIC'
8396 lt_prog_compiler_static
='-Bstatic'
8400 # QNX uses GNU C++, but need to define -shared option too, otherwise
8402 lt_prog_compiler_pic
='-fPIC -shared'
8405 osf3
* | osf4
* | osf5
*)
8406 lt_prog_compiler_wl
='-Wl,'
8407 # All OSF/1 code is PIC.
8408 lt_prog_compiler_static
='-non_shared'
8412 lt_prog_compiler_static
='-non_shared'
8416 lt_prog_compiler_pic
='-KPIC'
8417 lt_prog_compiler_static
='-Bstatic'
8418 case $cc_basename in
8420 lt_prog_compiler_wl
='-Qoption ld ';;
8422 lt_prog_compiler_wl
='-Wl,';;
8427 lt_prog_compiler_wl
='-Qoption ld '
8428 lt_prog_compiler_pic
='-PIC'
8429 lt_prog_compiler_static
='-Bstatic'
8432 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8433 lt_prog_compiler_wl
='-Wl,'
8434 lt_prog_compiler_pic
='-KPIC'
8435 lt_prog_compiler_static
='-Bstatic'
8439 if test -d /usr
/nec
;then
8440 lt_prog_compiler_pic
='-Kconform_pic'
8441 lt_prog_compiler_static
='-Bstatic'
8445 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8446 lt_prog_compiler_wl
='-Wl,'
8447 lt_prog_compiler_pic
='-KPIC'
8448 lt_prog_compiler_static
='-Bstatic'
8452 lt_prog_compiler_wl
='-Wl,'
8453 lt_prog_compiler_can_build_shared
=no
8457 lt_prog_compiler_pic
='-pic'
8458 lt_prog_compiler_static
='-Bstatic'
8462 lt_prog_compiler_can_build_shared
=no
8468 # For platforms which do not support PIC, -DPIC is meaningless:
8470 lt_prog_compiler_pic
=
8473 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8477 $as_echo "$lt_prog_compiler_pic" >&6; }
8485 # Check to make sure the PIC flag actually works.
8487 if test -n "$lt_prog_compiler_pic"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8489 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8490 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8493 lt_cv_prog_compiler_pic_works
=no
8494 ac_outfile
=conftest.
$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8496 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile
=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>conftest.err
)
8509 cat conftest.err
>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
8514 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8515 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8516 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8517 lt_cv_prog_compiler_pic_works
=yes
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8524 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8526 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8527 case $lt_prog_compiler_pic in
8529 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8532 lt_prog_compiler_pic
=
8533 lt_prog_compiler_can_build_shared
=no
8544 # Check to make sure the static flag actually works.
8546 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8548 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8549 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8552 lt_cv_prog_compiler_static_works
=no
8553 save_LDFLAGS
="$LDFLAGS"
8554 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8555 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8556 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8557 # The linker can only warn and ignore the option if not recognized
8558 # So say no if there are warnings
8559 if test -s conftest.err
; then
8560 # Append any errors to the config.log.
8561 cat conftest.err
1>&5
8562 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8563 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8564 if diff conftest.exp conftest.er2
>/dev
/null
; then
8565 lt_cv_prog_compiler_static_works
=yes
8568 lt_cv_prog_compiler_static_works
=yes
8572 LDFLAGS
="$save_LDFLAGS"
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8576 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8578 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8581 lt_prog_compiler_static
=
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8591 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8592 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8595 lt_cv_prog_compiler_c_o
=no
8596 $RM -r conftest
2>/dev
/null
8600 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8602 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8603 # Insert the option either (1) after the last *FLAGS variable, or
8604 # (2) before a word containing "conftest.", or (3) at the end.
8605 # Note that $ac_compile itself does not contain backslashes and begins
8606 # with a dollar sign (not a hyphen), so the echo should work correctly.
8607 lt_compile
=`echo "$ac_compile" | $SED \
8608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8610 -e 's:$: $lt_compiler_flag:'`
8611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8612 (eval "$lt_compile" 2>out
/conftest.err
)
8614 cat out
/conftest.err
>&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8618 # The compiler can only warn and ignore the option if not recognized
8619 # So say no if there are warnings
8620 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8621 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8622 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8623 lt_cv_prog_compiler_c_o
=yes
8628 # SGI C++ compiler will create directory out/ii_files/ for
8629 # template instantiation
8630 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8631 $RM out
/* && rmdir out
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8638 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8646 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8647 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8650 lt_cv_prog_compiler_c_o
=no
8651 $RM -r conftest
2>/dev
/null
8655 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8657 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8658 # Insert the option either (1) after the last *FLAGS variable, or
8659 # (2) before a word containing "conftest.", or (3) at the end.
8660 # Note that $ac_compile itself does not contain backslashes and begins
8661 # with a dollar sign (not a hyphen), so the echo should work correctly.
8662 lt_compile
=`echo "$ac_compile" | $SED \
8663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8665 -e 's:$: $lt_compiler_flag:'`
8666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8667 (eval "$lt_compile" 2>out
/conftest.err
)
8669 cat out
/conftest.err
>&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8673 # The compiler can only warn and ignore the option if not recognized
8674 # So say no if there are warnings
8675 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8676 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8677 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8678 lt_cv_prog_compiler_c_o
=yes
8683 # SGI C++ compiler will create directory out/ii_files/ for
8684 # template instantiation
8685 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8686 $RM out
/* && rmdir out
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8693 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8698 hard_links
="nottested"
8699 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8700 # do not overwrite the value of need_locks provided by the user
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8702 $as_echo_n "checking if we can lock with hard links... " >&6; }
8705 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8707 ln conftest.a conftest.b
2>&5 || hard_links
=no
8708 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8710 $as_echo "$hard_links" >&6; }
8711 if test "$hard_links" = no
; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8713 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8726 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8729 allow_undefined_flag
=
8730 always_export_symbols
=no
8732 archive_expsym_cmds
=
8733 compiler_needs_object
=no
8734 enable_shared_with_static_runtimes
=no
8735 export_dynamic_flag_spec
=
8736 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8737 hardcode_automatic
=no
8739 hardcode_direct_absolute
=no
8740 hardcode_libdir_flag_spec
=
8741 hardcode_libdir_flag_spec_ld
=
8742 hardcode_libdir_separator
=
8744 hardcode_shlibpath_var
=unsupported
8746 link_all_deplibs
=unknown
8749 old_archive_from_new_cmds
=
8750 old_archive_from_expsyms_cmds
=
8751 thread_safe_flag_spec
=
8752 whole_archive_flag_spec
=
8753 # include_expsyms should be a list of space-separated symbols to be *always*
8754 # included in the symbol list
8756 # exclude_expsyms can be an extended regexp of symbols to exclude
8757 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8758 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8759 # as well as any symbol that contains `d'.
8760 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8761 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8762 # platforms (ab)use it in PIC code, but their linkers get confused if
8763 # the symbol is explicitly referenced. Since portable code cannot
8764 # rely on this symbol name, it's probably fine to never include it in
8765 # preloaded symbol tables.
8766 # Exclude shared library initialization/finalization symbols.
8767 extract_expsyms_cmds
=
8770 cygwin
* | mingw
* | pw32
* | cegcc
*)
8771 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8772 # When not using gcc, we currently assume that we are using
8773 # Microsoft Visual C++.
8774 if test "$GCC" != yes; then
8779 # we just hope/assume this is gcc and not c89 (= MSVC++)
8789 # On some targets, GNU ld is compatible enough with the native linker
8790 # that we're better off using the native interface for both.
8791 lt_use_gnu_ld_interface
=no
8792 if test "$with_gnu_ld" = yes; then
8795 # The AIX port of GNU ld has always aspired to compatibility
8796 # with the native linker. However, as the warning in the GNU ld
8797 # block says, versions before 2.19.5* couldn't really create working
8798 # shared libraries, regardless of the interface used.
8799 case `$LD -v 2>&1` in
8800 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8801 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8802 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8804 lt_use_gnu_ld_interface
=yes
8809 lt_use_gnu_ld_interface
=yes
8814 if test "$lt_use_gnu_ld_interface" = yes; then
8815 # If archive_cmds runs LD, not CC, wlarc should be empty
8818 # Set some defaults for GNU ld with shared library support. These
8819 # are reset later if shared libraries are not supported. Putting them
8820 # here allows them to be overridden if necessary.
8821 runpath_var
=LD_RUN_PATH
8822 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8823 export_dynamic_flag_spec
='${wl}--export-dynamic'
8824 # ancient GNU ld didn't support --whole-archive et. al.
8825 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8826 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8828 whole_archive_flag_spec
=
8830 supports_anon_versioning
=no
8831 case `$LD -v 2>&1` in
8832 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8833 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8834 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8835 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8836 *\
2.11.
*) ;; # other 2.11 versions
8837 *) supports_anon_versioning
=yes ;;
8840 # See if GNU ld supports shared libraries.
8843 # On AIX/PPC, the GNU linker is very broken
8844 if test "$host_cpu" != ia64
; then
8848 *** Warning: the GNU linker, at least up to release 2.19, is reported
8849 *** to be unable to reliably create shared libraries on AIX.
8850 *** Therefore, libtool is disabling shared libraries support. If you
8851 *** really care for shared libraries, you may want to install binutils
8852 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8853 *** You will then need to restart the configuration process.
8862 # see comment about AmigaOS4 .so support
8863 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 archive_expsym_cmds
=''
8867 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)'
8868 hardcode_libdir_flag_spec
='-L$libdir'
8869 hardcode_minus_L
=yes
8875 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8876 allow_undefined_flag
=unsupported
8877 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8878 # support --undefined. This deserves some investigation. FIXME
8879 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885 cygwin
* | mingw
* | pw32
* | cegcc
*)
8886 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8887 # as there is no search path for DLLs.
8888 hardcode_libdir_flag_spec
='-L$libdir'
8889 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8890 allow_undefined_flag
=unsupported
8891 always_export_symbols
=no
8892 enable_shared_with_static_runtimes
=yes
8893 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8895 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8896 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8897 # If the export-symbols file already is a .def file (1st line
8898 # is EXPORTS), use it as is; otherwise, prepend...
8899 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8900 cp $export_symbols $output_objdir/$soname.def;
8902 echo EXPORTS > $output_objdir/$soname.def;
8903 cat $export_symbols >> $output_objdir/$soname.def;
8905 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8912 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8913 link_all_deplibs
=yes
8918 hardcode_shlibpath_var
=no
8919 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8920 export_dynamic_flag_spec
='${wl}-E'
8921 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8922 # Instead, shared libraries are loaded at an image base (0x10000000 by
8923 # default) and relocated if they conflict, which is a slow very memory
8924 # consuming and fragmenting process. To avoid this, we pick a random,
8925 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8926 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8927 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8928 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'
8931 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8933 if test "$host_os" = linux-dietlibc
; then
8934 case $cc_basename in
8935 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8938 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8939 && test "$tmp_diet" = no
8941 tmp_addflag
=' $pic_flag'
8942 tmp_sharedflag
='-shared'
8943 case $cc_basename,$host_cpu in
8944 pgcc
*) # Portland Group C compiler
8945 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'
8946 tmp_addflag
=' $pic_flag'
8948 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8949 # Portland Group f77 and f90 compilers
8950 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'
8951 tmp_addflag
=' $pic_flag -Mnomain' ;;
8952 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8953 tmp_addflag
=' -i_dynamic' ;;
8954 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8955 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8956 ifc
* | ifort
*) # Intel Fortran compiler
8957 tmp_addflag
=' -nofor_main' ;;
8958 lf95
*) # Lahey Fortran 8.1
8959 whole_archive_flag_spec
=
8960 tmp_sharedflag
='--shared' ;;
8961 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8962 tmp_sharedflag
='-qmkshrobj'
8964 nvcc
*) # Cuda Compiler Driver 2.2
8965 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'
8966 compiler_needs_object
=yes
8969 case `$CC -V 2>&1 | sed 5q` in
8970 *Sun\ C
*) # Sun C 5.9
8971 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'
8972 compiler_needs_object
=yes
8973 tmp_sharedflag
='-G' ;;
8974 *Sun\ F
*) # Sun Fortran 8.3
8975 tmp_sharedflag
='-G' ;;
8977 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979 if test "x$supports_anon_versioning" = xyes
; then
8980 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8981 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8982 echo "local: *; };" >> $output_objdir/$libname.ver~
8983 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8986 case $cc_basename in
8987 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8988 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8989 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8990 hardcode_libdir_flag_spec
=
8991 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8992 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8993 if test "x$supports_anon_versioning" = xyes
; then
8994 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8996 echo "local: *; };" >> $output_objdir/$libname.ver~
8997 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9007 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9008 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9011 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9021 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9022 *** create shared libraries on Solaris systems. Therefore, libtool
9023 *** is disabling shared libraries support. We urge you to upgrade GNU
9024 *** binutils to release 2.9.1 or newer. Another option is to modify
9025 *** your PATH or compiler configuration so that the native linker is
9026 *** used, and then restart.
9029 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9030 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9037 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9038 case `$LD -v 2>&1` in
9039 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9043 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9044 *** reliably create shared libraries on SCO systems. Therefore, libtool
9045 *** is disabling shared libraries support. We urge you to upgrade GNU
9046 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9047 *** your PATH or compiler configuration so that the native linker is
9048 *** used, and then restart.
9053 # For security reasons, it is highly recommended that you always
9054 # use absolute paths for naming shared libraries, and exclude the
9055 # DT_RUNPATH tag from executables and libraries. But doing so
9056 # requires that you compile everything twice, which is a pain.
9057 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9058 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9059 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9069 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_shlibpath_var
=no
9076 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9077 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9078 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9085 if test "$ld_shlibs" = no
; then
9087 hardcode_libdir_flag_spec
=
9088 export_dynamic_flag_spec
=
9089 whole_archive_flag_spec
=
9092 # PORTME fill in a description of your system's linker (not GNU ld)
9095 allow_undefined_flag
=unsupported
9096 always_export_symbols
=yes
9097 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'
9098 # Note: this linker hardcodes the directories in LIBPATH if there
9099 # are no directories specified by -L.
9100 hardcode_minus_L
=yes
9101 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9102 # Neither direct hardcoding nor static linking is supported with a
9104 hardcode_direct
=unsupported
9109 if test "$host_cpu" = ia64
; then
9110 # On IA64, the linker does run time linking by default, so we don't
9111 # have to do anything special.
9112 aix_use_runtimelinking
=no
9113 exp_sym_flag
='-Bexport'
9116 # If we're using GNU nm, then we don't want the "-C" option.
9117 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9118 # Also, AIX nm treats weak defined symbols like other global
9119 # defined symbols, whereas GNU nm marks them as "W".
9120 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9121 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'
9123 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'
9125 aix_use_runtimelinking
=no
9127 # Test if we are trying to use run time linking or normal
9128 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9129 # need to do runtime linking.
9130 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9131 for ld_flag
in $LDFLAGS; do
9132 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9133 aix_use_runtimelinking
=yes
9140 exp_sym_flag
='-bexport'
9141 no_entry_flag
='-bnoentry'
9144 # When large executables or shared objects are built, AIX ld can
9145 # have problems creating the table of contents. If linking a library
9146 # or program results in "error TOC overflow" add -mminimal-toc to
9147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9152 hardcode_direct_absolute
=yes
9153 hardcode_libdir_separator
=':'
9154 link_all_deplibs
=yes
9155 file_list_spec
='${wl}-f,'
9157 if test "$GCC" = yes; then
9158 case $host_os in aix4.
[012]|aix4.
[012].
*)
9159 # We only want to do this on AIX 4.2 and lower, the check
9160 # below for broken collect2 doesn't work under 4.3+
9161 collect2name
=`${CC} -print-prog-name=collect2`
9162 if test -f "$collect2name" &&
9163 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9165 # We have reworked collect2
9168 # We have old collect2
9169 hardcode_direct
=unsupported
9170 # It fails to find uninstalled libraries when the uninstalled
9171 # path is not listed in the libpath. Setting hardcode_minus_L
9172 # to unsupported forces relinking
9173 hardcode_minus_L
=yes
9174 hardcode_libdir_flag_spec
='-L$libdir'
9175 hardcode_libdir_separator
=
9179 shared_flag
='-shared'
9180 if test "$aix_use_runtimelinking" = yes; then
9181 shared_flag
="$shared_flag "'${wl}-G'
9185 if test "$host_cpu" = ia64
; then
9186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9187 # chokes on -Wl,-G. The following line is correct:
9190 if test "$aix_use_runtimelinking" = yes; then
9191 shared_flag
='${wl}-G'
9193 shared_flag
='${wl}-bM:SRE'
9198 export_dynamic_flag_spec
='${wl}-bexpall'
9199 # It seems that -bexpall does not export symbols beginning with
9200 # underscore (_), so it is better to generate a list of symbols to export.
9201 always_export_symbols
=yes
9202 if test "$aix_use_runtimelinking" = yes; then
9203 # Warning - without using the other runtime loading flags (-brtl),
9204 # -berok will link without error, but may produce a broken library.
9205 allow_undefined_flag
='-berok'
9206 # Determine the default libpath from the value encoded in an
9208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9219 if ac_fn_c_try_link
"$LINENO"; then :
9221 lt_aix_libpath_sed
='
9222 /Import File Strings/,/^$/ {
9228 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229 # Check for a 64-bit object if we didn't find anything.
9230 if test -z "$aix_libpath"; then
9231 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9234 rm -f core conftest.err conftest.
$ac_objext \
9235 conftest
$ac_exeext conftest.
$ac_ext
9236 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9238 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9239 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"
9241 if test "$host_cpu" = ia64
; then
9242 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9243 allow_undefined_flag
="-z nodefs"
9244 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"
9246 # Determine the default libpath from the value encoded in an
9248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9259 if ac_fn_c_try_link
"$LINENO"; then :
9261 lt_aix_libpath_sed
='
9262 /Import File Strings/,/^$/ {
9268 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9269 # Check for a 64-bit object if we didn't find anything.
9270 if test -z "$aix_libpath"; then
9271 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9274 rm -f core conftest.err conftest.
$ac_objext \
9275 conftest
$ac_exeext conftest.
$ac_ext
9276 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9278 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9279 # Warning - without using the other run time loading flags,
9280 # -berok will link without error, but may produce a broken library.
9281 no_undefined_flag
=' ${wl}-bernotok'
9282 allow_undefined_flag
=' ${wl}-berok'
9283 if test "$with_gnu_ld" = yes; then
9284 # We only use this code for GNU lds that support --whole-archive.
9285 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9287 # Exported symbols can be pulled into shared objects from archives
9288 whole_archive_flag_spec
='$convenience'
9290 archive_cmds_need_lc
=yes
9291 # This is similar to how AIX traditionally builds its shared libraries.
9292 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'
9300 # see comment about AmigaOS4 .so support
9301 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302 archive_expsym_cmds
=''
9305 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)'
9306 hardcode_libdir_flag_spec
='-L$libdir'
9307 hardcode_minus_L
=yes
9313 export_dynamic_flag_spec
=-rdynamic
9316 cygwin
* | mingw
* | pw32
* | cegcc
*)
9317 # When not using gcc, we currently assume that we are using
9318 # Microsoft Visual C++.
9319 # hardcode_libdir_flag_spec is actually meaningless, as there is
9320 # no search path for DLLs.
9321 hardcode_libdir_flag_spec
=' '
9322 allow_undefined_flag
=unsupported
9323 # Tell ltmain to make .lib files, not .a files.
9325 # Tell ltmain to make .dll files, not .so files.
9327 # FIXME: Setting linknames here is a bad hack.
9328 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9329 # The linker will automatically build a .lib file if we build a DLL.
9330 old_archive_from_new_cmds
='true'
9331 # FIXME: Should let the user specify the lib program.
9332 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9333 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9334 enable_shared_with_static_runtimes
=yes
9337 darwin
* | rhapsody
*)
9340 archive_cmds_need_lc
=no
9342 hardcode_automatic
=yes
9343 hardcode_shlibpath_var
=unsupported
9344 if test "$lt_cv_ld_force_load" = "yes"; then
9345 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\"`'
9347 whole_archive_flag_spec
=''
9349 link_all_deplibs
=yes
9350 allow_undefined_flag
="$_lt_dar_allow_undefined"
9351 case $cc_basename in
9352 ifort
*) _lt_dar_can_shared
=yes ;;
9353 *) _lt_dar_can_shared
=$GCC ;;
9355 if test "$_lt_dar_can_shared" = "yes"; then
9356 output_verbose_link_cmd
=func_echo_all
9357 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9358 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9359 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}"
9360 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}"
9369 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_libdir_flag_spec
='-L$libdir'
9371 hardcode_shlibpath_var
=no
9374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9375 # support. Future versions do this automatically, but an explicit c++rt0.o
9376 # does not break anything, and helps significantly (at the cost of a little
9379 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9380 hardcode_libdir_flag_spec
='-R$libdir'
9382 hardcode_shlibpath_var
=no
9385 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9387 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_minus_L
=yes
9390 hardcode_shlibpath_var
=no
9393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9394 freebsd
* | dragonfly
*)
9395 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9396 hardcode_libdir_flag_spec
='-R$libdir'
9398 hardcode_shlibpath_var
=no
9402 if test "$GCC" = yes; then
9403 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'
9405 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'
9407 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9408 hardcode_libdir_separator
=:
9411 # hardcode_minus_L: Not really in the search PATH,
9412 # but as the default location of the library.
9413 hardcode_minus_L
=yes
9414 export_dynamic_flag_spec
='${wl}-E'
9418 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9419 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9423 if test "$with_gnu_ld" = no
; then
9424 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9425 hardcode_libdir_flag_spec_ld
='+b $libdir'
9426 hardcode_libdir_separator
=:
9428 hardcode_direct_absolute
=yes
9429 export_dynamic_flag_spec
='${wl}-E'
9430 # hardcode_minus_L: Not really in the search PATH,
9431 # but as the default location of the library.
9432 hardcode_minus_L
=yes
9437 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9440 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9443 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9459 # Older versions of the 11.00 compiler do not understand -b yet
9460 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9462 $as_echo_n "checking if $CC understands -b... " >&6; }
9463 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9466 lt_cv_prog_compiler__b
=no
9467 save_LDFLAGS
="$LDFLAGS"
9468 LDFLAGS
="$LDFLAGS -b"
9469 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9470 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9471 # The linker can only warn and ignore the option if not recognized
9472 # So say no if there are warnings
9473 if test -s conftest.err
; then
9474 # Append any errors to the config.log.
9475 cat conftest.err
1>&5
9476 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9477 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9478 if diff conftest.exp conftest.er2
>/dev
/null
; then
9479 lt_cv_prog_compiler__b
=yes
9482 lt_cv_prog_compiler__b
=yes
9486 LDFLAGS
="$save_LDFLAGS"
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9490 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9492 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9493 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9501 if test "$with_gnu_ld" = no
; then
9502 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9503 hardcode_libdir_separator
=:
9508 hardcode_shlibpath_var
=no
9512 hardcode_direct_absolute
=yes
9513 export_dynamic_flag_spec
='${wl}-E'
9515 # hardcode_minus_L: Not really in the search PATH,
9516 # but as the default location of the library.
9517 hardcode_minus_L
=yes
9523 irix5
* | irix6
* | nonstopux
*)
9524 if test "$GCC" = yes; then
9525 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'
9526 # Try to use the -exported_symbol ld option, if it does not
9527 # work, assume that -exports_file does not work either and
9528 # implicitly export all symbols.
9529 save_LDFLAGS
="$LDFLAGS"
9530 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9535 if ac_fn_c_try_link
"$LINENO"; then :
9536 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'
9539 rm -f core conftest.err conftest.
$ac_objext \
9540 conftest
$ac_exeext conftest.
$ac_ext
9541 LDFLAGS
="$save_LDFLAGS"
9543 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'
9544 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'
9546 archive_cmds_need_lc
='no'
9547 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9548 hardcode_libdir_separator
=:
9550 link_all_deplibs
=yes
9554 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9555 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9557 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9559 hardcode_libdir_flag_spec
='-R$libdir'
9561 hardcode_shlibpath_var
=no
9565 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9568 hardcode_libdir_separator
=:
9569 hardcode_shlibpath_var
=no
9576 if test -f /usr
/libexec
/ld.so
; then
9578 hardcode_shlibpath_var
=no
9579 hardcode_direct_absolute
=yes
9580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9581 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9582 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9583 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9584 export_dynamic_flag_spec
='${wl}-E'
9587 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9588 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9589 hardcode_libdir_flag_spec
='-R$libdir'
9592 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9593 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9603 hardcode_libdir_flag_spec
='-L$libdir'
9604 hardcode_minus_L
=yes
9605 allow_undefined_flag
=unsupported
9606 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'
9607 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9611 if test "$GCC" = yes; then
9612 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9613 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'
9615 allow_undefined_flag
=' -expect_unresolved \*'
9616 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'
9618 archive_cmds_need_lc
='no'
9619 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9620 hardcode_libdir_separator
=:
9623 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9624 if test "$GCC" = yes; then
9625 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9626 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'
9627 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9629 allow_undefined_flag
=' -expect_unresolved \*'
9630 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'
9631 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~
9632 $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'
9634 # Both c and cxx compiler support -rpath directly
9635 hardcode_libdir_flag_spec
='-rpath $libdir'
9637 archive_cmds_need_lc
='no'
9638 hardcode_libdir_separator
=:
9642 no_undefined_flag
=' -z defs'
9643 if test "$GCC" = yes; then
9645 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9647 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9649 case `$CC -V 2>&1` in
9652 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9658 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9660 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9664 hardcode_libdir_flag_spec
='-R$libdir'
9665 hardcode_shlibpath_var
=no
9667 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9669 # The compiler driver will combine and reorder linker options,
9670 # but understands `-z linker_flag'. GCC discards it without `$wl',
9671 # but is careful enough not to reorder.
9672 # Supported since Solaris 2.6 (maybe 2.5.1?)
9673 if test "$GCC" = yes; then
9674 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9676 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9680 link_all_deplibs
=yes
9684 if test "x$host_vendor" = xsequent
; then
9685 # Use $CC to link under sequent, because it throws in some extra .o
9686 # files that make .init and .fini sections work.
9687 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9689 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_libdir_flag_spec
='-L$libdir'
9693 hardcode_minus_L
=yes
9694 hardcode_shlibpath_var
=no
9698 case $host_vendor in
9700 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_direct
=yes # is this really true???
9704 ## LD is ld it makes a PLAMLIB
9705 ## CC just makes a GrossModule.
9706 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9707 reload_cmds
='$CC -r -o $output$reload_objs'
9711 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9715 runpath_var
='LD_RUN_PATH'
9716 hardcode_shlibpath_var
=no
9720 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721 hardcode_shlibpath_var
=no
9722 export_dynamic_flag_spec
='-Bexport'
9726 if test -d /usr
/nec
; then
9727 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_shlibpath_var
=no
9729 runpath_var
=LD_RUN_PATH
9730 hardcode_runpath_var
=yes
9735 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9736 no_undefined_flag
='${wl}-z,text'
9737 archive_cmds_need_lc
=no
9738 hardcode_shlibpath_var
=no
9739 runpath_var
='LD_RUN_PATH'
9741 if test "$GCC" = yes; then
9742 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 sysv5
* | sco3.2v5
* | sco5v6
*)
9751 # Note: We can NOT use -z defs as we might desire, because we do not
9752 # link with -lc, and that would cause any symbols used from libc to
9753 # always be unresolved, which means just about no library would
9754 # ever link correctly. If we're not using GNU ld we use -z text
9755 # though, which does catch some bad symbols but isn't as heavy-handed
9757 no_undefined_flag
='${wl}-z,text'
9758 allow_undefined_flag
='${wl}-z,nodefs'
9759 archive_cmds_need_lc
=no
9760 hardcode_shlibpath_var
=no
9761 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9762 hardcode_libdir_separator
=':'
9763 link_all_deplibs
=yes
9764 export_dynamic_flag_spec
='${wl}-Bexport'
9765 runpath_var
='LD_RUN_PATH'
9767 if test "$GCC" = yes; then
9768 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778 hardcode_libdir_flag_spec
='-L$libdir'
9779 hardcode_shlibpath_var
=no
9787 if test x
$host_vendor = xsni
; then
9789 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9790 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9797 $as_echo "$ld_shlibs" >&6; }
9798 test "$ld_shlibs" = no
&& can_build_shared
=no
9800 with_gnu_ld
=$with_gnu_ld
9817 # Do we need to explicitly link libc?
9819 case "x$archive_cmds_need_lc" in
9821 # Assume -lc should be added
9822 archive_cmds_need_lc
=yes
9824 if test "$enable_shared" = yes && test "$GCC" = yes; then
9825 case $archive_cmds in
9827 # FIXME: we may have to deal with multi-command sequences.
9830 # Test whether the compiler implicitly links with -lc since on some
9831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9832 # to ld, don't add -lc before -lgcc.
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9834 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9835 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
9839 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9842 (eval $ac_compile) 2>&5
9844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9845 test $ac_status = 0; } 2>conftest.err
; then
9848 libobjs
=conftest.
$ac_objext
9850 wl
=$lt_prog_compiler_wl
9851 pic_flag
=$lt_prog_compiler_pic
9857 lt_save_allow_undefined_flag
=$allow_undefined_flag
9858 allow_undefined_flag
=
9859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9860 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9863 test $ac_status = 0; }
9865 lt_cv_archive_cmds_need_lc
=no
9867 lt_cv_archive_cmds_need_lc
=yes
9869 allow_undefined_flag
=$lt_save_allow_undefined_flag
9871 cat conftest.err
1>&5
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9877 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9878 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10044 if test "$GCC" = yes; then
10046 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10047 *) lt_awk_arg
="/^libraries:/" ;;
10050 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10051 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10053 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10054 case $lt_search_path_spec in
10056 # if the path contains ";" then we assume it to be the separator
10057 # otherwise default to the standard path separator (i.e. ":") - it is
10058 # assumed that no part of a normal pathname contains ";" but that should
10059 # okay in the real world where ";" in dirpaths is itself problematic.
10060 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10063 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10066 # Ok, now we have the path, separated by spaces, we can step through it
10067 # and add multilib dir if necessary.
10068 lt_tmp_lt_search_path_spec
=
10069 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10070 for lt_sys_path
in $lt_search_path_spec; do
10071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10072 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10074 test -d "$lt_sys_path" && \
10075 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10078 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10079 BEGIN {RS=" "; FS="/|\n";} {
10082 for (lt_i = NF; lt_i > 0; lt_i--) {
10083 if ($lt_i != "" && $lt_i != ".") {
10084 if ($lt_i == "..") {
10087 if (lt_count == 0) {
10088 lt_foo="/" $lt_i lt_foo;
10095 if (lt_foo != "") { lt_freq[lt_foo]++; }
10096 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10098 # AWK program above erroneously prepends '/' to C:/dos/paths
10101 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10102 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10104 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10106 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10108 library_names_spec
=
10109 libname_spec
='lib$name'
10113 postuninstall_cmds
=
10117 shlibpath_overrides_runpath
=unknown
10119 dynamic_linker
="$host_os ld.so"
10120 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10121 need_lib_prefix
=unknown
10122 hardcode_into_libs
=no
10124 # when you set need_version to no, make sure it does not cause -set_version
10125 # flags to be left without arguments
10126 need_version
=unknown
10131 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10132 shlibpath_var
=LIBPATH
10134 # AIX 3 has no versioning support, so we append a major version to the name.
10135 soname_spec
='${libname}${release}${shared_ext}$major'
10142 hardcode_into_libs
=yes
10143 if test "$host_cpu" = ia64
; then
10144 # AIX 5 supports IA64
10145 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10146 shlibpath_var
=LD_LIBRARY_PATH
10148 # With GCC up to 2.95.x, collect2 would create an import file
10149 # for dependence libraries. The import file would start with
10150 # the line `#! .'. This would cause the generated library to
10151 # depend on `.', always an invalid library. This was fixed in
10152 # development snapshots of GCC prior to 3.0.
10154 aix4 | aix4.
[01] | aix4.
[01].
*)
10155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10157 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10160 can_build_shared
=no
10164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10165 # soname into executable. Probably we can add versioning support to
10166 # collect2, so additional links can be useful in future.
10167 if test "$aix_use_runtimelinking" = yes; then
10168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10169 # instead of lib<name>.a to let people know that these are not
10170 # typical AIX shared libraries.
10171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 # We preserve .a as extension for shared libraries through AIX4.2
10174 # and later when we are not doing run time linking.
10175 library_names_spec
='${libname}${release}.a $libname.a'
10176 soname_spec
='${libname}${release}${shared_ext}$major'
10178 shlibpath_var
=LIBPATH
10185 # Since July 2007 AmigaOS4 officially supports .so libraries.
10186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190 library_names_spec
='$libname.ixlibrary $libname.a'
10191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10192 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'
10198 library_names_spec
='${libname}${shared_ext}'
10199 dynamic_linker
="$host_os ld.so"
10200 shlibpath_var
=LIBRARY_PATH
10206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 soname_spec
='${libname}${release}${shared_ext}$major'
10208 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10209 shlibpath_var
=LD_LIBRARY_PATH
10210 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10211 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10212 # the default ld.so.conf also contains /usr/contrib/lib and
10213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10214 # libtool to hard-code these into programs
10217 cygwin
* | mingw
* | pw32
* | cegcc
*)
10218 version_type
=windows
10223 case $GCC,$host_os in
10224 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10225 library_names_spec
='$libname.dll.a'
10226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10227 postinstall_cmds
='base_file=`basename \${file}`~
10228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10229 dldir=$destdir/`dirname \$dlpath`~
10230 test -d \$dldir || mkdir -p \$dldir~
10231 $install_prog $dir/$dlname \$dldir/$dlname~
10232 chmod a+x \$dldir/$dlname~
10233 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10234 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10236 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10237 dlpath=$dir/\$dldll~
10239 shlibpath_overrides_runpath
=yes
10243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10244 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10246 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10249 # MinGW DLLs use traditional 'lib' prefix
10250 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10253 # pw32 DLLs use 'pw' prefix rather than 'lib'
10254 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10260 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10263 dynamic_linker
='Win32 ld.exe'
10264 # FIXME: first we should search . and the directory the executable is in
10268 darwin
* | rhapsody
*)
10269 dynamic_linker
="$host_os dyld"
10270 version_type
=darwin
10273 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10274 soname_spec
='${libname}${release}${major}$shared_ext'
10275 shlibpath_overrides_runpath
=yes
10276 shlibpath_var
=DYLD_LIBRARY_PATH
10277 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10279 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10280 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10288 soname_spec
='${libname}${release}${shared_ext}$major'
10289 shlibpath_var
=LD_LIBRARY_PATH
10292 freebsd
* | dragonfly
*)
10293 # DragonFly does not have aout. When/if they implement a new
10294 # versioning mechanism, adjust this.
10295 if test -x /usr
/bin
/objformat
; then
10296 objformat
=`/usr/bin/objformat`
10299 freebsd
[23].
*) objformat
=aout
;;
10300 *) objformat
=elf
;;
10303 version_type
=freebsd-
$objformat
10304 case $version_type in
10306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10311 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10315 shlibpath_var
=LD_LIBRARY_PATH
10318 shlibpath_overrides_runpath
=yes
10320 freebsd3.
[01]* | freebsdelf3.
[01]*)
10321 shlibpath_overrides_runpath
=yes
10322 hardcode_into_libs
=yes
10324 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10325 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10326 shlibpath_overrides_runpath
=no
10327 hardcode_into_libs
=yes
10329 *) # from 4.6 on, and DragonFly
10330 shlibpath_overrides_runpath
=yes
10331 hardcode_into_libs
=yes
10340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10341 soname_spec
='${libname}${release}${shared_ext}$major'
10342 shlibpath_var
=LD_LIBRARY_PATH
10343 hardcode_into_libs
=yes
10350 dynamic_linker
="$host_os runtime_loader"
10351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10352 soname_spec
='${libname}${release}${shared_ext}$major'
10353 shlibpath_var
=LIBRARY_PATH
10354 shlibpath_overrides_runpath
=yes
10355 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10356 hardcode_into_libs
=yes
10359 hpux9
* | hpux10
* | hpux11
*)
10360 # Give a soname corresponding to the major version so that dld.sl refuses to
10361 # link against other versions.
10368 hardcode_into_libs
=yes
10369 dynamic_linker
="$host_os dld.so"
10370 shlibpath_var
=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec
='${libname}${release}${shared_ext}$major'
10374 if test "X$HPUX_IA64_MODE" = X32
; then
10375 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10377 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10379 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10383 hardcode_into_libs
=yes
10384 dynamic_linker
="$host_os dld.sl"
10385 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10386 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec
='${libname}${release}${shared_ext}$major'
10389 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10390 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10394 dynamic_linker
="$host_os dld.sl"
10395 shlibpath_var
=SHLIB_PATH
10396 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 soname_spec
='${libname}${release}${shared_ext}$major'
10401 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10402 postinstall_cmds
='chmod 555 $lib'
10403 # or fails outright, so override atomically:
10404 install_override_mode
=555
10411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10412 soname_spec
='${libname}${release}${shared_ext}$major'
10413 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10414 shlibpath_var
=LD_LIBRARY_PATH
10415 shlibpath_overrides_runpath
=no
10416 hardcode_into_libs
=yes
10419 irix5
* | irix6
* | nonstopux
*)
10421 nonstopux
*) version_type
=nonstopux
;;
10423 if test "$lt_cv_prog_gnu_ld" = yes; then
10431 soname_spec
='${libname}${release}${shared_ext}$major'
10432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10434 irix5
* | nonstopux
*)
10435 libsuff
= shlibsuff
=
10438 case $LD in # libtool.m4 will add one of these switches to LD
10439 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10440 libsuff
= shlibsuff
= libmagic
=32-bit;;
10441 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10442 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10443 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10444 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10445 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10449 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10450 shlibpath_overrides_runpath
=no
10451 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10452 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10453 hardcode_into_libs
=yes
10456 # No shared lib support for Linux oldld, aout, or coff.
10457 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10461 # This must be Linux ELF.
10462 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10466 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 soname_spec
='${libname}${release}${shared_ext}$major'
10468 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10469 shlibpath_var
=LD_LIBRARY_PATH
10470 shlibpath_overrides_runpath
=no
10472 # Some binutils ld are patched to set DT_RUNPATH
10473 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10476 lt_cv_shlibpath_overrides_runpath
=no
10477 save_LDFLAGS
=$LDFLAGS
10478 save_libdir
=$libdir
10479 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10480 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10492 if ac_fn_c_try_link
"$LINENO"; then :
10493 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10494 lt_cv_shlibpath_overrides_runpath
=yes
10497 rm -f core conftest.err conftest.
$ac_objext \
10498 conftest
$ac_exeext conftest.
$ac_ext
10499 LDFLAGS
=$save_LDFLAGS
10500 libdir
=$save_libdir
10504 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10506 # This implies no fast_install, which is unacceptable.
10507 # Some rework will be needed to allow for fast_install
10508 # before this can be enabled.
10509 hardcode_into_libs
=yes
10511 # Append ld.so.conf contents to the search path
10512 if test -f /etc
/ld.so.conf
; then
10513 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' ' '`
10514 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10517 # We used to test for /lib/ld.so.1 and disable shared libraries on
10518 # powerpc, because MkLinux only supported shared libraries with the
10519 # GNU dynamic linker. Since this was broken with cross compilers,
10520 # most powerpc-linux boxes support dynamic linking these days and
10521 # people can always --disable-shared, the test was removed, and we
10522 # assume the GNU/Linux dynamic linker is in use.
10523 dynamic_linker
='GNU/Linux ld.so'
10530 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10532 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10533 dynamic_linker
='NetBSD (a.out) ld.so'
10535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10536 soname_spec
='${libname}${release}${shared_ext}$major'
10537 dynamic_linker
='NetBSD ld.elf_so'
10539 shlibpath_var
=LD_LIBRARY_PATH
10540 shlibpath_overrides_runpath
=yes
10541 hardcode_into_libs
=yes
10546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547 shlibpath_var
=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath
=yes
10555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec
='${libname}${release}${shared_ext}$major'
10557 shlibpath_var
=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath
=no
10559 hardcode_into_libs
=yes
10560 dynamic_linker
='ldqnx.so'
10565 sys_lib_dlsearch_path_spec
="/usr/lib"
10567 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10569 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10570 *) need_version
=no
;;
10572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574 shlibpath_var
=LD_LIBRARY_PATH
10575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10577 openbsd2.
[89] | openbsd2.
[89].
*)
10578 shlibpath_overrides_runpath
=no
10581 shlibpath_overrides_runpath
=yes
10585 shlibpath_overrides_runpath
=yes
10590 libname_spec
='$name'
10593 library_names_spec
='$libname${shared_ext} $libname.a'
10594 dynamic_linker
='OS/2 ld.exe'
10595 shlibpath_var
=LIBPATH
10598 osf3
* | osf4
* | osf5
*)
10602 soname_spec
='${libname}${release}${shared_ext}$major'
10603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 shlibpath_var
=LD_LIBRARY_PATH
10605 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10606 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
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 shlibpath_var
=LD_LIBRARY_PATH
10620 shlibpath_overrides_runpath
=yes
10621 hardcode_into_libs
=yes
10622 # ldd complains unless libraries are executable
10623 postinstall_cmds
='chmod +x $lib'
10628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10629 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10630 shlibpath_var
=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath
=yes
10632 if test "$with_gnu_ld" = yes; then
10640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 soname_spec
='${libname}${release}${shared_ext}$major'
10642 shlibpath_var
=LD_LIBRARY_PATH
10643 case $host_vendor in
10645 shlibpath_overrides_runpath
=no
10647 runpath_var
=LD_RUN_PATH
10655 shlibpath_overrides_runpath
=no
10656 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10662 if test -d /usr
/nec
;then
10664 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10665 soname_spec
='$libname${shared_ext}.$major'
10666 shlibpath_var
=LD_LIBRARY_PATH
10670 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10671 version_type
=freebsd-elf
10674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10675 soname_spec
='${libname}${release}${shared_ext}$major'
10676 shlibpath_var
=LD_LIBRARY_PATH
10677 shlibpath_overrides_runpath
=yes
10678 hardcode_into_libs
=yes
10679 if test "$with_gnu_ld" = yes; then
10680 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10682 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10685 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10689 sys_lib_dlsearch_path_spec
='/usr/lib'
10693 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10697 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 shlibpath_var
=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath
=no
10700 hardcode_into_libs
=yes
10705 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 soname_spec
='${libname}${release}${shared_ext}$major'
10707 shlibpath_var
=LD_LIBRARY_PATH
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10715 $as_echo "$dynamic_linker" >&6; }
10716 test "$dynamic_linker" = no
&& can_build_shared
=no
10718 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10719 if test "$GCC" = yes; then
10720 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10723 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10724 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10726 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10727 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10822 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10824 if test -n "$hardcode_libdir_flag_spec" ||
10825 test -n "$runpath_var" ||
10826 test "X$hardcode_automatic" = "Xyes" ; then
10828 # We can hardcode non-existent directories.
10829 if test "$hardcode_direct" != no
&&
10830 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10831 # have to relink, otherwise we might link with an installed library
10832 # when we should be linking with a yet-to-be-installed one
10833 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10834 test "$hardcode_minus_L" != no
; then
10835 # Linking always hardcodes the temporary library directory.
10836 hardcode_action
=relink
10838 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10839 hardcode_action
=immediate
10842 # We cannot hardcode anything, or else we can only hardcode existing
10844 hardcode_action
=unsupported
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10847 $as_echo "$hardcode_action" >&6; }
10849 if test "$hardcode_action" = relink ||
10850 test "$inherit_rpath" = yes; then
10851 # Fast installation is not supported
10852 enable_fast_install
=no
10853 elif test "$shlibpath_overrides_runpath" = yes ||
10854 test "$enable_shared" = no
; then
10855 # Fast installation is not necessary
10856 enable_fast_install
=needless
10864 if test "x$enable_dlopen" != xyes
; then
10865 enable_dlopen
=unknown
10866 enable_dlopen_self
=unknown
10867 enable_dlopen_self_static
=unknown
10874 lt_cv_dlopen
="load_add_on"
10876 lt_cv_dlopen_self
=yes
10879 mingw
* | pw32
* | cegcc
*)
10880 lt_cv_dlopen
="LoadLibrary"
10885 lt_cv_dlopen
="dlopen"
10890 # if libdl is installed we need to link against it
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10892 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10894 $as_echo_n "(cached) " >&6
10896 ac_check_lib_save_LIBS
=$LIBS
10898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10901 /* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10916 if ac_fn_c_try_link
"$LINENO"; then :
10917 ac_cv_lib_dl_dlopen
=yes
10919 ac_cv_lib_dl_dlopen
=no
10921 rm -f core conftest.err conftest.
$ac_objext \
10922 conftest
$ac_exeext conftest.
$ac_ext
10923 LIBS
=$ac_check_lib_save_LIBS
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10926 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10927 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10928 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10931 lt_cv_dlopen
="dyld"
10933 lt_cv_dlopen_self
=yes
10940 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10941 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10942 lt_cv_dlopen
="shl_load"
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10946 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10949 ac_check_lib_save_LIBS
=$LIBS
10951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10964 return shl_load ();
10969 if ac_fn_c_try_link
"$LINENO"; then :
10970 ac_cv_lib_dld_shl_load
=yes
10972 ac_cv_lib_dld_shl_load
=no
10974 rm -f core conftest.err conftest.
$ac_objext \
10975 conftest
$ac_exeext conftest.
$ac_ext
10976 LIBS
=$ac_check_lib_save_LIBS
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10979 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10980 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10981 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10983 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10984 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10985 lt_cv_dlopen
="dlopen"
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10989 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10992 ac_check_lib_save_LIBS
=$LIBS
10994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10997 /* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
11012 if ac_fn_c_try_link
"$LINENO"; then :
11013 ac_cv_lib_dl_dlopen
=yes
11015 ac_cv_lib_dl_dlopen
=no
11017 rm -f core conftest.err conftest.
$ac_objext \
11018 conftest
$ac_exeext conftest.
$ac_ext
11019 LIBS
=$ac_check_lib_save_LIBS
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11022 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11023 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11024 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11027 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11028 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
11031 ac_check_lib_save_LIBS
=$LIBS
11032 LIBS
="-lsvld $LIBS"
11033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11051 if ac_fn_c_try_link
"$LINENO"; then :
11052 ac_cv_lib_svld_dlopen
=yes
11054 ac_cv_lib_svld_dlopen
=no
11056 rm -f core conftest.err conftest.
$ac_objext \
11057 conftest
$ac_exeext conftest.
$ac_ext
11058 LIBS
=$ac_check_lib_save_LIBS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11061 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11062 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11063 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11066 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11067 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11070 ac_check_lib_save_LIBS
=$LIBS
11072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11085 return dld_link ();
11090 if ac_fn_c_try_link
"$LINENO"; then :
11091 ac_cv_lib_dld_dld_link
=yes
11093 ac_cv_lib_dld_dld_link
=no
11095 rm -f core conftest.err conftest.
$ac_objext \
11096 conftest
$ac_exeext conftest.
$ac_ext
11097 LIBS
=$ac_check_lib_save_LIBS
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11100 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11101 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11102 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11123 if test "x$lt_cv_dlopen" != xno
; then
11129 case $lt_cv_dlopen in
11131 save_CPPFLAGS
="$CPPFLAGS"
11132 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11134 save_LDFLAGS
="$LDFLAGS"
11135 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11138 LIBS
="$lt_cv_dlopen_libs $LIBS"
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11141 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11142 if test "${lt_cv_dlopen_self+set}" = set; then :
11143 $as_echo_n "(cached) " >&6
11145 if test "$cross_compiling" = yes; then :
11146 lt_cv_dlopen_self
=cross
11148 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11149 lt_status
=$lt_dlunknown
11150 cat > conftest.
$ac_ext <<_LT_EOF
11151 #line 11151 "configure"
11152 #include "confdefs.h"
11161 # define LT_DLGLOBAL RTLD_GLOBAL
11164 # define LT_DLGLOBAL DL_GLOBAL
11166 # define LT_DLGLOBAL 0
11170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11171 find out it does not work in some platform. */
11172 #ifndef LT_DLLAZY_OR_NOW
11174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11177 # define LT_DLLAZY_OR_NOW DL_LAZY
11180 # define LT_DLLAZY_OR_NOW RTLD_NOW
11183 # define LT_DLLAZY_OR_NOW DL_NOW
11185 # define LT_DLLAZY_OR_NOW 0
11192 /* When -fvisbility=hidden is used, assume the code has been annotated
11193 correspondingly for the symbols needed. */
11194 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11195 void fnord () __attribute__((visibility("default")));
11198 void fnord () { int i=42; }
11201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11202 int status = $lt_dlunknown;
11206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11209 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11210 else puts (dlerror ());
11212 /* dlclose (self); */
11220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11221 (eval $ac_link) 2>&5
11223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11224 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11225 (.
/conftest
; exit; ) >&5 2>/dev
/null
11227 case x
$lt_status in
11228 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11229 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11230 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11233 # compilation failed
11234 lt_cv_dlopen_self
=no
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11242 $as_echo "$lt_cv_dlopen_self" >&6; }
11244 if test "x$lt_cv_dlopen_self" = xyes
; then
11245 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11247 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11248 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11251 if test "$cross_compiling" = yes; then :
11252 lt_cv_dlopen_self_static
=cross
11254 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11255 lt_status
=$lt_dlunknown
11256 cat > conftest.
$ac_ext <<_LT_EOF
11257 #line 11257 "configure"
11258 #include "confdefs.h"
11267 # define LT_DLGLOBAL RTLD_GLOBAL
11270 # define LT_DLGLOBAL DL_GLOBAL
11272 # define LT_DLGLOBAL 0
11276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11277 find out it does not work in some platform. */
11278 #ifndef LT_DLLAZY_OR_NOW
11280 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11283 # define LT_DLLAZY_OR_NOW DL_LAZY
11286 # define LT_DLLAZY_OR_NOW RTLD_NOW
11289 # define LT_DLLAZY_OR_NOW DL_NOW
11291 # define LT_DLLAZY_OR_NOW 0
11298 /* When -fvisbility=hidden is used, assume the code has been annotated
11299 correspondingly for the symbols needed. */
11300 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11301 void fnord () __attribute__((visibility("default")));
11304 void fnord () { int i=42; }
11307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11308 int status = $lt_dlunknown;
11312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11315 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11316 else puts (dlerror ());
11318 /* dlclose (self); */
11326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11327 (eval $ac_link) 2>&5
11329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11330 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11331 (.
/conftest
; exit; ) >&5 2>/dev
/null
11333 case x
$lt_status in
11334 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11335 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11336 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11339 # compilation failed
11340 lt_cv_dlopen_self_static
=no
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11348 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11351 CPPFLAGS
="$save_CPPFLAGS"
11352 LDFLAGS
="$save_LDFLAGS"
11357 case $lt_cv_dlopen_self in
11358 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11359 *) enable_dlopen_self
=unknown
;;
11362 case $lt_cv_dlopen_self_static in
11363 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11364 *) enable_dlopen_self_static
=unknown
;;
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11387 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11388 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11389 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11390 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11392 $as_echo "yes" >&6; }
11394 # FIXME - insert some real tests, host_os isn't really good enough
11397 if test -n "$STRIP" ; then
11398 striplib
="$STRIP -x"
11399 old_striplib
="$STRIP -S"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11425 # Report which library types will actually be built
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11427 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11429 $as_echo "$can_build_shared" >&6; }
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11432 $as_echo_n "checking whether to build shared libraries... " >&6; }
11433 test "$can_build_shared" = "no" && enable_shared
=no
11435 # On AIX, shared libraries and static libraries use the same namespace, and
11436 # are all built from PIC.
11439 test "$enable_shared" = yes && enable_static
=no
11440 if test -n "$RANLIB"; then
11441 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11442 postinstall_cmds
='$RANLIB $lib'
11447 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11448 test "$enable_shared" = yes && enable_static
=no
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11453 $as_echo "$enable_shared" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11456 $as_echo_n "checking whether to build static libraries... " >&6; }
11457 # Make sure either enable_shared or enable_static is yes.
11458 test "$enable_shared" = yes || enable_static
=yes
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11460 $as_echo "$enable_static" >&6; }
11467 ac_cpp
='$CPP $CPPFLAGS'
11468 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11469 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11470 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11486 ac_config_commands
="$ac_config_commands libtool"
11491 # Only expand once:
11498 *-cygwin* |
*-mingw*)
11499 # 'host' will be top-level target in the case of a target lib,
11500 # we must compare to with_cross_host to decide if this is a native
11501 # or cross-compiler and select where to install dlls appropriately.
11502 if test -n "$with_cross_host" &&
11503 test x
"$with_cross_host" != x
"no"; then
11504 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11506 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11521 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11522 # Check whether --enable-maintainer-mode was given.
11523 if test "${enable_maintainer_mode+set}" = set; then :
11524 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11526 USE_MAINTAINER_MODE
=no
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11530 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11531 if test $USE_MAINTAINER_MODE = yes; then
11532 MAINTAINER_MODE_TRUE
=
11533 MAINTAINER_MODE_FALSE
='#'
11535 MAINTAINER_MODE_TRUE
='#'
11536 MAINTAINER_MODE_FALSE
=
11539 MAINT
=$MAINTAINER_MODE_TRUE
11543 # Create a spec file, so that compile/link tests don't fail
11544 test -f libgfortran.spec ||
touch libgfortran.spec
11545 FCFLAGS
="$FCFLAGS -L."
11547 # We need gfortran to compile parts of the library
11548 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11549 #AC_PROG_FC(gfortran)
11550 case `echo $GFORTRAN` in
11554 set dummy
$GFORTRAN; ac_word
=$2
11555 if test -x "$ac_word"; then
11561 ac_ext
=${ac_fc_srcext-f}
11562 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11563 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11564 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11565 if test -n "$ac_tool_prefix"; then
11566 for ac_prog
in gfortran
11568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11569 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 $as_echo_n "checking for $ac_word... " >&6; }
11572 if test "${ac_cv_prog_FC+set}" = set; then :
11573 $as_echo_n "(cached) " >&6
11575 if test -n "$FC"; then
11576 ac_cv_prog_FC
="$FC" # Let the user override the test.
11578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11579 for as_dir
in $PATH
11582 test -z "$as_dir" && as_dir
=.
11583 for ac_exec_ext
in '' $ac_executable_extensions; do
11584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11585 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 if test -n "$FC"; then
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11598 $as_echo "$FC" >&6; }
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11605 test -n "$FC" && break
11608 if test -z "$FC"; then
11610 for ac_prog
in gfortran
11612 # Extract the first word of "$ac_prog", so it can be a program name with args.
11613 set dummy
$ac_prog; ac_word
=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11619 if test -n "$ac_ct_FC"; then
11620 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11623 for as_dir
in $PATH
11626 test -z "$as_dir" && as_dir
=.
11627 for ac_exec_ext
in '' $ac_executable_extensions; do
11628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11629 ac_cv_prog_ac_ct_FC
="$ac_prog"
11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11640 if test -n "$ac_ct_FC"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11642 $as_echo "$ac_ct_FC" >&6; }
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11649 test -n "$ac_ct_FC" && break
11652 if test "x$ac_ct_FC" = x
; then
11655 case $cross_compiling:$ac_tool_warned in
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11659 ac_tool_warned
=yes ;;
11666 # Provide some information about the compiler.
11667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11670 for ac_option
in --version -v -V -qversion; do
11671 { { ac_try
="$ac_compiler $ac_option >&5"
11672 case "(($ac_try" in
11673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11677 $as_echo "$ac_try_echo"; } >&5
11678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11680 if test -s conftest.err; then
11682 ... rest of stderr output deleted ...
11683 10q' conftest.err >conftest.er1
11684 cat conftest.er1 >&5
11685 rm -f conftest.er1 conftest.err
11687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11688 test $ac_status = 0; }
11692 # If we don't use `.F
' as extension, the preprocessor is not run on the
11693 # input file. (Note that this only needs to work for GNU compilers.)
11694 ac_save_ext=$ac_ext
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11697 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11698 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11699 $as_echo_n "(cached) " >&6
11701 cat > conftest.$ac_ext <<_ACEOF
11709 if ac_fn_fc_try_compile "$LINENO"; then :
11710 ac_compiler_gnu=yes
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11715 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11719 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11720 ac_ext=$ac_save_ext
11721 ac_test_FCFLAGS=${FCFLAGS+set}
11722 ac_save_FCFLAGS=$FCFLAGS
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11725 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11726 if test "${ac_cv_prog_fc_g+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
11730 cat > conftest.$ac_ext <<_ACEOF
11735 if ac_fn_fc_try_compile "$LINENO"; then :
11736 ac_cv_prog_fc_g=yes
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11744 $as_echo "$ac_cv_prog_fc_g" >&6; }
11745 if test "$ac_test_FCFLAGS" = set; then
11746 FCFLAGS=$ac_save_FCFLAGS
11747 elif test $ac_cv_prog_fc_g = yes; then
11748 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11754 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11762 ac_cpp='$CPP $CPPFLAGS'
11763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
11764 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
11765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11767 ac_ext=${ac_fc_srcext-f}
11768 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
11769 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
11770 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11773 if test -z "$FC" || test "X$FC" = "Xno"; then
11777 archive_cmds_need_lc_FC=no
11778 allow_undefined_flag_FC=
11779 always_export_symbols_FC=no
11780 archive_expsym_cmds_FC=
11781 export_dynamic_flag_spec_FC=
11782 hardcode_direct_FC=no
11783 hardcode_direct_absolute_FC=no
11784 hardcode_libdir_flag_spec_FC=
11785 hardcode_libdir_flag_spec_ld_FC=
11786 hardcode_libdir_separator_FC=
11787 hardcode_minus_L_FC=no
11788 hardcode_automatic_FC=no
11789 inherit_rpath_FC=no
11791 module_expsym_cmds_FC=
11792 link_all_deplibs_FC=unknown
11793 old_archive_cmds_FC=$old_archive_cmds
11794 reload_flag_FC=$reload_flag
11795 reload_cmds_FC=$reload_cmds
11796 no_undefined_flag_FC=
11797 whole_archive_flag_spec_FC=
11798 enable_shared_with_static_runtimes_FC=no
11800 # Source file extension for fc test sources.
11801 ac_ext=${ac_fc_srcext-f}
11803 # Object file extension for compiled fc test sources.
11807 # No sense in running all these tests if we already determined that
11808 # the FC compiler isn't working. Some variables
(like enable_shared
)
11809 # are currently assumed to apply to all compilers on this platform,
11810 # and will be corrupted by setting them based on a non-working compiler.
11811 if test "$_lt_disable_FC" != yes; then
11812 # Code to be used in simple compile tests
11813 lt_simple_compile_test_code
="\
11819 # Code to be used in simple link tests
11820 lt_simple_link_test_code
="\
11825 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11832 # If no C compiler was specified, use CC.
11835 # If no C compiler flags were specified, use CFLAGS.
11836 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11838 # Allow CC to be a program name with arguments.
11842 # save warnings/boilerplate of simple test code
11843 ac_outfile
=conftest.
$ac_objext
11844 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11845 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11846 _lt_compiler_boilerplate
=`cat conftest.err`
11849 ac_outfile
=conftest.
$ac_objext
11850 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11851 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11852 _lt_linker_boilerplate
=`cat conftest.err`
11856 # Allow CC to be a program name with arguments.
11861 GCC
=$ac_cv_fc_compiler_gnu
11864 for cc_temp
in $compiler""; do
11866 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11867 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11872 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11875 if test -n "$compiler"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11877 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11879 $as_echo "$can_build_shared" >&6; }
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11882 $as_echo_n "checking whether to build shared libraries... " >&6; }
11883 test "$can_build_shared" = "no" && enable_shared
=no
11885 # On AIX, shared libraries and static libraries use the same namespace, and
11886 # are all built from PIC.
11889 test "$enable_shared" = yes && enable_static
=no
11890 if test -n "$RANLIB"; then
11891 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11892 postinstall_cmds
='$RANLIB $lib'
11896 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11897 test "$enable_shared" = yes && enable_static
=no
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11902 $as_echo "$enable_shared" >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11905 $as_echo_n "checking whether to build static libraries... " >&6; }
11906 # Make sure either enable_shared or enable_static is yes.
11907 test "$enable_shared" = yes || enable_static
=yes
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11909 $as_echo "$enable_static" >&6; }
11911 GCC_FC
="$ac_cv_fc_compiler_gnu"
11915 ## There is no encapsulation within the following macros, do not change
11916 ## the running order or otherwise move them around unless you know exactly
11917 ## what you are doing...
11918 # Dependencies to place before and after the object being linked:
11920 postdep_objects_FC
=
11923 compiler_lib_search_path_FC
=
11925 cat > conftest.
$ac_ext <<_LT_EOF
11934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11935 (eval $ac_compile) 2>&5
11937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11938 test $ac_status = 0; }; then
11939 # Parse the compiler output and extract the necessary
11940 # objects, libraries and library flags.
11942 # Sentinel used to keep track of whether or not we are before
11943 # the conftest object file.
11944 pre_test_object_deps_done
=no
11946 for p
in `eval "$output_verbose_link_cmd"`; do
11950 # Some compilers place space between "-{L,R}" and the path.
11951 # Remove the space.
11952 if test $p = "-L" ||
11953 test $p = "-R"; then
11960 if test "$pre_test_object_deps_done" = no
; then
11963 # Internal compiler library paths should come after those
11964 # provided the user. The postdeps already come after the
11965 # user supplied libs so there is no need to process them.
11966 if test -z "$compiler_lib_search_path_FC"; then
11967 compiler_lib_search_path_FC
="${prev}${p}"
11969 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
11972 # The "-l" case would never come before the object being
11973 # linked, so don't bother handling this case.
11976 if test -z "$postdeps_FC"; then
11977 postdeps_FC
="${prev}${p}"
11979 postdeps_FC
="${postdeps_FC} ${prev}${p}"
11985 # This assumes that the test object file only shows up
11986 # once in the compiler output.
11987 if test "$p" = "conftest.$objext"; then
11988 pre_test_object_deps_done
=yes
11992 if test "$pre_test_object_deps_done" = no
; then
11993 if test -z "$predep_objects_FC"; then
11994 predep_objects_FC
="$p"
11996 predep_objects_FC
="$predep_objects_FC $p"
11999 if test -z "$postdep_objects_FC"; then
12000 postdep_objects_FC
="$p"
12002 postdep_objects_FC
="$postdep_objects_FC $p"
12007 *) ;; # Ignore the rest.
12015 echo "libtool.m4: error: problem compiling FC test program"
12018 $RM -f confest.
$objext
12020 # PORTME: override above test on systems where it is broken
12023 case " $postdeps_FC " in
12024 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12026 compiler_lib_search_dirs_FC
=
12027 if test -n "${compiler_lib_search_path_FC}"; then
12028 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12061 lt_prog_compiler_wl_FC
=
12062 lt_prog_compiler_pic_FC
=
12063 lt_prog_compiler_static_FC
=
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12066 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12068 if test "$GCC" = yes; then
12069 lt_prog_compiler_wl_FC
='-Wl,'
12070 lt_prog_compiler_static_FC
='-static'
12074 # All AIX code is PIC.
12075 if test "$host_cpu" = ia64
; then
12076 # AIX 5 now supports IA64 processor
12077 lt_prog_compiler_static_FC
='-Bstatic'
12079 lt_prog_compiler_pic_FC
='-fPIC'
12085 # see comment about AmigaOS4 .so support
12086 lt_prog_compiler_pic_FC
='-fPIC'
12089 # FIXME: we need at least 68020 code to build shared libraries, but
12090 # adding the `-m68020' flag to GCC prevents building anything better,
12092 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12097 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12098 # PIC is the default for these OSes.
12101 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12102 # This hack is so that the source file can tell whether it is being
12103 # built for inclusion in a dll (and should export symbols for example).
12104 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12105 # (--disable-auto-import) libraries
12106 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12109 darwin
* | rhapsody
*)
12110 # PIC is the default on this platform
12111 # Common symbols not allowed in MH_DYLIB files
12112 lt_prog_compiler_pic_FC
='-fno-common'
12116 # PIC is the default for Haiku.
12117 # The "-static" flag exists, but is broken.
12118 lt_prog_compiler_static_FC
=
12122 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12123 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12124 # sets the default TLS model and affects inlining.
12130 lt_prog_compiler_pic_FC
='-fPIC'
12136 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12137 # Instead, we relocate shared libraries at runtime.
12141 # Just because we use GCC doesn't mean we suddenly get shared libraries
12142 # on systems that don't support them.
12143 lt_prog_compiler_can_build_shared_FC
=no
12148 # QNX uses GNU C++, but need to define -shared option too, otherwise
12149 # it will coredump.
12150 lt_prog_compiler_pic_FC
='-fPIC -shared'
12154 if test -d /usr
/nec
; then
12155 lt_prog_compiler_pic_FC
=-Kconform_pic
12160 lt_prog_compiler_pic_FC
='-fPIC'
12164 case $cc_basename in
12165 nvcc
*) # Cuda Compiler Driver 2.2
12166 lt_prog_compiler_wl_FC
='-Xlinker '
12167 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12171 # PORTME Check for flag to pass linker flags through the system compiler.
12174 lt_prog_compiler_wl_FC
='-Wl,'
12175 if test "$host_cpu" = ia64
; then
12176 # AIX 5 now supports IA64 processor
12177 lt_prog_compiler_static_FC
='-Bstatic'
12179 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12183 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12184 # This hack is so that the source file can tell whether it is being
12185 # built for inclusion in a dll (and should export symbols for example).
12186 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12189 hpux9
* | hpux10
* | hpux11
*)
12190 lt_prog_compiler_wl_FC
='-Wl,'
12191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12192 # not for PA HP-UX.
12198 lt_prog_compiler_pic_FC
='+Z'
12201 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12202 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12205 irix5
* | irix6
* | nonstopux
*)
12206 lt_prog_compiler_wl_FC
='-Wl,'
12207 # PIC (with -KPIC) is the default.
12208 lt_prog_compiler_static_FC
='-non_shared'
12211 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12212 case $cc_basename in
12213 # old Intel for x86_64 which still supported -KPIC.
12215 lt_prog_compiler_wl_FC
='-Wl,'
12216 lt_prog_compiler_pic_FC
='-KPIC'
12217 lt_prog_compiler_static_FC
='-static'
12219 # icc used to be incompatible with GCC.
12220 # ICC 10 doesn't accept -KPIC any more.
12222 lt_prog_compiler_wl_FC
='-Wl,'
12223 lt_prog_compiler_pic_FC
='-fPIC'
12224 lt_prog_compiler_static_FC
='-static'
12226 # Lahey Fortran 8.1.
12228 lt_prog_compiler_wl_FC
='-Wl,'
12229 lt_prog_compiler_pic_FC
='--shared'
12230 lt_prog_compiler_static_FC
='--static'
12232 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12233 # Portland Group compilers (*not* the Pentium gcc compiler,
12234 # which looks to be a dead project)
12235 lt_prog_compiler_wl_FC
='-Wl,'
12236 lt_prog_compiler_pic_FC
='-fpic'
12237 lt_prog_compiler_static_FC
='-Bstatic'
12240 lt_prog_compiler_wl_FC
='-Wl,'
12241 # All Alpha code is PIC.
12242 lt_prog_compiler_static_FC
='-non_shared'
12244 xl
* | bgxl
* | bgf
* | mpixl
*)
12245 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12246 lt_prog_compiler_wl_FC
='-Wl,'
12247 lt_prog_compiler_pic_FC
='-qpic'
12248 lt_prog_compiler_static_FC
='-qstaticlink'
12251 case `$CC -V 2>&1 | sed 5q` in
12252 *Sun\ F
* |
*Sun
*Fortran
*)
12253 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12254 lt_prog_compiler_pic_FC
='-KPIC'
12255 lt_prog_compiler_static_FC
='-Bstatic'
12256 lt_prog_compiler_wl_FC
=''
12260 lt_prog_compiler_pic_FC
='-KPIC'
12261 lt_prog_compiler_static_FC
='-Bstatic'
12262 lt_prog_compiler_wl_FC
='-Wl,'
12270 lt_prog_compiler_pic_FC
='-KPIC'
12271 lt_prog_compiler_static_FC
='-Bstatic'
12275 # QNX uses GNU C++, but need to define -shared option too, otherwise
12276 # it will coredump.
12277 lt_prog_compiler_pic_FC
='-fPIC -shared'
12280 osf3
* | osf4
* | osf5
*)
12281 lt_prog_compiler_wl_FC
='-Wl,'
12282 # All OSF/1 code is PIC.
12283 lt_prog_compiler_static_FC
='-non_shared'
12287 lt_prog_compiler_static_FC
='-non_shared'
12291 lt_prog_compiler_pic_FC
='-KPIC'
12292 lt_prog_compiler_static_FC
='-Bstatic'
12293 case $cc_basename in
12294 f77
* | f90
* | f95
*)
12295 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12297 lt_prog_compiler_wl_FC
='-Wl,';;
12302 lt_prog_compiler_wl_FC
='-Qoption ld '
12303 lt_prog_compiler_pic_FC
='-PIC'
12304 lt_prog_compiler_static_FC
='-Bstatic'
12307 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12308 lt_prog_compiler_wl_FC
='-Wl,'
12309 lt_prog_compiler_pic_FC
='-KPIC'
12310 lt_prog_compiler_static_FC
='-Bstatic'
12314 if test -d /usr
/nec
;then
12315 lt_prog_compiler_pic_FC
='-Kconform_pic'
12316 lt_prog_compiler_static_FC
='-Bstatic'
12320 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12321 lt_prog_compiler_wl_FC
='-Wl,'
12322 lt_prog_compiler_pic_FC
='-KPIC'
12323 lt_prog_compiler_static_FC
='-Bstatic'
12327 lt_prog_compiler_wl_FC
='-Wl,'
12328 lt_prog_compiler_can_build_shared_FC
=no
12332 lt_prog_compiler_pic_FC
='-pic'
12333 lt_prog_compiler_static_FC
='-Bstatic'
12337 lt_prog_compiler_can_build_shared_FC
=no
12343 # For platforms which do not support PIC, -DPIC is meaningless:
12345 lt_prog_compiler_pic_FC
=
12348 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12352 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12357 # Check to make sure the PIC flag actually works.
12359 if test -n "$lt_prog_compiler_pic_FC"; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12361 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12362 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12365 lt_cv_prog_compiler_pic_works_FC
=no
12366 ac_outfile
=conftest.
$ac_objext
12367 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12368 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12369 # Insert the option either (1) after the last *FLAGS variable, or
12370 # (2) before a word containing "conftest.", or (3) at the end.
12371 # Note that $ac_compile itself does not contain backslashes and begins
12372 # with a dollar sign (not a hyphen), so the echo should work correctly.
12373 # The option is referenced via a variable to avoid confusing sed.
12374 lt_compile
=`echo "$ac_compile" | $SED \
12375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12377 -e 's:$: $lt_compiler_flag:'`
12378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12379 (eval "$lt_compile" 2>conftest.err
)
12381 cat conftest.err
>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 if (exit $ac_status) && test -s "$ac_outfile"; then
12384 # The compiler can only warn and ignore the option if not recognized
12385 # So say no if there are warnings other than the usual output.
12386 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12387 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12388 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12389 lt_cv_prog_compiler_pic_works_FC
=yes
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12396 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12398 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12399 case $lt_prog_compiler_pic_FC in
12401 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12404 lt_prog_compiler_pic_FC
=
12405 lt_prog_compiler_can_build_shared_FC
=no
12413 # Check to make sure the static flag actually works.
12415 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12417 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12418 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12419 $as_echo_n "(cached) " >&6
12421 lt_cv_prog_compiler_static_works_FC
=no
12422 save_LDFLAGS
="$LDFLAGS"
12423 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12424 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12425 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12426 # The linker can only warn and ignore the option if not recognized
12427 # So say no if there are warnings
12428 if test -s conftest.err
; then
12429 # Append any errors to the config.log.
12430 cat conftest.err
1>&5
12431 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12432 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12433 if diff conftest.exp conftest.er2
>/dev
/null
; then
12434 lt_cv_prog_compiler_static_works_FC
=yes
12437 lt_cv_prog_compiler_static_works_FC
=yes
12441 LDFLAGS
="$save_LDFLAGS"
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12445 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12447 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12450 lt_prog_compiler_static_FC
=
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12457 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12458 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12461 lt_cv_prog_compiler_c_o_FC
=no
12462 $RM -r conftest
2>/dev
/null
12466 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12468 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12469 # Insert the option either (1) after the last *FLAGS variable, or
12470 # (2) before a word containing "conftest.", or (3) at the end.
12471 # Note that $ac_compile itself does not contain backslashes and begins
12472 # with a dollar sign (not a hyphen), so the echo should work correctly.
12473 lt_compile
=`echo "$ac_compile" | $SED \
12474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12476 -e 's:$: $lt_compiler_flag:'`
12477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12478 (eval "$lt_compile" 2>out
/conftest.err
)
12480 cat out
/conftest.err
>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12484 # The compiler can only warn and ignore the option if not recognized
12485 # So say no if there are warnings
12486 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12487 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12488 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12489 lt_cv_prog_compiler_c_o_FC
=yes
12494 # SGI C++ compiler will create directory out/ii_files/ for
12495 # template instantiation
12496 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12497 $RM out
/* && rmdir out
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12504 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12510 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12513 lt_cv_prog_compiler_c_o_FC
=no
12514 $RM -r conftest
2>/dev
/null
12518 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12520 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12521 # Insert the option either (1) after the last *FLAGS variable, or
12522 # (2) before a word containing "conftest.", or (3) at the end.
12523 # Note that $ac_compile itself does not contain backslashes and begins
12524 # with a dollar sign (not a hyphen), so the echo should work correctly.
12525 lt_compile
=`echo "$ac_compile" | $SED \
12526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12528 -e 's:$: $lt_compiler_flag:'`
12529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12530 (eval "$lt_compile" 2>out
/conftest.err
)
12532 cat out
/conftest.err
>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12536 # The compiler can only warn and ignore the option if not recognized
12537 # So say no if there are warnings
12538 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12539 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12540 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12541 lt_cv_prog_compiler_c_o_FC
=yes
12546 # SGI C++ compiler will create directory out/ii_files/ for
12547 # template instantiation
12548 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12549 $RM out
/* && rmdir out
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12556 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12561 hard_links
="nottested"
12562 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12563 # do not overwrite the value of need_locks provided by the user
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12565 $as_echo_n "checking if we can lock with hard links... " >&6; }
12568 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12570 ln conftest.a conftest.b
2>&5 || hard_links
=no
12571 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12573 $as_echo "$hard_links" >&6; }
12574 if test "$hard_links" = no
; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12576 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12586 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12589 allow_undefined_flag_FC
=
12590 always_export_symbols_FC
=no
12592 archive_expsym_cmds_FC
=
12593 compiler_needs_object_FC
=no
12594 enable_shared_with_static_runtimes_FC
=no
12595 export_dynamic_flag_spec_FC
=
12596 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12597 hardcode_automatic_FC
=no
12598 hardcode_direct_FC
=no
12599 hardcode_direct_absolute_FC
=no
12600 hardcode_libdir_flag_spec_FC
=
12601 hardcode_libdir_flag_spec_ld_FC
=
12602 hardcode_libdir_separator_FC
=
12603 hardcode_minus_L_FC
=no
12604 hardcode_shlibpath_var_FC
=unsupported
12605 inherit_rpath_FC
=no
12606 link_all_deplibs_FC
=unknown
12608 module_expsym_cmds_FC
=
12609 old_archive_from_new_cmds_FC
=
12610 old_archive_from_expsyms_cmds_FC
=
12611 thread_safe_flag_spec_FC
=
12612 whole_archive_flag_spec_FC
=
12613 # include_expsyms should be a list of space-separated symbols to be *always*
12614 # included in the symbol list
12615 include_expsyms_FC
=
12616 # exclude_expsyms can be an extended regexp of symbols to exclude
12617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12619 # as well as any symbol that contains `d'.
12620 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12622 # platforms (ab)use it in PIC code, but their linkers get confused if
12623 # the symbol is explicitly referenced. Since portable code cannot
12624 # rely on this symbol name, it's probably fine to never include it in
12625 # preloaded symbol tables.
12626 # Exclude shared library initialization/finalization symbols.
12627 extract_expsyms_cmds
=
12630 cygwin
* | mingw
* | pw32
* | cegcc
*)
12631 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12632 # When not using gcc, we currently assume that we are using
12633 # Microsoft Visual C++.
12634 if test "$GCC" != yes; then
12639 # we just hope/assume this is gcc and not c89 (= MSVC++)
12649 # On some targets, GNU ld is compatible enough with the native linker
12650 # that we're better off using the native interface for both.
12651 lt_use_gnu_ld_interface
=no
12652 if test "$with_gnu_ld" = yes; then
12655 # The AIX port of GNU ld has always aspired to compatibility
12656 # with the native linker. However, as the warning in the GNU ld
12657 # block says, versions before 2.19.5* couldn't really create working
12658 # shared libraries, regardless of the interface used.
12659 case `$LD -v 2>&1` in
12660 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12661 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12662 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12664 lt_use_gnu_ld_interface
=yes
12669 lt_use_gnu_ld_interface
=yes
12674 if test "$lt_use_gnu_ld_interface" = yes; then
12675 # If archive_cmds runs LD, not CC, wlarc should be empty
12678 # Set some defaults for GNU ld with shared library support. These
12679 # are reset later if shared libraries are not supported. Putting them
12680 # here allows them to be overridden if necessary.
12681 runpath_var
=LD_RUN_PATH
12682 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12683 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12684 # ancient GNU ld didn't support --whole-archive et. al.
12685 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12686 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12688 whole_archive_flag_spec_FC
=
12690 supports_anon_versioning
=no
12691 case `$LD -v 2>&1` in
12692 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12693 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12694 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12695 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12696 *\
2.11.
*) ;; # other 2.11 versions
12697 *) supports_anon_versioning
=yes ;;
12700 # See if GNU ld supports shared libraries.
12703 # On AIX/PPC, the GNU linker is very broken
12704 if test "$host_cpu" != ia64
; then
12708 *** Warning: the GNU linker, at least up to release 2.19, is reported
12709 *** to be unable to reliably create shared libraries on AIX.
12710 *** Therefore, libtool is disabling shared libraries support. If you
12711 *** really care for shared libraries, you may want to install binutils
12712 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12713 *** You will then need to restart the configuration process.
12722 # see comment about AmigaOS4 .so support
12723 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12724 archive_expsym_cmds_FC
=''
12727 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)'
12728 hardcode_libdir_flag_spec_FC
='-L$libdir'
12729 hardcode_minus_L_FC
=yes
12735 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12736 allow_undefined_flag_FC
=unsupported
12737 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12738 # support --undefined. This deserves some investigation. FIXME
12739 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745 cygwin
* | mingw
* | pw32
* | cegcc
*)
12746 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12747 # as there is no search path for DLLs.
12748 hardcode_libdir_flag_spec_FC
='-L$libdir'
12749 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
12750 allow_undefined_flag_FC
=unsupported
12751 always_export_symbols_FC
=no
12752 enable_shared_with_static_runtimes_FC
=yes
12753 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12755 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12756 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12757 # If the export-symbols file already is a .def file (1st line
12758 # is EXPORTS), use it as is; otherwise, prepend...
12759 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12760 cp $export_symbols $output_objdir/$soname.def;
12762 echo EXPORTS > $output_objdir/$soname.def;
12763 cat $export_symbols >> $output_objdir/$soname.def;
12765 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12772 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 link_all_deplibs_FC
=yes
12777 hardcode_direct_FC
=no
12778 hardcode_shlibpath_var_FC
=no
12779 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
12780 export_dynamic_flag_spec_FC
='${wl}-E'
12781 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12782 # Instead, shared libraries are loaded at an image base (0x10000000 by
12783 # default) and relocated if they conflict, which is a slow very memory
12784 # consuming and fragmenting process. To avoid this, we pick a random,
12785 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12786 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12787 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'
12788 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'
12791 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12793 if test "$host_os" = linux-dietlibc
; then
12794 case $cc_basename in
12795 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12798 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12799 && test "$tmp_diet" = no
12801 tmp_addflag
=' $pic_flag'
12802 tmp_sharedflag
='-shared'
12803 case $cc_basename,$host_cpu in
12804 pgcc
*) # Portland Group C compiler
12805 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'
12806 tmp_addflag
=' $pic_flag'
12808 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12809 # Portland Group f77 and f90 compilers
12810 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'
12811 tmp_addflag
=' $pic_flag -Mnomain' ;;
12812 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12813 tmp_addflag
=' -i_dynamic' ;;
12814 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12815 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12816 ifc
* | ifort
*) # Intel Fortran compiler
12817 tmp_addflag
=' -nofor_main' ;;
12818 lf95
*) # Lahey Fortran 8.1
12819 whole_archive_flag_spec_FC
=
12820 tmp_sharedflag
='--shared' ;;
12821 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12822 tmp_sharedflag
='-qmkshrobj'
12824 nvcc
*) # Cuda Compiler Driver 2.2
12825 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'
12826 compiler_needs_object_FC
=yes
12829 case `$CC -V 2>&1 | sed 5q` in
12830 *Sun\ C
*) # Sun C 5.9
12831 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'
12832 compiler_needs_object_FC
=yes
12833 tmp_sharedflag
='-G' ;;
12834 *Sun\ F
*) # Sun Fortran 8.3
12835 tmp_sharedflag
='-G' ;;
12837 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12839 if test "x$supports_anon_versioning" = xyes
; then
12840 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
12841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12842 echo "local: *; };" >> $output_objdir/$libname.ver~
12843 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12846 case $cc_basename in
12847 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12848 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12849 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
12850 hardcode_libdir_flag_spec_FC
=
12851 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
12852 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12853 if test "x$supports_anon_versioning" = xyes
; then
12854 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
12855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12856 echo "local: *; };" >> $output_objdir/$libname.ver~
12857 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12867 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12868 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12871 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12872 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12877 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12882 *** create shared libraries on Solaris systems. Therefore, libtool
12883 *** is disabling shared libraries support. We urge you to upgrade GNU
12884 *** binutils to release 2.9.1 or newer. Another option is to modify
12885 *** your PATH or compiler configuration so that the native linker is
12886 *** used, and then restart.
12889 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12890 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12891 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12897 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12898 case `$LD -v 2>&1` in
12899 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12904 *** reliably create shared libraries on SCO systems. Therefore, libtool
12905 *** is disabling shared libraries support. We urge you to upgrade GNU
12906 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12907 *** your PATH or compiler configuration so that the native linker is
12908 *** used, and then restart.
12913 # For security reasons, it is highly recommended that you always
12914 # use absolute paths for naming shared libraries, and exclude the
12915 # DT_RUNPATH tag from executables and libraries. But doing so
12916 # requires that you compile everything twice, which is a pain.
12917 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12918 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12919 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12929 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12931 hardcode_direct_FC
=yes
12932 hardcode_shlibpath_var_FC
=no
12936 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12937 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12938 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12945 if test "$ld_shlibs_FC" = no
; then
12947 hardcode_libdir_flag_spec_FC
=
12948 export_dynamic_flag_spec_FC
=
12949 whole_archive_flag_spec_FC
=
12952 # PORTME fill in a description of your system's linker (not GNU ld)
12955 allow_undefined_flag_FC
=unsupported
12956 always_export_symbols_FC
=yes
12957 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'
12958 # Note: this linker hardcodes the directories in LIBPATH if there
12959 # are no directories specified by -L.
12960 hardcode_minus_L_FC
=yes
12961 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12962 # Neither direct hardcoding nor static linking is supported with a
12964 hardcode_direct_FC
=unsupported
12969 if test "$host_cpu" = ia64
; then
12970 # On IA64, the linker does run time linking by default, so we don't
12971 # have to do anything special.
12972 aix_use_runtimelinking
=no
12973 exp_sym_flag
='-Bexport'
12976 # If we're using GNU nm, then we don't want the "-C" option.
12977 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12978 # Also, AIX nm treats weak defined symbols like other global
12979 # defined symbols, whereas GNU nm marks them as "W".
12980 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12981 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'
12983 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'
12985 aix_use_runtimelinking
=no
12987 # Test if we are trying to use run time linking or normal
12988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12989 # need to do runtime linking.
12990 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12991 for ld_flag
in $LDFLAGS; do
12992 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12993 aix_use_runtimelinking
=yes
13000 exp_sym_flag
='-bexport'
13001 no_entry_flag
='-bnoentry'
13004 # When large executables or shared objects are built, AIX ld can
13005 # have problems creating the table of contents. If linking a library
13006 # or program results in "error TOC overflow" add -mminimal-toc to
13007 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13008 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13011 hardcode_direct_FC
=yes
13012 hardcode_direct_absolute_FC
=yes
13013 hardcode_libdir_separator_FC
=':'
13014 link_all_deplibs_FC
=yes
13015 file_list_spec_FC
='${wl}-f,'
13017 if test "$GCC" = yes; then
13018 case $host_os in aix4.
[012]|aix4.
[012].
*)
13019 # We only want to do this on AIX 4.2 and lower, the check
13020 # below for broken collect2 doesn't work under 4.3+
13021 collect2name
=`${CC} -print-prog-name=collect2`
13022 if test -f "$collect2name" &&
13023 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13025 # We have reworked collect2
13028 # We have old collect2
13029 hardcode_direct_FC
=unsupported
13030 # It fails to find uninstalled libraries when the uninstalled
13031 # path is not listed in the libpath. Setting hardcode_minus_L
13032 # to unsupported forces relinking
13033 hardcode_minus_L_FC
=yes
13034 hardcode_libdir_flag_spec_FC
='-L$libdir'
13035 hardcode_libdir_separator_FC
=
13039 shared_flag
='-shared'
13040 if test "$aix_use_runtimelinking" = yes; then
13041 shared_flag
="$shared_flag "'${wl}-G'
13045 if test "$host_cpu" = ia64
; then
13046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13047 # chokes on -Wl,-G. The following line is correct:
13050 if test "$aix_use_runtimelinking" = yes; then
13051 shared_flag
='${wl}-G'
13053 shared_flag
='${wl}-bM:SRE'
13058 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13059 # It seems that -bexpall does not export symbols beginning with
13060 # underscore (_), so it is better to generate a list of symbols to export.
13061 always_export_symbols_FC
=yes
13062 if test "$aix_use_runtimelinking" = yes; then
13063 # Warning - without using the other runtime loading flags (-brtl),
13064 # -berok will link without error, but may produce a broken library.
13065 allow_undefined_flag_FC
='-berok'
13066 # Determine the default libpath from the value encoded in an
13067 # empty executable.
13068 cat > conftest.
$ac_ext <<_ACEOF
13073 if ac_fn_fc_try_link
"$LINENO"; then :
13075 lt_aix_libpath_sed
='
13076 /Import File Strings/,/^$/ {
13082 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13083 # Check for a 64-bit object if we didn't find anything.
13084 if test -z "$aix_libpath"; then
13085 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13088 rm -f core conftest.err conftest.
$ac_objext \
13089 conftest
$ac_exeext conftest.
$ac_ext
13090 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13092 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13093 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"
13095 if test "$host_cpu" = ia64
; then
13096 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13097 allow_undefined_flag_FC
="-z nodefs"
13098 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"
13100 # Determine the default libpath from the value encoded in an
13101 # empty executable.
13102 cat > conftest.
$ac_ext <<_ACEOF
13107 if ac_fn_fc_try_link
"$LINENO"; then :
13109 lt_aix_libpath_sed
='
13110 /Import File Strings/,/^$/ {
13116 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13117 # Check for a 64-bit object if we didn't find anything.
13118 if test -z "$aix_libpath"; then
13119 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13122 rm -f core conftest.err conftest.
$ac_objext \
13123 conftest
$ac_exeext conftest.
$ac_ext
13124 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13126 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13127 # Warning - without using the other run time loading flags,
13128 # -berok will link without error, but may produce a broken library.
13129 no_undefined_flag_FC
=' ${wl}-bernotok'
13130 allow_undefined_flag_FC
=' ${wl}-berok'
13131 if test "$with_gnu_ld" = yes; then
13132 # We only use this code for GNU lds that support --whole-archive.
13133 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13135 # Exported symbols can be pulled into shared objects from archives
13136 whole_archive_flag_spec_FC
='$convenience'
13138 archive_cmds_need_lc_FC
=yes
13139 # This is similar to how AIX traditionally builds its shared libraries.
13140 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'
13148 # see comment about AmigaOS4 .so support
13149 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13150 archive_expsym_cmds_FC
=''
13153 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)'
13154 hardcode_libdir_flag_spec_FC
='-L$libdir'
13155 hardcode_minus_L_FC
=yes
13161 export_dynamic_flag_spec_FC
=-rdynamic
13164 cygwin
* | mingw
* | pw32
* | cegcc
*)
13165 # When not using gcc, we currently assume that we are using
13166 # Microsoft Visual C++.
13167 # hardcode_libdir_flag_spec is actually meaningless, as there is
13168 # no search path for DLLs.
13169 hardcode_libdir_flag_spec_FC
=' '
13170 allow_undefined_flag_FC
=unsupported
13171 # Tell ltmain to make .lib files, not .a files.
13173 # Tell ltmain to make .dll files, not .so files.
13175 # FIXME: Setting linknames here is a bad hack.
13176 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13177 # The linker will automatically build a .lib file if we build a DLL.
13178 old_archive_from_new_cmds_FC
='true'
13179 # FIXME: Should let the user specify the lib program.
13180 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13181 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13182 enable_shared_with_static_runtimes_FC
=yes
13185 darwin
* | rhapsody
*)
13188 archive_cmds_need_lc_FC
=no
13189 hardcode_direct_FC
=no
13190 hardcode_automatic_FC
=yes
13191 hardcode_shlibpath_var_FC
=unsupported
13192 if test "$lt_cv_ld_force_load" = "yes"; then
13193 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\"`'
13195 whole_archive_flag_spec_FC
=''
13197 link_all_deplibs_FC
=yes
13198 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13199 case $cc_basename in
13200 ifort
*) _lt_dar_can_shared
=yes ;;
13201 *) _lt_dar_can_shared
=$GCC ;;
13203 if test "$_lt_dar_can_shared" = "yes"; then
13204 output_verbose_link_cmd
=func_echo_all
13205 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}"
13206 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13207 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}"
13208 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}"
13217 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13218 hardcode_libdir_flag_spec_FC
='-L$libdir'
13219 hardcode_shlibpath_var_FC
=no
13222 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13223 # support. Future versions do this automatically, but an explicit c++rt0.o
13224 # does not break anything, and helps significantly (at the cost of a little
13227 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13228 hardcode_libdir_flag_spec_FC
='-R$libdir'
13229 hardcode_direct_FC
=yes
13230 hardcode_shlibpath_var_FC
=no
13233 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13235 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13236 hardcode_direct_FC
=yes
13237 hardcode_minus_L_FC
=yes
13238 hardcode_shlibpath_var_FC
=no
13241 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13242 freebsd
* | dragonfly
*)
13243 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13244 hardcode_libdir_flag_spec_FC
='-R$libdir'
13245 hardcode_direct_FC
=yes
13246 hardcode_shlibpath_var_FC
=no
13250 if test "$GCC" = yes; then
13251 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'
13253 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'
13255 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13256 hardcode_libdir_separator_FC
=:
13257 hardcode_direct_FC
=yes
13259 # hardcode_minus_L: Not really in the search PATH,
13260 # but as the default location of the library.
13261 hardcode_minus_L_FC
=yes
13262 export_dynamic_flag_spec_FC
='${wl}-E'
13266 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13267 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13269 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13271 if test "$with_gnu_ld" = no
; then
13272 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13273 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13274 hardcode_libdir_separator_FC
=:
13275 hardcode_direct_FC
=yes
13276 hardcode_direct_absolute_FC
=yes
13277 export_dynamic_flag_spec_FC
='${wl}-E'
13278 # hardcode_minus_L: Not really in the search PATH,
13279 # but as the default location of the library.
13280 hardcode_minus_L_FC
=yes
13285 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13288 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13291 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13294 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13300 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13303 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13306 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13310 if test "$with_gnu_ld" = no
; then
13311 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13312 hardcode_libdir_separator_FC
=:
13316 hardcode_direct_FC
=no
13317 hardcode_shlibpath_var_FC
=no
13320 hardcode_direct_FC
=yes
13321 hardcode_direct_absolute_FC
=yes
13322 export_dynamic_flag_spec_FC
='${wl}-E'
13324 # hardcode_minus_L: Not really in the search PATH,
13325 # but as the default location of the library.
13326 hardcode_minus_L_FC
=yes
13332 irix5
* | irix6
* | nonstopux
*)
13333 if test "$GCC" = yes; then
13334 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'
13335 # Try to use the -exported_symbol ld option, if it does not
13336 # work, assume that -exports_file does not work either and
13337 # implicitly export all symbols.
13338 save_LDFLAGS
="$LDFLAGS"
13339 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13340 cat > conftest.
$ac_ext <<_ACEOF
13343 if ac_fn_fc_try_link
"$LINENO"; then :
13344 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'
13347 rm -f core conftest.err conftest.
$ac_objext \
13348 conftest
$ac_exeext conftest.
$ac_ext
13349 LDFLAGS
="$save_LDFLAGS"
13351 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'
13352 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'
13354 archive_cmds_need_lc_FC
='no'
13355 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13356 hardcode_libdir_separator_FC
=:
13357 inherit_rpath_FC
=yes
13358 link_all_deplibs_FC
=yes
13362 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13363 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13365 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13367 hardcode_libdir_flag_spec_FC
='-R$libdir'
13368 hardcode_direct_FC
=yes
13369 hardcode_shlibpath_var_FC
=no
13373 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13374 hardcode_direct_FC
=yes
13375 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13376 hardcode_libdir_separator_FC
=:
13377 hardcode_shlibpath_var_FC
=no
13384 if test -f /usr
/libexec
/ld.so
; then
13385 hardcode_direct_FC
=yes
13386 hardcode_shlibpath_var_FC
=no
13387 hardcode_direct_absolute_FC
=yes
13388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13389 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13390 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13391 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13392 export_dynamic_flag_spec_FC
='${wl}-E'
13395 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13396 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13397 hardcode_libdir_flag_spec_FC
='-R$libdir'
13400 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13401 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13411 hardcode_libdir_flag_spec_FC
='-L$libdir'
13412 hardcode_minus_L_FC
=yes
13413 allow_undefined_flag_FC
=unsupported
13414 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'
13415 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13419 if test "$GCC" = yes; then
13420 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13421 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'
13423 allow_undefined_flag_FC
=' -expect_unresolved \*'
13424 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'
13426 archive_cmds_need_lc_FC
='no'
13427 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13428 hardcode_libdir_separator_FC
=:
13431 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13432 if test "$GCC" = yes; then
13433 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13434 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'
13435 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13437 allow_undefined_flag_FC
=' -expect_unresolved \*'
13438 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'
13439 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~
13440 $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'
13442 # Both c and cxx compiler support -rpath directly
13443 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13445 archive_cmds_need_lc_FC
='no'
13446 hardcode_libdir_separator_FC
=:
13450 no_undefined_flag_FC
=' -z defs'
13451 if test "$GCC" = yes; then
13453 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13454 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13455 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13457 case `$CC -V 2>&1` in
13460 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13461 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13462 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13466 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13467 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13468 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13472 hardcode_libdir_flag_spec_FC
='-R$libdir'
13473 hardcode_shlibpath_var_FC
=no
13475 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13477 # The compiler driver will combine and reorder linker options,
13478 # but understands `-z linker_flag'. GCC discards it without `$wl',
13479 # but is careful enough not to reorder.
13480 # Supported since Solaris 2.6 (maybe 2.5.1?)
13481 if test "$GCC" = yes; then
13482 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13484 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13488 link_all_deplibs_FC
=yes
13492 if test "x$host_vendor" = xsequent
; then
13493 # Use $CC to link under sequent, because it throws in some extra .o
13494 # files that make .init and .fini sections work.
13495 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13497 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13499 hardcode_libdir_flag_spec_FC
='-L$libdir'
13500 hardcode_direct_FC
=yes
13501 hardcode_minus_L_FC
=yes
13502 hardcode_shlibpath_var_FC
=no
13506 case $host_vendor in
13508 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13509 hardcode_direct_FC
=yes # is this really true???
13512 ## LD is ld it makes a PLAMLIB
13513 ## CC just makes a GrossModule.
13514 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13515 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13516 hardcode_direct_FC
=no
13519 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13520 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13523 runpath_var
='LD_RUN_PATH'
13524 hardcode_shlibpath_var_FC
=no
13528 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13529 hardcode_shlibpath_var_FC
=no
13530 export_dynamic_flag_spec_FC
='-Bexport'
13534 if test -d /usr
/nec
; then
13535 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536 hardcode_shlibpath_var_FC
=no
13537 runpath_var
=LD_RUN_PATH
13538 hardcode_runpath_var
=yes
13543 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13544 no_undefined_flag_FC
='${wl}-z,text'
13545 archive_cmds_need_lc_FC
=no
13546 hardcode_shlibpath_var_FC
=no
13547 runpath_var
='LD_RUN_PATH'
13549 if test "$GCC" = yes; then
13550 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13558 sysv5
* | sco3.2v5
* | sco5v6
*)
13559 # Note: We can NOT use -z defs as we might desire, because we do not
13560 # link with -lc, and that would cause any symbols used from libc to
13561 # always be unresolved, which means just about no library would
13562 # ever link correctly. If we're not using GNU ld we use -z text
13563 # though, which does catch some bad symbols but isn't as heavy-handed
13565 no_undefined_flag_FC
='${wl}-z,text'
13566 allow_undefined_flag_FC
='${wl}-z,nodefs'
13567 archive_cmds_need_lc_FC
=no
13568 hardcode_shlibpath_var_FC
=no
13569 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13570 hardcode_libdir_separator_FC
=':'
13571 link_all_deplibs_FC
=yes
13572 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13573 runpath_var
='LD_RUN_PATH'
13575 if test "$GCC" = yes; then
13576 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13577 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13579 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13580 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13585 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13586 hardcode_libdir_flag_spec_FC
='-L$libdir'
13587 hardcode_shlibpath_var_FC
=no
13595 if test x
$host_vendor = xsni
; then
13597 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13598 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13605 $as_echo "$ld_shlibs_FC" >&6; }
13606 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13608 with_gnu_ld_FC
=$with_gnu_ld
13616 # Do we need to explicitly link libc?
13618 case "x$archive_cmds_need_lc_FC" in
13620 # Assume -lc should be added
13621 archive_cmds_need_lc_FC
=yes
13623 if test "$enable_shared" = yes && test "$GCC" = yes; then
13624 case $archive_cmds_FC in
13626 # FIXME: we may have to deal with multi-command sequences.
13629 # Test whether the compiler implicitly links with -lc since on some
13630 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13631 # to ld, don't add -lc before -lgcc.
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13633 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13634 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13635 $as_echo_n "(cached) " >&6
13638 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13641 (eval $ac_compile) 2>&5
13643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13644 test $ac_status = 0; } 2>conftest.err
; then
13647 libobjs
=conftest.
$ac_objext
13649 wl
=$lt_prog_compiler_wl_FC
13650 pic_flag
=$lt_prog_compiler_pic_FC
13656 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13657 allow_undefined_flag_FC
=
13658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13659 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13662 test $ac_status = 0; }
13664 lt_cv_archive_cmds_need_lc_FC
=no
13666 lt_cv_archive_cmds_need_lc_FC
=yes
13668 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13670 cat conftest.err
1>&5
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13676 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13677 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13748 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13750 library_names_spec
=
13751 libname_spec
='lib$name'
13755 postuninstall_cmds
=
13759 shlibpath_overrides_runpath
=unknown
13761 dynamic_linker
="$host_os ld.so"
13762 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13763 need_lib_prefix
=unknown
13764 hardcode_into_libs
=no
13766 # when you set need_version to no, make sure it does not cause -set_version
13767 # flags to be left without arguments
13768 need_version
=unknown
13773 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13774 shlibpath_var
=LIBPATH
13776 # AIX 3 has no versioning support, so we append a major version to the name.
13777 soname_spec
='${libname}${release}${shared_ext}$major'
13784 hardcode_into_libs
=yes
13785 if test "$host_cpu" = ia64
; then
13786 # AIX 5 supports IA64
13787 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13788 shlibpath_var
=LD_LIBRARY_PATH
13790 # With GCC up to 2.95.x, collect2 would create an import file
13791 # for dependence libraries. The import file would start with
13792 # the line `#! .'. This would cause the generated library to
13793 # depend on `.', always an invalid library. This was fixed in
13794 # development snapshots of GCC prior to 3.0.
13796 aix4 | aix4.
[01] | aix4.
[01].
*)
13797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13799 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
13802 can_build_shared
=no
13806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13807 # soname into executable. Probably we can add versioning support to
13808 # collect2, so additional links can be useful in future.
13809 if test "$aix_use_runtimelinking" = yes; then
13810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13811 # instead of lib<name>.a to let people know that these are not
13812 # typical AIX shared libraries.
13813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13815 # We preserve .a as extension for shared libraries through AIX4.2
13816 # and later when we are not doing run time linking.
13817 library_names_spec
='${libname}${release}.a $libname.a'
13818 soname_spec
='${libname}${release}${shared_ext}$major'
13820 shlibpath_var
=LIBPATH
13827 # Since July 2007 AmigaOS4 officially supports .so libraries.
13828 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13832 library_names_spec
='$libname.ixlibrary $libname.a'
13833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13834 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'
13840 library_names_spec
='${libname}${shared_ext}'
13841 dynamic_linker
="$host_os ld.so"
13842 shlibpath_var
=LIBRARY_PATH
13848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13849 soname_spec
='${libname}${release}${shared_ext}$major'
13850 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13851 shlibpath_var
=LD_LIBRARY_PATH
13852 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13853 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13854 # the default ld.so.conf also contains /usr/contrib/lib and
13855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13856 # libtool to hard-code these into programs
13859 cygwin
* | mingw
* | pw32
* | cegcc
*)
13860 version_type
=windows
13865 case $GCC,$host_os in
13866 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
13867 library_names_spec
='$libname.dll.a'
13868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13869 postinstall_cmds
='base_file=`basename \${file}`~
13870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13871 dldir=$destdir/`dirname \$dlpath`~
13872 test -d \$dldir || mkdir -p \$dldir~
13873 $install_prog $dir/$dlname \$dldir/$dlname~
13874 chmod a+x \$dldir/$dlname~
13875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13876 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13878 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13879 dlpath=$dir/\$dldll~
13881 shlibpath_overrides_runpath
=yes
13885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13886 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13890 # MinGW DLLs use traditional 'lib' prefix
13891 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13894 # pw32 DLLs use 'pw' prefix rather than 'lib'
13895 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13901 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13904 dynamic_linker
='Win32 ld.exe'
13905 # FIXME: first we should search . and the directory the executable is in
13909 darwin
* | rhapsody
*)
13910 dynamic_linker
="$host_os dyld"
13911 version_type
=darwin
13914 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13915 soname_spec
='${libname}${release}${major}$shared_ext'
13916 shlibpath_overrides_runpath
=yes
13917 shlibpath_var
=DYLD_LIBRARY_PATH
13918 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13920 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13928 soname_spec
='${libname}${release}${shared_ext}$major'
13929 shlibpath_var
=LD_LIBRARY_PATH
13932 freebsd
* | dragonfly
*)
13933 # DragonFly does not have aout. When/if they implement a new
13934 # versioning mechanism, adjust this.
13935 if test -x /usr
/bin
/objformat
; then
13936 objformat
=`/usr/bin/objformat`
13939 freebsd
[23].
*) objformat
=aout
;;
13940 *) objformat
=elf
;;
13943 version_type
=freebsd-
$objformat
13944 case $version_type in
13946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13951 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13955 shlibpath_var
=LD_LIBRARY_PATH
13958 shlibpath_overrides_runpath
=yes
13960 freebsd3.
[01]* | freebsdelf3.
[01]*)
13961 shlibpath_overrides_runpath
=yes
13962 hardcode_into_libs
=yes
13964 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13965 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13966 shlibpath_overrides_runpath
=no
13967 hardcode_into_libs
=yes
13969 *) # from 4.6 on, and DragonFly
13970 shlibpath_overrides_runpath
=yes
13971 hardcode_into_libs
=yes
13980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13981 soname_spec
='${libname}${release}${shared_ext}$major'
13982 shlibpath_var
=LD_LIBRARY_PATH
13983 hardcode_into_libs
=yes
13990 dynamic_linker
="$host_os runtime_loader"
13991 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13992 soname_spec
='${libname}${release}${shared_ext}$major'
13993 shlibpath_var
=LIBRARY_PATH
13994 shlibpath_overrides_runpath
=yes
13995 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13996 hardcode_into_libs
=yes
13999 hpux9
* | hpux10
* | hpux11
*)
14000 # Give a soname corresponding to the major version so that dld.sl refuses to
14001 # link against other versions.
14008 hardcode_into_libs
=yes
14009 dynamic_linker
="$host_os dld.so"
14010 shlibpath_var
=LD_LIBRARY_PATH
14011 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013 soname_spec
='${libname}${release}${shared_ext}$major'
14014 if test "X$HPUX_IA64_MODE" = X32
; then
14015 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14017 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14019 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14023 hardcode_into_libs
=yes
14024 dynamic_linker
="$host_os dld.sl"
14025 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14026 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028 soname_spec
='${libname}${release}${shared_ext}$major'
14029 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14030 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14034 dynamic_linker
="$host_os dld.sl"
14035 shlibpath_var
=SHLIB_PATH
14036 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038 soname_spec
='${libname}${release}${shared_ext}$major'
14041 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14042 postinstall_cmds
='chmod 555 $lib'
14043 # or fails outright, so override atomically:
14044 install_override_mode
=555
14051 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14052 soname_spec
='${libname}${release}${shared_ext}$major'
14053 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14054 shlibpath_var
=LD_LIBRARY_PATH
14055 shlibpath_overrides_runpath
=no
14056 hardcode_into_libs
=yes
14059 irix5
* | irix6
* | nonstopux
*)
14061 nonstopux
*) version_type
=nonstopux
;;
14063 if test "$lt_cv_prog_gnu_ld" = yes; then
14071 soname_spec
='${libname}${release}${shared_ext}$major'
14072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14074 irix5
* | nonstopux
*)
14075 libsuff
= shlibsuff
=
14078 case $LD in # libtool.m4 will add one of these switches to LD
14079 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14080 libsuff
= shlibsuff
= libmagic
=32-bit;;
14081 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14082 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14083 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14084 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14085 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14089 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14090 shlibpath_overrides_runpath
=no
14091 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14092 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14093 hardcode_into_libs
=yes
14096 # No shared lib support for Linux oldld, aout, or coff.
14097 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14101 # This must be Linux ELF.
14102 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 soname_spec
='${libname}${release}${shared_ext}$major'
14108 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14109 shlibpath_var
=LD_LIBRARY_PATH
14110 shlibpath_overrides_runpath
=no
14112 # Some binutils ld are patched to set DT_RUNPATH
14113 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14114 $as_echo_n "(cached) " >&6
14116 lt_cv_shlibpath_overrides_runpath
=no
14117 save_LDFLAGS
=$LDFLAGS
14118 save_libdir
=$libdir
14119 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14120 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14121 cat > conftest.
$ac_ext <<_ACEOF
14126 if ac_fn_fc_try_link
"$LINENO"; then :
14127 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14128 lt_cv_shlibpath_overrides_runpath
=yes
14131 rm -f core conftest.err conftest.
$ac_objext \
14132 conftest
$ac_exeext conftest.
$ac_ext
14133 LDFLAGS
=$save_LDFLAGS
14134 libdir
=$save_libdir
14138 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14140 # This implies no fast_install, which is unacceptable.
14141 # Some rework will be needed to allow for fast_install
14142 # before this can be enabled.
14143 hardcode_into_libs
=yes
14145 # Append ld.so.conf contents to the search path
14146 if test -f /etc
/ld.so.conf
; then
14147 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' ' '`
14148 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14151 # We used to test for /lib/ld.so.1 and disable shared libraries on
14152 # powerpc, because MkLinux only supported shared libraries with the
14153 # GNU dynamic linker. Since this was broken with cross compilers,
14154 # most powerpc-linux boxes support dynamic linking these days and
14155 # people can always --disable-shared, the test was removed, and we
14156 # assume the GNU/Linux dynamic linker is in use.
14157 dynamic_linker
='GNU/Linux ld.so'
14164 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14166 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14167 dynamic_linker
='NetBSD (a.out) ld.so'
14169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14170 soname_spec
='${libname}${release}${shared_ext}$major'
14171 dynamic_linker
='NetBSD ld.elf_so'
14173 shlibpath_var
=LD_LIBRARY_PATH
14174 shlibpath_overrides_runpath
=yes
14175 hardcode_into_libs
=yes
14180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14181 shlibpath_var
=LD_LIBRARY_PATH
14182 shlibpath_overrides_runpath
=yes
14189 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190 soname_spec
='${libname}${release}${shared_ext}$major'
14191 shlibpath_var
=LD_LIBRARY_PATH
14192 shlibpath_overrides_runpath
=no
14193 hardcode_into_libs
=yes
14194 dynamic_linker
='ldqnx.so'
14199 sys_lib_dlsearch_path_spec
="/usr/lib"
14201 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14203 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14204 *) need_version
=no
;;
14206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14207 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14208 shlibpath_var
=LD_LIBRARY_PATH
14209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14211 openbsd2.
[89] | openbsd2.
[89].
*)
14212 shlibpath_overrides_runpath
=no
14215 shlibpath_overrides_runpath
=yes
14219 shlibpath_overrides_runpath
=yes
14224 libname_spec
='$name'
14227 library_names_spec
='$libname${shared_ext} $libname.a'
14228 dynamic_linker
='OS/2 ld.exe'
14229 shlibpath_var
=LIBPATH
14232 osf3
* | osf4
* | osf5
*)
14236 soname_spec
='${libname}${release}${shared_ext}$major'
14237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238 shlibpath_var
=LD_LIBRARY_PATH
14239 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14240 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252 soname_spec
='${libname}${release}${shared_ext}$major'
14253 shlibpath_var
=LD_LIBRARY_PATH
14254 shlibpath_overrides_runpath
=yes
14255 hardcode_into_libs
=yes
14256 # ldd complains unless libraries are executable
14257 postinstall_cmds
='chmod +x $lib'
14262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14263 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14264 shlibpath_var
=LD_LIBRARY_PATH
14265 shlibpath_overrides_runpath
=yes
14266 if test "$with_gnu_ld" = yes; then
14274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275 soname_spec
='${libname}${release}${shared_ext}$major'
14276 shlibpath_var
=LD_LIBRARY_PATH
14277 case $host_vendor in
14279 shlibpath_overrides_runpath
=no
14281 runpath_var
=LD_RUN_PATH
14289 shlibpath_overrides_runpath
=no
14290 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14296 if test -d /usr
/nec
;then
14298 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14299 soname_spec
='$libname${shared_ext}.$major'
14300 shlibpath_var
=LD_LIBRARY_PATH
14304 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14305 version_type
=freebsd-elf
14308 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14309 soname_spec
='${libname}${release}${shared_ext}$major'
14310 shlibpath_var
=LD_LIBRARY_PATH
14311 shlibpath_overrides_runpath
=yes
14312 hardcode_into_libs
=yes
14313 if test "$with_gnu_ld" = yes; then
14314 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14316 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14319 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14323 sys_lib_dlsearch_path_spec
='/usr/lib'
14327 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332 shlibpath_var
=LD_LIBRARY_PATH
14333 shlibpath_overrides_runpath
=no
14334 hardcode_into_libs
=yes
14339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340 soname_spec
='${libname}${release}${shared_ext}$major'
14341 shlibpath_var
=LD_LIBRARY_PATH
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14349 $as_echo "$dynamic_linker" >&6; }
14350 test "$dynamic_linker" = no
&& can_build_shared
=no
14352 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14353 if test "$GCC" = yes; then
14354 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14357 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14358 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14360 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14361 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14402 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14403 hardcode_action_FC
=
14404 if test -n "$hardcode_libdir_flag_spec_FC" ||
14405 test -n "$runpath_var_FC" ||
14406 test "X$hardcode_automatic_FC" = "Xyes" ; then
14408 # We can hardcode non-existent directories.
14409 if test "$hardcode_direct_FC" != no
&&
14410 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14411 # have to relink, otherwise we might link with an installed library
14412 # when we should be linking with a yet-to-be-installed one
14413 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14414 test "$hardcode_minus_L_FC" != no
; then
14415 # Linking always hardcodes the temporary library directory.
14416 hardcode_action_FC
=relink
14418 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14419 hardcode_action_FC
=immediate
14422 # We cannot hardcode anything, or else we can only hardcode existing
14424 hardcode_action_FC
=unsupported
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14427 $as_echo "$hardcode_action_FC" >&6; }
14429 if test "$hardcode_action_FC" = relink ||
14430 test "$inherit_rpath_FC" = yes; then
14431 # Fast installation is not supported
14432 enable_fast_install
=no
14433 elif test "$shlibpath_overrides_runpath" = yes ||
14434 test "$enable_shared" = no
; then
14435 # Fast installation is not necessary
14436 enable_fast_install
=needless
14445 fi # test -n "$compiler"
14449 fi # test "$_lt_disable_FC" != yes
14452 ac_cpp
='$CPP $CPPFLAGS'
14453 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14458 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14460 # For libtool versioning info, format is CURRENT:REVISION:AGE
14461 libtool_VERSION
=1:0:0
14464 # Check header files.
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14466 $as_echo_n "checking for ANSI C header files... " >&6; }
14467 if test "${ac_cv_header_stdc+set}" = set; then :
14468 $as_echo_n "(cached) " >&6
14470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 #include <stdlib.h>
14473 #include <stdarg.h>
14474 #include <string.h>
14485 if ac_fn_c_try_compile
"$LINENO"; then :
14486 ac_cv_header_stdc
=yes
14488 ac_cv_header_stdc
=no
14490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14492 if test $ac_cv_header_stdc = yes; then
14493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496 #include <string.h>
14499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14500 $EGREP "memchr" >/dev
/null
2>&1; then :
14503 ac_cv_header_stdc
=no
14509 if test $ac_cv_header_stdc = yes; then
14510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 #include <stdlib.h>
14516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14517 $EGREP "free" >/dev
/null
2>&1; then :
14520 ac_cv_header_stdc
=no
14526 if test $ac_cv_header_stdc = yes; then
14527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14528 if test "$cross_compiling" = yes; then :
14531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14534 #include <stdlib.h>
14535 #if ((' ' & 0x0FF) == 0x020)
14536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14539 # define ISLOWER(c) \
14540 (('a' <= (c) && (c) <= 'i') \
14541 || ('j' <= (c) && (c) <= 'r') \
14542 || ('s' <= (c) && (c) <= 'z'))
14543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14551 for (i = 0; i < 256; i++)
14552 if (XOR (islower (i), ISLOWER (i))
14553 || toupper (i) != TOUPPER (i))
14558 if ac_fn_c_try_run
"$LINENO"; then :
14561 ac_cv_header_stdc
=no
14563 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14564 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14570 $as_echo "$ac_cv_header_stdc" >&6; }
14571 if test $ac_cv_header_stdc = yes; then
14573 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14578 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14579 if test "${ac_cv_header_time+set}" = set; then :
14580 $as_echo_n "(cached) " >&6
14582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #include <sys/types.h>
14585 #include <sys/time.h>
14591 if ((struct tm *) 0)
14597 if ac_fn_c_try_compile
"$LINENO"; then :
14598 ac_cv_header_time
=yes
14600 ac_cv_header_time
=no
14602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14605 $as_echo "$ac_cv_header_time" >&6; }
14606 if test $ac_cv_header_time = yes; then
14608 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14613 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14614 if test "${gcc_cv_header_string+set}" = set; then :
14615 $as_echo_n "(cached) " >&6
14617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 #include <string.h>
14620 #include <strings.h>
14629 if ac_fn_c_try_compile
"$LINENO"; then :
14630 gcc_cv_header_string
=yes
14632 gcc_cv_header_string
=no
14634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14637 $as_echo "$gcc_cv_header_string" >&6; }
14638 if test $gcc_cv_header_string = yes; then
14640 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14644 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14646 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14647 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14648 eval as_val
=\$
$as_ac_Header
14649 if test "x$as_val" = x
""yes; then :
14650 cat >>confdefs.h
<<_ACEOF
14651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14661 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14663 acx_cv_header_stdint
=stddef.h
14664 acx_cv_header_stdint_kind
="(already complete)"
14665 for i
in stdint.h
$inttype_headers; do
14666 unset ac_cv_type_uintptr_t
14667 unset ac_cv_type_uintmax_t
14668 unset ac_cv_type_int_least32_t
14669 unset ac_cv_type_int_fast32_t
14670 unset ac_cv_type_uint64_t
14671 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14672 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14675 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
14676 acx_cv_header_stdint
=$i
14681 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14684 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
14687 acx_cv_header_stdint_kind
="(mostly complete)"
14690 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14693 if test "x$ac_cv_type_int_least32_t" = x
""yes; then :
14696 acx_cv_header_stdint_kind
="(mostly complete)"
14699 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14702 if test "x$ac_cv_type_int_fast32_t" = x
""yes; then :
14705 acx_cv_header_stdint_kind
="(mostly complete)"
14708 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14711 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
14714 acx_cv_header_stdint_kind
="(lacks uint64_t)"
14719 if test "$acx_cv_header_stdint" = stddef.h
; then
14720 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
14721 for i
in stdint.h
$inttype_headers; do
14722 unset ac_cv_type_uintptr_t
14723 unset ac_cv_type_uint32_t
14724 unset ac_cv_type_uint64_t
14725 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14726 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14729 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
14730 acx_cv_header_stdint
=$i
14735 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14738 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
14742 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14745 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
14752 if test "$acx_cv_header_stdint" = stddef.h
; then
14753 acx_cv_header_stdint_kind
="(u_intXX_t style)"
14754 for i
in sys
/types.h
$inttype_headers; do
14755 unset ac_cv_type_u_int32_t
14756 unset ac_cv_type_u_int64_t
14757 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14758 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14761 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
14762 acx_cv_header_stdint
=$i
14767 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14770 if test "x$ac_cv_type_u_int64_t" = x
""yes; then :
14777 if test "$acx_cv_header_stdint" = stddef.h
; then
14778 acx_cv_header_stdint_kind
="(using manual detection)"
14781 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
14782 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
14783 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
14784 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
14785 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
14787 # ----------------- Summarize what we found so far
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14790 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14792 case `$as_basename -- gstdint.h ||
14793 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14794 Xgstdint.h : 'X\(//\)$' \| \
14795 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14796 $as_echo X/gstdint.h |
14797 sed '/^.*\/\([^/][^/]*\)\/*$/{
14810 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14811 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14812 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14813 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14818 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14820 # ----------------- done included file, check C basic types --------
14822 # Lacking an uintptr_t? Test size of void *
14823 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14824 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
14825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14827 # This bug is HP SR number 8606223364.
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14829 $as_echo_n "checking size of void *... " >&6; }
14830 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14831 $as_echo_n "(cached) " >&6
14833 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14836 if test "$ac_cv_type_void_p" = yes; then
14837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14839 { as_fn_set_status
77
14840 as_fn_error
"cannot compute sizeof (void *)
14841 See \`config.log' for more details." "$LINENO" 5; }; }
14843 ac_cv_sizeof_void_p
=0
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14849 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14853 cat >>confdefs.h
<<_ACEOF
14854 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14860 # Lacking an uint64_t? Test size of long
14861 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14862 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
14863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14865 # This bug is HP SR number 8606223364.
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14867 $as_echo_n "checking size of long... " >&6; }
14868 if test "${ac_cv_sizeof_long+set}" = set; then :
14869 $as_echo_n "(cached) " >&6
14871 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14874 if test "$ac_cv_type_long" = yes; then
14875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14877 { as_fn_set_status
77
14878 as_fn_error
"cannot compute sizeof (long)
14879 See \`config.log' for more details." "$LINENO" 5; }; }
14881 ac_cv_sizeof_long
=0
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14887 $as_echo "$ac_cv_sizeof_long" >&6; }
14891 cat >>confdefs.h
<<_ACEOF
14892 #define SIZEOF_LONG $ac_cv_sizeof_long
14898 if test $acx_cv_header_stdint = stddef.h
; then
14899 # Lacking a good header? Test size of everything and deduce all types.
14900 # The cast to long int works around a bug in the HP C Compiler
14901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14903 # This bug is HP SR number 8606223364.
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14905 $as_echo_n "checking size of int... " >&6; }
14906 if test "${ac_cv_sizeof_int+set}" = set; then :
14907 $as_echo_n "(cached) " >&6
14909 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14912 if test "$ac_cv_type_int" = yes; then
14913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14915 { as_fn_set_status
77
14916 as_fn_error
"cannot compute sizeof (int)
14917 See \`config.log' for more details." "$LINENO" 5; }; }
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14925 $as_echo "$ac_cv_sizeof_int" >&6; }
14929 cat >>confdefs.h
<<_ACEOF
14930 #define SIZEOF_INT $ac_cv_sizeof_int
14934 # The cast to long int works around a bug in the HP C Compiler
14935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14937 # This bug is HP SR number 8606223364.
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14939 $as_echo_n "checking size of short... " >&6; }
14940 if test "${ac_cv_sizeof_short+set}" = set; then :
14941 $as_echo_n "(cached) " >&6
14943 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14946 if test "$ac_cv_type_short" = yes; then
14947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14949 { as_fn_set_status
77
14950 as_fn_error
"cannot compute sizeof (short)
14951 See \`config.log' for more details." "$LINENO" 5; }; }
14953 ac_cv_sizeof_short
=0
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14959 $as_echo "$ac_cv_sizeof_short" >&6; }
14963 cat >>confdefs.h
<<_ACEOF
14964 #define SIZEOF_SHORT $ac_cv_sizeof_short
14968 # The cast to long int works around a bug in the HP C Compiler
14969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14971 # This bug is HP SR number 8606223364.
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14973 $as_echo_n "checking size of char... " >&6; }
14974 if test "${ac_cv_sizeof_char+set}" = set; then :
14975 $as_echo_n "(cached) " >&6
14977 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14980 if test "$ac_cv_type_char" = yes; then
14981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14983 { as_fn_set_status
77
14984 as_fn_error
"cannot compute sizeof (char)
14985 See \`config.log' for more details." "$LINENO" 5; }; }
14987 ac_cv_sizeof_char
=0
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14993 $as_echo "$ac_cv_sizeof_char" >&6; }
14997 cat >>confdefs.h
<<_ACEOF
14998 #define SIZEOF_CHAR $ac_cv_sizeof_char
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15004 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15005 case "$ac_cv_sizeof_char" in
15006 1) acx_cv_type_int8_t
=char
;;
15007 *) as_fn_error
"no 8-bit type, please report a bug" "$LINENO" 5
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15010 $as_echo "$acx_cv_type_int8_t" >&6; }
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15013 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15014 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15015 2:*) acx_cv_type_int16_t
=int
;;
15016 *:2) acx_cv_type_int16_t
=short
;;
15017 *) as_fn_error
"no 16-bit type, please report a bug" "$LINENO" 5
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15020 $as_echo "$acx_cv_type_int16_t" >&6; }
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15023 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15024 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15025 4:*) acx_cv_type_int32_t
=int
;;
15026 *:4) acx_cv_type_int32_t
=long
;;
15027 *) as_fn_error
"no 32-bit type, please report a bug" "$LINENO" 5
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15030 $as_echo "$acx_cv_type_int32_t" >&6; }
15033 # These tests are here to make the output prettier
15035 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15036 case "$ac_cv_sizeof_long" in
15037 8) acx_cv_type_int64_t
=long
;;
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15040 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15042 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15045 # Now we can use the above types
15047 if test "$ac_cv_type_uintptr_t" != yes; then
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15049 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15050 case $ac_cv_sizeof_void_p in
15051 2) acx_cv_type_intptr_t
=int16_t
;;
15052 4) acx_cv_type_intptr_t
=int32_t
;;
15053 8) acx_cv_type_intptr_t
=int64_t
;;
15054 *) as_fn_error
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15057 $as_echo "$acx_cv_type_intptr_t" >&6; }
15060 # ----------------- done all checks, emit header -------------
15061 ac_config_commands
="$ac_config_commands gstdint.h"
15069 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15072 # NVPTX does not support Pthreads, has its own code replacement.
15075 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15076 # In case the pthread.h system header is not found, this test will fail.
15077 CFLAGS
="$CFLAGS -pthread"
15078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080 #include <pthread.h>
15081 void *g(void *d) { return NULL; }
15085 pthread_t t; pthread_create(&t,NULL,g,NULL);
15090 if ac_fn_c_try_link
"$LINENO"; then :
15091 XPCFLAGS
=" -Wc,-pthread"
15093 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
15094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096 #include <pthread.h>
15097 void *g(void *d) { return NULL; }
15101 pthread_t t; pthread_create(&t,NULL,g,NULL);
15106 if ac_fn_c_try_link
"$LINENO"; then :
15109 as_fn_error
"Pthreads are required to build libgomp" "$LINENO" 5
15111 rm -f core conftest.err conftest.
$ac_objext \
15112 conftest
$ac_exeext conftest.
$ac_ext
15114 rm -f core conftest.err conftest.
$ac_objext \
15115 conftest
$ac_exeext conftest.
$ac_ext
15118 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15120 # Copyright (C) 2014-2016 Free Software Foundation, Inc.
15122 # Contributed by Mentor Embedded.
15124 # This file is part of the GNU Offloading and Multi Processing Library
15127 # Libgomp is free software; you can redistribute it and/or modify it
15128 # under the terms of the GNU General Public License as published by
15129 # the Free Software Foundation; either version 3, or (at your option)
15130 # any later version.
15132 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15133 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15134 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15137 # Under Section 7 of GPL version 3, you are granted additional
15138 # permissions described in the GCC Runtime Library Exception, version
15139 # 3.1, as published by the Free Software Foundation.
15141 # You should have received a copy of the GNU General Public License and
15142 # a copy of the GCC Runtime Library Exception along with this program;
15143 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15144 # <http://www.gnu.org/licenses/>.
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15150 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15151 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15152 $as_echo_n "(cached) " >&6
15154 ac_check_lib_save_LIBS
=$LIBS
15156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15159 /* Override any GCC internal prototype to avoid an error.
15160 Use char because int might match the return type of a GCC
15161 builtin and then its argument prototype would still apply. */
15174 if ac_fn_c_try_link
"$LINENO"; then :
15175 ac_cv_lib_dl_dlsym
=yes
15177 ac_cv_lib_dl_dlsym
=no
15179 rm -f core conftest.err conftest.
$ac_objext \
15180 conftest
$ac_exeext conftest.
$ac_ext
15181 LIBS
=$ac_check_lib_save_LIBS
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15184 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15185 if test "x$ac_cv_lib_dl_dlsym" = x
""yes; then :
15186 cat >>confdefs.h
<<_ACEOF
15187 #define HAVE_LIBDL 1
15196 if test x
"$plugin_support" = xyes
; then
15198 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15200 elif test "x${enable_offload_targets-no}" != xno
; then
15201 as_fn_error
"Can't support offloading without support for plugins" "$LINENO" 5
15206 for ac_header
in $ac_header_list
15208 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15209 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15211 eval as_val
=\$
$as_ac_Header
15212 if test "x$as_val" = x
""yes; then :
15213 cat >>confdefs.h
<<_ACEOF
15214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15227 for ac_func
in $ac_func_list
15229 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15230 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15231 eval as_val
=\$
$as_ac_var
15232 if test "x$as_val" = x
""yes; then :
15233 cat >>confdefs.h
<<_ACEOF
15234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15255 # Look for the CUDA driver package.
15256 CUDA_DRIVER_INCLUDE
=
15260 CUDA_DRIVER_CPPFLAGS
=
15261 CUDA_DRIVER_LDFLAGS
=
15263 # Check whether --with-cuda-driver was given.
15264 if test "${with_cuda_driver+set}" = set; then :
15265 withval
=$with_cuda_driver;
15269 # Check whether --with-cuda-driver-include was given.
15270 if test "${with_cuda_driver_include+set}" = set; then :
15271 withval
=$with_cuda_driver_include;
15275 # Check whether --with-cuda-driver-lib was given.
15276 if test "${with_cuda_driver_lib+set}" = set; then :
15277 withval
=$with_cuda_driver_lib;
15280 if test "x$with_cuda_driver" != x
; then
15281 CUDA_DRIVER_INCLUDE
=$with_cuda_driver/include
15282 CUDA_DRIVER_LIB
=$with_cuda_driver/lib
15284 if test "x$with_cuda_driver_include" != x
; then
15285 CUDA_DRIVER_INCLUDE
=$with_cuda_driver_include
15287 if test "x$with_cuda_driver_lib" != x
; then
15288 CUDA_DRIVER_LIB
=$with_cuda_driver_lib
15290 if test "x$CUDA_DRIVER_INCLUDE" != x
; then
15291 CUDA_DRIVER_CPPFLAGS
=-I$CUDA_DRIVER_INCLUDE
15293 if test "x$CUDA_DRIVER_LIB" != x
; then
15294 CUDA_DRIVER_LDFLAGS
=-L$CUDA_DRIVER_LIB
15298 PLUGIN_NVPTX_CPPFLAGS
=
15299 PLUGIN_NVPTX_LDFLAGS
=
15306 # Look for HSA run-time, its includes and libraries
15308 HSA_RUNTIME_INCLUDE
=
15312 HSA_RUNTIME_CPPFLAGS
=
15313 HSA_RUNTIME_LDFLAGS
=
15316 # Check whether --with-hsa-runtime was given.
15317 if test "${with_hsa_runtime+set}" = set; then :
15318 withval
=$with_hsa_runtime;
15322 # Check whether --with-hsa-runtime-include was given.
15323 if test "${with_hsa_runtime_include+set}" = set; then :
15324 withval
=$with_hsa_runtime_include;
15328 # Check whether --with-hsa-runtime-lib was given.
15329 if test "${with_hsa_runtime_lib+set}" = set; then :
15330 withval
=$with_hsa_runtime_lib;
15333 if test "x$with_hsa_runtime" != x
; then
15334 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime/include
15335 HSA_RUNTIME_LIB
=$with_hsa_runtime/lib
15337 if test "x$with_hsa_runtime_include" != x
; then
15338 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime_include
15340 if test "x$with_hsa_runtime_lib" != x
; then
15341 HSA_RUNTIME_LIB
=$with_hsa_runtime_lib
15343 if test "x$HSA_RUNTIME_INCLUDE" != x
; then
15344 HSA_RUNTIME_CPPFLAGS
=-I$HSA_RUNTIME_INCLUDE
15346 if test "x$HSA_RUNTIME_LIB" != x
; then
15347 HSA_RUNTIME_LDFLAGS
=-L$HSA_RUNTIME_LIB
15351 PLUGIN_HSA_CPPFLAGS
=
15352 PLUGIN_HSA_LDFLAGS
=
15359 # Get offload targets and path to install tree of offloading compiler.
15360 offload_additional_options
=
15361 offload_additional_lib_paths
=
15364 if test x
"$enable_offload_targets" != x
; then
15365 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15366 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15367 tgt
=`echo $tgt | sed 's/=.*//'`
15370 *-intelmic-* |
*-intelmicemul-*)
15376 PLUGIN_NVPTX_CPPFLAGS
=$CUDA_DRIVER_CPPFLAGS
15377 PLUGIN_NVPTX_LDFLAGS
=$CUDA_DRIVER_LDFLAGS
15378 PLUGIN_NVPTX_LIBS
='-lcuda'
15380 PLUGIN_NVPTX_save_CPPFLAGS
=$CPPFLAGS
15381 CPPFLAGS
="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15382 PLUGIN_NVPTX_save_LDFLAGS
=$LDFLAGS
15383 LDFLAGS
="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15384 PLUGIN_NVPTX_save_LIBS
=$LIBS
15385 LIBS
="$PLUGIN_NVPTX_LIBS $LIBS"
15386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15392 CUresult r = cuCtxPushCurrent (NULL);
15397 if ac_fn_c_try_link
"$LINENO"; then :
15400 rm -f core conftest.err conftest.
$ac_objext \
15401 conftest
$ac_exeext conftest.
$ac_ext
15402 CPPFLAGS
=$PLUGIN_NVPTX_save_CPPFLAGS
15403 LDFLAGS
=$PLUGIN_NVPTX_save_LDFLAGS
15404 LIBS
=$PLUGIN_NVPTX_save_LIBS
15405 case $PLUGIN_NVPTX in
15408 as_fn_error
"CUDA driver package required for nvptx support" "$LINENO" 5
15413 case "${target}" in
15415 case " ${CC} ${CFLAGS} " in
15422 PLUGIN_HSA_CPPFLAGS
=$HSA_RUNTIME_CPPFLAGS
15423 PLUGIN_HSA_LDFLAGS
="$HSA_RUNTIME_LDFLAGS"
15424 PLUGIN_HSA_LIBS
="-ldl"
15426 PLUGIN_HSA_save_CPPFLAGS
=$CPPFLAGS
15427 CPPFLAGS
="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15428 PLUGIN_HSA_save_LDFLAGS
=$LDFLAGS
15429 LDFLAGS
="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15430 PLUGIN_HSA_save_LIBS
=$LIBS
15431 LIBS
="$PLUGIN_HSA_LIBS $LIBS"
15434 CPPFLAGS
=$PLUGIN_HSA_save_CPPFLAGS
15435 LDFLAGS
=$PLUGIN_HSA_save_LDFLAGS
15436 LIBS
=$PLUGIN_HSA_save_LIBS
15437 case $PLUGIN_HSA in
15440 as_fn_error
"HSA run-time package required for HSA support" "$LINENO" 5
15452 as_fn_error
"unknown offload target specified" "$LINENO" 5
15455 if test x
"$tgt_name" = x
; then
15456 # Don't configure libgomp for this offloading target if we don't build
15457 # the corresponding plugin.
15459 elif test x
"$offload_targets" = x
; then
15460 offload_targets
=$tgt_name
15462 offload_targets
=$offload_targets,$tgt_name
15464 if test "$tgt_name" = hsa
; then
15465 # Offloading compilation is all handled by the target compiler.
15467 elif test x
"$tgt_dir" != x
; then
15468 offload_additional_options
="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15469 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15471 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15472 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15477 cat >>confdefs.h
<<_ACEOF
15478 #define OFFLOAD_TARGETS "$offload_targets"
15481 if test $PLUGIN_NVPTX = 1; then
15483 PLUGIN_NVPTX_FALSE
='#'
15485 PLUGIN_NVPTX_TRUE
='#'
15486 PLUGIN_NVPTX_FALSE
=
15490 cat >>confdefs.h
<<_ACEOF
15491 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15494 if test $PLUGIN_HSA = 1; then
15496 PLUGIN_HSA_FALSE
='#'
15498 PLUGIN_HSA_TRUE
='#'
15503 cat >>confdefs.h
<<_ACEOF
15504 #define PLUGIN_HSA $PLUGIN_HSA
15508 if test "$HSA_RUNTIME_LIB" != ""; then
15509 HSA_RUNTIME_LIB
="$HSA_RUNTIME_LIB/"
15513 cat >>confdefs.h
<<_ACEOF
15514 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15519 # Check for functions needed.
15520 for ac_func
in getloadavg clock_gettime strtoull
15522 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15523 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15524 eval as_val
=\$
$as_ac_var
15525 if test "x$as_val" = x
""yes; then :
15526 cat >>confdefs.h
<<_ACEOF
15527 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15534 # Check for broken semaphore implementation on darwin.
15535 # sem_init returns: sem_init error: Function not implemented.
15539 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15544 # RTEMS specific checks
15547 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15549 if test "x$ac_cv_type_struct__Mutex_Control" = x
""yes; then :
15551 cat >>confdefs.h
<<_ACEOF
15552 #define HAVE_STRUCT__MUTEX_CONTROL 1
15561 # Check whether --enable-linux-futex was given.
15562 if test "${enable_linux_futex+set}" = set; then :
15563 enableval
=$enable_linux_futex;
15564 case "$enableval" in
15566 *) as_fn_error
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15570 enable_linux_futex
=default
15576 case "$enable_linux_futex" in
15578 # If headers don't have gettid/futex syscalls definition, then
15579 # default to no, otherwise there will be compile time failures.
15580 # Otherwise, default to yes. If we don't detect we are
15581 # compiled/linked against NPTL and not cross-compiling, check
15582 # if programs are run by default against NPTL and if not, issue
15584 enable_linux_futex
=no
15585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h. */
15587 #include <sys/syscall.h>
15592 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15597 if ac_fn_c_try_link
"$LINENO"; then :
15599 LIBS
="-lpthread $LIBS"
15600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 #ifndef _GNU_SOURCE
15603 #define _GNU_SOURCE 1
15605 #include <pthread.h>
15606 pthread_t th; void *status;
15610 pthread_tryjoin_np (th, &status);
15615 if ac_fn_c_try_link
"$LINENO"; then :
15616 enable_linux_futex
=yes
15618 if test x
$cross_compiling = xno
; then
15619 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15620 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15622 If so, please configure with --disable-linux-futex" >&5
15623 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15624 If so, please configure with --disable-linux-futex" >&2;}
15627 enable_linux_futex
=yes
15629 rm -f core conftest.err conftest.
$ac_objext \
15630 conftest
$ac_exeext conftest.
$ac_ext
15633 rm -f core conftest.err conftest.
$ac_objext \
15634 conftest
$ac_exeext conftest.
$ac_ext
15637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15639 #include <sys/syscall.h>
15644 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15649 if ac_fn_c_try_link
"$LINENO"; then :
15652 as_fn_error
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15654 rm -f core conftest.err conftest.
$ac_objext \
15655 conftest
$ac_exeext conftest.
$ac_ext
15660 enable_linux_futex
=no
15663 if test x
$enable_linux_futex = xyes
; then
15668 # Check for pthread_{,attr_}[sg]etaffinity_np.
15669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 #define _GNU_SOURCE
15672 #include <pthread.h>
15677 pthread_attr_t attr;
15678 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15679 if (CPU_ISSET (0, &cpuset))
15680 CPU_SET (1, &cpuset);
15682 CPU_ZERO (&cpuset);
15683 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15684 pthread_attr_init (&attr);
15685 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15686 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15691 if ac_fn_c_try_link
"$LINENO"; then :
15693 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15696 rm -f core conftest.err conftest.
$ac_objext \
15697 conftest
$ac_exeext conftest.
$ac_ext
15699 # At least for glibc, clock_gettime is in librt. But don't pull that
15700 # in if it still doesn't give us the function we want.
15701 if test $ac_cv_func_clock_gettime = no
; then
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15703 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15704 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15705 $as_echo_n "(cached) " >&6
15707 ac_check_lib_save_LIBS
=$LIBS
15709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15712 /* Override any GCC internal prototype to avoid an error.
15713 Use char because int might match the return type of a GCC
15714 builtin and then its argument prototype would still apply. */
15718 char clock_gettime ();
15722 return clock_gettime ();
15727 if ac_fn_c_try_link
"$LINENO"; then :
15728 ac_cv_lib_rt_clock_gettime
=yes
15730 ac_cv_lib_rt_clock_gettime
=no
15732 rm -f core conftest.err conftest.
$ac_objext \
15733 conftest
$ac_exeext conftest.
$ac_ext
15734 LIBS
=$ac_check_lib_save_LIBS
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15737 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15738 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
15741 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15747 # See if we support thread-local storage.
15750 # Check whether --enable-tls was given.
15751 if test "${enable_tls+set}" = set; then :
15752 enableval
=$enable_tls;
15753 case "$enableval" in
15755 *) as_fn_error
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15764 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15765 if test "${gcc_cv_have_tls+set}" = set; then :
15766 $as_echo_n "(cached) " >&6
15769 if test "$cross_compiling" = yes; then :
15770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772 __thread int a; int b; int main() { return a = b; }
15774 if ac_fn_c_try_link
"$LINENO"; then :
15775 chktls_save_LDFLAGS
="$LDFLAGS"
15778 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15781 chktls_save_CFLAGS
="$CFLAGS"
15782 CFLAGS
="-fPIC $CFLAGS"
15783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785 int f() { return 0; }
15787 if ac_fn_c_try_link
"$LINENO"; then :
15788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 __thread int a; int b; int f() { return a = b; }
15792 if ac_fn_c_try_link
"$LINENO"; then :
15793 gcc_cv_have_tls
=yes
15797 rm -f core conftest.err conftest.
$ac_objext \
15798 conftest
$ac_exeext conftest.
$ac_ext
15800 gcc_cv_have_tls
=yes
15802 rm -f core conftest.err conftest.
$ac_objext \
15803 conftest
$ac_exeext conftest.
$ac_ext
15804 CFLAGS
="$chktls_save_CFLAGS"
15805 LDFLAGS
="$chktls_save_LDFLAGS"
15809 rm -f core conftest.err conftest.
$ac_objext \
15810 conftest
$ac_exeext conftest.
$ac_ext
15814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816 __thread int a; int b; int main() { return a = b; }
15818 if ac_fn_c_try_run
"$LINENO"; then :
15819 chktls_save_LDFLAGS
="$LDFLAGS"
15820 LDFLAGS
="-static $LDFLAGS"
15821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823 int main() { return 0; }
15825 if ac_fn_c_try_link
"$LINENO"; then :
15826 if test "$cross_compiling" = yes; then :
15827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15829 as_fn_error
"cannot run test program while cross compiling
15830 See \`config.log' for more details." "$LINENO" 5; }
15832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 __thread int a; int b; int main() { return a = b; }
15836 if ac_fn_c_try_run
"$LINENO"; then :
15837 gcc_cv_have_tls
=yes
15841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15846 gcc_cv_have_tls
=yes
15848 rm -f core conftest.err conftest.
$ac_objext \
15849 conftest
$ac_exeext conftest.
$ac_ext
15850 LDFLAGS
="$chktls_save_LDFLAGS"
15851 if test $gcc_cv_have_tls = yes; then
15852 chktls_save_CFLAGS
="$CFLAGS"
15853 thread_CFLAGS
=failed
15854 for flag
in '' '-pthread' '-lpthread'; do
15855 CFLAGS
="$flag $chktls_save_CFLAGS"
15856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15857 /* end confdefs.h. */
15858 #include <pthread.h>
15859 void *g(void *d) { return NULL; }
15863 pthread_t t; pthread_create(&t,NULL,g,NULL);
15868 if ac_fn_c_try_link
"$LINENO"; then :
15869 thread_CFLAGS
="$flag"
15871 rm -f core conftest.err conftest.
$ac_objext \
15872 conftest
$ac_exeext conftest.
$ac_ext
15873 if test "X$thread_CFLAGS" != Xfailed
; then
15877 CFLAGS
="$chktls_save_CFLAGS"
15878 if test "X$thread_CFLAGS" != Xfailed
; then
15879 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15880 if test "$cross_compiling" = yes; then :
15881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15883 as_fn_error
"cannot run test program while cross compiling
15884 See \`config.log' for more details." "$LINENO" 5; }
15886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 #include <pthread.h>
15890 static int *volatile a_in_other_thread;
15892 thread_func (void *arg)
15894 a_in_other_thread = &a;
15901 void *thread_retval;
15902 int *volatile a_in_main_thread;
15903 a_in_main_thread = &a;
15904 if (pthread_create (&thread, (pthread_attr_t *)0,
15905 thread_func, (void *)0))
15907 if (pthread_join (thread, &thread_retval))
15909 return (a_in_other_thread == a_in_main_thread);
15914 if ac_fn_c_try_run
"$LINENO"; then :
15915 gcc_cv_have_tls
=yes
15919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15920 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15923 CFLAGS
="$chktls_save_CFLAGS"
15929 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15930 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15935 $as_echo "$gcc_cv_have_tls" >&6; }
15936 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15938 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15942 # See if we have emulated thread-local storage.
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15945 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15946 if test "${gcc_cv_use_emutls+set}" = set; then :
15947 $as_echo_n "(cached) " >&6
15950 gcc_cv_use_emutls
=no
15951 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15952 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15954 (eval $ac_try) 2>&5
15956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15957 test $ac_status = 0; }; }; then
15958 if grep __emutls_get_address conftest.s
> /dev
/null
; then
15959 gcc_cv_use_emutls
=yes
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15966 $as_echo "$gcc_cv_use_emutls" >&6; }
15967 if test "$gcc_cv_use_emutls" = "yes" ; then
15969 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15973 # See what sort of export controls are available.
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15976 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15977 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15978 $as_echo_n "(cached) " >&6
15981 save_CFLAGS
="$CFLAGS"
15982 CFLAGS
="$CFLAGS -Werror"
15983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15985 void __attribute__((visibility("hidden"))) foo(void) { }
15994 if ac_fn_c_try_compile
"$LINENO"; then :
15995 libgomp_cv_have_attribute_visibility
=yes
15997 libgomp_cv_have_attribute_visibility
=no
15999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16000 CFLAGS
="$save_CFLAGS"
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16003 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16004 if test $libgomp_cv_have_attribute_visibility = yes; then
16006 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16011 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16012 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
16013 $as_echo_n "(cached) " >&6
16016 save_CFLAGS
="$CFLAGS"
16017 CFLAGS
="$CFLAGS -Werror"
16018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h. */
16020 void __attribute__((dllexport)) foo(void) { }
16029 if ac_fn_c_try_compile
"$LINENO"; then :
16030 libgomp_cv_have_attribute_dllexport
=yes
16032 libgomp_cv_have_attribute_dllexport
=no
16034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16035 CFLAGS
="$save_CFLAGS"
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16038 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16039 if test $libgomp_cv_have_attribute_dllexport = yes; then
16041 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16046 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16047 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16048 $as_echo_n "(cached) " >&6
16051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16055 extern void bar(void) __attribute__((alias("foo")));
16064 if ac_fn_c_try_link
"$LINENO"; then :
16065 libgomp_cv_have_attribute_alias
=yes
16067 libgomp_cv_have_attribute_alias
=no
16069 rm -f core conftest.err conftest.
$ac_objext \
16070 conftest
$ac_exeext conftest.
$ac_ext
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16073 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16074 if test $libgomp_cv_have_attribute_alias = yes; then
16076 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16081 # Check whether --with-gnu-ld was given.
16082 if test "${with_gnu_ld+set}" = set; then :
16083 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16089 if test "$GCC" = yes; then
16090 # Check if gcc -print-prog-name=ld gives a path.
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16092 $as_echo_n "checking for ld used by $CC... " >&6; }
16095 # gcc leaves a trailing carriage return which upsets mingw
16096 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16098 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16101 # Accept absolute paths.
16103 re_direlt
='/[^/][^/]*/\.\./'
16104 # Canonicalize the pathname of ld
16105 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16106 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16107 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16109 test -z "$LD" && LD
="$ac_prog"
16112 # If it fails, then pretend we aren't using GCC.
16116 # If it is relative, then search for the first ld in PATH.
16117 with_gnu_ld
=unknown
16120 elif test "$with_gnu_ld" = yes; then
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16122 $as_echo_n "checking for GNU ld... " >&6; }
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16125 $as_echo_n "checking for non-GNU ld... " >&6; }
16127 if test "${lt_cv_path_LD+set}" = set; then :
16128 $as_echo_n "(cached) " >&6
16130 if test -z "$LD"; then
16131 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16132 for ac_dir
in $PATH; do
16134 test -z "$ac_dir" && ac_dir
=.
16135 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16136 lt_cv_path_LD
="$ac_dir/$ac_prog"
16137 # Check to see if the program is GNU ld. I'd rather use --version,
16138 # but apparently some variants of GNU ld only accept -v.
16139 # Break only if it was the GNU/non-GNU ld that we prefer.
16140 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16141 *GNU
* |
*'with BFD'*)
16142 test "$with_gnu_ld" != no
&& break
16145 test "$with_gnu_ld" != yes && break
16152 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16156 LD
="$lt_cv_path_LD"
16157 if test -n "$LD"; then
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16159 $as_echo "$LD" >&6; }
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16162 $as_echo "no" >&6; }
16164 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16166 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16167 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16168 $as_echo_n "(cached) " >&6
16170 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16171 case `$LD -v 2>&1 </dev/null` in
16172 *GNU
* |
*'with BFD'*)
16173 lt_cv_prog_gnu_ld
=yes
16176 lt_cv_prog_gnu_ld
=no
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16181 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16182 with_gnu_ld
=$lt_cv_prog_gnu_ld
16190 # If we're not using GNU ld, then there's no point in even trying these
16191 # tests. Check for that first. We should have already tested for gld
16192 # by now (in libtool), but require it now just to be safe...
16193 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16194 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16198 # The name set by libtool depends on the version of libtool. Shame on us
16199 # for depending on an impl detail, but c'est la vie. Older versions used
16200 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16201 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16202 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16203 # set (hence we're using an older libtool), then set it.
16204 if test x
${with_gnu_ld+set} != xset
; then
16205 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16206 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16209 with_gnu_ld
=$ac_cv_prog_gnu_ld
16213 # Start by getting the version number. I think the libtool test already
16214 # does some of this, but throws away the result.
16215 libgomp_ld_is_gold
=no
16216 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16217 libgomp_ld_is_gold
=yes
16220 ldver
=`$LD --version 2>/dev/null |
16221 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'`
16223 libgomp_gnu_ld_version
=`echo $ldver | \
16224 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16226 # Set --gc-sections.
16227 if test "$with_gnu_ld" = "notbroken"; then
16228 # GNU ld it is! Joy and bunny rabbits!
16230 # All these tests are for C++; save the language and the compiler flags.
16231 # Need to do this so that g++ won't try to link in libstdc++
16232 ac_test_CFLAGS
="${CFLAGS+set}"
16233 ac_save_CFLAGS
="$CFLAGS"
16234 CFLAGS
='-x c++ -Wl,--gc-sections'
16236 # Check for -Wl,--gc-sections
16237 # XXX This test is broken at the moment, as symbols required for linking
16238 # are now in libsupc++ (not built yet). In addition, this test has
16239 # cored on solaris in the past. In addition, --gc-sections doesn't
16240 # really work at the moment (keeps on discarding used sections, first
16241 # .eh_frame and now some of the glibc sections for iconv).
16242 # Bzzzzt. Thanks for playing, maybe next time.
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16244 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16245 if test "$cross_compiling" = yes; then :
16246 ac_sectionLDflags
=yes
16248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16259 if ac_fn_c_try_run
"$LINENO"; then :
16260 ac_sectionLDflags
=yes
16262 ac_sectionLDflags
=no
16264 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16265 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16268 if test "$ac_test_CFLAGS" = set; then
16269 CFLAGS
="$ac_save_CFLAGS"
16271 # this is the suspicious part
16274 if test "$ac_sectionLDflags" = "yes"; then
16275 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16278 $as_echo "$ac_sectionLDflags" >&6; }
16281 # Set linker optimization flags.
16282 if test x
"$with_gnu_ld" = x
"yes"; then
16283 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16291 # Check whether --enable-symvers was given.
16292 if test "${enable_symvers+set}" = set; then :
16293 enableval
=$enable_symvers;
16294 case "$enableval" in
16295 yes|no|gnu
*|sun
) ;;
16296 *) as_fn_error
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16305 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16306 # don't know enough about $LD to do tricks...
16309 # Turn a 'yes' into a suitable default.
16310 if test x
$enable_symvers = xyes
; then
16311 # FIXME The following test is too strict, in theory.
16312 if test $enable_shared = no ||
test "x$LD" = x
; then
16315 if test $with_gnu_ld = yes ; then
16318 case ${target_os} in
16319 # Sun symbol versioning exists since Solaris 2.5.
16320 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16321 enable_symvers
=sun
;;
16323 enable_symvers
=no
;;
16329 # Check if 'sun' was requested on non-Solaris 2 platforms.
16330 if test x
$enable_symvers = xsun
; then
16331 case ${target_os} in
16336 # Unlikely to work.
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16338 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16340 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16342 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16348 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16349 if test $enable_symvers != no
; then
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16351 $as_echo_n "checking for shared libgcc... " >&6; }
16352 ac_save_CFLAGS
="$CFLAGS"
16354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16365 if ac_fn_c_try_link
"$LINENO"; then :
16366 libgomp_shared_libgcc
=yes
16368 libgomp_shared_libgcc
=no
16370 rm -f core conftest.err conftest.
$ac_objext \
16371 conftest
$ac_exeext conftest.
$ac_ext
16372 CFLAGS
="$ac_save_CFLAGS"
16373 if test $libgomp_shared_libgcc = no
; then
16374 cat > conftest.c
<<EOF
16375 int main (void) { return 0; }
16377 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16378 -shared -shared-libgcc -o conftest.so \
16379 conftest.c -v 2>&1 >/dev/null \
16380 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16381 rm -f conftest.c conftest.so
16382 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16383 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16395 if ac_fn_c_try_link
"$LINENO"; then :
16396 libgomp_shared_libgcc
=yes
16398 rm -f core conftest.err conftest.
$ac_objext \
16399 conftest
$ac_exeext conftest.
$ac_ext
16400 CFLAGS
="$ac_save_CFLAGS"
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16404 $as_echo "$libgomp_shared_libgcc" >&6; }
16407 # For GNU ld, we need at least this version. The format is described in
16408 # LIBGOMP_CHECK_LINKER_FEATURES above.
16409 libgomp_min_gnu_ld_version
=21400
16410 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16412 # Check to see if unspecified "yes" value can win, given results above.
16413 # Change "yes" into either "no" or a style name.
16414 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16415 if test $with_gnu_ld = yes; then
16416 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16418 elif test $libgomp_ld_is_gold = yes ; then
16421 # The right tools, the right setup, but too old. Fallbacks?
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16423 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16425 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16427 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16429 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16430 if test $libgomp_gnu_ld_version -ge 21200 ; then
16431 # Globbing fix is present, proper block support is not.
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16433 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16438 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16442 elif test $enable_symvers = sun
; then
16443 : All interesting versions of Sun ld support sun style symbol versioning.
16445 # just fail for now
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16447 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16449 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16451 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16453 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16459 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16460 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16461 $as_echo_n "(cached) " >&6
16464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466 void foo (void); __asm (".symver foo, bar@SYMVER");
16475 if ac_fn_c_try_compile
"$LINENO"; then :
16476 libgomp_cv_have_as_symver_directive
=yes
16478 libgomp_cv_have_as_symver_directive
=no
16480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16483 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16484 if test $libgomp_cv_have_as_symver_directive = yes; then
16486 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16490 if test $enable_symvers != no
; then
16491 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16492 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16494 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16495 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16498 if test $enable_symvers = gnu
; then
16499 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16500 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16502 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16503 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16506 if test $enable_symvers = sun
; then
16507 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16508 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16510 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16511 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16515 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16517 if test $enable_symvers != no
; then
16518 case ${target_os} in
16519 # The Solaris 2 runtime linker doesn't support the GNU extension of
16520 # binding the same symbol to different versions
16523 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16526 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16533 if test $enable_symvers = gnu
; then
16535 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16539 # Get target configury.
16540 .
${srcdir}/configure.tgt
16541 CFLAGS
="$save_CFLAGS $XCFLAGS"
16543 # Check for __sync_val_compare_and_swap, but only after the target has
16544 # had a chance to set XCFLAGS.
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16547 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16548 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16549 $as_echo_n "(cached) " >&6
16552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16558 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16563 if ac_fn_c_try_link
"$LINENO"; then :
16564 libgomp_cv_have_sync_builtins
=yes
16566 libgomp_cv_have_sync_builtins
=no
16568 rm -f core conftest.err conftest.
$ac_objext \
16569 conftest
$ac_exeext conftest.
$ac_ext
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16572 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16573 if test $libgomp_cv_have_sync_builtins = yes; then
16575 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16579 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16585 # Cleanup and exit.
16586 CFLAGS
="$save_CFLAGS"
16587 cat >confcache
<<\_ACEOF
16588 # This file is a shell script that caches the results of configure
16589 # tests run on this system so they can be shared between configure
16590 # scripts and configure runs, see configure's option --config-cache.
16591 # It is not useful on other systems. If it contains results you don't
16592 # want to keep, you may remove or edit it.
16594 # config.status only pays attention to the cache file if you give it
16595 # the --recheck option to rerun configure.
16597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16599 # following values.
16603 # The following way of writing the cache mishandles newlines in values,
16604 # but we know of no workaround that is simple, portable, and efficient.
16605 # So, we kill variables containing newlines.
16606 # Ultrix sh set writes to stderr and can't be redirected directly,
16607 # and sets the high bit in the cache file unless we assign to the vars.
16609 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16610 eval ac_val
=\$
$ac_var
16614 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16618 _ | IFS | as_nl
) ;; #(
16619 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16620 *) { eval $ac_var=; unset $ac_var;} ;;
16626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16627 *${as_nl}ac_space
=\
*)
16628 # `set' does not quote correctly, so add quotes: double-quote
16629 # substitution turns \\\\ into \\, and sed turns \\ into \.
16632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16635 # `set' quotes correctly as required by POSIX, so do not add quotes.
16636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16649 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16650 if test -w "$cache_file"; then
16651 test "x$cache_file" != "x/dev/null" &&
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16653 $as_echo "$as_me: updating cache $cache_file" >&6;}
16654 cat confcache
>$cache_file
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16657 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16662 if test ${multilib} = yes; then
16663 multilib_arg
="--enable-multilib"
16668 # Set up the set of libraries that we need to link against for libgomp.
16669 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16670 # which will force linkage against -lpthread (or equivalent for the system).
16671 # That's not 100% ideal, but about the best we can do easily.
16672 if test $enable_shared = yes; then
16673 link_gomp
="-lgomp %{static: $LIBS}"
16675 link_gomp
="-lgomp $LIBS"
16679 if test "$ac_cv_fc_compiler_gnu" = yes; then
16681 USE_FORTRAN_FALSE
='#'
16683 USE_FORTRAN_TRUE
='#'
16688 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16689 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16690 # the underscore here and update the PREREQ. If it doesn't, then we'll
16691 # need to copy this macro to our acinclude.m4.
16692 save_CFLAGS
="$CFLAGS"
16693 for i
in $config_path; do
16694 if test -f $srcdir/config
/$i/omp-lock.h
; then
16695 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16700 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16703 as_fn_error
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16707 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16712 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16717 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16722 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16725 as_fn_error
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16729 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16734 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16739 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16745 # If the lock fits in an integer, then arrange for Fortran to use that
16746 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16747 # Except that we don't have a way at present to multi-lib the installed
16748 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16750 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16751 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16752 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16755 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16756 OMP_NEST_LOCK_KIND
=8
16758 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16759 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16760 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16763 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16764 OMP_NEST_LOCK_25_KIND
=8
16779 CFLAGS
="$save_CFLAGS"
16781 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16783 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16785 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16787 cat >confcache
<<\_ACEOF
16788 # This file is a shell script that caches the results of configure
16789 # tests run on this system so they can be shared between configure
16790 # scripts and configure runs, see configure's option --config-cache.
16791 # It is not useful on other systems. If it contains results you don't
16792 # want to keep, you may remove or edit it.
16794 # config.status only pays attention to the cache file if you give it
16795 # the --recheck option to rerun configure.
16797 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16798 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16799 # following values.
16803 # The following way of writing the cache mishandles newlines in values,
16804 # but we know of no workaround that is simple, portable, and efficient.
16805 # So, we kill variables containing newlines.
16806 # Ultrix sh set writes to stderr and can't be redirected directly,
16807 # and sets the high bit in the cache file unless we assign to the vars.
16809 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16810 eval ac_val
=\$
$ac_var
16814 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16815 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16818 _ | IFS | as_nl
) ;; #(
16819 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16820 *) { eval $ac_var=; unset $ac_var;} ;;
16826 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16827 *${as_nl}ac_space
=\
*)
16828 # `set' does not quote correctly, so add quotes: double-quote
16829 # substitution turns \\\\ into \\, and sed turns \\ into \.
16832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16835 # `set' quotes correctly as required by POSIX, so do not add quotes.
16836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16849 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16850 if test -w "$cache_file"; then
16851 test "x$cache_file" != "x/dev/null" &&
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16853 $as_echo "$as_me: updating cache $cache_file" >&6;}
16854 cat confcache
>$cache_file
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16857 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16862 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16863 # Let make expand exec_prefix.
16864 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16866 DEFS
=-DHAVE_CONFIG_H
16870 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16871 # 1. Remove the extension, and $U if already installed.
16872 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16873 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16874 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16875 # will be set to the directory where LIBOBJS objects are built.
16876 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16877 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16879 LIBOBJS
=$ac_libobjs
16881 LTLIBOBJS
=$ac_ltlibobjs
16884 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16885 as_fn_error
"conditional \"GENINSRC\" was never defined.
16886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16888 if test -n "$EXEEXT"; then
16890 am__EXEEXT_FALSE
='#'
16892 am__EXEEXT_TRUE
='#'
16896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16897 as_fn_error
"conditional \"AMDEP\" was never defined.
16898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16901 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16904 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16905 as_fn_error
"conditional \"BUILD_INFO\" was never defined.
16906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16908 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16909 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16912 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
16913 as_fn_error
"conditional \"PLUGIN_NVPTX\" was never defined.
16914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16916 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
16917 as_fn_error
"conditional \"PLUGIN_HSA\" was never defined.
16918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16920 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16921 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16924 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16925 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16928 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16929 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16932 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16933 as_fn_error
"conditional \"USE_FORTRAN\" was never defined.
16934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16937 : ${CONFIG_STATUS=./config.status}
16939 ac_clean_files_save
=$ac_clean_files
16940 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16942 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16944 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16946 # Generated by $as_me.
16947 # Run this file to recreate the current configuration.
16948 # Compiler output produced by configure, useful for debugging
16949 # configure, is in config.log if it exists.
16952 ac_cs_recheck=false
16955 SHELL=\${CONFIG_SHELL-$SHELL}
16958 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16959 ## -------------------- ##
16960 ## M4sh Initialization. ##
16961 ## -------------------- ##
16963 # Be more Bourne compatible
16964 DUALCASE
=1; export DUALCASE
# for MKS sh
16965 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16968 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16969 # is contrary to our usage. Disable this feature.
16970 alias -g '${1+"$@"}'='"$@"'
16971 setopt NO_GLOB_SUBST
16973 case `(set -o) 2>/dev/null` in #(
16985 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16986 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16987 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16988 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16989 # Prefer a ksh shell builtin over an external printf program on Solaris,
16990 # but without wasting forks for bash or zsh.
16991 if test -z "$BASH_VERSION$ZSH_VERSION" \
16992 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16993 as_echo='print
-r --'
16994 as_echo_n='print
-rn --'
16995 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16996 as_echo='printf %s
\n'
16997 as_echo_n='printf %s
'
16999 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17000 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17001 as_echo_n='/usr
/ucb
/echo -n'
17003 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17004 as_echo_n_body='eval
17008 expr "X$arg" : "X\\(.*\\)$as_nl";
17009 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17011 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17013 export as_echo_n_body
17014 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17016 export as_echo_body
17017 as_echo='sh
-c $as_echo_body as_echo
'
17020 # The user is always right.
17021 if test "${PATH_SEPARATOR+set}" != set; then
17023 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17024 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17031 # We need space, tab and new line, in precisely that order. Quoting is
17032 # there to prevent editors from complaining about space-tab.
17033 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17034 # splitting by setting IFS to empty value.)
17037 # Find who we are. Look in the path if we contain no directory separator.
17039 *[\\/]* ) as_myself=$0 ;;
17040 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17041 for as_dir in $PATH
17044 test -z "$as_dir" && as_dir=.
17045 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17051 # We did not find ourselves, most probably we were run as `sh COMMAND'
17052 # in which case we are not to be found in the path.
17053 if test "x$as_myself" = x
; then
17056 if test ! -f "$as_myself"; then
17057 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17061 # Unset variables that we do not need and which cause bugs (e.g. in
17062 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17063 # suppresses any "Segmentation fault" message there. '((' could
17064 # trigger a bug in pdksh 5.2.14.
17065 for as_var
in BASH_ENV ENV MAIL MAILPATH
17066 do eval test x\
${$as_var+set} = xset \
17067 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17080 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17083 # as_fn_error ERROR [LINENO LOG_FD]
17084 # ---------------------------------
17085 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17086 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17087 # script with status $?, using 1 if that was 0.
17090 as_status
=$?
; test $as_status -eq 0 && as_status
=1
17092 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17093 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17095 $as_echo "$as_me: error: $1" >&2
17096 as_fn_exit
$as_status
17100 # as_fn_set_status STATUS
17101 # -----------------------
17102 # Set $? to STATUS, without forking.
17103 as_fn_set_status
()
17106 } # as_fn_set_status
17108 # as_fn_exit STATUS
17109 # -----------------
17110 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17114 as_fn_set_status
$1
17120 # Portably unset VAR.
17123 { eval $1=; unset $1;}
17125 as_unset
=as_fn_unset
17126 # as_fn_append VAR VALUE
17127 # ----------------------
17128 # Append the text in VALUE to the end of the definition contained in VAR. Take
17129 # advantage of any shell optimizations that allow amortized linear growth over
17130 # repeated appends, instead of the typical quadratic growth present in naive
17132 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17133 eval 'as_fn_append ()
17144 # as_fn_arith ARG...
17145 # ------------------
17146 # Perform arithmetic evaluation on the ARGs, and store the result in the
17147 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17148 # must be portable across $(()) and expr.
17149 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17150 eval 'as_fn_arith ()
17157 as_val
=`expr "$@" || test $? -eq 1`
17162 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17163 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17169 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17170 as_basename
=basename
17175 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17181 as_me
=`$as_basename -- "$0" ||
17182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17183 X"$0" : 'X\(//\)$' \| \
17184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17186 sed '/^.*\/\([^/][^/]*\)\/*$/{
17200 # Avoid depending upon Character Ranges.
17201 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17202 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17203 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17204 as_cr_digits
='0123456789'
17205 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17207 ECHO_C
= ECHO_N
= ECHO_T
=
17208 case `echo -n x` in #(((((
17210 case `echo 'xy\c'` in
17211 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17213 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17220 rm -f conf$$ conf$$.exe conf$$.
file
17221 if test -d conf$$.dir
; then
17222 rm -f conf$$.dir
/conf$$.
file
17225 mkdir conf$$.dir
2>/dev
/null
17227 if (echo >conf$$.
file) 2>/dev
/null
; then
17228 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17230 # ... but there are two gotchas:
17231 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17232 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17233 # In both cases, we have to default to `cp -p'.
17234 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17236 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17244 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17245 rmdir conf$$.dir
2>/dev
/null
17250 # Create "$as_dir" as a directory, including parents if necessary.
17255 -*) as_dir
=.
/$as_dir;;
17257 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17261 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17262 *) as_qdir
=$as_dir;;
17264 as_dirs
="'$as_qdir' $as_dirs"
17265 as_dir
=`$as_dirname -- "$as_dir" ||
17266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17267 X"$as_dir" : 'X\(//\)[^/]' \| \
17268 X"$as_dir" : 'X\(//\)$' \| \
17269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17270 $as_echo X"$as_dir" |
17271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17275 /^X\(\/\/\)[^/].*/{
17288 test -d "$as_dir" && break
17290 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17291 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17295 if mkdir
-p .
2>/dev
/null
; then
17296 as_mkdir_p
='mkdir -p "$as_dir"'
17298 test -d .
/-p && rmdir .
/-p
17302 if test -x / >/dev
/null
2>&1; then
17303 as_test_x
='test -x'
17305 if ls -dL / >/dev
/null
2>&1; then
17312 if test -d "$1"; then
17318 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17319 ???[sx]*):;;*)false;;esac;fi
17323 as_executable_p
=$as_test_x
17325 # Sed expression to map a string onto a valid CPP name.
17326 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17328 # Sed expression to map a string onto a valid variable name.
17329 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17333 ## ----------------------------------- ##
17334 ## Main body of $CONFIG_STATUS script. ##
17335 ## ----------------------------------- ##
17337 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17340 # Save the log message, to keep $0 and so on meaningful, and to
17341 # report actual input values of CONFIG_FILES etc. instead of their
17342 # values after options handling.
17344 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17345 generated by GNU Autoconf 2.64. Invocation command line was
17347 CONFIG_FILES = $CONFIG_FILES
17348 CONFIG_HEADERS = $CONFIG_HEADERS
17349 CONFIG_LINKS = $CONFIG_LINKS
17350 CONFIG_COMMANDS = $CONFIG_COMMANDS
17353 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17358 case $ac_config_files in *"
17359 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17362 case $ac_config_headers in *"
17363 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17368 # Files that config.status was made for.
17369 config_files="$ac_config_files"
17370 config_headers="$ac_config_headers"
17371 config_commands="$ac_config_commands"
17375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17377 \`$as_me' instantiates files and other configuration actions
17378 from templates according to the current configuration. Unless the files
17379 and actions are specified as TAGs, all are instantiated by default.
17381 Usage: $0 [OPTION]... [TAG]...
17383 -h, --help print this help, then exit
17384 -V, --version print version number and configuration settings, then exit
17385 -q, --quiet, --silent
17386 do not print progress messages
17387 -d, --debug don't remove temporary files
17388 --recheck update $as_me by reconfiguring in the same conditions
17389 --file=FILE[:TEMPLATE]
17390 instantiate the configuration file FILE
17391 --header=FILE[:TEMPLATE]
17392 instantiate the configuration header FILE
17394 Configuration files:
17397 Configuration headers:
17400 Configuration commands:
17403 Report bugs to the package provider.
17404 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17405 General help using GNU software: <http://www.gnu.org/gethelp/>."
17408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17410 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17411 configured by $0, generated by GNU Autoconf 2.64,
17412 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17414 Copyright (C) 2009 Free Software Foundation, Inc.
17415 This config.status script is free software; the Free Software Foundation
17416 gives unlimited permission to copy, distribute and modify it."
17423 test -n "\$AWK" || AWK=awk
17426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17427 # The default lists apply if the user does not specify any file.
17433 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17434 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17445 # Handling of the options.
17446 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17448 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17449 $as_echo "$ac_cs_version"; exit ;;
17450 --debug |
--debu |
--deb |
--de |
--d |
-d )
17452 --file |
--fil |
--fi |
--f )
17455 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17457 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17458 ac_need_defaults
=false
;;
17459 --header |
--heade |
--head |
--hea )
17462 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17464 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17465 ac_need_defaults
=false
;;
17467 # Conflict between --help and --header
17468 as_fn_error
"ambiguous option: \`$1'
17469 Try \`$0 --help' for more information.";;
17470 --help |
--hel |
-h )
17471 $as_echo "$ac_cs_usage"; exit ;;
17472 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17473 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17476 # This is an error.
17477 -*) as_fn_error
"unrecognized option: \`$1'
17478 Try \`$0 --help' for more information." ;;
17480 *) as_fn_append ac_config_targets
" $1"
17481 ac_need_defaults
=false
;;
17487 ac_configure_extra_args
=
17489 if $ac_cs_silent; then
17491 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17496 if \$ac_cs_recheck; then
17497 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17499 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17500 CONFIG_SHELL='$SHELL'
17501 export CONFIG_SHELL
17506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17511 ## Running $as_me. ##
17517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17525 with_multisubdir="$with_multisubdir"
17526 with_multisrctop="$with_multisrctop"
17527 with_target_subdir="$with_target_subdir"
17528 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17529 multi_basedir="$multi_basedir"
17530 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17533 GFORTRAN="$GFORTRAN"
17534 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17537 # The HP-UX ksh and POSIX shell print the target directory to stdout
17538 # if CDPATH is set.
17539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17541 sed_quote_subst='$sed_quote_subst'
17542 double_quote_subst='$double_quote_subst'
17543 delay_variable_subst='$delay_variable_subst'
17544 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17545 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17546 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17547 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17548 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17549 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17550 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17551 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17552 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17553 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17554 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17555 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17556 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17557 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17558 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17559 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17560 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17561 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17562 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17563 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17564 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17565 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17566 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17567 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17568 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17569 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17570 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17571 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17572 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17573 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17574 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17575 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17576 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17577 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17578 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17579 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17580 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17581 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17582 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17583 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17584 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17585 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17586 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17587 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17588 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17589 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17590 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17591 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17592 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"`'
17593 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17594 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17595 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17596 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17597 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17598 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17599 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17600 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17601 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17602 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17603 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17604 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17605 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17606 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17607 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17608 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17609 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17610 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17611 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17612 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17613 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17614 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17615 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17616 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17617 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17618 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17619 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17620 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17621 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17622 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17623 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17624 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17625 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17626 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17627 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17628 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17629 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17630 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17631 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17632 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17633 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17634 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17635 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17636 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17637 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17638 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17639 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17640 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17641 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17642 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17643 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17644 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17645 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17646 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17647 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17648 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17649 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17650 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17651 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17652 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17653 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17654 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17655 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17656 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17657 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17658 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17659 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17660 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17661 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17662 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17663 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17664 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17665 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17666 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17667 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17668 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17669 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17670 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17671 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17672 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17673 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17674 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17675 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17676 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17677 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17678 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17679 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17680 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17681 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17682 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17683 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17684 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17685 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17686 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17687 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17688 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17689 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17690 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17691 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17692 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17693 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17694 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17695 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17696 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17697 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17698 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17699 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17700 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17701 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17702 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17703 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17704 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17705 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17706 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17707 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17708 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17709 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17710 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17711 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17712 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17713 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17714 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17715 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17716 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17717 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17718 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17721 LTCFLAGS='$LTCFLAGS'
17722 compiler='$compiler_DEFAULT'
17724 # A function that is used when there is no print builtin or printf.
17725 func_fallback_echo ()
17727 eval 'cat <<_LTECHO_EOF
17732 # Quote evaled strings.
17746 deplibs_check_method \
17755 lt_cv_sys_global_symbol_pipe \
17756 lt_cv_sys_global_symbol_to_cdecl \
17757 lt_cv_sys_global_symbol_to_c_name_address \
17758 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17759 lt_prog_compiler_no_builtin_flag \
17760 lt_prog_compiler_wl \
17761 lt_prog_compiler_pic \
17762 lt_prog_compiler_static \
17763 lt_cv_prog_compiler_c_o \
17771 export_dynamic_flag_spec \
17772 whole_archive_flag_spec \
17773 compiler_needs_object \
17775 allow_undefined_flag \
17776 no_undefined_flag \
17777 hardcode_libdir_flag_spec \
17778 hardcode_libdir_flag_spec_ld \
17779 hardcode_libdir_separator \
17784 variables_saved_for_relink \
17786 library_names_spec \
17788 install_override_mode \
17792 compiler_lib_search_dirs \
17797 compiler_lib_search_path \
17801 lt_prog_compiler_no_builtin_flag_FC \
17802 lt_prog_compiler_wl_FC \
17803 lt_prog_compiler_pic_FC \
17804 lt_prog_compiler_static_FC \
17805 lt_cv_prog_compiler_c_o_FC \
17806 export_dynamic_flag_spec_FC \
17807 whole_archive_flag_spec_FC \
17808 compiler_needs_object_FC \
17810 allow_undefined_flag_FC \
17811 no_undefined_flag_FC \
17812 hardcode_libdir_flag_spec_FC \
17813 hardcode_libdir_flag_spec_ld_FC \
17814 hardcode_libdir_separator_FC \
17815 fix_srcfile_path_FC \
17816 exclude_expsyms_FC \
17817 include_expsyms_FC \
17818 file_list_spec_FC \
17819 compiler_lib_search_dirs_FC \
17820 predep_objects_FC \
17821 postdep_objects_FC \
17824 compiler_lib_search_path_FC; do
17825 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17826 *[\\\\\\\`\\"\\\$]*)
17827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17835 # Double-quote double-evaled strings.
17836 for var in reload_cmds \
17837 old_postinstall_cmds \
17838 old_postuninstall_cmds \
17840 extract_expsyms_cmds \
17841 old_archive_from_new_cmds \
17842 old_archive_from_expsyms_cmds \
17844 archive_expsym_cmds \
17846 module_expsym_cmds \
17847 export_symbols_cmds \
17850 postuninstall_cmds \
17852 sys_lib_search_path_spec \
17853 sys_lib_dlsearch_path_spec \
17855 old_archive_cmds_FC \
17856 old_archive_from_new_cmds_FC \
17857 old_archive_from_expsyms_cmds_FC \
17859 archive_expsym_cmds_FC \
17861 module_expsym_cmds_FC \
17862 export_symbols_cmds_FC \
17863 prelink_cmds_FC; do
17864 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17865 *[\\\\\\\`\\"\\\$]*)
17866 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17869 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17874 ac_aux_dir='$ac_aux_dir'
17875 xsi_shell='$xsi_shell'
17876 lt_shell_append='$lt_shell_append'
17878 # See if we are running on zsh, and set the options which allow our
17879 # commands through without removal of \ escapes INIT.
17880 if test -n "\${ZSH_VERSION+set}" ; then
17881 setopt NO_GLOB_SUBST
17887 TIMESTAMP='$TIMESTAMP'
17898 acx_cv_header_stdint="$acx_cv_header_stdint"
17899 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17900 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17901 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17902 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17903 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17904 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17905 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17906 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17907 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17908 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17909 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17910 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17911 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17918 # Handling of arguments.
17919 for ac_config_target
in $ac_config_targets
17921 case $ac_config_target in
17922 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17923 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17924 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17925 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17926 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
17927 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
17928 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
17929 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
17930 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
17931 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17932 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17933 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
17934 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
17936 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17941 # If the user did not use the arguments to specify the items to instantiate,
17942 # then the envvar interface is used. Set only those that are not.
17943 # We use the long form for the default assignment because of an extremely
17944 # bizarre bug on SunOS 4.1.3.
17945 if $ac_need_defaults; then
17946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17951 # Have a temporary directory for convenience. Make it in the build tree
17952 # simply because there is no reason against having it here, and in addition,
17953 # creating and moving files from /tmp can sometimes cause problems.
17954 # Hook for its removal unless debugging.
17955 # Note that there is a small window in which the directory will not be cleaned:
17956 # after its creation but before its name has been assigned to `$tmp'.
17960 trap 'exit_status=$?
17961 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17963 trap 'as_fn_exit 1' 1 2 13 15
17965 # Create a (secure) tmp directory for tmp files.
17968 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17969 test -n "$tmp" && test -d "$tmp"
17972 tmp
=.
/conf$$
-$RANDOM
17973 (umask 077 && mkdir
"$tmp")
17974 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17976 # Set up the scripts for CONFIG_FILES section.
17977 # No need to generate them if there are no CONFIG_FILES.
17978 # This happens for instance with `./config.status config.h'.
17979 if test -n "$CONFIG_FILES"; then
17982 ac_cr
=`echo X | tr X '\015'`
17983 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17984 # But we know of no other shell where ac_cr would be empty at this
17985 # point, so we can use a bashism as a fallback.
17986 if test "x$ac_cr" = x
; then
17987 eval ac_cr
=\$
\'\\r
\'
17989 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17993 ac_cs_awk_cr
=$ac_cr
17996 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18001 echo "cat >conf$$subs.awk <<_ACEOF" &&
18002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18004 } >conf$$subs.sh ||
18005 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18008 for ac_last_try in false false false false false :; do
18009 . ./conf$$subs.sh ||
18010 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18012 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18013 if test $ac_delim_n = $ac_delim_num; then
18015 elif $ac_last_try; then
18016 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18018 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18021 rm -f conf$$subs.sh
18023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18024 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18028 s/^/S["/; s
/!.
*/"]=/
18038 s/\(.\{148\}\).*/\1/
18040 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18045 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18052 s/\(.\{148\}\).*/\1/
18054 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18058 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18063 ' <conf$$subs.awk | sed '
18068 ' >>$CONFIG_STATUS || ac_write_fail=1
18069 rm -f conf$$subs.awk
18070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18072 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18073 for (key in S) S_is_set[key] = 1
18079 nfields = split(line, field, "@
")
18081 len = length(field[1])
18082 for (i = 2; i < nfields; i++) {
18084 keylen = length(key)
18085 if (S_is_set[key]) {
18087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18088 len += length(value) + length(field[++i])
18099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18100 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18101 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18104 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18105 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18110 # trailing colons and then remove the whole line if VPATH becomes empty
18111 # (actually we leave an empty line to preserve line numbers).
18112 if test "x
$srcdir" = x.; then
18113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18114 s/:*\$(srcdir):*/:/
18115 s/:*\${srcdir}:*/:/
18117 s/^\([^=]*=[ ]*\):*/\1/
18123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18124 fi # test -n "$CONFIG_FILES"
18126 # Set up the scripts for CONFIG_HEADERS section.
18127 # No need to generate them if there are no CONFIG_HEADERS.
18128 # This happens for instance with `./config.status Makefile'.
18129 if test -n "$CONFIG_HEADERS"; then
18130 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18134 # Transform confdefs.h into an awk script `defines.awk', embedded as
18135 # here-document in config.status, that substitutes the proper values into
18136 # config.h.in to produce config.h.
18138 # Create a delimiter string that does not exist in confdefs.h, to ease
18139 # handling of long lines.
18141 for ac_last_try in false false :; do
18142 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18143 if test -z "$ac_t"; then
18145 elif $ac_last_try; then
18146 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18148 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18152 # For the awk script, D is an array of macro values keyed by name,
18153 # likewise P contains macro parameters if any. Preserve backslash
18154 # newline sequences.
18156 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18158 s/.\{148\}/&'"$ac_delim"'/g
18161 s/^[ ]*#[ ]*define[ ][ ]*/ /
18168 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18170 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18175 D["\
1"]=" \
3\\\\\\n
"\\/p
18177 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18182 s/.\{148\}/&'"$ac_delim"'/g
18187 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18190 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18192 ' <confdefs.h | sed '
18193 s/'"$ac_delim"'/"\\\
18194 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18197 for (key in D) D_is_set[key] = 1
18200 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18202 split(line, arg, " ")
18203 if (arg[1] == "#") {
18207 defundef
= substr
(arg
[1], 2)
18210 split(mac1
, mac2
, "(") #)
18212 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18213 if (D_is_set
[macro
]) {
18214 # Preserve the white space surrounding the "#".
18215 print prefix
"define", macro P
[macro
] D
[macro
]
18218 # Replace #undef with comments. This is necessary, for example,
18219 # in the case of _POSIX_SOURCE, which is predefined and required
18220 # on some systems where configure will not decide to define it.
18221 if (defundef
== "undef") {
18222 print
"/*", prefix defundef
, macro
, "*/"
18230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18231 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18232 fi # test -n "$CONFIG_HEADERS"
18235 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18240 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18242 case $ac_mode$ac_tag in
18244 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18245 :[FH
]-) ac_tag
=-:-;;
18246 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18263 -) ac_f
="$tmp/stdin";;
18264 *) # Look for the file first in the build tree, then in the source tree
18265 # (if the path is not absolute). The absolute path cannot be DOS-style,
18266 # because $ac_f cannot contain `:'.
18270 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18272 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18274 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18275 as_fn_append ac_file_inputs
" '$ac_f'"
18278 # Let's still pretend it is `configure' which instantiates (i.e., don't
18279 # use $as_me), people would be surprised to read:
18280 # /* config.h. Generated by config.status. */
18281 configure_input
='Generated from '`
18282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18284 if test x
"$ac_file" != x-
; then
18285 configure_input
="$ac_file. $configure_input"
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18287 $as_echo "$as_me: creating $ac_file" >&6;}
18289 # Neutralize special characters interpreted by sed in replacement strings.
18290 case $configure_input in #(
18291 *\
&* |
*\|
* |
*\\* )
18292 ac_sed_conf_input
=`$as_echo "$configure_input" |
18293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18294 *) ac_sed_conf_input
=$configure_input;;
18298 *:-:* |
*:-) cat >"$tmp/stdin" \
18299 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18304 ac_dir
=`$as_dirname -- "$ac_file" ||
18305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18306 X"$ac_file" : 'X\(//\)[^/]' \| \
18307 X"$ac_file" : 'X\(//\)$' \| \
18308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18309 $as_echo X"$ac_file" |
18310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18314 /^X\(\/\/\)[^/].*/{
18327 as_dir
="$ac_dir"; as_fn_mkdir_p
18331 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18333 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18334 # A ".." for each directory in $ac_dir_suffix.
18335 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18336 case $ac_top_builddir_sub in
18337 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18338 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18341 ac_abs_top_builddir
=$ac_pwd
18342 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18343 # for backward compatibility:
18344 ac_top_builddir
=$ac_top_build_prefix
18347 .
) # We are building in place.
18349 ac_top_srcdir
=$ac_top_builddir_sub
18350 ac_abs_top_srcdir
=$ac_pwd ;;
18351 [\\/]* | ?
:[\\/]* ) # Absolute name.
18352 ac_srcdir
=$srcdir$ac_dir_suffix;
18353 ac_top_srcdir
=$srcdir
18354 ac_abs_top_srcdir
=$srcdir ;;
18355 *) # Relative name.
18356 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18357 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18358 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18360 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18370 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18371 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18373 ac_MKDIR_P
=$MKDIR_P
18375 [\\/$
]* | ?
:[\\/]* ) ;;
18376 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18381 # If the template does not know about datarootdir, expand it.
18382 # FIXME: This hack should be removed a few years after 2.60.
18383 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18395 *datarootdir
*) ac_datarootdir_seen
=yes;;
18396 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18401 ac_datarootdir_hack='
18402 s&@datadir@&$datadir&g
18403 s&@docdir@&$docdir&g
18404 s&@infodir@&$infodir&g
18405 s&@localedir@&$localedir&g
18406 s&@mandir@&$mandir&g
18407 s&\\\${datarootdir}&$datarootdir&g' ;;
18411 # Neutralize VPATH when `$srcdir' = `.'.
18412 # Shell code in configure.ac might set extrasub.
18413 # FIXME: do we really want to maintain this feature?
18414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18415 ac_sed_extra="$ac_vpsub
18418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18420 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18421 s|@configure_input@|
$ac_sed_conf_input|
;t t
18422 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18423 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18424 s
&@srcdir@
&$ac_srcdir&;t t
18425 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18426 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18427 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18428 s
&@builddir@
&$ac_builddir&;t t
18429 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18430 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18431 s
&@INSTALL@
&$ac_INSTALL&;t t
18432 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18433 $ac_datarootdir_hack
18435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18436 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18438 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18439 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18440 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18442 which seems to be undefined. Please make sure it is defined." >&5
18443 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18444 which seems to be undefined. Please make sure it is defined." >&2;}
18448 -) cat "$tmp/out" && rm -f "$tmp/out";;
18449 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18451 || as_fn_error "could not create $ac_file" "$LINENO" 5
18457 if test x"$ac_file" != x-; then
18459 $as_echo "/* $configure_input */" \
18460 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18461 } >"$tmp/config.h" \
18462 || as_fn_error "could not create $ac_file" "$LINENO" 5
18463 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18465 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18468 mv "$tmp/config.h" "$ac_file" \
18469 || as_fn_error "could not create $ac_file" "$LINENO" 5
18472 $as_echo "/* $configure_input */" \
18473 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18474 || as_fn_error "could not create -" "$LINENO" 5
18476 # Compute "$ac_file"'s index
in $config_headers.
18479 for _am_header
in $config_headers :; do
18480 case $_am_header in
18481 $_am_arg |
$_am_arg:* )
18484 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18487 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18488 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18489 X"$_am_arg" : 'X\(//\)[^/]' \| \
18490 X"$_am_arg" : 'X\(//\)$' \| \
18491 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18492 $as_echo X"$_am_arg" |
18493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18497 /^X\(\/\/\)[^/].*/{
18509 s/.*/./; q'`/stamp-h
$_am_stamp_count
18512 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18513 $as_echo "$as_me: executing $ac_file commands" >&6;}
18518 case $ac_file$ac_mode in
18520 # Only add multilib support code if we just rebuilt the top-level
18522 case " $CONFIG_FILES " in
18524 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18527 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18528 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18529 # are listed without --file. Let's play safe and only enable the eval
18530 # if we detect the quoting.
18531 case $CONFIG_FILES in
18532 *\'*) eval set x
"$CONFIG_FILES" ;;
18533 *) set x
$CONFIG_FILES ;;
18538 # Strip MF so we end up with the name of the file.
18539 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18540 # Check whether this is an Automake generated Makefile or not.
18541 # We used to match only the files named `Makefile.in', but
18542 # some people rename them; so instead we look at the file content.
18543 # Grep'ing the first line is not enough: some people post-process
18544 # each Makefile.in and add a new line on top of each file to say so.
18545 # Grep'ing the whole file is not good either: AIX grep has a line
18546 # limit of 2048, but all sed's we know have understand at least 4000.
18547 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18548 dirpart
=`$as_dirname -- "$mf" ||
18549 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18550 X"$mf" : 'X\(//\)[^/]' \| \
18551 X"$mf" : 'X\(//\)$' \| \
18552 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18558 /^X\(\/\/\)[^/].*/{
18574 # Extract the definition of DEPDIR, am__include, and am__quote
18575 # from the Makefile without running `make'.
18576 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18577 test -z "$DEPDIR" && continue
18578 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18579 test -z "am__include" && continue
18580 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18581 # When using ansi2knr, U may be empty or an underscore; expand it
18582 U
=`sed -n 's/^U = //p' < "$mf"`
18583 # Find all dependency output files, they are included files with
18584 # $(DEPDIR) in their names. We invoke sed twice because it is the
18585 # simplest approach to changing $(DEPDIR) to its actual value in the
18587 for file in `sed -n "
18588 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18589 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18590 # Make sure the directory exists.
18591 test -f "$dirpart/$file" && continue
18592 fdir
=`$as_dirname -- "$file" ||
18593 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18594 X"$file" : 'X\(//\)[^/]' \| \
18595 X"$file" : 'X\(//\)$' \| \
18596 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18597 $as_echo X"$file" |
18598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18602 /^X\(\/\/\)[^/].*/{
18615 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18616 # echo "creating $dirpart/$file"
18617 echo '# dummy' > "$dirpart/$file"
18624 # See if we are running on zsh, and set the options which allow our
18625 # commands through without removal of \ escapes.
18626 if test -n "${ZSH_VERSION+set}" ; then
18627 setopt NO_GLOB_SUBST
18630 cfgfile
="${ofile}T"
18631 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18634 cat <<_LT_EOF >> "$cfgfile"
18637 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18638 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18639 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18640 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18642 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18643 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18644 # Written by Gordon Matzigkeit, 1996
18646 # This file is part of GNU Libtool.
18648 # GNU Libtool is free software; you can redistribute it and/or
18649 # modify it under the terms of the GNU General Public License as
18650 # published by the Free Software Foundation; either version 2 of
18651 # the License, or (at your option) any later version.
18653 # As a special exception to the GNU General Public License,
18654 # if you distribute this file as part of a program or library that
18655 # is built using GNU Libtool, you may include this file under the
18656 # same distribution terms that you use for the rest of that program.
18658 # GNU Libtool is distributed in the hope that it will be useful,
18659 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18661 # GNU General Public License for more details.
18663 # You should have received a copy of the GNU General Public License
18664 # along with GNU Libtool; see the file COPYING. If not, a copy
18665 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18666 # obtained by writing to the Free Software Foundation, Inc.,
18667 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18670 # The names of the tagged configurations supported by this script.
18671 available_tags="FC "
18673 # ### BEGIN LIBTOOL CONFIG
18675 # Which release of libtool.m4 was used?
18676 macro_version=$macro_version
18677 macro_revision=$macro_revision
18679 # Whether or not to build shared libraries.
18680 build_libtool_libs=$enable_shared
18682 # Whether or not to build static libraries.
18683 build_old_libs=$enable_static
18685 # What type of objects to build.
18688 # Whether or not to optimize for fast installation.
18689 fast_install=$enable_fast_install
18691 # Shell to use when invoking shell scripts.
18694 # An echo program that protects backslashes.
18698 host_alias=$host_alias
18702 # The build system.
18703 build_alias=$build_alias
18707 # A sed program that does not truncate output.
18710 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18711 Xsed="\$SED -e 1s/^X//"
18713 # A grep program that handles long lines.
18719 # A literal string matcher.
18722 # A BSD- or MS-compatible name lister.
18725 # Whether we need soft or hard links.
18728 # What is the maximum length of a command?
18729 max_cmd_len=$max_cmd_len
18731 # Object file suffix (normally "o").
18734 # Executable file suffix (normally "").
18737 # whether the shell understands "unset".
18740 # turn spaces into newlines.
18743 # turn newlines into spaces.
18746 # An object symbol dumper.
18747 OBJDUMP=$lt_OBJDUMP
18749 # Method to check whether dependent libraries are shared objects.
18750 deplibs_check_method=$lt_deplibs_check_method
18752 # Command to use when deplibs_check_method == "file_magic".
18753 file_magic_cmd=$lt_file_magic_cmd
18757 AR_FLAGS=$lt_AR_FLAGS
18759 # A symbol stripping program.
18762 # Commands used to install an old-style archive.
18764 old_postinstall_cmds=$lt_old_postinstall_cmds
18765 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18767 # Whether to use a lock for old archive extraction.
18768 lock_old_archive_extraction=$lock_old_archive_extraction
18773 # LTCC compiler flags.
18774 LTCFLAGS=$lt_CFLAGS
18776 # Take the output of nm and produce a listing of raw symbols and C names.
18777 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18779 # Transform the output of nm in a proper C declaration.
18780 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18782 # Transform the output of nm in a C name address pair.
18783 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18785 # Transform the output of nm in a C name address pair when lib prefix is needed.
18786 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18788 # The name of the directory that contains temporary libtool files.
18791 # Used to examine libraries when file_magic_cmd begins with "file".
18792 MAGIC_CMD=$MAGIC_CMD
18794 # Must we lock files when doing compilation?
18795 need_locks=$lt_need_locks
18797 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18798 DSYMUTIL=$lt_DSYMUTIL
18800 # Tool to change global to local symbols on Mac OS X.
18803 # Tool to manipulate fat objects and archives on Mac OS X.
18806 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18809 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18810 OTOOL64=$lt_OTOOL64
18812 # Old archive suffix (normally "a").
18815 # Shared library suffix (normally ".so").
18816 shrext_cmds=$lt_shrext_cmds
18818 # The commands to extract the exported symbol list from a shared archive.
18819 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18821 # Variables whose values should be saved in libtool wrapper scripts and
18822 # restored at link time.
18823 variables_saved_for_relink=$lt_variables_saved_for_relink
18825 # Do we need the "lib" prefix for modules?
18826 need_lib_prefix=$need_lib_prefix
18828 # Do we need a version for libraries?
18829 need_version=$need_version
18831 # Library versioning type.
18832 version_type=$version_type
18834 # Shared library runtime path variable.
18835 runpath_var=$runpath_var
18837 # Shared library path variable.
18838 shlibpath_var=$shlibpath_var
18840 # Is shlibpath searched before the hard-coded library search path?
18841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18843 # Format of library name prefix.
18844 libname_spec=$lt_libname_spec
18846 # List of archive names. First name is the real one, the rest are links.
18847 # The last name is the one that the linker finds with -lNAME
18848 library_names_spec=$lt_library_names_spec
18850 # The coded name of the library, if different from the real name.
18851 soname_spec=$lt_soname_spec
18853 # Permission mode override for installation of shared libraries.
18854 install_override_mode=$lt_install_override_mode
18856 # Command to use after installation of a shared archive.
18857 postinstall_cmds=$lt_postinstall_cmds
18859 # Command to use after uninstallation of a shared archive.
18860 postuninstall_cmds=$lt_postuninstall_cmds
18862 # Commands used to finish a libtool library installation in a directory.
18863 finish_cmds=$lt_finish_cmds
18865 # As "finish_cmds", except a single script fragment to be evaled but
18867 finish_eval=$lt_finish_eval
18869 # Whether we should hardcode library paths into libraries.
18870 hardcode_into_libs=$hardcode_into_libs
18872 # Compile-time system search path for libraries.
18873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18875 # Run-time system search path for libraries.
18876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18878 # Whether dlopen is supported.
18879 dlopen_support=$enable_dlopen
18881 # Whether dlopen of programs is supported.
18882 dlopen_self=$enable_dlopen_self
18884 # Whether dlopen of statically linked programs is supported.
18885 dlopen_self_static=$enable_dlopen_self_static
18887 # Commands to strip libraries.
18888 old_striplib=$lt_old_striplib
18889 striplib=$lt_striplib
18892 # The linker used to build libraries.
18895 # How to create reloadable object files.
18896 reload_flag=$lt_reload_flag
18897 reload_cmds=$lt_reload_cmds
18899 # Commands used to build an old-style archive.
18900 old_archive_cmds=$lt_old_archive_cmds
18902 # A language specific compiler.
18905 # Is the compiler the GNU compiler?
18908 # Compiler flag to turn off builtin functions.
18909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18911 # How to pass a linker flag through the compiler.
18912 wl=$lt_lt_prog_compiler_wl
18914 # Additional compiler flags for building library objects.
18915 pic_flag=$lt_lt_prog_compiler_pic
18917 # Compiler flag to prevent dynamic linking.
18918 link_static_flag=$lt_lt_prog_compiler_static
18920 # Does compiler simultaneously support -c and -o options?
18921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18923 # Whether or not to add -lc for building shared libraries.
18924 build_libtool_need_lc=$archive_cmds_need_lc
18926 # Whether or not to disallow shared libs when runtime libs are static.
18927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18929 # Compiler flag to allow reflexive dlopens.
18930 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18932 # Compiler flag to generate shared objects directly from archives.
18933 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18935 # Whether the compiler copes with passing no objects directly.
18936 compiler_needs_object=$lt_compiler_needs_object
18938 # Create an old-style archive from a shared archive.
18939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18941 # Create a temporary old-style archive to link instead of a shared archive.
18942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18944 # Commands used to build a shared archive.
18945 archive_cmds=$lt_archive_cmds
18946 archive_expsym_cmds=$lt_archive_expsym_cmds
18948 # Commands used to build a loadable module if different from building
18949 # a shared archive.
18950 module_cmds=$lt_module_cmds
18951 module_expsym_cmds=$lt_module_expsym_cmds
18953 # Whether we are building with GNU ld or not.
18954 with_gnu_ld=$lt_with_gnu_ld
18956 # Flag that allows shared libraries with undefined symbols to be built.
18957 allow_undefined_flag=$lt_allow_undefined_flag
18959 # Flag that enforces no undefined symbols.
18960 no_undefined_flag=$lt_no_undefined_flag
18962 # Flag to hardcode \$libdir into a binary during linking.
18963 # This must work even if \$libdir does not exist
18964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18966 # If ld is used when linking, flag to hardcode \$libdir into a binary
18967 # during linking. This must work even if \$libdir does not exist.
18968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18970 # Whether we need a single "-rpath" flag with a separated argument.
18971 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18973 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18974 # DIR into the resulting binary.
18975 hardcode_direct=$hardcode_direct
18977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18978 # DIR into the resulting binary and the resulting library dependency is
18979 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18980 # library is relocated.
18981 hardcode_direct_absolute=$hardcode_direct_absolute
18983 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18984 # into the resulting binary.
18985 hardcode_minus_L=$hardcode_minus_L
18987 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18988 # into the resulting binary.
18989 hardcode_shlibpath_var=$hardcode_shlibpath_var
18991 # Set to "yes" if building a shared library automatically hardcodes DIR
18992 # into the library and all subsequent libraries and executables linked
18994 hardcode_automatic=$hardcode_automatic
18996 # Set to yes if linker adds runtime paths of dependent libraries
18997 # to runtime path list.
18998 inherit_rpath=$inherit_rpath
19000 # Whether libtool must link a program against all its dependency libraries.
19001 link_all_deplibs=$link_all_deplibs
19003 # Fix the shell variable \$srcfile for the compiler.
19004 fix_srcfile_path=$lt_fix_srcfile_path
19006 # Set to "yes" if exported symbols are required.
19007 always_export_symbols=$always_export_symbols
19009 # The commands to list exported symbols.
19010 export_symbols_cmds=$lt_export_symbols_cmds
19012 # Symbols that should not be listed in the preloaded symbols.
19013 exclude_expsyms=$lt_exclude_expsyms
19015 # Symbols that must always be exported.
19016 include_expsyms=$lt_include_expsyms
19018 # Commands necessary for linking programs (against libraries) with templates.
19019 prelink_cmds=$lt_prelink_cmds
19021 # Specify filename containing input files.
19022 file_list_spec=$lt_file_list_spec
19024 # How to hardcode a shared library path into an executable.
19025 hardcode_action=$hardcode_action
19027 # The directories searched by this compiler when creating a shared library.
19028 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19030 # Dependencies to place before and after the objects being linked to
19031 # create a shared library.
19032 predep_objects=$lt_predep_objects
19033 postdep_objects=$lt_postdep_objects
19034 predeps=$lt_predeps
19035 postdeps=$lt_postdeps
19037 # The library search path used internally by the compiler when linking
19038 # a shared library.
19039 compiler_lib_search_path=$lt_compiler_lib_search_path
19041 # ### END LIBTOOL CONFIG
19047 cat <<\_LT_EOF
>> "$cfgfile"
19048 # AIX sometimes has problems with the GCC collect2 program. For some
19049 # reason, if we set the COLLECT_NAMES environment variable, the problems
19050 # vanish in a puff of smoke.
19051 if test "X${COLLECT_NAMES+set}" != Xset
; then
19053 export COLLECT_NAMES
19060 ltmain
="$ac_aux_dir/ltmain.sh"
19063 # We use sed instead of cat because bash on DJGPP gets confused if
19064 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19065 # text mode, it properly converts lines to CR/LF. This bash problem
19066 # is reportedly fixed, but why not run on old versions too?
19067 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19068 ||
(rm -f "$cfgfile"; exit 1)
19072 cat << \_LT_EOF
>> "$cfgfile"
19074 # func_dirname file append nondir_replacement
19075 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19076 # otherwise set result to NONDIR_REPLACEMENT.
19080 */*) func_dirname_result
="${1%/*}${2}" ;;
19081 * ) func_dirname_result
="${3}" ;;
19085 # func_basename file
19088 func_basename_result
="${1##*/}"
19091 # func_dirname_and_basename file append nondir_replacement
19092 # perform func_basename and func_dirname in a single function
19094 # dirname: Compute the dirname of FILE. If nonempty,
19095 # add APPEND to the result, otherwise set result
19096 # to NONDIR_REPLACEMENT.
19097 # value returned in "$func_dirname_result"
19098 # basename: Compute filename of FILE.
19099 # value retuned in "$func_basename_result"
19100 # Implementation must be kept synchronized with func_dirname
19101 # and func_basename. For efficiency, we do not delegate to
19102 # those functions but instead duplicate the functionality here.
19103 func_dirname_and_basename
()
19106 */*) func_dirname_result
="${1%/*}${2}" ;;
19107 * ) func_dirname_result
="${3}" ;;
19109 func_basename_result
="${1##*/}"
19112 # func_stripname prefix suffix name
19113 # strip PREFIX and SUFFIX off of NAME.
19114 # PREFIX and SUFFIX must not contain globbing or regex special
19115 # characters, hashes, percent signs, but SUFFIX may contain a leading
19116 # dot (in which case that matches only a dot).
19119 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19120 # positional parameters, so assign one to ordinary parameter first.
19121 func_stripname_result
=${3}
19122 func_stripname_result
=${func_stripname_result#"${1}"}
19123 func_stripname_result
=${func_stripname_result%"${2}"}
19129 func_opt_split_opt
=${1%%=*}
19130 func_opt_split_arg
=${1#*=}
19137 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19138 *) func_lo2o_result
=${1} ;;
19142 # func_xform libobj-or-source
19145 func_xform_result
=${1%.*}.lo
19148 # func_arith arithmetic-term...
19151 func_arith_result
=$
(( $
* ))
19155 # STRING may not start with a hyphen.
19158 func_len_result
=${#1}
19163 *) # Bourne compatible functions.
19164 cat << \_LT_EOF
>> "$cfgfile"
19166 # func_dirname file append nondir_replacement
19167 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19168 # otherwise set result to NONDIR_REPLACEMENT.
19171 # Extract subdirectory from the argument.
19172 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19173 if test "X$func_dirname_result" = "X${1}"; then
19174 func_dirname_result
="${3}"
19176 func_dirname_result
="$func_dirname_result${2}"
19180 # func_basename file
19183 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19187 # func_stripname prefix suffix name
19188 # strip PREFIX and SUFFIX off of NAME.
19189 # PREFIX and SUFFIX must not contain globbing or regex special
19190 # characters, hashes, percent signs, but SUFFIX may contain a leading
19191 # dot (in which case that matches only a dot).
19192 # func_strip_suffix prefix name
19196 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19197 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19202 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19203 my_sed_long_arg
='1s/^-[^=]*=//'
19208 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19209 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19215 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19218 # func_xform libobj-or-source
19221 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19224 # func_arith arithmetic-term...
19227 func_arith_result
=`expr "$@"`
19231 # STRING may not start with a hyphen.
19234 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19240 case $lt_shell_append in
19242 cat << \_LT_EOF
>> "$cfgfile"
19244 # func_append var value
19245 # Append VALUE to the end of shell variable VAR.
19253 cat << \_LT_EOF
>> "$cfgfile"
19255 # func_append var value
19256 # Append VALUE to the end of shell variable VAR.
19267 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19268 ||
(rm -f "$cfgfile"; exit 1)
19270 mv -f "$cfgfile" "$ofile" ||
19271 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19275 cat <<_LT_EOF >> "$ofile"
19277 # ### BEGIN LIBTOOL TAG CONFIG: FC
19279 # The linker used to build libraries.
19282 # How to create reloadable object files.
19283 reload_flag=$lt_reload_flag_FC
19284 reload_cmds=$lt_reload_cmds_FC
19286 # Commands used to build an old-style archive.
19287 old_archive_cmds=$lt_old_archive_cmds_FC
19289 # A language specific compiler.
19292 # Is the compiler the GNU compiler?
19295 # Compiler flag to turn off builtin functions.
19296 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19298 # How to pass a linker flag through the compiler.
19299 wl=$lt_lt_prog_compiler_wl_FC
19301 # Additional compiler flags for building library objects.
19302 pic_flag=$lt_lt_prog_compiler_pic_FC
19304 # Compiler flag to prevent dynamic linking.
19305 link_static_flag=$lt_lt_prog_compiler_static_FC
19307 # Does compiler simultaneously support -c and -o options?
19308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19310 # Whether or not to add -lc for building shared libraries.
19311 build_libtool_need_lc=$archive_cmds_need_lc_FC
19313 # Whether or not to disallow shared libs when runtime libs are static.
19314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19316 # Compiler flag to allow reflexive dlopens.
19317 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19319 # Compiler flag to generate shared objects directly from archives.
19320 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19322 # Whether the compiler copes with passing no objects directly.
19323 compiler_needs_object=$lt_compiler_needs_object_FC
19325 # Create an old-style archive from a shared archive.
19326 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19328 # Create a temporary old-style archive to link instead of a shared archive.
19329 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19331 # Commands used to build a shared archive.
19332 archive_cmds=$lt_archive_cmds_FC
19333 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19335 # Commands used to build a loadable module if different from building
19336 # a shared archive.
19337 module_cmds=$lt_module_cmds_FC
19338 module_expsym_cmds=$lt_module_expsym_cmds_FC
19340 # Whether we are building with GNU ld or not.
19341 with_gnu_ld=$lt_with_gnu_ld_FC
19343 # Flag that allows shared libraries with undefined symbols to be built.
19344 allow_undefined_flag=$lt_allow_undefined_flag_FC
19346 # Flag that enforces no undefined symbols.
19347 no_undefined_flag=$lt_no_undefined_flag_FC
19349 # Flag to hardcode \$libdir into a binary during linking.
19350 # This must work even if \$libdir does not exist
19351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19353 # If ld is used when linking, flag to hardcode \$libdir into a binary
19354 # during linking. This must work even if \$libdir does not exist.
19355 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19357 # Whether we need a single "-rpath" flag with a separated argument.
19358 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19360 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19361 # DIR into the resulting binary.
19362 hardcode_direct=$hardcode_direct_FC
19364 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19365 # DIR into the resulting binary and the resulting library dependency is
19366 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19367 # library is relocated.
19368 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19370 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19371 # into the resulting binary.
19372 hardcode_minus_L=$hardcode_minus_L_FC
19374 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19375 # into the resulting binary.
19376 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19378 # Set to "yes" if building a shared library automatically hardcodes DIR
19379 # into the library and all subsequent libraries and executables linked
19381 hardcode_automatic=$hardcode_automatic_FC
19383 # Set to yes if linker adds runtime paths of dependent libraries
19384 # to runtime path list.
19385 inherit_rpath=$inherit_rpath_FC
19387 # Whether libtool must link a program against all its dependency libraries.
19388 link_all_deplibs=$link_all_deplibs_FC
19390 # Fix the shell variable \$srcfile for the compiler.
19391 fix_srcfile_path=$lt_fix_srcfile_path_FC
19393 # Set to "yes" if exported symbols are required.
19394 always_export_symbols=$always_export_symbols_FC
19396 # The commands to list exported symbols.
19397 export_symbols_cmds=$lt_export_symbols_cmds_FC
19399 # Symbols that should not be listed in the preloaded symbols.
19400 exclude_expsyms=$lt_exclude_expsyms_FC
19402 # Symbols that must always be exported.
19403 include_expsyms=$lt_include_expsyms_FC
19405 # Commands necessary for linking programs (against libraries) with templates.
19406 prelink_cmds=$lt_prelink_cmds_FC
19408 # Specify filename containing input files.
19409 file_list_spec=$lt_file_list_spec_FC
19411 # How to hardcode a shared library path into an executable.
19412 hardcode_action=$hardcode_action_FC
19414 # The directories searched by this compiler when creating a shared library.
19415 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19417 # Dependencies to place before and after the objects being linked to
19418 # create a shared library.
19419 predep_objects=$lt_predep_objects_FC
19420 postdep_objects=$lt_postdep_objects_FC
19421 predeps=$lt_predeps_FC
19422 postdeps=$lt_postdeps_FC
19424 # The library search path used internally by the compiler when linking
19425 # a shared library.
19426 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19428 # ### END LIBTOOL TAG CONFIG: FC
19433 if test "$GCC" = yes; then
19434 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19436 echo "/* generated for $CC */" > tmp-stdint.h
19439 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19441 #ifndef GCC_GENERATED_STDINT_H
19442 #define GCC_GENERATED_STDINT_H 1
19444 #include <sys/types.h>
19447 if test "$acx_cv_header_stdint" != stdint.h
; then
19448 echo "#include <stddef.h>" >> tmp-stdint.h
19450 if test "$acx_cv_header_stdint" != stddef.h
; then
19451 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19454 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19455 /* glibc uses these symbols as guards to prevent redefinitions. */
19456 #ifdef __int8_t_defined
19461 #ifdef __uint32_t_defined
19467 # ----------------- done header, emit basic int types -------------
19468 if test "$acx_cv_header_stdint" = stddef.h
; then
19469 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19473 #ifndef __uint8_t_defined
19474 #define __uint8_t_defined
19476 typedef unsigned $acx_cv_type_int8_t uint8_t;
19483 #ifndef __uint16_t_defined
19484 #define __uint16_t_defined
19486 typedef unsigned $acx_cv_type_int16_t uint16_t;
19493 #ifndef __uint32_t_defined
19494 #define __uint32_t_defined
19496 typedef unsigned $acx_cv_type_int32_t uint32_t;
19503 #ifndef __int8_t_defined
19504 #define __int8_t_defined
19506 typedef $acx_cv_type_int8_t int8_t;
19513 #ifndef __int16_t_defined
19514 #define __int16_t_defined
19516 typedef $acx_cv_type_int16_t int16_t;
19523 #ifndef __int32_t_defined
19524 #define __int32_t_defined
19526 typedef $acx_cv_type_int32_t int32_t;
19531 elif test "$ac_cv_type_u_int32_t" = yes; then
19532 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19534 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19547 #ifndef __uint8_t_defined
19548 #define __uint8_t_defined
19550 typedef u_int8_t uint8_t;
19557 #ifndef __uint16_t_defined
19558 #define __uint16_t_defined
19560 typedef u_int16_t uint16_t;
19567 #ifndef __uint32_t_defined
19568 #define __uint32_t_defined
19570 typedef u_int32_t uint32_t;
19576 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19578 /* Some systems have guard macros to prevent redefinitions, define them. */
19600 # ------------- done basic int types, emit int64_t types ------------
19601 if test "$ac_cv_type_uint64_t" = yes; then
19602 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19604 /* system headers have good uint64_t and int64_t */
19612 elif test "$ac_cv_type_u_int64_t" = yes; then
19613 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19615 /* system headers have an u_int64_t (and int64_t) */
19621 #ifndef __uint64_t_defined
19622 #define __uint64_t_defined
19624 typedef u_int64_t uint64_t;
19629 elif test -n "$acx_cv_type_int64_t"; then
19630 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19632 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19636 typedef $acx_cv_type_int64_t int64_t;
19641 #ifndef __uint64_t_defined
19642 #define __uint64_t_defined
19644 typedef unsigned $acx_cv_type_int64_t uint64_t;
19650 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19652 /* some common heuristics for int64_t, using compiler-specific tests */
19653 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19656 #ifndef __int64_t_defined
19658 typedef long long int64_t;
19665 typedef unsigned long long uint64_t;
19669 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19670 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19671 does not implement __extension__. But that compiler doesn't define
19673 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19674 # define __extension__
19680 __extension__ typedef long long int64_t;
19686 __extension__ typedef unsigned long long uint64_t;
19690 #elif !defined __STRICT_ANSI__
19691 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19696 typedef __int64 int64_t;
19702 typedef unsigned __int64 uint64_t;
19705 # endif /* compiler */
19707 #endif /* ANSI version */
19711 # ------------- done int64_t types, emit intptr types ------------
19712 if test "$ac_cv_type_uintptr_t" != yes; then
19713 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19715 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19716 #ifndef __uintptr_t_defined
19718 typedef u$acx_cv_type_intptr_t uintptr_t;
19721 #ifndef __intptr_t_defined
19723 typedef $acx_cv_type_intptr_t intptr_t;
19729 # ------------- done intptr types, emit int_least types ------------
19730 if test "$ac_cv_type_int_least32_t" != yes; then
19731 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19733 /* Define int_least types */
19734 typedef int8_t int_least8_t;
19735 typedef int16_t int_least16_t;
19736 typedef int32_t int_least32_t;
19738 typedef int64_t int_least64_t;
19741 typedef uint8_t uint_least8_t;
19742 typedef uint16_t uint_least16_t;
19743 typedef uint32_t uint_least32_t;
19745 typedef uint64_t uint_least64_t;
19750 # ------------- done intptr types, emit int_fast types ------------
19751 if test "$ac_cv_type_int_fast32_t" != yes; then
19752 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19754 /* Define int_fast types. short is often slow */
19755 typedef int8_t int_fast8_t;
19756 typedef int int_fast16_t;
19757 typedef int32_t int_fast32_t;
19759 typedef int64_t int_fast64_t;
19762 typedef uint8_t uint_fast8_t;
19763 typedef unsigned int uint_fast16_t;
19764 typedef uint32_t uint_fast32_t;
19766 typedef uint64_t uint_fast64_t;
19771 if test "$ac_cv_type_uintmax_t" != yes; then
19772 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19774 /* Define intmax based on what we found */
19777 typedef int64_t intmax_t;
19779 typedef long intmax_t;
19784 typedef uint64_t uintmax_t;
19786 typedef unsigned long uintmax_t;
19792 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19794 #endif /* GCC_GENERATED_STDINT_H */
19797 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
19800 mv -f tmp-stdint.h gstdint.h
19811 ac_clean_files
=$ac_clean_files_save
19813 test $ac_write_fail = 0 ||
19814 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19817 # configure is writing to config.log, and then calls config.status.
19818 # config.status does its own redirection, appending to config.log.
19819 # Unfortunately, on DOS this fails, as config.log is still kept open
19820 # by configure, so config.status won't be able to write to it; its
19821 # output is simply discarded. So we exec the FD to /dev/null,
19822 # effectively closing config.log, so it can be properly (re)opened and
19823 # appended to by config.status. When coming back to configure, we
19824 # need to make the FD available again.
19825 if test "$no_create" != yes; then
19827 ac_config_status_args
=
19828 test "$silent" = yes &&
19829 ac_config_status_args
="$ac_config_status_args --quiet"
19831 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19833 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19834 # would make configure fail if this is the last instruction.
19835 $ac_cs_success || as_fn_exit $?
19837 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19839 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}