2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU OpenMP 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 OpenMP Runtime Library'
558 PACKAGE_TARNAME
='libgomp'
559 PACKAGE_VERSION
='1.0'
560 PACKAGE_STRING
='GNU OpenMP 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>
600 enable_option_checking
=no
601 ac_subst_vars
='am__EXEEXT_FALSE
605 OMP_NEST_LOCK_25_KIND
607 OMP_NEST_LOCK_25_ALIGN
608 OMP_NEST_LOCK_25_SIZE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
637 MAINTAINER_MODE_FALSE
691 INSTALL_STRIP_PROGRAM
747 program_transform_name
760 enable_option_checking
761 enable_version_specific_runtime_libs
762 enable_generated_files_in_srcdir
764 enable_dependency_tracking
771 enable_maintainer_mode
776 ac_precious_vars
='build_alias
785 ac_subdirs_all
='plugin'
787 # Initialize some variables set by options.
789 ac_init_version
=false
790 ac_unrecognized_opts
=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
801 program_transform_name
=s
,x
,x
,
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir
='${exec_prefix}/bin'
816 sbindir
='${exec_prefix}/sbin'
817 libexecdir
='${exec_prefix}/libexec'
818 datarootdir
='${prefix}/share'
819 datadir
='${datarootdir}'
820 sysconfdir
='${prefix}/etc'
821 sharedstatedir
='${prefix}/com'
822 localstatedir
='${prefix}/var'
823 includedir
='${prefix}/include'
824 oldincludedir
='/usr/include'
825 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir
='${datarootdir}/info'
831 libdir
='${exec_prefix}/lib'
832 localedir
='${datarootdir}/locale'
833 mandir
='${datarootdir}/man'
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\
$ac_option
847 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
857 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
859 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
862 -build |
--build |
--buil |
--bui |
--bu)
863 ac_prev
=build_alias
;;
864 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
865 build_alias
=$ac_optarg ;;
867 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
868 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
869 ac_prev
=cache_file
;;
870 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
871 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
872 cache_file
=$ac_optarg ;;
875 cache_file
=config.cache
;;
877 -datadir |
--datadir |
--datadi |
--datad)
879 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
880 datadir
=$ac_optarg ;;
882 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
883 |
--dataroo |
--dataro |
--datar)
884 ac_prev
=datarootdir
;;
885 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
886 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
887 datarootdir
=$ac_optarg ;;
889 -disable-* |
--disable-*)
890 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
893 as_fn_error
"invalid feature name: $ac_useropt"
894 ac_useropt_orig
=$ac_useropt
895 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
900 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep
=', ';;
903 eval enable_
$ac_useropt=no
;;
905 -docdir |
--docdir |
--docdi |
--doc |
--do)
907 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
910 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
912 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
915 -enable-* |
--enable-*)
916 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
919 as_fn_error
"invalid feature name: $ac_useropt"
920 ac_useropt_orig
=$ac_useropt
921 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
926 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep
=', ';;
929 eval enable_
$ac_useropt=\
$ac_optarg ;;
931 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
932 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
933 |
--exec |
--exe |
--ex)
934 ac_prev
=exec_prefix
;;
935 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
936 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
937 |
--exec=* |
--exe=* |
--ex=*)
938 exec_prefix
=$ac_optarg ;;
940 -gas |
--gas |
--ga |
--g)
941 # Obsolete; use --with-gas.
944 -help |
--help |
--hel |
--he |
-h)
946 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
947 ac_init_help
=recursive
;;
948 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
949 ac_init_help
=short
;;
951 -host |
--host |
--hos |
--ho)
952 ac_prev
=host_alias
;;
953 -host=* |
--host=* |
--hos=* |
--ho=*)
954 host_alias
=$ac_optarg ;;
956 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
958 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
960 htmldir
=$ac_optarg ;;
962 -includedir |
--includedir |
--includedi |
--included |
--include \
963 |
--includ |
--inclu |
--incl |
--inc)
964 ac_prev
=includedir
;;
965 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
966 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
967 includedir
=$ac_optarg ;;
969 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
971 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
972 infodir
=$ac_optarg ;;
974 -libdir |
--libdir |
--libdi |
--libd)
976 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
979 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
980 |
--libexe |
--libex |
--libe)
981 ac_prev
=libexecdir
;;
982 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
983 |
--libexe=* |
--libex=* |
--libe=*)
984 libexecdir
=$ac_optarg ;;
986 -localedir |
--localedir |
--localedi |
--localed |
--locale)
988 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
989 localedir
=$ac_optarg ;;
991 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
992 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
993 ac_prev
=localstatedir
;;
994 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
995 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
996 localstatedir
=$ac_optarg ;;
998 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1000 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1001 mandir
=$ac_optarg ;;
1003 -nfp |
--nfp |
--nf)
1004 # Obsolete; use --without-fp.
1007 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1008 |
--no-cr |
--no-c |
-n)
1011 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1012 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1015 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1016 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1017 |
--oldin |
--oldi |
--old |
--ol |
--o)
1018 ac_prev
=oldincludedir
;;
1019 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1020 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1021 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1022 oldincludedir
=$ac_optarg ;;
1024 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1026 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1027 prefix
=$ac_optarg ;;
1029 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1030 |
--program-pre |
--program-pr |
--program-p)
1031 ac_prev
=program_prefix
;;
1032 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1033 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1034 program_prefix
=$ac_optarg ;;
1036 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1037 |
--program-suf |
--program-su |
--program-s)
1038 ac_prev
=program_suffix
;;
1039 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1040 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1041 program_suffix
=$ac_optarg ;;
1043 -program-transform-name |
--program-transform-name \
1044 |
--program-transform-nam |
--program-transform-na \
1045 |
--program-transform-n |
--program-transform- \
1046 |
--program-transform |
--program-transfor \
1047 |
--program-transfo |
--program-transf \
1048 |
--program-trans |
--program-tran \
1049 |
--progr-tra |
--program-tr |
--program-t)
1050 ac_prev
=program_transform_name
;;
1051 -program-transform-name=* |
--program-transform-name=* \
1052 |
--program-transform-nam=* |
--program-transform-na=* \
1053 |
--program-transform-n=* |
--program-transform-=* \
1054 |
--program-transform=* |
--program-transfor=* \
1055 |
--program-transfo=* |
--program-transf=* \
1056 |
--program-trans=* |
--program-tran=* \
1057 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1058 program_transform_name
=$ac_optarg ;;
1060 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1062 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1063 pdfdir
=$ac_optarg ;;
1065 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1067 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1070 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1071 |
-silent |
--silent |
--silen |
--sile |
--sil)
1074 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1076 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1078 sbindir
=$ac_optarg ;;
1080 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1081 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1082 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1084 ac_prev
=sharedstatedir
;;
1085 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1086 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1087 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1089 sharedstatedir
=$ac_optarg ;;
1091 -site |
--site |
--sit)
1093 -site=* |
--site=* |
--sit=*)
1096 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1098 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1099 srcdir
=$ac_optarg ;;
1101 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1102 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1103 ac_prev
=sysconfdir
;;
1104 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1105 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1106 sysconfdir
=$ac_optarg ;;
1108 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1109 ac_prev
=target_alias
;;
1110 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1111 target_alias
=$ac_optarg ;;
1113 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1116 -version |
--version |
--versio |
--versi |
--vers |
-V)
1117 ac_init_version
=: ;;
1120 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1123 as_fn_error
"invalid package name: $ac_useropt"
1124 ac_useropt_orig
=$ac_useropt
1125 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep
=', ';;
1133 eval with_
$ac_useropt=\
$ac_optarg ;;
1135 -without-* |
--without-*)
1136 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1139 as_fn_error
"invalid package name: $ac_useropt"
1140 ac_useropt_orig
=$ac_useropt
1141 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1146 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep
=', ';;
1149 eval with_
$ac_useropt=no
;;
1152 # Obsolete; use --with-x.
1155 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1156 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1157 ac_prev
=x_includes
;;
1158 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1159 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1160 x_includes
=$ac_optarg ;;
1162 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1163 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1164 ac_prev
=x_libraries
;;
1165 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1166 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1167 x_libraries
=$ac_optarg ;;
1169 -*) as_fn_error
"unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information."
1174 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1178 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1180 eval $ac_envvar=\
$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 if test -n "$ac_prev"; then
1195 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error
"missing argument to $ac_option"
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1202 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 # Check all directory arguments for consistency.
1208 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val
=\$
$ac_var
1214 # Remove trailing slashes.
1217 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\
$ac_val;;
1220 # Be sure to have absolute directory names.
1222 [\\/$
]* | ?
:[\\/]* ) continue;;
1223 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1225 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1233 target
=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x
; then
1237 if test "x$build_alias" = x
; then
1238 cross_compiling
=maybe
1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1249 test "$silent" = yes && exec 6>/dev
/null
1252 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di
=`ls -di .` &&
1254 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error
"working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error
"pwd does not report name of working directory"
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted
=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir
=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1292 ac_srcdir_defaulted
=no
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1296 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1298 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var
in $ac_precious_vars; do
1313 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1315 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1389 --build=BUILD configure
for building on BUILD
[guessed
]
1390 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1391 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive
) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1402 --disable-option-checking ignore unrecognized
--enable/--with options
1403 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1404 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1405 --enable-version-specific-runtime-libs
1406 Specify that runtime libraries should be installed
1407 in a compiler-specific directory
[default
=no
]
1408 --enable-generated-files-in-srcdir
1409 put copies of generated files
in source dir intended
1410 for creating
source tarballs
for users without
1411 texinfo bison or flex.
[default
=no
]
1412 --enable-multilib build many library versions
(default
)
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
1415 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1416 --enable-static[=PKGS
] build static libraries
[default
=yes]
1417 --enable-fast-install[=PKGS
]
1418 optimize
for fast installation
[default
=yes]
1419 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing
) to the casual installer
1422 --enable-linux-futex use the Linux futex system call
[default
=default
]
1423 --enable-tls Use thread-local storage
[default
=yes]
1424 --enable-symvers=STYLE enables symbol versioning of the shared library
1428 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1429 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1430 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1432 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1434 Some influential environment variables
:
1435 CC C compiler
command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1438 nonstandard directory
<lib dir
>
1439 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1440 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1441 you have headers
in a nonstandard directory
<include dir
>
1443 FC Fortran compiler
command
1444 FCFLAGS Fortran compiler flags
1446 Use these variables to override the choices made by
`configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1449 Report bugs to the package provider.
1450 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1451 General help using GNU software: <http://www.gnu.org/gethelp/>.
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1481 .) # We are building in place.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1514 GNU OpenMP Runtime Library configure 1.0
1515 generated by GNU Autoconf 2.64
1517 Copyright (C) 2009 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1538 *) ac_try_echo
=$ac_try;;
1540 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1544 if test -s conftest.err
; then
1545 grep -v '^ *+' conftest.err
>conftest.er1
1546 cat conftest.er1
>&5
1547 mv -f conftest.er1 conftest.err
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.
$ac_objext; then :
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.
$ac_ext >&5
1561 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1564 } # ac_fn_c_try_compile
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1572 rm -f conftest.
$ac_objext conftest
$ac_exeext
1573 if { { ac_try
="$ac_link"
1575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 $as_test_x conftest$ac_exeext
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 } # ac_fn_c_try_link
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1622 $as_echo_n "(cached) " >&6
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1629 if ac_fn_c_try_compile "$LINENO"; then :
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 } # ac_fn_c_check_header_compile
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1652 *) ac_try_echo
=$ac_try;;
1654 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 if test -s conftest.err
; then
1659 grep -v '^ *+' conftest.err
>conftest.er1
1660 cat conftest.er1
>&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } >/dev
/null
&& {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.
$ac_ext >&5
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1686 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1687 if { { ac_try
="$ac_link"
1689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1700 *) ac_try_echo
=$ac_try;;
1702 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.
$ac_ext >&5
1714 ac_retval
=$ac_status
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func
()
1727 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 $as_echo_n "(cached) " >&6
1733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1745 # include <limits.h>
1747 # include <assert.h>
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1774 if ac_fn_c_try_link
"$LINENO"; then :
1779 rm -f core conftest.err conftest.
$ac_objext \
1780 conftest
$ac_exeext conftest.
$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1787 } # ac_fn_c_check_func
1789 # ac_fn_fc_try_compile LINENO
1790 # ---------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_fc_try_compile
()
1794 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1795 rm -f conftest.
$ac_objext
1796 if { { ac_try
="$ac_compile"
1798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_fc_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 } # ac_fn_fc_try_compile
1827 # ac_fn_fc_try_link LINENO
1828 # ------------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_fc_try_link ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1837 *) ac_try_echo
=$ac_try;;
1839 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1843 if test -s conftest.err
; then
1844 grep -v '^ *+' conftest.err
>conftest.er1
1845 cat conftest.er1
>&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_fc_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest
$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 $as_test_x conftest
$ac_exeext
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.
$ac_ext >&5
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1871 } # ac_fn_fc_try_link
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1878 ac_fn_c_check_header_mongrel
()
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1899 if ac_fn_c_try_compile
"$LINENO"; then :
1900 ac_header_compiler
=yes
1902 ac_header_compiler
=no
1904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1915 if ac_fn_c_try_cpp
"$LINENO"; then :
1916 ac_header_preproc
=yes
1918 ac_header_preproc
=no
1920 rm -f conftest.err conftest.
$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1924 # So? What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 $as_echo_n "(cached) " >&6
1950 eval "$3=\$ac_header_compiler"
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1958 } # ac_fn_c_check_header_mongrel
1960 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1961 # -------------------------------------------
1962 # Tests whether TYPE exists after having included INCLUDES, setting cache
1963 # variable VAR accordingly.
1964 ac_fn_c_check_type
()
1966 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1985 if ac_fn_c_try_compile
"$LINENO"; then :
1986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1998 if ac_fn_c_try_compile
"$LINENO"; then :
2003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2012 } # ac_fn_c_check_type
2014 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2015 # --------------------------------------------
2016 # Tries to find the compile-time value of EXPR in a program that includes
2017 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2019 ac_fn_c_compute_int
()
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 if test "$cross_compiling" = yes; then
2023 # Depending upon the size, compute the lo and hi bounds.
2024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2030 static int test_array [1 - 2 * !(($2) >= 0)];
2037 if ac_fn_c_try_compile
"$LINENO"; then :
2040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2053 if ac_fn_c_try_compile
"$LINENO"; then :
2054 ac_hi
=$ac_mid; break
2056 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2057 if test $ac_lo -le $ac_mid; then
2061 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2072 static int test_array [1 - 2 * !(($2) < 0)];
2079 if ac_fn_c_try_compile
"$LINENO"; then :
2082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2095 if ac_fn_c_try_compile
"$LINENO"; then :
2096 ac_lo
=$ac_mid; break
2098 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2099 if test $ac_mid -le $ac_hi; then
2103 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2113 # Binary search between lo and hi bounds.
2114 while test "x$ac_lo" != "x$ac_hi"; do
2115 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2122 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2129 if ac_fn_c_try_compile
"$LINENO"; then :
2132 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2137 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2144 static long int longval () { return $2; }
2145 static unsigned long int ulongval () { return $2; }
2152 FILE *f = fopen ("conftest.val", "w");
2157 long int i = longval ();
2160 fprintf (f, "%ld", i);
2164 unsigned long int i = ulongval ();
2167 fprintf (f, "%lu", i);
2169 /* Do not output a trailing newline, as this causes \r\n confusion
2170 on some platforms. */
2171 return ferror (f) || fclose (f) != 0;
2177 if ac_fn_c_try_run
"$LINENO"; then :
2178 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2182 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2183 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2187 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2190 } # ac_fn_c_compute_int
2191 cat >config.log
<<_ACEOF
2192 This file contains any messages produced by compilers while
2193 running configure, to aid debugging if configure makes a mistake.
2195 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2196 generated by GNU Autoconf 2.64. Invocation command line was
2208 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2209 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2210 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2211 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2212 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2214 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2215 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2217 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2218 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2219 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2220 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2221 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2222 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2223 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir
=.
2232 $as_echo "PATH: $as_dir"
2248 # Keep a trace of the command line.
2249 # Strip out --no-create and --no-recursion so they do not pile up.
2250 # Strip out --silent because we don't want to record it for future runs.
2251 # Also quote any args containing shell meta-characters.
2252 # Make two passes to allow for proper duplicate-argument suppression.
2256 ac_must_keep_next
=false
2262 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2263 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2264 |
-silent |
--silent |
--silen |
--sile |
--sil)
2267 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2272 as_fn_append ac_configure_args1
" '$ac_arg'"
2273 if test $ac_must_keep_next = true
; then
2274 ac_must_keep_next
=false
# Got value, back to normal.
2277 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2278 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2279 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2280 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2281 case "$ac_configure_args0 " in
2282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2285 -* ) ac_must_keep_next
=true
;;
2288 as_fn_append ac_configure_args
" '$ac_arg'"
2293 { ac_configure_args0
=; unset ac_configure_args0
;}
2294 { ac_configure_args1
=; unset ac_configure_args1
;}
2296 # When interrupted or exit'd, cleanup temporary files, and complete
2297 # config.log. We remove comments because anyway the quotes in there
2298 # would cause problems or look ugly.
2299 # WARNING: Use '\'' to represent an apostrophe within the trap.
2300 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2301 trap 'exit_status=$?
2302 # Save into config.log some information that might help in debugging.
2307 ## ---------------- ##
2308 ## Cache variables. ##
2309 ## ---------------- ##
2312 # The following way of writing the cache mishandles newlines in values,
2314 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2315 eval ac_val=\$$ac_var
2319 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2320 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2323 _ | IFS | as_nl) ;; #(
2324 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2325 *) { eval $ac_var=; unset $ac_var;} ;;
2330 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2331 *${as_nl}ac_space=\ *)
2333 "s/'\''/'\''\\\\'\'''\''/g;
2334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2345 ## ----------------- ##
2346 ## Output variables. ##
2347 ## ----------------- ##
2350 for ac_var in $ac_subst_vars
2352 eval ac_val=\$$ac_var
2354 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2356 $as_echo "$ac_var='\''$ac_val'\''"
2360 if test -n "$ac_subst_files"; then
2362 ## ------------------- ##
2363 ## File substitutions. ##
2364 ## ------------------- ##
2367 for ac_var
in $ac_subst_files
2369 eval ac_val
=\$
$ac_var
2371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2373 $as_echo "$ac_var='\''$ac_val'\''"
2378 if test -s confdefs.h; then
2388 test "$ac_signal" != 0 &&
2389 $as_echo "$as_me: caught signal $ac_signal"
2390 $as_echo "$as_me: exit $exit_status"
2392 rm -f core *.core core.conftest.* &&
2393 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396 for ac_signal
in 1 2 13 15; do
2397 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2402 rm -f -r conftest
* confdefs.h
2404 $as_echo "/* confdefs.h */" > confdefs.h
2406 # Predefined preprocessor variables.
2408 cat >>confdefs.h
<<_ACEOF
2409 #define PACKAGE_NAME "$PACKAGE_NAME"
2412 cat >>confdefs.h
<<_ACEOF
2413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416 cat >>confdefs.h
<<_ACEOF
2417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2420 cat >>confdefs.h
<<_ACEOF
2421 #define PACKAGE_STRING "$PACKAGE_STRING"
2424 cat >>confdefs.h
<<_ACEOF
2425 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428 cat >>confdefs.h
<<_ACEOF
2429 #define PACKAGE_URL "$PACKAGE_URL"
2433 # Let the site file select an alternate cache file if it wants to.
2434 # Prefer an explicitly selected file to automatically selected ones.
2437 if test -n "$CONFIG_SITE"; then
2438 ac_site_file1
=$CONFIG_SITE
2439 elif test "x$prefix" != xNONE
; then
2440 ac_site_file1
=$prefix/share
/config.site
2441 ac_site_file2
=$prefix/etc
/config.site
2443 ac_site_file1
=$ac_default_prefix/share
/config.site
2444 ac_site_file2
=$ac_default_prefix/etc
/config.site
2446 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2448 test "x$ac_site_file" = xNONE
&& continue
2449 if test -r "$ac_site_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2451 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2452 sed 's/^/| /' "$ac_site_file" >&5
2457 if test -r "$cache_file"; then
2458 # Some versions of bash will fail to source /dev/null (special
2459 # files actually), so we avoid doing that.
2460 if test -f "$cache_file"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2462 $as_echo "$as_me: loading cache $cache_file" >&6;}
2464 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2465 *) .
"./$cache_file";;
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2470 $as_echo "$as_me: creating cache $cache_file" >&6;}
2474 # Check that the precious variables saved in the cache have kept the same
2476 ac_cache_corrupted
=false
2477 for ac_var
in $ac_precious_vars; do
2478 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2479 eval ac_new_set
=\
$ac_env_${ac_var}_set
2480 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2481 eval ac_new_val
=\
$ac_env_${ac_var}_value
2482 case $ac_old_set,$ac_new_set in
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2485 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2486 ac_cache_corrupted
=: ;;
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2489 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2490 ac_cache_corrupted
=: ;;
2493 if test "x$ac_old_val" != "x$ac_new_val"; then
2494 # differences in whitespace do not lead to failure.
2495 ac_old_val_w
=`echo x $ac_old_val`
2496 ac_new_val_w
=`echo x $ac_new_val`
2497 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2499 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2500 ac_cache_corrupted
=:
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2503 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2504 eval $ac_var=\
$ac_old_val
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2507 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2509 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2512 # Pass precious variables to config.status.
2513 if test "$ac_new_set" = set; then
2515 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2516 *) ac_arg
=$ac_var=$ac_new_val ;;
2518 case " $ac_configure_args " in
2519 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2520 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2524 if $ac_cache_corrupted; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2528 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2529 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2531 ## -------------------- ##
2532 ## Main body of script. ##
2533 ## -------------------- ##
2536 ac_cpp
='$CPP $CPPFLAGS'
2537 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2545 ac_config_headers
="$ac_config_headers config.h"
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2553 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2554 # Check whether --enable-version-specific-runtime-libs was given.
2555 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2556 enableval
=$enable_version_specific_runtime_libs;
2557 case "$enableval" in
2559 *) as_fn_error
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2563 enable_version_specific_runtime_libs
=no
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2568 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2570 # We would like our source tree to be readonly. However when releases or
2571 # pre-releases are generated, the flex/bison generated files as well as the
2572 # various formats of manuals need to be included along with the rest of the
2573 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2576 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2577 # Check whether --enable-generated-files-in-srcdir was given.
2578 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2579 enableval
=$enable_generated_files_in_srcdir;
2580 case "$enableval" in
2582 *) as_fn_error
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2586 enable_generated_files_in_srcdir
=no
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2591 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2592 if test "$enable_generated_files_in_srcdir" = yes; then
2604 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2606 # You will slowly go insane if you do not grok the following fact: when
2607 # building this library, the top-level /target/ becomes the library's /host/.
2609 # configure then causes --target to default to --host, exactly like any
2610 # other package using autoconf. Therefore, 'target' and 'host' will
2611 # always be the same. This makes sense both for native and cross compilers
2612 # just think about it for a little while. :-)
2614 # Also, if this library is being configured as part of a cross compiler, the
2615 # top-level configure script will pass the "real" host as $with_cross_host.
2617 # Do not delete or change the following two lines. For why, see
2618 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2620 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2621 for ac_t
in install-sh
install.sh shtool
; do
2622 if test -f "$ac_dir/$ac_t"; then
2624 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2629 if test -z "$ac_aux_dir"; then
2630 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2633 # These three variables are undocumented and unsupported,
2634 # and are intended to be withdrawn in a future Autoconf release.
2635 # They can cause serious problems if a builder's source tree is in a directory
2636 # whose full name contains unusual characters.
2637 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2638 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2639 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2642 # Make sure we can run config.sub.
2643 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2644 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2647 $as_echo_n "checking build system type... " >&6; }
2648 if test "${ac_cv_build+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2651 ac_build_alias
=$build_alias
2652 test "x$ac_build_alias" = x
&&
2653 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2654 test "x$ac_build_alias" = x
&&
2655 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2656 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2657 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2661 $as_echo "$ac_cv_build" >&6; }
2662 case $ac_cv_build in
2664 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2667 ac_save_IFS
=$IFS; IFS
='-'
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2677 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2681 $as_echo_n "checking host system type... " >&6; }
2682 if test "${ac_cv_host+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2685 if test "x$host_alias" = x
; then
2686 ac_cv_host
=$ac_cv_build
2688 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2689 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2694 $as_echo "$ac_cv_host" >&6; }
2697 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2700 ac_save_IFS
=$IFS; IFS
='-'
2706 # Remember, the first character of IFS is used to create $*,
2707 # except with old shells:
2710 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2714 $as_echo_n "checking target system type... " >&6; }
2715 if test "${ac_cv_target+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2718 if test "x$target_alias" = x
; then
2719 ac_cv_target
=$ac_cv_host
2721 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2722 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2727 $as_echo "$ac_cv_target" >&6; }
2728 case $ac_cv_target in
2730 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2732 target
=$ac_cv_target
2733 ac_save_IFS
=$IFS; IFS
='-'
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2743 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2746 # The aliases save the names the user supplied, while $host etc.
2747 # will get canonicalized.
2748 test -n "$target_alias" &&
2749 test "$program_prefix$program_suffix$program_transform_name" = \
2751 program_prefix
=${target_alias}-
2753 target_alias
=${target_alias-$host_alias}
2755 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2756 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2757 # 1.9.0: minimum required version
2758 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2759 # of other PACKAGE_* variables will, however, and there's nothing
2760 # we can do about that; they come from AC_INIT).
2761 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2762 # file in the top srcdir, etc, etc), so stop complaining.
2763 # no-dist: we don't want 'dist' and related rules.
2764 # -Wall: turns on all automake warnings...
2765 # -Wno-portability: ...except this one, since GNU make is required.
2766 # -Wno-override: ... and this one, since we do want this in testsuite.
2767 am__api_version
='1.11'
2769 # Find a good install program. We prefer a C program (faster),
2770 # so one script is as good as another. But avoid the broken or
2771 # incompatible versions:
2772 # SysV /etc/install, /usr/sbin/install
2773 # SunOS /usr/etc/install
2774 # IRIX /sbin/install
2776 # AmigaOS /C/install, which installs bootblocks on floppy discs
2777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2780 # OS/2's system install, which has a completely different semantic
2781 # ./install, which can be erroneously created by make from ./install.sh.
2782 # Reject install programs that cannot install multiple files.
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2784 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2785 if test -z "$INSTALL"; then
2786 if test "${ac_cv_path_install+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir
=.
2794 # Account for people who put trailing slashes in PATH elements.
2795 case $as_dir/ in #((
2796 .
/ | .
// |
/[cC
]/* | \
2797 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2798 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2801 # OSF1 and SCO ODT 3.0 have their own names for install.
2802 # Don't use installbsd from OSF since it installs stuff as root
2804 for ac_prog
in ginstall scoinst
install; do
2805 for ac_exec_ext
in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2807 if test $ac_prog = install &&
2808 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2809 # AIX install. It has an incompatible calling convention.
2811 elif test $ac_prog = install &&
2812 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2813 # program-specific install script used by HP pwplus--don't use.
2816 rm -rf conftest.one conftest.two conftest.dir
2817 echo one
> conftest.one
2818 echo two
> conftest.two
2820 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2821 test -s conftest.one
&& test -s conftest.two
&&
2822 test -s conftest.dir
/conftest.one
&&
2823 test -s conftest.dir
/conftest.two
2825 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2838 rm -rf conftest.one conftest.two conftest.dir
2841 if test "${ac_cv_path_install+set}" = set; then
2842 INSTALL
=$ac_cv_path_install
2844 # As a last resort, use the slow shell script. Don't cache a
2845 # value for INSTALL within a source directory, because that will
2846 # break other packages using the cache if that directory is
2847 # removed, or if the value is a relative name.
2848 INSTALL
=$ac_install_sh
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2852 $as_echo "$INSTALL" >&6; }
2854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2855 # It thinks the first close brace ends the variable substitution.
2856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2860 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2863 $as_echo_n "checking whether build environment is sane... " >&6; }
2866 echo timestamp
> conftest.
file
2867 # Reject unsafe characters in $srcdir or the absolute working directory
2868 # name. Accept space and tab only in the latter.
2872 *[\\\"\
#\$\&\'\`$am_lf]*)
2873 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2876 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2877 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2880 # Do `set' in a subshell so we don't clobber the current shell's
2881 # arguments. Must try -L first in case configure is actually a
2882 # symlink; some systems play weird games with the mod time of symlinks
2883 # (eg FreeBSD returns the mod time of the symlink's containing
2886 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2887 if test "$*" = "X"; then
2889 set X
`ls -t "$srcdir/configure" conftest.file`
2892 if test "$*" != "X $srcdir/configure conftest.file" \
2893 && test "$*" != "X conftest.file $srcdir/configure"; then
2895 # If neither matched, then we have a broken ls. This can happen
2896 # if, for instance, CONFIG_SHELL is bash and it inherits a
2897 # broken ls alias from the environment. This has actually
2898 # happened. Such a system could not be considered "sane".
2899 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2900 alias in your environment" "$LINENO" 5
2903 test "$2" = conftest.
file
2909 as_fn_error
"newly created file is older than distributed files!
2910 Check your system clock" "$LINENO" 5
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2913 $as_echo "yes" >&6; }
2914 test "$program_prefix" != NONE
&&
2915 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2916 # Use a double $ so make ignores it.
2917 test "$program_suffix" != NONE
&&
2918 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2919 # Double any \ or $.
2920 # By default was `s,x,x', remove it if useless.
2921 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2922 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2924 # expand $ac_aux_dir to an absolute path
2925 am_aux_dir
=`cd $ac_aux_dir && pwd`
2927 if test x
"${MISSING+set}" != xset
; then
2930 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2932 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2935 # Use eval to expand $SHELL
2936 if eval "$MISSING --run true"; then
2937 am_missing_run
="$MISSING --run "
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2944 if test x
"${install_sh}" != xset
; then
2947 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2949 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2953 # Installed binaries are usually stripped using `strip' when the user
2954 # run `make install-strip'. However `strip' might not be the right
2955 # tool to use in cross-compilation environments, therefore Automake
2956 # will honor the `STRIP' environment variable to overrule this program.
2957 if test "$cross_compiling" != no
; then
2958 if test -n "$ac_tool_prefix"; then
2959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2960 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if test "${ac_cv_prog_STRIP+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2966 if test -n "$STRIP"; then
2967 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir
=.
2974 for ac_exec_ext
in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 STRIP
=$ac_cv_prog_STRIP
2987 if test -n "$STRIP"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2989 $as_echo "$STRIP" >&6; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2997 if test -z "$ac_cv_prog_STRIP"; then
2999 # Extract the first word of "strip", so it can be a program name with args.
3000 set dummy strip
; ac_word
=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3004 $as_echo_n "(cached) " >&6
3006 if test -n "$ac_ct_STRIP"; then
3007 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir
=.
3014 for ac_exec_ext
in '' $ac_executable_extensions; do
3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016 ac_cv_prog_ac_ct_STRIP
="strip"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3027 if test -n "$ac_ct_STRIP"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3029 $as_echo "$ac_ct_STRIP" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3035 if test "x$ac_ct_STRIP" = x
; then
3038 case $cross_compiling:$ac_tool_warned in
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned
=yes ;;
3047 STRIP
="$ac_cv_prog_STRIP"
3051 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3054 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3055 if test -z "$MKDIR_P"; then
3056 if test "${ac_cv_path_mkdir+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3060 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3063 test -z "$as_dir" && as_dir
=.
3064 for ac_prog
in mkdir gmkdir
; do
3065 for ac_exec_ext
in '' $ac_executable_extensions; do
3066 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3067 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3068 'mkdir (GNU coreutils) '* | \
3069 'mkdir (coreutils) '* | \
3070 'mkdir (fileutils) '4.1*)
3071 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3081 if test "${ac_cv_path_mkdir+set}" = set; then
3082 MKDIR_P
="$ac_cv_path_mkdir -p"
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for MKDIR_P within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 test -d .
/--version && rmdir .
/--version
3089 MKDIR_P
="$ac_install_sh -d"
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3093 $as_echo "$MKDIR_P" >&6; }
3097 [\\/$
]* | ?
:[\\/]*) ;;
3098 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3101 for ac_prog
in gawk mawk nawk
awk
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy
$ac_prog; ac_word
=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_AWK+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir
=.
3118 for ac_exec_ext
in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_AWK
="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 if test -n "$AWK"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 $as_echo "$AWK" >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3140 test -n "$AWK" && break
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3146 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3148 $as_echo_n "(cached) " >&6
3150 cat >conftest.
make <<\_ACEOF
3153 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3158 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3160 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3164 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 SET_MAKE
="MAKE=${MAKE-make}"
3174 rm -rf .tst
2>/dev
/null
3175 mkdir .tst
2>/dev
/null
3176 if test -d .tst
; then
3181 rmdir .tst
2>/dev
/null
3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185 # is not polluted with repeated "-I."
3186 am__isrc
=' -I$(srcdir)'
3187 # test to see if srcdir already configured
3188 if test -f $srcdir/config.status
; then
3189 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3193 # test whether we have cygpath
3194 if test -z "$CYGPATH_W"; then
3195 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3196 CYGPATH_W
='cygpath -w'
3203 # Define the identity of the package.
3208 cat >>confdefs.h
<<_ACEOF
3209 #define PACKAGE "$PACKAGE"
3213 cat >>confdefs.h
<<_ACEOF
3214 #define VERSION "$VERSION"
3217 # Some tools Automake needs.
3219 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3225 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3231 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3233 # We need awk for the "check" target. The system "awk" is bad on
3235 # Always define AMTAR for backward compatibility.
3237 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3239 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3245 # Default to --enable-multilib
3246 # Check whether --enable-multilib was given.
3247 if test "${enable_multilib+set}" = set; then :
3248 enableval
=$enable_multilib; case "$enableval" in
3249 yes) multilib
=yes ;;
3251 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3258 # We may get other options which we leave undocumented:
3259 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3260 # See config-ml.in if you want the gory details.
3262 if test "$srcdir" = "."; then
3263 if test "$with_target_subdir" != "."; then
3264 multi_basedir
="$srcdir/$with_multisrctop../.."
3266 multi_basedir
="$srcdir/$with_multisrctop.."
3269 multi_basedir
="$srcdir/.."
3273 # Even if the default multilib is not a cross compilation,
3274 # it may be that some of the other multilibs are.
3275 if test $cross_compiling = no
&& test $multilib = yes \
3276 && test "x${with_multisubdir}" != x
; then
3277 cross_compiling
=maybe
3280 ac_config_commands
="$ac_config_commands default-1"
3283 # Calculate toolexeclibdir
3284 # Also toolexecdir, though it's only used in toolexeclibdir
3285 case ${enable_version_specific_runtime_libs} in
3287 # Need the gcc compiler version to know where to install libraries
3288 # and header files if --enable-version-specific-runtime-libs option
3290 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3291 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3294 if test -n "$with_cross_host" &&
3295 test x
"$with_cross_host" != x
"no"; then
3296 # Install a library built with a cross compiler in tooldir, not libdir.
3297 toolexecdir
='$(exec_prefix)/$(target_alias)'
3298 toolexeclibdir
='$(toolexecdir)/lib'
3300 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3301 toolexeclibdir
='$(libdir)'
3303 multi_os_directory
=`$CC -print-multi-os-directory`
3304 case $multi_os_directory in
3305 .
) ;; # Avoid trailing /.
3306 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3313 # Check the compiler.
3314 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3315 # We must force CC to /not/ be precious variables; otherwise
3316 # the wrong, non-multilib-adjusted value will be used in multilibs.
3317 # As a side effect, we have to subst CFLAGS ourselves.
3322 ac_cpp
='$CPP $CPPFLAGS'
3323 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_CC+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC
="$CC" # Let the user override the test.
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir
=.
3342 for ac_exec_ext
in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_CC"; then
3367 # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc
; ac_word
=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir
=.
3382 for ac_exec_ext
in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_ac_ct_CC
="gcc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_CC" = x
; then
3406 case $cross_compiling:$ac_tool_warned in
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned
=yes ;;
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy
${ac_tool_prefix}cc
; 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_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC
="$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_CC
="${ac_tool_prefix}cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc
; ac_word
=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if test "${ac_cv_prog_CC+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC
="$CC" # Let the user override the test.
3471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir
=.
3476 for ac_exec_ext
in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479 ac_prog_rejected
=yes
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 if test $ac_prog_rejected = yes; then
3491 # We found a bogon in the path, so make sure we never use it.
3492 set dummy
$ac_cv_prog_CC
3494 if test $# != 0; then
3495 # We chose a different compiler from the bogus one.
3496 # However, it has the same basename, so the bogon will be chosen
3497 # first if we set CC to just the basename; use the full file name.
3499 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 for ac_prog
in cl.exe
3519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if test "${ac_cv_prog_CC+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC
="$CC" # Let the user override the test.
3529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir
=.
3534 for ac_exec_ext
in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3556 test -n "$CC" && break
3559 if test -z "$CC"; then
3561 for ac_prog
in cl.exe
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy
$ac_prog; ac_word
=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3570 if test -n "$ac_ct_CC"; then
3571 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir
=.
3578 for ac_exec_ext
in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_ac_ct_CC
="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 test -n "$ac_ct_CC" && break
3603 if test "x$ac_ct_CC" = x
; then
3606 case $cross_compiling:$ac_tool_warned in
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned
=yes ;;
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error
"no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details." "$LINENO" 5; }
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3628 for ac_option
in --version -v -V -qversion; do
3629 { { ac_try
="$ac_compiler $ac_option >&5"
3631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3638 if test -s conftest.err; then
3640 ... rest of stderr output deleted ...
3641 10q' conftest.err >conftest.er1
3642 cat conftest.er1 >&5
3643 rm -f conftest.er1 conftest.err
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 ac_clean_files_save=$ac_clean_files
3661 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3662 # Try to create an executable without -o first, disregard a.out.
3663 # It will help us diagnose broken compilers, and finding out an intuition
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3666 $as_echo_n "checking for C compiler default output file name... " >&6; }
3667 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3669 # The possible output files:
3670 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3673 for ac_file in $ac_files
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3682 if { { ac_try="$ac_link_default"
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_link_default") 2>&5
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3698 for ac_file
in $ac_files ''
3700 test -f "$ac_file" ||
continue
3702 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3705 # We found the default executable, but exeext='' is most
3709 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3711 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713 # We set ac_cv_exeext here because the later test for it is not
3714 # safe: cross compilers may not add the suffix if given an `-o'
3715 # argument, so we may need to know it at that point already.
3716 # Even if this section looks crufty: it has the advantage of
3723 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3729 $as_echo "$ac_file" >&6; }
3730 if test -z "$ac_file"; then :
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.
$ac_ext >&5
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 { as_fn_set_status
77
3737 as_fn_error
"C compiler cannot create executables
3738 See \`config.log' for more details." "$LINENO" 5; }; }
3740 ac_exeext
=$ac_cv_exeext
3742 # Check that the compiler produces executables we can run. If not, either
3743 # the compiler is broken, or we cross compile.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3745 $as_echo_n "checking whether the C compiler works... " >&6; }
3746 # If not cross compiling, check that we can run a simple program.
3747 if test "$cross_compiling" != yes; then
3748 if { ac_try
='./$ac_file'
3749 { { case "(($ac_try" in
3750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_try") 2>&5
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; }; then
3761 if test "$cross_compiling" = maybe; then
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error "cannot run C compiled programs.
3767 If you meant to cross compile
, use \
`--host'.
3768 See \`config.log
' for more details." "$LINENO" 5; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773 $as_echo "yes" >&6; }
3775 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3776 ac_clean_files=$ac_clean_files_save
3777 # Check that the compiler produces executables we can run. If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3780 $as_echo_n "checking whether we are cross compiling... " >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3782 $as_echo "$cross_compiling" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3785 $as_echo_n "checking for suffix of executables... " >&6; }
3786 if { { ac_try="$ac_link"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793 (eval "$ac_link") 2>&5
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }; then :
3797 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3798 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3799 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3801 for ac_file
in conftest.exe conftest conftest.
*; do
3802 test -f "$ac_file" ||
continue
3804 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3805 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3814 See \`config.log' for more details." "$LINENO" 5; }
3816 rm -f conftest
$ac_cv_exeext
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3818 $as_echo "$ac_cv_exeext" >&6; }
3820 rm -f conftest.
$ac_ext
3821 EXEEXT
=$ac_cv_exeext
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3824 $as_echo_n "checking for suffix of object files... " >&6; }
3825 if test "${ac_cv_objext+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3839 rm -f conftest.o conftest.obj
3840 if { { ac_try
="$ac_compile"
3842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compile") 2>&5
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 for ac_file in conftest.o conftest.obj conftest.*; do
3852 test -f "$ac_file" || continue;
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error "cannot compute suffix of object files
: cannot compile
3866 See \
`config.log' for more details." "$LINENO" 5; }
3868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3871 $as_echo "$ac_cv_objext" >&6; }
3872 OBJEXT=$ac_cv_objext
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3876 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3893 if ac_fn_c_try_compile "$LINENO"; then :
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3904 if test $ac_compiler_gnu = yes; then
3909 ac_test_CFLAGS=${CFLAGS+set}
3910 ac_save_CFLAGS=$CFLAGS
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3913 if test "${ac_cv_prog_cc_g+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3916 ac_save_c_werror_flag=$ac_c_werror_flag
3917 ac_c_werror_flag=yes
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3931 if ac_fn_c_try_compile "$LINENO"; then :
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3946 if ac_fn_c_try_compile "$LINENO"; then :
3949 ac_c_werror_flag=$ac_save_c_werror_flag
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3962 if ac_fn_c_try_compile "$LINENO"; then :
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_c_werror_flag=$ac_save_c_werror_flag
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3973 $as_echo "$ac_cv_prog_cc_g" >&6; }
3974 if test "$ac_test_CFLAGS" = set; then
3975 CFLAGS=$ac_save_CFLAGS
3976 elif test $ac_cv_prog_cc_g = yes; then
3977 if test "$GCC" = yes; then
3983 if test "$GCC" = yes; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3991 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 ac_cv_prog_cc_c89=no
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4000 #include <sys/types.h>
4001 #include <sys/stat.h>
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4016 s = g (p, va_arg (v,int));
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4022 function prototypes and stuff, but not '\xHH' hex character constants.
4023 These don't provoke an error unfortunately, instead are silently treated
4024 as 'x'. The following induces an error, until -std is added to get
4025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4026 array size at least. It's necessary to write '\x00'==0 to get something
4027 that's true only with -std. */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031 inside strings and character constants. */
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4052 CC="$ac_save_CC $ac_arg"
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_c89=$ac_arg
4056 rm -f core conftest.err conftest.$ac_objext
4057 test "x$ac_cv_prog_cc_c89" != "xno" && break
4059 rm -f conftest.$ac_ext
4064 case "x$ac_cv_prog_cc_c89" in
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067 $as_echo "none needed" >&6; } ;;
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 $as_echo "unsupported" >&6; } ;;
4072 CC="$CC $ac_cv_prog_cc_c89"
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4076 if test "x$ac_cv_prog_cc_c89" != xno; then :
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085 DEPDIR="${am__leading_dot}deps"
4087 ac_config_commands="$ac_config_commands depfiles"
4090 am_make=${MAKE-make}
4091 cat > confinc << 'END'
4093 @echo this is the am__doit target
4096 # If we don't find an include directive, just comment out the code.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4098 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4102 # First try GNU make style include.
4103 echo "include confinc" > confmf
4104 # Ignore all kinds of additional output from `make'.
4105 case `$am_make -s -f confmf 2> /dev/null` in #(
4106 *the\ am__doit\ target*)
4112 # Now try BSD make style include.
4113 if test "$am__include" = "#"; then
4114 echo '.include
"confinc"' > confmf
4115 case `$am_make -s -f confmf 2> /dev/null` in #(
4116 *the\ am__doit\ target*)
4117 am__include=.include
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4126 $as_echo "$_am_result" >&6; }
4127 rm -f confinc confmf
4129 # Check whether --enable-dependency-tracking was given.
4130 if test "${enable_dependency_tracking+set}" = set; then :
4131 enableval=$enable_dependency_tracking;
4134 if test "x$enable_dependency_tracking" != xno; then
4135 am_depcomp="$ac_aux_dir/depcomp"
4138 if test "x$enable_dependency_tracking" != xno
; then
4148 depcc
="$CC" am_compiler_list
=
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4151 $as_echo_n "checking dependency style of $depcc... " >&6; }
4152 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4156 # We make a subdir and do the tests there. Otherwise we can end up
4157 # making bogus files that we don't know about and never remove. For
4158 # instance it was reported that on HP-UX the gcc test will end up
4159 # making a dummy file named `D' -- because `-MD' means `put the output
4162 # Copy depcomp to subdir because otherwise we won't find it if we're
4163 # using a relative directory.
4164 cp "$am_depcomp" conftest.dir
4166 # We will build objects and dependencies in a subdirectory because
4167 # it helps to detect inapplicable dependency modes. For instance
4168 # both Tru64's cc and ICC support -MD to output dependencies as a
4169 # side effect of compilation, but ICC will put the dependencies in
4170 # the current directory while Tru64 will put them in the object
4174 am_cv_CC_dependencies_compiler_type
=none
4175 if test "$am_compiler_list" = ""; then
4176 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4179 case " $depcc " in #(
4180 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4183 for depmode
in $am_compiler_list; do
4184 # Setup a source with many dependencies, because some compilers
4185 # like to wrap large dependency lists on column 80 (with \), and
4186 # we should not choose a depcomp mode which is confused by this.
4188 # We need to recreate these files for each test, as the compiler may
4189 # overwrite some of them when testing with obscure command lines.
4190 # This happens at least with the AIX C compiler.
4192 for i
in 1 2 3 4 5 6; do
4193 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4195 # Solaris 8's {/usr,}/bin/sh.
4196 touch sub
/conftst
$i.h
4198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4201 # mode. It turns out that the SunPro C++ compiler does not properly
4202 # handle `-M -o', and we need to detect this. Also, some Intel
4203 # versions had trouble with output in subdirs
4204 am__obj
=sub
/conftest.
${OBJEXT-o}
4205 am__minus_obj
="-o $am__obj"
4208 # This depmode causes a compiler race in universal mode.
4209 test "$am__universal" = false ||
continue
4212 # after this tag, mechanisms are not by side-effect, so they'll
4213 # only be used when explicitly requested
4214 if test "x$enable_dependency_tracking" = xyes
; then
4220 msvisualcpp | msvcmsys
)
4221 # This compiler won't grok `-c -o', but also, the minuso test has
4222 # not run yet. These depmodes are late enough in the game, and
4223 # so weak that their functioning should not be impacted.
4224 am__obj
=conftest.
${OBJEXT-o}
4229 if depmode
=$depmode \
4230 source=sub
/conftest.c object
=$am__obj \
4231 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4232 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4233 >/dev
/null
2>conftest.err
&&
4234 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4235 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4236 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4237 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4238 # icc doesn't choke on unknown options, it will just issue warnings
4239 # or remarks (even with -Werror). So we grep stderr for any message
4240 # that says an option was ignored or not supported.
4241 # When given -MP, icc 7.0 and 7.1 complain thusly:
4242 # icc: Command line warning: ignoring option '-M'; no argument required
4243 # The diagnosis changed in icc 8.0:
4244 # icc: Command line remark: option '-MP' not supported
4245 if (grep 'ignoring option' conftest.err ||
4246 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4247 am_cv_CC_dependencies_compiler_type
=$depmode
4256 am_cv_CC_dependencies_compiler_type
=none
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4262 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4265 test "x$enable_dependency_tracking" != xno \
4266 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4268 am__fastdepCC_FALSE
='#'
4270 am__fastdepCC_TRUE
='#'
4271 am__fastdepCC_FALSE
=
4279 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4280 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4281 # in both places for now and restore CFLAGS at the end of config.
4282 save_CFLAGS
="$CFLAGS"
4284 # Add -Wall -Werror if we are using GCC.
4285 if test "x$GCC" = "xyes"; then
4286 XCFLAGS
="$XCFLAGS -Wall -Werror"
4289 # Find other programs we need.
4290 if test -n "$ac_tool_prefix"; then
4291 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4292 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_AR+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4298 if test -n "$AR"; then
4299 ac_cv_prog_AR
="$AR" # Let the user override the test.
4301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4305 test -z "$as_dir" && as_dir
=.
4306 for ac_exec_ext
in '' $ac_executable_extensions; do
4307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 if test -n "$AR"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4321 $as_echo "$AR" >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4329 if test -z "$ac_cv_prog_AR"; then
4331 # Extract the first word of "ar", so it can be a program name with args.
4332 set dummy
ar; ac_word
=$2
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 $as_echo_n "checking for $ac_word... " >&6; }
4335 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4338 if test -n "$ac_ct_AR"; then
4339 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4345 test -z "$as_dir" && as_dir
=.
4346 for ac_exec_ext
in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_ac_ct_AR
="ar"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4359 if test -n "$ac_ct_AR"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4361 $as_echo "$ac_ct_AR" >&6; }
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4367 if test "x$ac_ct_AR" = x
; then
4370 case $cross_compiling:$ac_tool_warned in
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4374 ac_tool_warned
=yes ;;
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4384 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4390 if test -n "$RANLIB"; then
4391 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir
=.
4398 for ac_exec_ext
in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 RANLIB
=$ac_cv_prog_RANLIB
4411 if test -n "$RANLIB"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4413 $as_echo "$RANLIB" >&6; }
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4421 if test -z "$ac_cv_prog_RANLIB"; then
4422 ac_ct_RANLIB
=$RANLIB
4423 # Extract the first word of "ranlib", so it can be a program name with args.
4424 set dummy ranlib
; ac_word
=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4430 if test -n "$ac_ct_RANLIB"; then
4431 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir
=.
4438 for ac_exec_ext
in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4451 if test -n "$ac_ct_RANLIB"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4453 $as_echo "$ac_ct_RANLIB" >&6; }
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4459 if test "x$ac_ct_RANLIB" = x
; then
4460 RANLIB
="ranlib-not-found-in-path-error"
4462 case $cross_compiling:$ac_tool_warned in
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4466 ac_tool_warned
=yes ;;
4468 RANLIB
=$ac_ct_RANLIB
4471 RANLIB
="$ac_cv_prog_RANLIB"
4474 # Extract the first word of "perl", so it can be a program name with args.
4475 set dummy perl
; ac_word
=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if test "${ac_cv_path_PERL+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4483 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
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_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl-not-found-in-path-error"
4505 PERL
=$ac_cv_path_PERL
4506 if test -n "$PERL"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4508 $as_echo "$PERL" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4518 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4519 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4520 $as_echo_n "(cached) " >&6
4522 cat >conftest.
make <<\_ACEOF
4525 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4527 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4530 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4532 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4536 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4538 $as_echo "yes" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 SET_MAKE
="MAKE=${MAKE-make}"
4548 # See if makeinfo has been installed and is modern enough
4549 # that we can use it.
4551 # Extract the first word of "makeinfo", so it can be a program name with args.
4552 set dummy makeinfo
; ac_word
=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4558 if test -n "$MAKEINFO"; then
4559 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir
=.
4566 for ac_exec_ext
in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_MAKEINFO
="makeinfo"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 MAKEINFO
=$ac_cv_prog_MAKEINFO
4579 if test -n "$MAKEINFO"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4581 $as_echo "$MAKEINFO" >&6; }
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4588 if test -n "$MAKEINFO"; then
4589 # Found it, now check the version.
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4591 $as_echo_n "checking for modern makeinfo... " >&6; }
4592 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4595 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
4596 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4598 case $ac_prog_version in
4599 '') gcc_cv_prog_makeinfo_modern
=no
;;
4600 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
4601 *) gcc_cv_prog_makeinfo_modern
=no
;;
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4606 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4608 gcc_cv_prog_makeinfo_modern
=no
4610 if test $gcc_cv_prog_makeinfo_modern = no
; then
4611 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4614 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4616 BUILD_INFO_FALSE
='#'
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4628 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4633 macro_version
='2.2.7a'
4634 macro_revision
='1.3134'
4648 ltmain
="$ac_aux_dir/ltmain.sh"
4650 # Backslashify metacharacters that are still active within
4651 # double-quoted strings.
4652 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4654 # Same as above, but do not quote variable references.
4655 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4657 # Sed substitution to delay expansion of an escaped shell variable in a
4658 # double_quote_subst'ed string.
4659 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4661 # Sed substitution to delay expansion of an escaped single quote.
4662 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4664 # Sed substitution to avoid accidental globbing in evaled expressions
4665 no_glob_subst
='s/\*/\\\*/g'
4667 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4668 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4669 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4672 $as_echo_n "checking how to print strings... " >&6; }
4673 # Test print first, because it will be a builtin if present.
4674 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4675 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4677 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4680 # Use this function as a fallback that always works.
4681 func_fallback_echo ()
4683 eval 'cat <<_LTECHO_EOF
4687 ECHO='func_fallback_echo
'
4690 # func_echo_all arg...
4691 # Invoke $ECHO with all args, space-separated.
4698 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4699 $as_echo "printf" >&6; } ;;
4700 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4701 $as_echo "print -r" >&6; } ;;
4702 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4703 $as_echo "cat" >&6; } ;;
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4720 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4721 if test "${ac_cv_path_SED+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4724 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4725 for ac_i in 1 2 3 4 5 6 7; do
4726 ac_script="$ac_script$as_nl$ac_script"
4728 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4729 { ac_script=; unset ac_script;}
4730 if test -z "$SED"; then
4731 ac_path_SED_found=false
4732 # Loop through the user's path and
test for each of PROGNAME-LIST
4733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir
=.
4738 for ac_prog
in sed gsed
; do
4739 for ac_exec_ext
in '' $ac_executable_extensions; do
4740 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4741 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4742 # Check for GNU ac_path_SED and select it if it is found.
4743 # Check for GNU $ac_path_SED
4744 case `"$ac_path_SED" --version 2>&1` in
4746 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4749 $as_echo_n 0123456789 >"conftest.in"
4752 cat "conftest.in" "conftest.in" >"conftest.tmp"
4753 mv "conftest.tmp" "conftest.in"
4754 cp "conftest.in" "conftest.nl"
4755 $as_echo '' >> "conftest.nl"
4756 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4757 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4758 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4759 if test $ac_count -gt ${ac_path_SED_max-0}; then
4760 # Best one so far, save it but keep looking for a better one
4761 ac_cv_path_SED
="$ac_path_SED"
4762 ac_path_SED_max
=$ac_count
4764 # 10*(2^10) chars as input seems more than enough
4765 test $ac_count -gt 10 && break
4767 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4770 $ac_path_SED_found && break 3
4775 if test -z "$ac_cv_path_SED"; then
4776 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4784 $as_echo "$ac_cv_path_SED" >&6; }
4785 SED
="$ac_cv_path_SED"
4788 test -z "$SED" && SED
=sed
4789 Xsed
="$SED -e 1s/^X//"
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4802 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4803 if test "${ac_cv_path_GREP+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4806 if test -z "$GREP"; then
4807 ac_path_GREP_found
=false
4808 # Loop through the user's path and test for each of PROGNAME-LIST
4809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4810 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4813 test -z "$as_dir" && as_dir
=.
4814 for ac_prog
in grep ggrep
; do
4815 for ac_exec_ext
in '' $ac_executable_extensions; do
4816 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4817 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4818 # Check for GNU ac_path_GREP and select it if it is found.
4819 # Check for GNU $ac_path_GREP
4820 case `"$ac_path_GREP" --version 2>&1` in
4822 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4825 $as_echo_n 0123456789 >"conftest.in"
4828 cat "conftest.in" "conftest.in" >"conftest.tmp"
4829 mv "conftest.tmp" "conftest.in"
4830 cp "conftest.in" "conftest.nl"
4831 $as_echo 'GREP' >> "conftest.nl"
4832 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4833 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4834 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4835 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4836 # Best one so far, save it but keep looking for a better one
4837 ac_cv_path_GREP
="$ac_path_GREP"
4838 ac_path_GREP_max
=$ac_count
4840 # 10*(2^10) chars as input seems more than enough
4841 test $ac_count -gt 10 && break
4843 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4846 $ac_path_GREP_found && break 3
4851 if test -z "$ac_cv_path_GREP"; then
4852 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4855 ac_cv_path_GREP
=$GREP
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4860 $as_echo "$ac_cv_path_GREP" >&6; }
4861 GREP
="$ac_cv_path_GREP"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4865 $as_echo_n "checking for egrep... " >&6; }
4866 if test "${ac_cv_path_EGREP+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4869 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4870 then ac_cv_path_EGREP
="$GREP -E"
4872 if test -z "$EGREP"; then
4873 ac_path_EGREP_found
=false
4874 # Loop through the user's path and test for each of PROGNAME-LIST
4875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4876 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4879 test -z "$as_dir" && as_dir
=.
4880 for ac_prog
in egrep; do
4881 for ac_exec_ext
in '' $ac_executable_extensions; do
4882 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4883 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4884 # Check for GNU ac_path_EGREP and select it if it is found.
4885 # Check for GNU $ac_path_EGREP
4886 case `"$ac_path_EGREP" --version 2>&1` in
4888 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4891 $as_echo_n 0123456789 >"conftest.in"
4894 cat "conftest.in" "conftest.in" >"conftest.tmp"
4895 mv "conftest.tmp" "conftest.in"
4896 cp "conftest.in" "conftest.nl"
4897 $as_echo 'EGREP' >> "conftest.nl"
4898 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4899 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4900 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4901 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4902 # Best one so far, save it but keep looking for a better one
4903 ac_cv_path_EGREP
="$ac_path_EGREP"
4904 ac_path_EGREP_max
=$ac_count
4906 # 10*(2^10) chars as input seems more than enough
4907 test $ac_count -gt 10 && break
4909 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4912 $ac_path_EGREP_found && break 3
4917 if test -z "$ac_cv_path_EGREP"; then
4918 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4921 ac_cv_path_EGREP
=$EGREP
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4927 $as_echo "$ac_cv_path_EGREP" >&6; }
4928 EGREP
="$ac_cv_path_EGREP"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4932 $as_echo_n "checking for fgrep... " >&6; }
4933 if test "${ac_cv_path_FGREP+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4936 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4937 then ac_cv_path_FGREP
="$GREP -F"
4939 if test -z "$FGREP"; then
4940 ac_path_FGREP_found
=false
4941 # Loop through the user's path and test for each of PROGNAME-LIST
4942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4943 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4946 test -z "$as_dir" && as_dir
=.
4947 for ac_prog
in fgrep
; do
4948 for ac_exec_ext
in '' $ac_executable_extensions; do
4949 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4950 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4951 # Check for GNU ac_path_FGREP and select it if it is found.
4952 # Check for GNU $ac_path_FGREP
4953 case `"$ac_path_FGREP" --version 2>&1` in
4955 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4958 $as_echo_n 0123456789 >"conftest.in"
4961 cat "conftest.in" "conftest.in" >"conftest.tmp"
4962 mv "conftest.tmp" "conftest.in"
4963 cp "conftest.in" "conftest.nl"
4964 $as_echo 'FGREP' >> "conftest.nl"
4965 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4966 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4967 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4968 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4969 # Best one so far, save it but keep looking for a better one
4970 ac_cv_path_FGREP
="$ac_path_FGREP"
4971 ac_path_FGREP_max
=$ac_count
4973 # 10*(2^10) chars as input seems more than enough
4974 test $ac_count -gt 10 && break
4976 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4979 $ac_path_FGREP_found && break 3
4984 if test -z "$ac_cv_path_FGREP"; then
4985 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4988 ac_cv_path_FGREP
=$FGREP
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4994 $as_echo "$ac_cv_path_FGREP" >&6; }
4995 FGREP
="$ac_cv_path_FGREP"
4998 test -z "$GREP" && GREP
=grep
5018 # Check whether --with-gnu-ld was given.
5019 if test "${with_gnu_ld+set}" = set; then :
5020 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5026 if test "$GCC" = yes; then
5027 # Check if gcc -print-prog-name=ld gives a path.
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5029 $as_echo_n "checking for ld used by $CC... " >&6; }
5032 # gcc leaves a trailing carriage return which upsets mingw
5033 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5035 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5038 # Accept absolute paths.
5040 re_direlt
='/[^/][^/]*/\.\./'
5041 # Canonicalize the pathname of ld
5042 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5043 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5044 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5046 test -z "$LD" && LD
="$ac_prog"
5049 # If it fails, then pretend we aren't using GCC.
5053 # If it is relative, then search for the first ld in PATH.
5057 elif test "$with_gnu_ld" = yes; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5059 $as_echo_n "checking for GNU ld... " >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5062 $as_echo_n "checking for non-GNU ld... " >&6; }
5064 if test "${lt_cv_path_LD+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5067 if test -z "$LD"; then
5068 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5069 for ac_dir
in $PATH; do
5071 test -z "$ac_dir" && ac_dir
=.
5072 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5073 lt_cv_path_LD
="$ac_dir/$ac_prog"
5074 # Check to see if the program is GNU ld. I'd rather use --version,
5075 # but apparently some variants of GNU ld only accept -v.
5076 # Break only if it was the GNU/non-GNU ld that we prefer.
5077 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5078 *GNU
* |
*'with BFD'*)
5079 test "$with_gnu_ld" != no
&& break
5082 test "$with_gnu_ld" != yes && break
5089 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5094 if test -n "$LD"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5096 $as_echo "$LD" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5101 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5103 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5104 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5108 case `$LD -v 2>&1 </dev/null` in
5109 *GNU
* |
*'with BFD'*)
5110 lt_cv_prog_gnu_ld
=yes
5113 lt_cv_prog_gnu_ld
=no
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5118 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5119 with_gnu_ld
=$lt_cv_prog_gnu_ld
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5130 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5131 if test "${lt_cv_path_NM+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$NM"; then
5135 # Let the user override the test.
5138 lt_nm_to_check
="${ac_tool_prefix}nm"
5139 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5140 lt_nm_to_check
="$lt_nm_to_check nm"
5142 for lt_tmp_nm
in $lt_nm_to_check; do
5143 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5144 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5146 test -z "$ac_dir" && ac_dir
=.
5147 tmp_nm
="$ac_dir/$lt_tmp_nm"
5148 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5149 # Check to see if the nm accepts a BSD-compat flag.
5150 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5151 # nm: unknown option "B" ignored
5152 # Tru64's nm complains that /dev/null is an invalid object file
5153 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5154 */dev
/null
* |
*'Invalid file or object type'*)
5155 lt_cv_path_NM
="$tmp_nm -B"
5159 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5161 lt_cv_path_NM
="$tmp_nm -p"
5165 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5166 continue # so that we can try to find one that supports BSD flags
5175 : ${lt_cv_path_NM=no}
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5179 $as_echo "$lt_cv_path_NM" >&6; }
5180 if test "$lt_cv_path_NM" != "no"; then
5183 # Didn't find any BSD compatible name lister, look for dumpbin.
5184 if test -n "$DUMPBIN"; then :
5185 # Let the user override the test.
5187 if test -n "$ac_tool_prefix"; then
5188 for ac_prog
in dumpbin
"link -dump"
5190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5191 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5197 if test -n "$DUMPBIN"; then
5198 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5204 test -z "$as_dir" && as_dir
=.
5205 for ac_exec_ext
in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 DUMPBIN
=$ac_cv_prog_DUMPBIN
5218 if test -n "$DUMPBIN"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5220 $as_echo "$DUMPBIN" >&6; }
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5227 test -n "$DUMPBIN" && break
5230 if test -z "$DUMPBIN"; then
5231 ac_ct_DUMPBIN
=$DUMPBIN
5232 for ac_prog
in dumpbin
"link -dump"
5234 # Extract the first word of "$ac_prog", so it can be a program name with args.
5235 set dummy
$ac_prog; ac_word
=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5241 if test -n "$ac_ct_DUMPBIN"; then
5242 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir
=.
5249 for ac_exec_ext
in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5262 if test -n "$ac_ct_DUMPBIN"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5264 $as_echo "$ac_ct_DUMPBIN" >&6; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5271 test -n "$ac_ct_DUMPBIN" && break
5274 if test "x$ac_ct_DUMPBIN" = x
; then
5277 case $cross_compiling:$ac_tool_warned in
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned
=yes ;;
5283 DUMPBIN
=$ac_ct_DUMPBIN
5287 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5289 DUMPBIN
="$DUMPBIN -symbols"
5297 if test "$DUMPBIN" != ":"; then
5301 test -z "$NM" && NM
=nm
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5309 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5310 if test "${lt_cv_nm_interface+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5313 lt_cv_nm_interface
="BSD nm"
5314 echo "int some_variable = 0;" > conftest.
$ac_ext
5315 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5316 (eval "$ac_compile" 2>conftest.err
)
5317 cat conftest.err
>&5
5318 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5319 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5320 cat conftest.err
>&5
5321 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5322 cat conftest.out
>&5
5323 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5324 lt_cv_nm_interface
="MS dumpbin"
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5329 $as_echo "$lt_cv_nm_interface" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5332 $as_echo_n "checking whether ln -s works... " >&6; }
5334 if test "$LN_S" = "ln -s"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336 $as_echo "yes" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5339 $as_echo "no, using $LN_S" >&6; }
5342 # find the maximum length of command line arguments
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5344 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5345 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5353 # On DJGPP, this test can blow up pretty badly due to problems in libc
5354 # (any single argument exceeding 2000 bytes causes a buffer overrun
5355 # during glob expansion). Even if it were fixed, the result of this
5356 # check would be larger than it should be.
5357 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5361 # Under GNU Hurd, this test is not required because there is
5362 # no limit to the length of command line arguments.
5363 # Libtool will interpret -1 as no limit whatsoever
5364 lt_cv_sys_max_cmd_len
=-1;
5367 cygwin
* | mingw
* | cegcc
*)
5368 # On Win9x/ME, this test blows up -- it succeeds, but takes
5369 # about 5 minutes as the teststring grows exponentially.
5370 # Worse, since 9x/ME are not pre-emptively multitasking,
5371 # you end up with a "frozen" computer, even though with patience
5372 # the test eventually succeeds (with a max line length of 256k).
5373 # Instead, let's just punt: use the minimum linelength reported by
5374 # all of the supported platforms: 8192 (on NT/2K/XP).
5375 lt_cv_sys_max_cmd_len
=8192;
5379 # On MiNT this can take a long time and run out of memory.
5380 lt_cv_sys_max_cmd_len
=8192;
5384 # On AmigaOS with pdksh, this test takes hours, literally.
5385 # So we just punt and use a minimum line length of 8192.
5386 lt_cv_sys_max_cmd_len
=8192;
5389 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5390 # This has been around since 386BSD, at least. Likely further.
5391 if test -x /sbin
/sysctl
; then
5392 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5393 elif test -x /usr
/sbin
/sysctl
; then
5394 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5396 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5398 # And add a safety zone
5399 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5400 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5404 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5405 lt_cv_sys_max_cmd_len
=196608
5409 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5410 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5411 # nice to cause kernel panics so lets avoid the loop below.
5412 # First set a reasonable default.
5413 lt_cv_sys_max_cmd_len
=16384
5415 if test -x /sbin
/sysconfig
; then
5416 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5417 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5422 lt_cv_sys_max_cmd_len
=102400
5424 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5425 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5426 if test -n "$kargmax"; then
5427 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5429 lt_cv_sys_max_cmd_len
=32768
5433 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5434 if test -n "$lt_cv_sys_max_cmd_len"; then
5435 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5436 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5438 # Make teststring a little bigger before we do anything with it.
5439 # a 1K string should be a reasonable start.
5440 for i
in 1 2 3 4 5 6 7 8 ; do
5441 teststring
=$teststring$teststring
5443 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5444 # If test is not a shell built-in, we'll probably end up computing a
5445 # maximum length that is only half of the actual maximum length, but
5447 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5448 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5449 test $i != 17 # 1/2 MB should be enough
5452 teststring
=$teststring$teststring
5454 # Only check the string length outside the loop.
5455 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5457 # Add a significant safety factor because C++ compilers can tack on
5458 # massive amounts of additional arguments before passing them to the
5459 # linker. It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5467 if test -n $lt_cv_sys_max_cmd_len ; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5469 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5472 $as_echo "none" >&6; }
5474 max_cmd_len
=$lt_cv_sys_max_cmd_len
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5486 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5487 # Try some XSI features
5490 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5492 && eval 'test $(( 1 + 1 )) -eq 2 \
5493 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5496 $as_echo "$xsi_shell" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5500 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5502 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5504 && lt_shell_append=yes
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5506 $as_echo "$lt_shell_append" >&6; }
5509 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5519 # test EBCDIC or ASCII
5520 case `echo X|tr X '\101'` in
5521 A) # ASCII based system
5522 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5523 lt_SP2NL='tr \040 \012'
5524 lt_NL2SP='tr \015\012 \040\040'
5526 *) # EBCDIC based system
5527 lt_SP2NL='tr \100 \n'
5528 lt_NL2SP='tr \r\n \100\100'
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5541 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5542 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5543 $as_echo_n "(cached
) " >&6
5545 lt_cv_ld_reload_flag='-r'
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5548 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5549 reload_flag=$lt_cv_ld_reload_flag
5550 case $reload_flag in
5552 *) reload_flag=" $reload_flag" ;;
5554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5557 if test "$GCC" = yes; then
5558 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5560 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5577 $as_echo_n "checking
for $ac_word...
" >&6; }
5578 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5579 $as_echo_n "(cached
) " >&6
5581 if test -n "$OBJDUMP"; then
5582 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5601 OBJDUMP=$ac_cv_prog_OBJDUMP
5602 if test -n "$OBJDUMP"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5604 $as_echo "$OBJDUMP" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5607 $as_echo "no
" >&6; }
5612 if test -z "$ac_cv_prog_OBJDUMP"; then
5613 ac_ct_OBJDUMP=$OBJDUMP
5614 # Extract the first word of "objdump
", so it can be a program name with args.
5615 set dummy objdump; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5617 $as_echo_n "checking
for $ac_word...
" >&6; }
5618 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5619 $as_echo_n "(cached
) " >&6
5621 if test -n "$ac_ct_OBJDUMP"; then
5622 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5641 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5642 if test -n "$ac_ct_OBJDUMP"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5644 $as_echo "$ac_ct_OBJDUMP" >&6; }
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5647 $as_echo "no
" >&6; }
5650 if test "x
$ac_ct_OBJDUMP" = x; then
5653 case $cross_compiling:$ac_tool_warned in
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5656 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5657 ac_tool_warned=yes ;;
5659 OBJDUMP=$ac_ct_OBJDUMP
5662 OBJDUMP="$ac_cv_prog_OBJDUMP"
5665 test -z "$OBJDUMP" && OBJDUMP=objdump
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5676 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5677 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5678 $as_echo_n "(cached
) " >&6
5680 lt_cv_file_magic_cmd='$MAGIC_CMD'
5681 lt_cv_file_magic_test_file=
5682 lt_cv_deplibs_check_method='unknown'
5683 # Need to set the preceding variable on all platforms that support
5684 # interlibrary dependencies.
5685 # 'none' -- dependencies not supported.
5686 # `unknown' -- same as none, but documents that we really don't know.
5687 # 'pass_all' -- all dependencies passed with no checks.
5688 # 'test_compile' -- check by making test program.
5689 # 'file_magic [[regex]]' -- check by looking for files in library path
5690 # which responds to the $file_magic_cmd with a given extended regex.
5691 # If you have `file' or equivalent on your system and you're not sure
5692 # whether `pass_all' will *always* work, you probably want this one.
5696 lt_cv_deplibs_check_method=pass_all
5700 lt_cv_deplibs_check_method=pass_all
5704 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5705 lt_cv_file_magic_cmd='/usr/bin/file -L'
5706 lt_cv_file_magic_test_file=/shlib/libc.so
5710 # func_win32_libid is a shell function defined in ltmain.sh
5711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5712 lt_cv_file_magic_cmd='func_win32_libid'
5716 # Base MSYS/MinGW do not provide the 'file' command needed by
5717 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5718 # unless we find 'file', for example because we are cross-compiling.
5719 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5720 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5721 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5722 lt_cv_file_magic_cmd='func_win32_libid'
5724 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5725 lt_cv_file_magic_cmd='$OBJDUMP -f'
5730 # use the weaker test based on 'objdump'. See mingw*.
5731 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5732 lt_cv_file_magic_cmd='$OBJDUMP -f'
5735 darwin* | rhapsody*)
5736 lt_cv_deplibs_check_method=pass_all
5739 freebsd* | dragonfly*)
5740 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5743 # Not sure whether the presence of OpenBSD here was a mistake.
5744 # Let's accept both of them until this is cleared up.
5745 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5746 lt_cv_file_magic_cmd=/usr/bin/file
5747 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5751 lt_cv_deplibs_check_method=pass_all
5756 lt_cv_deplibs_check_method=pass_all
5760 lt_cv_deplibs_check_method=pass_all
5763 hpux10.20* | hpux11*)
5764 lt_cv_file_magic_cmd=/usr/bin/file
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5768 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5771 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]'
5772 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5776 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5782 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5786 irix5* | irix6* | nonstopux*)
5788 *-32|*"-32 ") libmagic=32-bit;;
5789 *-n32|*"-n32 ") libmagic=N32;;
5790 *-64|*"-64 ") libmagic=64-bit;;
5791 *) libmagic=never-match;;
5793 lt_cv_deplibs_check_method=pass_all
5796 # This must be Linux ELF.
5797 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5798 lt_cv_deplibs_check_method=pass_all
5802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5811 lt_cv_file_magic_cmd=/usr/bin/file
5812 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5816 lt_cv_deplibs_check_method=pass_all
5820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5827 osf3* | osf4* | osf5*)
5828 lt_cv_deplibs_check_method=pass_all
5832 lt_cv_deplibs_check_method=pass_all
5836 lt_cv_deplibs_check_method=pass_all
5839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5840 lt_cv_deplibs_check_method=pass_all
5844 case $host_vendor in
5846 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]'
5847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5850 lt_cv_deplibs_check_method=pass_all
5853 lt_cv_file_magic_cmd='/bin/file'
5854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5857 lt_cv_file_magic_cmd='/bin/file'
5858 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5859 lt_cv_file_magic_test_file=/lib/libc.so
5862 lt_cv_deplibs_check_method=pass_all
5865 lt_cv_deplibs_check_method=pass_all
5871 lt_cv_deplibs_check_method=pass_all
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5877 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5878 file_magic_cmd=$lt_cv_file_magic_cmd
5879 deplibs_check_method=$lt_cv_deplibs_check_method
5880 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5895 set dummy ${ac_tool_prefix}ar; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5897 $as_echo_n "checking
for $ac_word...
" >&6; }
5898 if test "${ac_cv_prog_AR+set}" = set; then :
5899 $as_echo_n "(cached
) " >&6
5901 if test -n "$AR"; then
5902 ac_cv_prog_AR="$AR" # Let the user override the test.
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_AR="${ac_tool_prefix}ar"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5922 if test -n "$AR"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5924 $as_echo "$AR" >&6; }
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5927 $as_echo "no
" >&6; }
5932 if test -z "$ac_cv_prog_AR"; then
5934 # Extract the first word of "ar", so it can be a program name with args.
5935 set dummy ar; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5937 $as_echo_n "checking
for $ac_word...
" >&6; }
5938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5939 $as_echo_n "(cached
) " >&6
5941 if test -n "$ac_ct_AR"; then
5942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_ac_ct_AR="ar"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5962 if test -n "$ac_ct_AR"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5964 $as_echo "$ac_ct_AR" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5967 $as_echo "no
" >&6; }
5970 if test "x
$ac_ct_AR" = x; then
5973 case $cross_compiling:$ac_tool_warned in
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5976 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5977 ac_tool_warned=yes ;;
5985 test -z "$AR" && AR=ar
5986 test -z "$AR_FLAGS" && AR_FLAGS=cru
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6002 $as_echo_n "checking
for $ac_word...
" >&6; }
6003 if test "${ac_cv_prog_STRIP+set}" = set; then :
6004 $as_echo_n "(cached
) " >&6
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6029 $as_echo "$STRIP" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6032 $as_echo "no
" >&6; }
6037 if test -z "$ac_cv_prog_STRIP"; then
6039 # Extract the first word of "strip
", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6042 $as_echo_n "checking
for $ac_word...
" >&6; }
6043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6044 $as_echo_n "(cached
) " >&6
6046 if test -n "$ac_ct_STRIP"; then
6047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_STRIP="strip
"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6069 $as_echo "$ac_ct_STRIP" >&6; }
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6072 $as_echo "no
" >&6; }
6075 if test "x
$ac_ct_STRIP" = x; then
6078 case $cross_compiling:$ac_tool_warned in
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6081 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6082 ac_tool_warned=yes ;;
6087 STRIP="$ac_cv_prog_STRIP"
6090 test -z "$STRIP" && STRIP=:
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6101 $as_echo_n "checking
for $ac_word...
" >&6; }
6102 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6103 $as_echo_n "(cached
) " >&6
6105 if test -n "$RANLIB"; then
6106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6125 RANLIB=$ac_cv_prog_RANLIB
6126 if test -n "$RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6128 $as_echo "$RANLIB" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6131 $as_echo "no
" >&6; }
6136 if test -z "$ac_cv_prog_RANLIB"; then
6137 ac_ct_RANLIB=$RANLIB
6138 # Extract the first word of "ranlib
", so it can be a program name with args.
6139 set dummy ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6141 $as_echo_n "checking
for $ac_word...
" >&6; }
6142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6143 $as_echo_n "(cached
) " >&6
6145 if test -n "$ac_ct_RANLIB"; then
6146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6166 if test -n "$ac_ct_RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6168 $as_echo "$ac_ct_RANLIB" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6171 $as_echo "no
" >&6; }
6174 if test "x
$ac_ct_RANLIB" = x; then
6177 case $cross_compiling:$ac_tool_warned in
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6180 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6181 ac_tool_warned=yes ;;
6183 RANLIB=$ac_ct_RANLIB
6186 RANLIB="$ac_cv_prog_RANLIB"
6189 test -z "$RANLIB" && RANLIB=:
6196 # Determine commands to create old-style static archives.
6197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6198 old_postinstall_cmds='chmod 644 $oldlib'
6199 old_postuninstall_cmds=
6201 if test -n "$RANLIB"; then
6204 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6207 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6210 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6215 lock_old_archive_extraction=yes ;;
6217 lock_old_archive_extraction=no ;;
6258 # If no C compiler was specified, use CC.
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6264 # Allow CC to be a program name with arguments.
6268 # Check for command to grab the raw symbol name followed by C symbol from nm.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6270 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6271 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6272 $as_echo_n "(cached
) " >&6
6275 # These are sane defaults that work on at least a few old systems.
6276 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6278 # Character class describing NM global symbol codes.
6279 symcode='[BCDEGRST]'
6281 # Regexp to match symbols that can be accessed directly from C.
6282 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6284 # Define system-specific variables.
6289 cygwin* | mingw* | pw32* | cegcc*)
6290 symcode='[ABCDGISTW]'
6293 if test "$host_cpu" = ia64; then
6294 symcode='[ABCDEGRST]'
6298 symcode='[BCDEGRST]'
6301 symcode='[BCDEGQRST]'
6312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6320 # If we're using GNU nm, then use its standard symbol codes.
6321 case `$NM -V 2>&1` in
6322 *GNU* | *'with BFD'*)
6323 symcode='[ABCDGIRSTW]' ;;
6326 # Transform an extracted symbol line into a proper C declaration.
6327 # Some systems (esp. on ia64) link data and code symbols differently,
6328 # so use this general approach.
6329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6331 # Transform an extracted symbol line into symbol name and symbol address
6332 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6333 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'"
6335 # Handle CRLF in mingw tool chain
6339 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6343 # Try without a prefix underscore, then with it.
6344 for ac_symprfx in "" "_
"; do
6346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6347 symxfrm="\\1 $ac_symprfx\\2 \\2"
6349 # Write the raw and C identifiers.
6350 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6351 # Fake it for dumpbin and say T for any non-static function
6352 # and D for any global variable.
6353 # Also find C++ and __fastcall symbols from MSVC++,
6354 # which start with @ or ?.
6355 lt_cv_sys_global_symbol_pipe="$AWK '"\
6356 " {last_section=section; section=\$ 3};"\
6357 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6358 " \$ 0!~/External *\|/{next};"\
6359 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6360 " {if(hide[section]) next};"\
6361 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6362 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6363 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6364 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6365 " ' prfx
=^
$ac_symprfx"
6367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6370 # Check to see that the pipe works correctly.
6374 cat > conftest.$ac_ext <<_LT_EOF
6379 void nm_test_func(void);
6380 void nm_test_func(void){}
6384 int main(){nm_test_var='a';nm_test_func();return(0);}
6387 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6388 (eval $ac_compile) 2>&5
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6391 test $ac_status = 0; }; then
6392 # Now try to grab the symbols.
6394 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6395 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6398 test $ac_status = 0; } && test -s "$nlist"; then
6399 # Try sorting and uniquifying the output.
6400 if sort "$nlist" | uniq > "$nlist"T; then
6401 mv -f "$nlist"T "$nlist"
6406 # Make sure that we snagged all the symbols we need.
6407 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6408 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6409 cat <<_LT_EOF > conftest.$ac_ext
6415 # Now generate the symbol file.
6416 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6418 cat <<_LT_EOF >> conftest.$ac_ext
6420 /* The mapping between symbol names and symbols. */
6425 lt__PROGRAM__LTX_preloaded_symbols[] =
6427 { "@PROGRAM@
", (void *) 0 },
6429 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6430 cat <<\_LT_EOF >> conftest.$ac_ext
6434 /* This works around a problem in FreeBSD linker */
6435 #ifdef FREEBSD_WORKAROUND
6436 static const void *lt_preloaded_setup() {
6437 return lt__PROGRAM__LTX_preloaded_symbols;
6445 # Now try linking the two files.
6446 mv conftest.$ac_objext conftstm.$ac_objext
6447 lt_save_LIBS="$LIBS"
6448 lt_save_CFLAGS="$CFLAGS"
6449 LIBS="conftstm.
$ac_objext"
6450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6451 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6452 (eval $ac_link) 2>&5
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6455 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6458 LIBS="$lt_save_LIBS"
6459 CFLAGS="$lt_save_CFLAGS"
6461 echo "cannot
find nm_test_func
in $nlist" >&5
6464 echo "cannot
find nm_test_var
in $nlist" >&5
6467 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6470 echo "$progname: failed program was
:" >&5
6471 cat conftest.$ac_ext >&5
6473 rm -rf conftest* conftst*
6475 # Do not use the global_symbol_pipe unless it works.
6476 if test "$pipe_works" = yes; then
6479 lt_cv_sys_global_symbol_pipe=
6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6486 lt_cv_sys_global_symbol_to_cdecl=
6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6490 $as_echo "failed
" >&6; }
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6493 $as_echo "ok
" >&6; }
6518 # Check whether --enable-libtool-lock was given.
6519 if test "${enable_libtool_lock+set}" = set; then :
6520 enableval=$enable_libtool_lock;
6523 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6525 # Some flags need to be propagated to the compiler or linker for good
6529 # Find out which ABI we are using.
6530 echo 'int i;' > conftest.$ac_ext
6531 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6532 (eval $ac_compile) 2>&5
6534 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6535 test $ac_status = 0; }; then
6536 case `/usr/bin/file conftest.$ac_objext` in
6548 # Find out which ABI we are using.
6549 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6550 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551 (eval $ac_compile) 2>&5
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6554 test $ac_status = 0; }; then
6555 if test "$lt_cv_prog_gnu_ld" = yes; then
6556 case `/usr/bin/file conftest.$ac_objext` in
6558 LD="${LD-ld} -melf32bsmip"
6561 LD="${LD-ld} -melf32bmipn32"
6564 LD="${LD-ld} -melf64bmip"
6568 case `/usr/bin/file conftest.$ac_objext` in
6584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6586 # Find out which ABI we are using.
6587 echo 'int i;' > conftest.$ac_ext
6588 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6589 (eval $ac_compile) 2>&5
6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6592 test $ac_status = 0; }; then
6593 case `/usr/bin/file conftest.o` in
6596 x86_64-*kfreebsd*-gnu)
6597 LD="${LD-ld} -m elf_i386_fbsd
"
6600 case `/usr/bin/file conftest.o` in
6602 LD="${LD-ld} -m elf32_x86_64
"
6605 LD="${LD-ld} -m elf_i386
"
6609 powerpc64le-*linux*)
6610 LD="${LD-ld} -m elf32lppclinux
"
6613 LD="${LD-ld} -m elf32ppclinux
"
6616 LD="${LD-ld} -m elf_s390
"
6619 LD="${LD-ld} -m elf32_sparc
"
6625 x86_64-*kfreebsd*-gnu)
6626 LD="${LD-ld} -m elf_x86_64_fbsd
"
6629 LD="${LD-ld} -m elf_x86_64
"
6632 LD="${LD-ld} -m elf64lppc
"
6635 LD="${LD-ld} -m elf64ppc
"
6637 s390*-*linux*|s390*-*tpf*)
6638 LD="${LD-ld} -m elf64_s390
"
6641 LD="${LD-ld} -m elf64_sparc
"
6651 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6652 SAVE_CFLAGS="$CFLAGS"
6653 CFLAGS="$CFLAGS -belf"
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6655 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6656 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6657 $as_echo_n "(cached
) " >&6
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6676 if ac_fn_c_try_link "$LINENO"; then :
6677 lt_cv_cc_needs_belf=yes
6679 lt_cv_cc_needs_belf=no
6681 rm -f core conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6684 ac_cpp='$CPP $CPPFLAGS'
6685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6691 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6692 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6693 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6694 CFLAGS="$SAVE_CFLAGS"
6698 # Find out which ABI we are using.
6699 echo 'int i;' > conftest.$ac_ext
6700 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6701 (eval $ac_compile) 2>&5
6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6704 test $ac_status = 0; }; then
6705 case `/usr/bin/file conftest.o` in
6707 case $lt_cv_prog_gnu_ld in
6708 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6710 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6722 need_locks="$enable_libtool_lock"
6726 rhapsody* | darwin*)
6727 if test -n "$ac_tool_prefix"; then
6728 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6729 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6731 $as_echo_n "checking
for $ac_word...
" >&6; }
6732 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6733 $as_echo_n "(cached
) " >&6
6735 if test -n "$DSYMUTIL"; then
6736 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6755 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6756 if test -n "$DSYMUTIL"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6758 $as_echo "$DSYMUTIL" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6761 $as_echo "no
" >&6; }
6766 if test -z "$ac_cv_prog_DSYMUTIL"; then
6767 ac_ct_DSYMUTIL=$DSYMUTIL
6768 # Extract the first word of "dsymutil
", so it can be a program name with args.
6769 set dummy dsymutil; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6771 $as_echo_n "checking
for $ac_word...
" >&6; }
6772 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6773 $as_echo_n "(cached
) " >&6
6775 if test -n "$ac_ct_DSYMUTIL"; then
6776 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6795 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6796 if test -n "$ac_ct_DSYMUTIL"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6798 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6801 $as_echo "no
" >&6; }
6804 if test "x
$ac_ct_DSYMUTIL" = x; then
6807 case $cross_compiling:$ac_tool_warned in
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6810 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6811 ac_tool_warned=yes ;;
6813 DSYMUTIL=$ac_ct_DSYMUTIL
6816 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6819 if test -n "$ac_tool_prefix"; then
6820 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6821 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6823 $as_echo_n "checking
for $ac_word...
" >&6; }
6824 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6825 $as_echo_n "(cached
) " >&6
6827 if test -n "$NMEDIT"; then
6828 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6847 NMEDIT=$ac_cv_prog_NMEDIT
6848 if test -n "$NMEDIT"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6850 $as_echo "$NMEDIT" >&6; }
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6853 $as_echo "no
" >&6; }
6858 if test -z "$ac_cv_prog_NMEDIT"; then
6859 ac_ct_NMEDIT=$NMEDIT
6860 # Extract the first word of "nmedit
", so it can be a program name with args.
6861 set dummy nmedit; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6863 $as_echo_n "checking
for $ac_word...
" >&6; }
6864 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6865 $as_echo_n "(cached
) " >&6
6867 if test -n "$ac_ct_NMEDIT"; then
6868 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6887 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6888 if test -n "$ac_ct_NMEDIT"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6890 $as_echo "$ac_ct_NMEDIT" >&6; }
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6893 $as_echo "no
" >&6; }
6896 if test "x
$ac_ct_NMEDIT" = x; then
6899 case $cross_compiling:$ac_tool_warned in
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6902 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6903 ac_tool_warned=yes ;;
6905 NMEDIT=$ac_ct_NMEDIT
6908 NMEDIT="$ac_cv_prog_NMEDIT"
6911 if test -n "$ac_tool_prefix"; then
6912 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6913 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6915 $as_echo_n "checking
for $ac_word...
" >&6; }
6916 if test "${ac_cv_prog_LIPO+set}" = set; then :
6917 $as_echo_n "(cached
) " >&6
6919 if test -n "$LIPO"; then
6920 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6939 LIPO=$ac_cv_prog_LIPO
6940 if test -n "$LIPO"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6942 $as_echo "$LIPO" >&6; }
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6945 $as_echo "no
" >&6; }
6950 if test -z "$ac_cv_prog_LIPO"; then
6952 # Extract the first word of "lipo
", so it can be a program name with args.
6953 set dummy lipo; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6955 $as_echo_n "checking
for $ac_word...
" >&6; }
6956 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6957 $as_echo_n "(cached
) " >&6
6959 if test -n "$ac_ct_LIPO"; then
6960 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_ac_ct_LIPO="lipo
"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6979 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6980 if test -n "$ac_ct_LIPO"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6982 $as_echo "$ac_ct_LIPO" >&6; }
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6985 $as_echo "no
" >&6; }
6988 if test "x
$ac_ct_LIPO" = x; then
6991 case $cross_compiling:$ac_tool_warned in
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6994 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6995 ac_tool_warned=yes ;;
7000 LIPO="$ac_cv_prog_LIPO"
7003 if test -n "$ac_tool_prefix"; then
7004 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7005 set dummy ${ac_tool_prefix}otool; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7007 $as_echo_n "checking
for $ac_word...
" >&6; }
7008 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7009 $as_echo_n "(cached
) " >&6
7011 if test -n "$OTOOL"; then
7012 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7031 OTOOL=$ac_cv_prog_OTOOL
7032 if test -n "$OTOOL"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7034 $as_echo "$OTOOL" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7037 $as_echo "no
" >&6; }
7042 if test -z "$ac_cv_prog_OTOOL"; then
7044 # Extract the first word of "otool
", so it can be a program name with args.
7045 set dummy otool; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7047 $as_echo_n "checking
for $ac_word...
" >&6; }
7048 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7049 $as_echo_n "(cached
) " >&6
7051 if test -n "$ac_ct_OTOOL"; then
7052 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_ac_ct_OTOOL="otool
"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7071 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7072 if test -n "$ac_ct_OTOOL"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7074 $as_echo "$ac_ct_OTOOL" >&6; }
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7077 $as_echo "no
" >&6; }
7080 if test "x
$ac_ct_OTOOL" = x; then
7083 case $cross_compiling:$ac_tool_warned in
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7086 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7087 ac_tool_warned=yes ;;
7092 OTOOL="$ac_cv_prog_OTOOL"
7095 if test -n "$ac_tool_prefix"; then
7096 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7097 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7099 $as_echo_n "checking
for $ac_word...
" >&6; }
7100 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7101 $as_echo_n "(cached
) " >&6
7103 if test -n "$OTOOL64"; then
7104 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7123 OTOOL64=$ac_cv_prog_OTOOL64
7124 if test -n "$OTOOL64"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7126 $as_echo "$OTOOL64" >&6; }
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7129 $as_echo "no
" >&6; }
7134 if test -z "$ac_cv_prog_OTOOL64"; then
7135 ac_ct_OTOOL64=$OTOOL64
7136 # Extract the first word of "otool64
", so it can be a program name with args.
7137 set dummy otool64; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7139 $as_echo_n "checking
for $ac_word...
" >&6; }
7140 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7141 $as_echo_n "(cached
) " >&6
7143 if test -n "$ac_ct_OTOOL64"; then
7144 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7163 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7164 if test -n "$ac_ct_OTOOL64"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7166 $as_echo "$ac_ct_OTOOL64" >&6; }
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7169 $as_echo "no
" >&6; }
7172 if test "x
$ac_ct_OTOOL64" = x; then
7175 case $cross_compiling:$ac_tool_warned in
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7178 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7179 ac_tool_warned=yes ;;
7181 OTOOL64=$ac_ct_OTOOL64
7184 OTOOL64="$ac_cv_prog_OTOOL64"
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7214 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7215 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7216 $as_echo_n "(cached
) " >&6
7218 lt_cv_apple_cc_single_mod=no
7219 if test -z "${LT_MULTI_MODULE}"; then
7220 # By default we will add the -single_module flag. You can override
7221 # by either setting the environment variable LT_MULTI_MODULE
7222 # non-empty at configure time, or by adding -multi_module to the
7224 rm -rf libconftest.dylib*
7225 echo "int foo
(void
){return 1;}" > conftest.c
7226 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7227 -dynamiclib -Wl,-single_module conftest.c
" >&5
7228 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7229 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7231 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7232 lt_cv_apple_cc_single_mod=yes
7234 cat conftest.err >&5
7236 rm -rf libconftest.dylib*
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7241 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7243 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7244 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7245 $as_echo_n "(cached
) " >&6
7247 lt_cv_ld_exported_symbols_list=no
7248 save_LDFLAGS=$LDFLAGS
7249 echo "_main
" > conftest.sym
7250 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7262 if ac_fn_c_try_link "$LINENO"; then :
7263 lt_cv_ld_exported_symbols_list=yes
7265 lt_cv_ld_exported_symbols_list=no
7267 rm -f core conftest.err conftest.$ac_objext \
7268 conftest$ac_exeext conftest.$ac_ext
7269 LDFLAGS="$save_LDFLAGS"
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7273 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7275 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7276 if test "${lt_cv_ld_force_load+set}" = set; then :
7277 $as_echo_n "(cached
) " >&6
7279 lt_cv_ld_force_load=no
7280 cat > conftest.c << _LT_EOF
7281 int forced_loaded() { return 2;}
7283 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7284 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7285 echo "$AR cru libconftest.a conftest.o
" >&5
7286 $AR cru libconftest.a conftest.o 2>&5
7287 cat > conftest.c << _LT_EOF
7288 int main() { return 0;}
7290 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7291 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7293 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7294 lt_cv_ld_force_load=yes
7296 cat conftest.err >&5
7298 rm -f conftest.err libconftest.a conftest conftest.c
7299 rm -rf conftest.dSYM
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7303 $as_echo "$lt_cv_ld_force_load" >&6; }
7305 rhapsody* | darwin1.[012])
7306 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7308 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7309 darwin*) # darwin 5.x on
7310 # if running on 10.5 or later, the deployment target defaults
7311 # to the OS version, if on x86, and 10.4, the deployment
7312 # target defaults to 10.4. Don't you love it?
7313 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7314 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7315 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7317 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7319 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7323 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7324 _lt_dar_single_mod='$single_module'
7326 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7327 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7329 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7331 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7332 _lt_dsymutil='~$DSYMUTIL $lib || :'
7340 ac_cpp='$CPP $CPPFLAGS'
7341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7345 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7346 # On Suns, sometimes $CPP names a directory.
7347 if test -n "$CPP" && test -d "$CPP"; then
7350 if test -z "$CPP"; then
7351 if test "${ac_cv_prog_CPP+set}" = set; then :
7352 $as_echo_n "(cached
) " >&6
7354 # Double quotes because CPP needs to be expanded
7355 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7358 for ac_c_preproc_warn_flag in '' yes
7360 # Use a header file that comes with gcc, so configuring glibc
7361 # with a fresh cross-compiler works.
7362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7363 # <limits.h> exists even on freestanding compilers.
7364 # On the NeXT, cc -E runs the code through the compiler's parser,
7365 # not just through cpp. "Syntax error
" is here to catch this case.
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7369 # include <limits.h>
7371 # include <assert.h>
7375 if ac_fn_c_try_cpp "$LINENO"; then :
7378 # Broken: fails on valid input.
7381 rm -f conftest.err conftest.$ac_ext
7383 # OK, works on sane cases. Now check whether nonexistent headers
7384 # can be detected and how.
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7387 #include <ac_nonexistent.h>
7389 if ac_fn_c_try_cpp "$LINENO"; then :
7390 # Broken: success on invalid input.
7393 # Passes both tests.
7397 rm -f conftest.err conftest.$ac_ext
7400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7401 rm -f conftest.err conftest.$ac_ext
7402 if $ac_preproc_ok; then :
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7415 $as_echo "$CPP" >&6; }
7417 for ac_c_preproc_warn_flag in '' yes
7419 # Use a header file that comes with gcc, so configuring glibc
7420 # with a fresh cross-compiler works.
7421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7422 # <limits.h> exists even on freestanding compilers.
7423 # On the NeXT, cc -E runs the code through the compiler's parser,
7424 # not just through cpp. "Syntax error
" is here to catch this case.
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7428 # include <limits.h>
7430 # include <assert.h>
7434 if ac_fn_c_try_cpp "$LINENO"; then :
7437 # Broken: fails on valid input.
7440 rm -f conftest.err conftest.$ac_ext
7442 # OK, works on sane cases. Now check whether nonexistent headers
7443 # can be detected and how.
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 #include <ac_nonexistent.h>
7448 if ac_fn_c_try_cpp "$LINENO"; then :
7449 # Broken: success on invalid input.
7452 # Passes both tests.
7456 rm -f conftest.err conftest.$ac_ext
7459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7460 rm -f conftest.err conftest.$ac_ext
7461 if $ac_preproc_ok; then :
7464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7466 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7467 See \`config.log' for more details.
" "$LINENO" 5; }
7471 ac_cpp='$CPP $CPPFLAGS'
7472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7478 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7479 if test "${ac_cv_header_stdc+set}" = set; then :
7480 $as_echo_n "(cached
) " >&6
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7497 if ac_fn_c_try_compile "$LINENO"; then :
7498 ac_cv_header_stdc=yes
7500 ac_cv_header_stdc=no
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 if test $ac_cv_header_stdc = yes; then
7505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7511 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7512 $EGREP "memchr
" >/dev/null 2>&1; then :
7515 ac_cv_header_stdc=no
7521 if test $ac_cv_header_stdc = yes; then
7522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7528 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7529 $EGREP "free
" >/dev/null 2>&1; then :
7532 ac_cv_header_stdc=no
7538 if test $ac_cv_header_stdc = yes; then
7539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7540 if test "$cross_compiling" = yes; then :
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7547 #if ((' ' & 0x0FF) == 0x020)
7548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7551 # define ISLOWER(c) \
7552 (('a' <= (c) && (c) <= 'i') \
7553 || ('j' <= (c) && (c) <= 'r') \
7554 || ('s' <= (c) && (c) <= 'z'))
7555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7563 for (i = 0; i < 256; i++)
7564 if (XOR (islower (i), ISLOWER (i))
7565 || toupper (i) != TOUPPER (i))
7570 if ac_fn_c_try_run "$LINENO"; then :
7573 ac_cv_header_stdc=no
7575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7576 conftest.$ac_objext conftest.beam conftest.$ac_ext
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7582 $as_echo "$ac_cv_header_stdc" >&6; }
7583 if test $ac_cv_header_stdc = yes; then
7585 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7589 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7590 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7591 inttypes.h stdint.h unistd.h
7593 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7594 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7596 eval as_val
=\$
$as_ac_Header
7597 if test "x$as_val" = x
""yes; then :
7598 cat >>confdefs.h
<<_ACEOF
7599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7607 for ac_header
in dlfcn.h
7609 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7611 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7612 cat >>confdefs.h
<<_ACEOF
7613 #define HAVE_DLFCN_H 1
7634 # Check whether --enable-shared was given.
7635 if test "${enable_shared+set}" = set; then :
7636 enableval
=$enable_shared; p
=${PACKAGE-default}
7638 yes) enable_shared
=yes ;;
7639 no
) enable_shared
=no
;;
7642 # Look at the argument we got. We use all the common list separators.
7643 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7644 for pkg
in $enableval; do
7646 if test "X$pkg" = "X$p"; then
7665 # Check whether --enable-static was given.
7666 if test "${enable_static+set}" = set; then :
7667 enableval
=$enable_static; p
=${PACKAGE-default}
7669 yes) enable_static
=yes ;;
7670 no
) enable_static
=no
;;
7673 # Look at the argument we got. We use all the common list separators.
7674 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7675 for pkg
in $enableval; do
7677 if test "X$pkg" = "X$p"; then
7697 # Check whether --with-pic was given.
7698 if test "${with_pic+set}" = set; then :
7699 withval
=$with_pic; pic_mode
="$withval"
7705 test -z "$pic_mode" && pic_mode
=default
7713 # Check whether --enable-fast-install was given.
7714 if test "${enable_fast_install+set}" = set; then :
7715 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7717 yes) enable_fast_install
=yes ;;
7718 no
) enable_fast_install
=no
;;
7720 enable_fast_install
=no
7721 # Look at the argument we got. We use all the common list separators.
7722 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7723 for pkg
in $enableval; do
7725 if test "X$pkg" = "X$p"; then
7726 enable_fast_install
=yes
7733 enable_fast_install
=yes
7746 # This can be used to rebuild libtool when needed
7747 LIBTOOL_DEPS
="$ltmain"
7749 # Always use our own libtool.
7750 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7777 test -z "$LN_S" && LN_S
="ln -s"
7792 if test -n "${ZSH_VERSION+set}" ; then
7793 setopt NO_GLOB_SUBST
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7797 $as_echo_n "checking for objdir... " >&6; }
7798 if test "${lt_cv_objdir+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7801 rm -f .libs
2>/dev
/null
7802 mkdir .libs
2>/dev
/null
7803 if test -d .libs
; then
7806 # MS-DOS does not allow filenames that begin with a dot.
7809 rmdir .libs
2>/dev
/null
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7812 $as_echo "$lt_cv_objdir" >&6; }
7813 objdir
=$lt_cv_objdir
7819 cat >>confdefs.h
<<_ACEOF
7820 #define LT_OBJDIR "$lt_cv_objdir/"
7828 # AIX sometimes has problems with the GCC collect2 program. For some
7829 # reason, if we set the COLLECT_NAMES environment variable, the problems
7830 # vanish in a puff of smoke.
7831 if test "X${COLLECT_NAMES+set}" != Xset
; then
7833 export COLLECT_NAMES
7840 can_build_shared
=yes
7842 # All known linkers require a `.a' archive for static linking (except MSVC,
7843 # which needs '.lib').
7846 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7849 old_CFLAGS
="$CFLAGS"
7851 # Set sane defaults for various variables
7852 test -z "$CC" && CC
=cc
7853 test -z "$LTCC" && LTCC
=$CC
7854 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7855 test -z "$LD" && LD
=ld
7856 test -z "$ac_objext" && ac_objext
=o
7858 for cc_temp
in $compiler""; do
7860 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7861 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7866 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7869 # Only perform the check for file, if the check method requires it
7870 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7871 case $deplibs_check_method in
7873 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7875 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7876 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7877 $as_echo_n "(cached) " >&6
7881 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7884 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7885 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7886 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7887 for ac_dir
in $ac_dummy; do
7889 test -z "$ac_dir" && ac_dir
=.
7890 if test -f $ac_dir/${ac_tool_prefix}file; then
7891 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7892 if test -n "$file_magic_test_file"; then
7893 case $deplibs_check_method in
7895 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7896 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7897 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7898 $EGREP "$file_magic_regex" > /dev
/null
; then
7903 *** Warning: the command libtool uses to detect shared libraries,
7904 *** $file_magic_cmd, produces output that libtool cannot recognize.
7905 *** The result is that libtool may fail to recognize shared libraries
7906 *** as such. This will affect the creation of libtool libraries that
7907 *** depend on shared libraries, but programs linked with such libtool
7908 *** libraries will work regardless of this problem. Nevertheless, you
7909 *** may want to report the problem to your system manager and/or to
7910 *** bug-libtool@gnu.org
7920 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7925 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7926 if test -n "$MAGIC_CMD"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7928 $as_echo "$MAGIC_CMD" >&6; }
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7938 if test -z "$lt_cv_path_MAGIC_CMD"; then
7939 if test -n "$ac_tool_prefix"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7941 $as_echo_n "checking for file... " >&6; }
7942 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7947 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7950 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7951 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7952 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7953 for ac_dir
in $ac_dummy; do
7955 test -z "$ac_dir" && ac_dir
=.
7956 if test -f $ac_dir/file; then
7957 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7958 if test -n "$file_magic_test_file"; then
7959 case $deplibs_check_method in
7961 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7962 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7963 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7964 $EGREP "$file_magic_regex" > /dev
/null
; then
7969 *** Warning: the command libtool uses to detect shared libraries,
7970 *** $file_magic_cmd, produces output that libtool cannot recognize.
7971 *** The result is that libtool may fail to recognize shared libraries
7972 *** as such. This will affect the creation of libtool libraries that
7973 *** depend on shared libraries, but programs linked with such libtool
7974 *** libraries will work regardless of this problem. Nevertheless, you
7975 *** may want to report the problem to your system manager and/or to
7976 *** bug-libtool@gnu.org
7986 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7991 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7992 if test -n "$MAGIC_CMD"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7994 $as_echo "$MAGIC_CMD" >&6; }
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
8010 # Use C for the default configuration in the libtool script
8014 ac_cpp
='$CPP $CPPFLAGS'
8015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8020 # Source file extension for C test sources.
8023 # Object file extension for compiled C test sources.
8027 # Code to be used in simple compile tests
8028 lt_simple_compile_test_code
="int some_variable = 0;"
8030 # Code to be used in simple link tests
8031 lt_simple_link_test_code
='int main(){return(0);}'
8039 # If no C compiler was specified, use CC.
8042 # If no C compiler flags were specified, use CFLAGS.
8043 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8045 # Allow CC to be a program name with arguments.
8048 # Save the default compiler, since it gets overwritten when the other
8049 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8050 compiler_DEFAULT
=$CC
8052 # save warnings/boilerplate of simple test code
8053 ac_outfile
=conftest.
$ac_objext
8054 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8055 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8056 _lt_compiler_boilerplate
=`cat conftest.err`
8059 ac_outfile
=conftest.
$ac_objext
8060 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8061 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8062 _lt_linker_boilerplate
=`cat conftest.err`
8067 ## There is no encapsulation within the following macros, do not change
8068 ## the running order or otherwise move them around unless you know exactly
8069 ## what you are doing...
8070 if test -n "$compiler"; then
8072 lt_prog_compiler_no_builtin_flag
=
8074 if test "$GCC" = yes; then
8075 case $cc_basename in
8077 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8079 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8083 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8084 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8087 lt_cv_prog_compiler_rtti_exceptions
=no
8088 ac_outfile
=conftest.
$ac_objext
8089 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8090 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8091 # Insert the option either (1) after the last *FLAGS variable, or
8092 # (2) before a word containing "conftest.", or (3) at the end.
8093 # Note that $ac_compile itself does not contain backslashes and begins
8094 # with a dollar sign (not a hyphen), so the echo should work correctly.
8095 # The option is referenced via a variable to avoid confusing sed.
8096 lt_compile
=`echo "$ac_compile" | $SED \
8097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8099 -e 's:$: $lt_compiler_flag:'`
8100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8101 (eval "$lt_compile" 2>conftest.err
)
8103 cat conftest.err
>&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 if (exit $ac_status) && test -s "$ac_outfile"; then
8106 # The compiler can only warn and ignore the option if not recognized
8107 # So say no if there are warnings other than the usual output.
8108 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8109 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8110 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8111 lt_cv_prog_compiler_rtti_exceptions
=yes
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8118 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8120 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8121 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8133 lt_prog_compiler_wl
=
8134 lt_prog_compiler_pic
=
8135 lt_prog_compiler_static
=
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8138 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8140 if test "$GCC" = yes; then
8141 lt_prog_compiler_wl
='-Wl,'
8142 lt_prog_compiler_static
='-static'
8146 # All AIX code is PIC.
8147 if test "$host_cpu" = ia64
; then
8148 # AIX 5 now supports IA64 processor
8149 lt_prog_compiler_static
='-Bstatic'
8151 lt_prog_compiler_pic
='-fPIC'
8157 # see comment about AmigaOS4 .so support
8158 lt_prog_compiler_pic
='-fPIC'
8161 # FIXME: we need at least 68020 code to build shared libraries, but
8162 # adding the `-m68020' flag to GCC prevents building anything better,
8164 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8169 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8170 # PIC is the default for these OSes.
8173 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8174 # This hack is so that the source file can tell whether it is being
8175 # built for inclusion in a dll (and should export symbols for example).
8176 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8177 # (--disable-auto-import) libraries
8178 lt_prog_compiler_pic
='-DDLL_EXPORT'
8181 darwin
* | rhapsody
*)
8182 # PIC is the default on this platform
8183 # Common symbols not allowed in MH_DYLIB files
8184 lt_prog_compiler_pic
='-fno-common'
8188 # PIC is the default for Haiku.
8189 # The "-static" flag exists, but is broken.
8190 lt_prog_compiler_static
=
8194 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8195 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8196 # sets the default TLS model and affects inlining.
8202 lt_prog_compiler_pic
='-fPIC'
8208 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8209 # Instead, we relocate shared libraries at runtime.
8213 # Just because we use GCC doesn't mean we suddenly get shared libraries
8214 # on systems that don't support them.
8215 lt_prog_compiler_can_build_shared
=no
8220 # QNX uses GNU C++, but need to define -shared option too, otherwise
8222 lt_prog_compiler_pic
='-fPIC -shared'
8226 if test -d /usr
/nec
; then
8227 lt_prog_compiler_pic
=-Kconform_pic
8232 lt_prog_compiler_pic
='-fPIC'
8236 case $cc_basename in
8237 nvcc
*) # Cuda Compiler Driver 2.2
8238 lt_prog_compiler_wl
='-Xlinker '
8239 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8243 # PORTME Check for flag to pass linker flags through the system compiler.
8246 lt_prog_compiler_wl
='-Wl,'
8247 if test "$host_cpu" = ia64
; then
8248 # AIX 5 now supports IA64 processor
8249 lt_prog_compiler_static
='-Bstatic'
8251 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8255 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8256 # This hack is so that the source file can tell whether it is being
8257 # built for inclusion in a dll (and should export symbols for example).
8258 lt_prog_compiler_pic
='-DDLL_EXPORT'
8261 hpux9
* | hpux10
* | hpux11
*)
8262 lt_prog_compiler_wl
='-Wl,'
8263 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8270 lt_prog_compiler_pic
='+Z'
8273 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8274 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8277 irix5
* | irix6
* | nonstopux
*)
8278 lt_prog_compiler_wl
='-Wl,'
8279 # PIC (with -KPIC) is the default.
8280 lt_prog_compiler_static
='-non_shared'
8283 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8284 case $cc_basename in
8285 # old Intel for x86_64 which still supported -KPIC.
8287 lt_prog_compiler_wl
='-Wl,'
8288 lt_prog_compiler_pic
='-KPIC'
8289 lt_prog_compiler_static
='-static'
8291 # icc used to be incompatible with GCC.
8292 # ICC 10 doesn't accept -KPIC any more.
8294 lt_prog_compiler_wl
='-Wl,'
8295 lt_prog_compiler_pic
='-fPIC'
8296 lt_prog_compiler_static
='-static'
8298 # Lahey Fortran 8.1.
8300 lt_prog_compiler_wl
='-Wl,'
8301 lt_prog_compiler_pic
='--shared'
8302 lt_prog_compiler_static
='--static'
8304 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8305 # Portland Group compilers (*not* the Pentium gcc compiler,
8306 # which looks to be a dead project)
8307 lt_prog_compiler_wl
='-Wl,'
8308 lt_prog_compiler_pic
='-fpic'
8309 lt_prog_compiler_static
='-Bstatic'
8312 lt_prog_compiler_wl
='-Wl,'
8313 # All Alpha code is PIC.
8314 lt_prog_compiler_static
='-non_shared'
8316 xl
* | bgxl
* | bgf
* | mpixl
*)
8317 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8318 lt_prog_compiler_wl
='-Wl,'
8319 lt_prog_compiler_pic
='-qpic'
8320 lt_prog_compiler_static
='-qstaticlink'
8323 case `$CC -V 2>&1 | sed 5q` in
8324 *Sun\ F
* |
*Sun
*Fortran
*)
8325 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8326 lt_prog_compiler_pic
='-KPIC'
8327 lt_prog_compiler_static
='-Bstatic'
8328 lt_prog_compiler_wl
=''
8332 lt_prog_compiler_pic
='-KPIC'
8333 lt_prog_compiler_static
='-Bstatic'
8334 lt_prog_compiler_wl
='-Wl,'
8342 lt_prog_compiler_pic
='-KPIC'
8343 lt_prog_compiler_static
='-Bstatic'
8347 # QNX uses GNU C++, but need to define -shared option too, otherwise
8349 lt_prog_compiler_pic
='-fPIC -shared'
8352 osf3
* | osf4
* | osf5
*)
8353 lt_prog_compiler_wl
='-Wl,'
8354 # All OSF/1 code is PIC.
8355 lt_prog_compiler_static
='-non_shared'
8359 lt_prog_compiler_static
='-non_shared'
8363 lt_prog_compiler_pic
='-KPIC'
8364 lt_prog_compiler_static
='-Bstatic'
8365 case $cc_basename in
8367 lt_prog_compiler_wl
='-Qoption ld ';;
8369 lt_prog_compiler_wl
='-Wl,';;
8374 lt_prog_compiler_wl
='-Qoption ld '
8375 lt_prog_compiler_pic
='-PIC'
8376 lt_prog_compiler_static
='-Bstatic'
8379 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8380 lt_prog_compiler_wl
='-Wl,'
8381 lt_prog_compiler_pic
='-KPIC'
8382 lt_prog_compiler_static
='-Bstatic'
8386 if test -d /usr
/nec
;then
8387 lt_prog_compiler_pic
='-Kconform_pic'
8388 lt_prog_compiler_static
='-Bstatic'
8392 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8393 lt_prog_compiler_wl
='-Wl,'
8394 lt_prog_compiler_pic
='-KPIC'
8395 lt_prog_compiler_static
='-Bstatic'
8399 lt_prog_compiler_wl
='-Wl,'
8400 lt_prog_compiler_can_build_shared
=no
8404 lt_prog_compiler_pic
='-pic'
8405 lt_prog_compiler_static
='-Bstatic'
8409 lt_prog_compiler_can_build_shared
=no
8415 # For platforms which do not support PIC, -DPIC is meaningless:
8417 lt_prog_compiler_pic
=
8420 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8424 $as_echo "$lt_prog_compiler_pic" >&6; }
8432 # Check to make sure the PIC flag actually works.
8434 if test -n "$lt_prog_compiler_pic"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8436 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8437 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8440 lt_cv_prog_compiler_pic_works
=no
8441 ac_outfile
=conftest.
$ac_objext
8442 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8443 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8444 # Insert the option either (1) after the last *FLAGS variable, or
8445 # (2) before a word containing "conftest.", or (3) at the end.
8446 # Note that $ac_compile itself does not contain backslashes and begins
8447 # with a dollar sign (not a hyphen), so the echo should work correctly.
8448 # The option is referenced via a variable to avoid confusing sed.
8449 lt_compile
=`echo "$ac_compile" | $SED \
8450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8452 -e 's:$: $lt_compiler_flag:'`
8453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8454 (eval "$lt_compile" 2>conftest.err
)
8456 cat conftest.err
>&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 if (exit $ac_status) && test -s "$ac_outfile"; then
8459 # The compiler can only warn and ignore the option if not recognized
8460 # So say no if there are warnings other than the usual output.
8461 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8462 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8463 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8464 lt_cv_prog_compiler_pic_works
=yes
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8471 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8473 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8474 case $lt_prog_compiler_pic in
8476 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8479 lt_prog_compiler_pic
=
8480 lt_prog_compiler_can_build_shared
=no
8491 # Check to make sure the static flag actually works.
8493 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8495 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8496 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
8499 lt_cv_prog_compiler_static_works
=no
8500 save_LDFLAGS
="$LDFLAGS"
8501 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8502 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8503 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8504 # The linker can only warn and ignore the option if not recognized
8505 # So say no if there are warnings
8506 if test -s conftest.err
; then
8507 # Append any errors to the config.log.
8508 cat conftest.err
1>&5
8509 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8510 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8511 if diff conftest.exp conftest.er2
>/dev
/null
; then
8512 lt_cv_prog_compiler_static_works
=yes
8515 lt_cv_prog_compiler_static_works
=yes
8519 LDFLAGS
="$save_LDFLAGS"
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8523 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8525 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8528 lt_prog_compiler_static
=
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8538 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8539 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8542 lt_cv_prog_compiler_c_o
=no
8543 $RM -r conftest
2>/dev
/null
8547 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8549 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8550 # Insert the option either (1) after the last *FLAGS variable, or
8551 # (2) before a word containing "conftest.", or (3) at the end.
8552 # Note that $ac_compile itself does not contain backslashes and begins
8553 # with a dollar sign (not a hyphen), so the echo should work correctly.
8554 lt_compile
=`echo "$ac_compile" | $SED \
8555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8557 -e 's:$: $lt_compiler_flag:'`
8558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8559 (eval "$lt_compile" 2>out
/conftest.err
)
8561 cat out
/conftest.err
>&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8565 # The compiler can only warn and ignore the option if not recognized
8566 # So say no if there are warnings
8567 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8568 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8569 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8570 lt_cv_prog_compiler_c_o
=yes
8575 # SGI C++ compiler will create directory out/ii_files/ for
8576 # template instantiation
8577 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8578 $RM out
/* && rmdir out
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8585 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8593 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8594 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8597 lt_cv_prog_compiler_c_o
=no
8598 $RM -r conftest
2>/dev
/null
8602 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8604 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8605 # Insert the option either (1) after the last *FLAGS variable, or
8606 # (2) before a word containing "conftest.", or (3) at the end.
8607 # Note that $ac_compile itself does not contain backslashes and begins
8608 # with a dollar sign (not a hyphen), so the echo should work correctly.
8609 lt_compile
=`echo "$ac_compile" | $SED \
8610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8612 -e 's:$: $lt_compiler_flag:'`
8613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8614 (eval "$lt_compile" 2>out
/conftest.err
)
8616 cat out
/conftest.err
>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8620 # The compiler can only warn and ignore the option if not recognized
8621 # So say no if there are warnings
8622 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8623 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8624 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8625 lt_cv_prog_compiler_c_o
=yes
8630 # SGI C++ compiler will create directory out/ii_files/ for
8631 # template instantiation
8632 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8633 $RM out
/* && rmdir out
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8640 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8645 hard_links
="nottested"
8646 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8647 # do not overwrite the value of need_locks provided by the user
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8649 $as_echo_n "checking if we can lock with hard links... " >&6; }
8652 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8654 ln conftest.a conftest.b
2>&5 || hard_links
=no
8655 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8657 $as_echo "$hard_links" >&6; }
8658 if test "$hard_links" = no
; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8660 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8673 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8676 allow_undefined_flag
=
8677 always_export_symbols
=no
8679 archive_expsym_cmds
=
8680 compiler_needs_object
=no
8681 enable_shared_with_static_runtimes
=no
8682 export_dynamic_flag_spec
=
8683 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8684 hardcode_automatic
=no
8686 hardcode_direct_absolute
=no
8687 hardcode_libdir_flag_spec
=
8688 hardcode_libdir_flag_spec_ld
=
8689 hardcode_libdir_separator
=
8691 hardcode_shlibpath_var
=unsupported
8693 link_all_deplibs
=unknown
8696 old_archive_from_new_cmds
=
8697 old_archive_from_expsyms_cmds
=
8698 thread_safe_flag_spec
=
8699 whole_archive_flag_spec
=
8700 # include_expsyms should be a list of space-separated symbols to be *always*
8701 # included in the symbol list
8703 # exclude_expsyms can be an extended regexp of symbols to exclude
8704 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8705 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8706 # as well as any symbol that contains `d'.
8707 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8708 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8709 # platforms (ab)use it in PIC code, but their linkers get confused if
8710 # the symbol is explicitly referenced. Since portable code cannot
8711 # rely on this symbol name, it's probably fine to never include it in
8712 # preloaded symbol tables.
8713 # Exclude shared library initialization/finalization symbols.
8714 extract_expsyms_cmds
=
8717 cygwin
* | mingw
* | pw32
* | cegcc
*)
8718 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8719 # When not using gcc, we currently assume that we are using
8720 # Microsoft Visual C++.
8721 if test "$GCC" != yes; then
8726 # we just hope/assume this is gcc and not c89 (= MSVC++)
8736 # On some targets, GNU ld is compatible enough with the native linker
8737 # that we're better off using the native interface for both.
8738 lt_use_gnu_ld_interface
=no
8739 if test "$with_gnu_ld" = yes; then
8742 # The AIX port of GNU ld has always aspired to compatibility
8743 # with the native linker. However, as the warning in the GNU ld
8744 # block says, versions before 2.19.5* couldn't really create working
8745 # shared libraries, regardless of the interface used.
8746 case `$LD -v 2>&1` in
8747 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8748 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8749 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8751 lt_use_gnu_ld_interface
=yes
8756 lt_use_gnu_ld_interface
=yes
8761 if test "$lt_use_gnu_ld_interface" = yes; then
8762 # If archive_cmds runs LD, not CC, wlarc should be empty
8765 # Set some defaults for GNU ld with shared library support. These
8766 # are reset later if shared libraries are not supported. Putting them
8767 # here allows them to be overridden if necessary.
8768 runpath_var
=LD_RUN_PATH
8769 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8770 export_dynamic_flag_spec
='${wl}--export-dynamic'
8771 # ancient GNU ld didn't support --whole-archive et. al.
8772 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8773 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8775 whole_archive_flag_spec
=
8777 supports_anon_versioning
=no
8778 case `$LD -v 2>&1` in
8779 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8780 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8781 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8782 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8783 *\
2.11.
*) ;; # other 2.11 versions
8784 *) supports_anon_versioning
=yes ;;
8787 # See if GNU ld supports shared libraries.
8790 # On AIX/PPC, the GNU linker is very broken
8791 if test "$host_cpu" != ia64
; then
8795 *** Warning: the GNU linker, at least up to release 2.19, is reported
8796 *** to be unable to reliably create shared libraries on AIX.
8797 *** Therefore, libtool is disabling shared libraries support. If you
8798 *** really care for shared libraries, you may want to install binutils
8799 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8800 *** You will then need to restart the configuration process.
8809 # see comment about AmigaOS4 .so support
8810 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811 archive_expsym_cmds
=''
8814 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)'
8815 hardcode_libdir_flag_spec
='-L$libdir'
8816 hardcode_minus_L
=yes
8822 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8823 allow_undefined_flag
=unsupported
8824 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8825 # support --undefined. This deserves some investigation. FIXME
8826 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 cygwin
* | mingw
* | pw32
* | cegcc
*)
8833 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8834 # as there is no search path for DLLs.
8835 hardcode_libdir_flag_spec
='-L$libdir'
8836 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8837 allow_undefined_flag
=unsupported
8838 always_export_symbols
=no
8839 enable_shared_with_static_runtimes
=yes
8840 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8842 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8843 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8844 # If the export-symbols file already is a .def file (1st line
8845 # is EXPORTS), use it as is; otherwise, prepend...
8846 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8847 cp $export_symbols $output_objdir/$soname.def;
8849 echo EXPORTS > $output_objdir/$soname.def;
8850 cat $export_symbols >> $output_objdir/$soname.def;
8852 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8859 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860 link_all_deplibs
=yes
8865 hardcode_shlibpath_var
=no
8866 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8867 export_dynamic_flag_spec
='${wl}-E'
8868 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8869 # Instead, shared libraries are loaded at an image base (0x10000000 by
8870 # default) and relocated if they conflict, which is a slow very memory
8871 # consuming and fragmenting process. To avoid this, we pick a random,
8872 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8873 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8874 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8875 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'
8878 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8880 if test "$host_os" = linux-dietlibc
; then
8881 case $cc_basename in
8882 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8885 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8886 && test "$tmp_diet" = no
8889 tmp_sharedflag
='-shared'
8890 case $cc_basename,$host_cpu in
8891 pgcc
*) # Portland Group C compiler
8892 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'
8893 tmp_addflag
=' $pic_flag'
8895 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8896 # Portland Group f77 and f90 compilers
8897 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'
8898 tmp_addflag
=' $pic_flag -Mnomain' ;;
8899 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8900 tmp_addflag
=' -i_dynamic' ;;
8901 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8902 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8903 ifc
* | ifort
*) # Intel Fortran compiler
8904 tmp_addflag
=' -nofor_main' ;;
8905 lf95
*) # Lahey Fortran 8.1
8906 whole_archive_flag_spec
=
8907 tmp_sharedflag
='--shared' ;;
8908 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8909 tmp_sharedflag
='-qmkshrobj'
8911 nvcc
*) # Cuda Compiler Driver 2.2
8912 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'
8913 compiler_needs_object
=yes
8916 case `$CC -V 2>&1 | sed 5q` in
8917 *Sun\ C
*) # Sun C 5.9
8918 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'
8919 compiler_needs_object
=yes
8920 tmp_sharedflag
='-G' ;;
8921 *Sun\ F
*) # Sun Fortran 8.3
8922 tmp_sharedflag
='-G' ;;
8924 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8926 if test "x$supports_anon_versioning" = xyes
; then
8927 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8929 echo "local: *; };" >> $output_objdir/$libname.ver~
8930 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8933 case $cc_basename in
8934 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8935 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8936 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8937 hardcode_libdir_flag_spec
=
8938 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8939 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8940 if test "x$supports_anon_versioning" = xyes
; then
8941 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8942 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8943 echo "local: *; };" >> $output_objdir/$libname.ver~
8944 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8954 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8955 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8958 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8959 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8964 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8968 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8969 *** create shared libraries on Solaris systems. Therefore, libtool
8970 *** is disabling shared libraries support. We urge you to upgrade GNU
8971 *** binutils to release 2.9.1 or newer. Another option is to modify
8972 *** your PATH or compiler configuration so that the native linker is
8973 *** used, and then restart.
8976 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8977 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8984 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8985 case `$LD -v 2>&1` in
8986 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8990 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8991 *** reliably create shared libraries on SCO systems. Therefore, libtool
8992 *** is disabling shared libraries support. We urge you to upgrade GNU
8993 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8994 *** your PATH or compiler configuration so that the native linker is
8995 *** used, and then restart.
9000 # For security reasons, it is highly recommended that you always
9001 # use absolute paths for naming shared libraries, and exclude the
9002 # DT_RUNPATH tag from executables and libraries. But doing so
9003 # requires that you compile everything twice, which is a pain.
9004 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9005 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9006 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9019 hardcode_shlibpath_var
=no
9023 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9024 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9025 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032 if test "$ld_shlibs" = no
; then
9034 hardcode_libdir_flag_spec
=
9035 export_dynamic_flag_spec
=
9036 whole_archive_flag_spec
=
9039 # PORTME fill in a description of your system's linker (not GNU ld)
9042 allow_undefined_flag
=unsupported
9043 always_export_symbols
=yes
9044 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'
9045 # Note: this linker hardcodes the directories in LIBPATH if there
9046 # are no directories specified by -L.
9047 hardcode_minus_L
=yes
9048 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9049 # Neither direct hardcoding nor static linking is supported with a
9051 hardcode_direct
=unsupported
9056 if test "$host_cpu" = ia64
; then
9057 # On IA64, the linker does run time linking by default, so we don't
9058 # have to do anything special.
9059 aix_use_runtimelinking
=no
9060 exp_sym_flag
='-Bexport'
9063 # If we're using GNU nm, then we don't want the "-C" option.
9064 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9065 # Also, AIX nm treats weak defined symbols like other global
9066 # defined symbols, whereas GNU nm marks them as "W".
9067 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9068 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'
9070 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9072 aix_use_runtimelinking
=no
9074 # Test if we are trying to use run time linking or normal
9075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9076 # need to do runtime linking.
9077 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9078 for ld_flag
in $LDFLAGS; do
9079 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9080 aix_use_runtimelinking
=yes
9087 exp_sym_flag
='-bexport'
9088 no_entry_flag
='-bnoentry'
9091 # When large executables or shared objects are built, AIX ld can
9092 # have problems creating the table of contents. If linking a library
9093 # or program results in "error TOC overflow" add -mminimal-toc to
9094 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9095 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9099 hardcode_direct_absolute
=yes
9100 hardcode_libdir_separator
=':'
9101 link_all_deplibs
=yes
9102 file_list_spec
='${wl}-f,'
9104 if test "$GCC" = yes; then
9105 case $host_os in aix4.
[012]|aix4.
[012].
*)
9106 # We only want to do this on AIX 4.2 and lower, the check
9107 # below for broken collect2 doesn't work under 4.3+
9108 collect2name
=`${CC} -print-prog-name=collect2`
9109 if test -f "$collect2name" &&
9110 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9112 # We have reworked collect2
9115 # We have old collect2
9116 hardcode_direct
=unsupported
9117 # It fails to find uninstalled libraries when the uninstalled
9118 # path is not listed in the libpath. Setting hardcode_minus_L
9119 # to unsupported forces relinking
9120 hardcode_minus_L
=yes
9121 hardcode_libdir_flag_spec
='-L$libdir'
9122 hardcode_libdir_separator
=
9126 shared_flag
='-shared'
9127 if test "$aix_use_runtimelinking" = yes; then
9128 shared_flag
="$shared_flag "'${wl}-G'
9132 if test "$host_cpu" = ia64
; then
9133 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9134 # chokes on -Wl,-G. The following line is correct:
9137 if test "$aix_use_runtimelinking" = yes; then
9138 shared_flag
='${wl}-G'
9140 shared_flag
='${wl}-bM:SRE'
9145 export_dynamic_flag_spec
='${wl}-bexpall'
9146 # It seems that -bexpall does not export symbols beginning with
9147 # underscore (_), so it is better to generate a list of symbols to export.
9148 always_export_symbols
=yes
9149 if test "$aix_use_runtimelinking" = yes; then
9150 # Warning - without using the other runtime loading flags (-brtl),
9151 # -berok will link without error, but may produce a broken library.
9152 allow_undefined_flag
='-berok'
9153 # Determine the default libpath from the value encoded in an
9155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9166 if ac_fn_c_try_link
"$LINENO"; then :
9168 lt_aix_libpath_sed
='
9169 /Import File Strings/,/^$/ {
9175 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9176 # Check for a 64-bit object if we didn't find anything.
9177 if test -z "$aix_libpath"; then
9178 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181 rm -f core conftest.err conftest.
$ac_objext \
9182 conftest
$ac_exeext conftest.
$ac_ext
9183 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9185 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9186 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"
9188 if test "$host_cpu" = ia64
; then
9189 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9190 allow_undefined_flag
="-z nodefs"
9191 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"
9193 # Determine the default libpath from the value encoded in an
9195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9206 if ac_fn_c_try_link
"$LINENO"; then :
9208 lt_aix_libpath_sed
='
9209 /Import File Strings/,/^$/ {
9215 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9216 # Check for a 64-bit object if we didn't find anything.
9217 if test -z "$aix_libpath"; then
9218 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9221 rm -f core conftest.err conftest.
$ac_objext \
9222 conftest
$ac_exeext conftest.
$ac_ext
9223 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9225 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9226 # Warning - without using the other run time loading flags,
9227 # -berok will link without error, but may produce a broken library.
9228 no_undefined_flag
=' ${wl}-bernotok'
9229 allow_undefined_flag
=' ${wl}-berok'
9230 if test "$with_gnu_ld" = yes; then
9231 # We only use this code for GNU lds that support --whole-archive.
9232 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9234 # Exported symbols can be pulled into shared objects from archives
9235 whole_archive_flag_spec
='$convenience'
9237 archive_cmds_need_lc
=yes
9238 # This is similar to how AIX traditionally builds its shared libraries.
9239 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'
9247 # see comment about AmigaOS4 .so support
9248 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9249 archive_expsym_cmds
=''
9252 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)'
9253 hardcode_libdir_flag_spec
='-L$libdir'
9254 hardcode_minus_L
=yes
9260 export_dynamic_flag_spec
=-rdynamic
9263 cygwin
* | mingw
* | pw32
* | cegcc
*)
9264 # When not using gcc, we currently assume that we are using
9265 # Microsoft Visual C++.
9266 # hardcode_libdir_flag_spec is actually meaningless, as there is
9267 # no search path for DLLs.
9268 hardcode_libdir_flag_spec
=' '
9269 allow_undefined_flag
=unsupported
9270 # Tell ltmain to make .lib files, not .a files.
9272 # Tell ltmain to make .dll files, not .so files.
9274 # FIXME: Setting linknames here is a bad hack.
9275 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9276 # The linker will automatically build a .lib file if we build a DLL.
9277 old_archive_from_new_cmds
='true'
9278 # FIXME: Should let the user specify the lib program.
9279 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9280 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9281 enable_shared_with_static_runtimes
=yes
9284 darwin
* | rhapsody
*)
9287 archive_cmds_need_lc
=no
9289 hardcode_automatic
=yes
9290 hardcode_shlibpath_var
=unsupported
9291 if test "$lt_cv_ld_force_load" = "yes"; then
9292 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\"`'
9294 whole_archive_flag_spec
=''
9296 link_all_deplibs
=yes
9297 allow_undefined_flag
="$_lt_dar_allow_undefined"
9298 case $cc_basename in
9299 ifort
*) _lt_dar_can_shared
=yes ;;
9300 *) _lt_dar_can_shared
=$GCC ;;
9302 if test "$_lt_dar_can_shared" = "yes"; then
9303 output_verbose_link_cmd
=func_echo_all
9304 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9305 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9306 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}"
9307 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}"
9316 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317 hardcode_libdir_flag_spec
='-L$libdir'
9318 hardcode_shlibpath_var
=no
9321 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9322 # support. Future versions do this automatically, but an explicit c++rt0.o
9323 # does not break anything, and helps significantly (at the cost of a little
9326 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9327 hardcode_libdir_flag_spec
='-R$libdir'
9329 hardcode_shlibpath_var
=no
9332 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9334 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_minus_L
=yes
9337 hardcode_shlibpath_var
=no
9340 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9341 freebsd
* | dragonfly
*)
9342 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9343 hardcode_libdir_flag_spec
='-R$libdir'
9345 hardcode_shlibpath_var
=no
9349 if test "$GCC" = yes; then
9350 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'
9352 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'
9354 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9355 hardcode_libdir_separator
=:
9358 # hardcode_minus_L: Not really in the search PATH,
9359 # but as the default location of the library.
9360 hardcode_minus_L
=yes
9361 export_dynamic_flag_spec
='${wl}-E'
9365 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9366 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9368 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9370 if test "$with_gnu_ld" = no
; then
9371 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9372 hardcode_libdir_flag_spec_ld
='+b $libdir'
9373 hardcode_libdir_separator
=:
9375 hardcode_direct_absolute
=yes
9376 export_dynamic_flag_spec
='${wl}-E'
9377 # hardcode_minus_L: Not really in the search PATH,
9378 # but as the default location of the library.
9379 hardcode_minus_L
=yes
9384 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9387 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9406 # Older versions of the 11.00 compiler do not understand -b yet
9407 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9409 $as_echo_n "checking if $CC understands -b... " >&6; }
9410 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9411 $as_echo_n "(cached) " >&6
9413 lt_cv_prog_compiler__b
=no
9414 save_LDFLAGS
="$LDFLAGS"
9415 LDFLAGS
="$LDFLAGS -b"
9416 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9417 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9418 # The linker can only warn and ignore the option if not recognized
9419 # So say no if there are warnings
9420 if test -s conftest.err
; then
9421 # Append any errors to the config.log.
9422 cat conftest.err
1>&5
9423 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9424 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9425 if diff conftest.exp conftest.er2
>/dev
/null
; then
9426 lt_cv_prog_compiler__b
=yes
9429 lt_cv_prog_compiler__b
=yes
9433 LDFLAGS
="$save_LDFLAGS"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9437 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9439 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9440 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9448 if test "$with_gnu_ld" = no
; then
9449 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9450 hardcode_libdir_separator
=:
9455 hardcode_shlibpath_var
=no
9459 hardcode_direct_absolute
=yes
9460 export_dynamic_flag_spec
='${wl}-E'
9462 # hardcode_minus_L: Not really in the search PATH,
9463 # but as the default location of the library.
9464 hardcode_minus_L
=yes
9470 irix5
* | irix6
* | nonstopux
*)
9471 if test "$GCC" = yes; then
9472 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'
9473 # Try to use the -exported_symbol ld option, if it does not
9474 # work, assume that -exports_file does not work either and
9475 # implicitly export all symbols.
9476 save_LDFLAGS
="$LDFLAGS"
9477 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9482 if ac_fn_c_try_link
"$LINENO"; then :
9483 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'
9486 rm -f core conftest.err conftest.
$ac_objext \
9487 conftest
$ac_exeext conftest.
$ac_ext
9488 LDFLAGS
="$save_LDFLAGS"
9490 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'
9491 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'
9493 archive_cmds_need_lc
='no'
9494 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9495 hardcode_libdir_separator
=:
9497 link_all_deplibs
=yes
9501 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9502 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9504 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9506 hardcode_libdir_flag_spec
='-R$libdir'
9508 hardcode_shlibpath_var
=no
9512 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9515 hardcode_libdir_separator
=:
9516 hardcode_shlibpath_var
=no
9523 if test -f /usr
/libexec
/ld.so
; then
9525 hardcode_shlibpath_var
=no
9526 hardcode_direct_absolute
=yes
9527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9528 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9530 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9531 export_dynamic_flag_spec
='${wl}-E'
9534 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9535 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_libdir_flag_spec
='-R$libdir'
9539 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9540 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9550 hardcode_libdir_flag_spec
='-L$libdir'
9551 hardcode_minus_L
=yes
9552 allow_undefined_flag
=unsupported
9553 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'
9554 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9558 if test "$GCC" = yes; then
9559 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9560 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'
9562 allow_undefined_flag
=' -expect_unresolved \*'
9563 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'
9565 archive_cmds_need_lc
='no'
9566 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9567 hardcode_libdir_separator
=:
9570 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9571 if test "$GCC" = yes; then
9572 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9573 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'
9574 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9576 allow_undefined_flag
=' -expect_unresolved \*'
9577 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'
9578 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~
9579 $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'
9581 # Both c and cxx compiler support -rpath directly
9582 hardcode_libdir_flag_spec
='-rpath $libdir'
9584 archive_cmds_need_lc
='no'
9585 hardcode_libdir_separator
=:
9589 no_undefined_flag
=' -z defs'
9590 if test "$GCC" = yes; then
9592 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9594 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9596 case `$CC -V 2>&1` in
9599 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9601 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9605 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9607 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9611 hardcode_libdir_flag_spec
='-R$libdir'
9612 hardcode_shlibpath_var
=no
9614 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9616 # The compiler driver will combine and reorder linker options,
9617 # but understands `-z linker_flag'. GCC discards it without `$wl',
9618 # but is careful enough not to reorder.
9619 # Supported since Solaris 2.6 (maybe 2.5.1?)
9620 if test "$GCC" = yes; then
9621 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9623 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9627 link_all_deplibs
=yes
9631 if test "x$host_vendor" = xsequent
; then
9632 # Use $CC to link under sequent, because it throws in some extra .o
9633 # files that make .init and .fini sections work.
9634 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9636 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_libdir_flag_spec
='-L$libdir'
9640 hardcode_minus_L
=yes
9641 hardcode_shlibpath_var
=no
9645 case $host_vendor in
9647 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_direct
=yes # is this really true???
9651 ## LD is ld it makes a PLAMLIB
9652 ## CC just makes a GrossModule.
9653 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9654 reload_cmds
='$CC -r -o $output$reload_objs'
9658 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9662 runpath_var
='LD_RUN_PATH'
9663 hardcode_shlibpath_var
=no
9667 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_shlibpath_var
=no
9669 export_dynamic_flag_spec
='-Bexport'
9673 if test -d /usr
/nec
; then
9674 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_shlibpath_var
=no
9676 runpath_var
=LD_RUN_PATH
9677 hardcode_runpath_var
=yes
9682 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9683 no_undefined_flag
='${wl}-z,text'
9684 archive_cmds_need_lc
=no
9685 hardcode_shlibpath_var
=no
9686 runpath_var
='LD_RUN_PATH'
9688 if test "$GCC" = yes; then
9689 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 sysv5
* | sco3.2v5
* | sco5v6
*)
9698 # Note: We can NOT use -z defs as we might desire, because we do not
9699 # link with -lc, and that would cause any symbols used from libc to
9700 # always be unresolved, which means just about no library would
9701 # ever link correctly. If we're not using GNU ld we use -z text
9702 # though, which does catch some bad symbols but isn't as heavy-handed
9704 no_undefined_flag
='${wl}-z,text'
9705 allow_undefined_flag
='${wl}-z,nodefs'
9706 archive_cmds_need_lc
=no
9707 hardcode_shlibpath_var
=no
9708 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9709 hardcode_libdir_separator
=':'
9710 link_all_deplibs
=yes
9711 export_dynamic_flag_spec
='${wl}-Bexport'
9712 runpath_var
='LD_RUN_PATH'
9714 if test "$GCC" = yes; then
9715 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_libdir_flag_spec
='-L$libdir'
9726 hardcode_shlibpath_var
=no
9734 if test x
$host_vendor = xsni
; then
9736 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9737 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9744 $as_echo "$ld_shlibs" >&6; }
9745 test "$ld_shlibs" = no
&& can_build_shared
=no
9747 with_gnu_ld
=$with_gnu_ld
9764 # Do we need to explicitly link libc?
9766 case "x$archive_cmds_need_lc" in
9768 # Assume -lc should be added
9769 archive_cmds_need_lc
=yes
9771 if test "$enable_shared" = yes && test "$GCC" = yes; then
9772 case $archive_cmds in
9774 # FIXME: we may have to deal with multi-command sequences.
9777 # Test whether the compiler implicitly links with -lc since on some
9778 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9779 # to ld, don't add -lc before -lgcc.
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9781 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9782 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9783 $as_echo_n "(cached) " >&6
9786 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9789 (eval $ac_compile) 2>&5
9791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9792 test $ac_status = 0; } 2>conftest.err
; then
9795 libobjs
=conftest.
$ac_objext
9797 wl
=$lt_prog_compiler_wl
9798 pic_flag
=$lt_prog_compiler_pic
9804 lt_save_allow_undefined_flag
=$allow_undefined_flag
9805 allow_undefined_flag
=
9806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9807 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9810 test $ac_status = 0; }
9812 lt_cv_archive_cmds_need_lc
=no
9814 lt_cv_archive_cmds_need_lc
=yes
9816 allow_undefined_flag
=$lt_save_allow_undefined_flag
9818 cat conftest.err
1>&5
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9824 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9825 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9989 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9991 if test "$GCC" = yes; then
9993 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9994 *) lt_awk_arg
="/^libraries:/" ;;
9997 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
9998 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10000 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10001 case $lt_search_path_spec in
10003 # if the path contains ";" then we assume it to be the separator
10004 # otherwise default to the standard path separator (i.e. ":") - it is
10005 # assumed that no part of a normal pathname contains ";" but that should
10006 # okay in the real world where ";" in dirpaths is itself problematic.
10007 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10010 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10013 # Ok, now we have the path, separated by spaces, we can step through it
10014 # and add multilib dir if necessary.
10015 lt_tmp_lt_search_path_spec
=
10016 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10017 for lt_sys_path
in $lt_search_path_spec; do
10018 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10019 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10021 test -d "$lt_sys_path" && \
10022 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10025 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10026 BEGIN {RS=" "; FS="/|\n";} {
10029 for (lt_i = NF; lt_i > 0; lt_i--) {
10030 if ($lt_i != "" && $lt_i != ".") {
10031 if ($lt_i == "..") {
10034 if (lt_count == 0) {
10035 lt_foo="/" $lt_i lt_foo;
10042 if (lt_foo != "") { lt_freq[lt_foo]++; }
10043 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10045 # AWK program above erroneously prepends '/' to C:/dos/paths
10048 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10049 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10051 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10053 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10055 library_names_spec
=
10056 libname_spec
='lib$name'
10060 postuninstall_cmds
=
10064 shlibpath_overrides_runpath
=unknown
10066 dynamic_linker
="$host_os ld.so"
10067 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10068 need_lib_prefix
=unknown
10069 hardcode_into_libs
=no
10071 # when you set need_version to no, make sure it does not cause -set_version
10072 # flags to be left without arguments
10073 need_version
=unknown
10078 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10079 shlibpath_var
=LIBPATH
10081 # AIX 3 has no versioning support, so we append a major version to the name.
10082 soname_spec
='${libname}${release}${shared_ext}$major'
10089 hardcode_into_libs
=yes
10090 if test "$host_cpu" = ia64
; then
10091 # AIX 5 supports IA64
10092 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10093 shlibpath_var
=LD_LIBRARY_PATH
10095 # With GCC up to 2.95.x, collect2 would create an import file
10096 # for dependence libraries. The import file would start with
10097 # the line `#! .'. This would cause the generated library to
10098 # depend on `.', always an invalid library. This was fixed in
10099 # development snapshots of GCC prior to 3.0.
10101 aix4 | aix4.
[01] | aix4.
[01].
*)
10102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10104 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10107 can_build_shared
=no
10111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10112 # soname into executable. Probably we can add versioning support to
10113 # collect2, so additional links can be useful in future.
10114 if test "$aix_use_runtimelinking" = yes; then
10115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10116 # instead of lib<name>.a to let people know that these are not
10117 # typical AIX shared libraries.
10118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 # We preserve .a as extension for shared libraries through AIX4.2
10121 # and later when we are not doing run time linking.
10122 library_names_spec
='${libname}${release}.a $libname.a'
10123 soname_spec
='${libname}${release}${shared_ext}$major'
10125 shlibpath_var
=LIBPATH
10132 # Since July 2007 AmigaOS4 officially supports .so libraries.
10133 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 library_names_spec
='$libname.ixlibrary $libname.a'
10138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10139 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'
10145 library_names_spec
='${libname}${shared_ext}'
10146 dynamic_linker
="$host_os ld.so"
10147 shlibpath_var
=LIBRARY_PATH
10153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec
='${libname}${release}${shared_ext}$major'
10155 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10156 shlibpath_var
=LD_LIBRARY_PATH
10157 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10158 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10159 # the default ld.so.conf also contains /usr/contrib/lib and
10160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10161 # libtool to hard-code these into programs
10164 cygwin
* | mingw
* | pw32
* | cegcc
*)
10165 version_type
=windows
10170 case $GCC,$host_os in
10171 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10172 library_names_spec
='$libname.dll.a'
10173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10174 postinstall_cmds
='base_file=`basename \${file}`~
10175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10176 dldir=$destdir/`dirname \$dlpath`~
10177 test -d \$dldir || mkdir -p \$dldir~
10178 $install_prog $dir/$dlname \$dldir/$dlname~
10179 chmod a+x \$dldir/$dlname~
10180 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10181 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10183 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10184 dlpath=$dir/\$dldll~
10186 shlibpath_overrides_runpath
=yes
10190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10191 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10193 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10196 # MinGW DLLs use traditional 'lib' prefix
10197 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10200 # pw32 DLLs use 'pw' prefix rather than 'lib'
10201 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10207 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10210 dynamic_linker
='Win32 ld.exe'
10211 # FIXME: first we should search . and the directory the executable is in
10215 darwin
* | rhapsody
*)
10216 dynamic_linker
="$host_os dyld"
10217 version_type
=darwin
10220 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10221 soname_spec
='${libname}${release}${major}$shared_ext'
10222 shlibpath_overrides_runpath
=yes
10223 shlibpath_var
=DYLD_LIBRARY_PATH
10224 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10226 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10227 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10235 soname_spec
='${libname}${release}${shared_ext}$major'
10236 shlibpath_var
=LD_LIBRARY_PATH
10239 freebsd
* | dragonfly
*)
10240 # DragonFly does not have aout. When/if they implement a new
10241 # versioning mechanism, adjust this.
10242 if test -x /usr
/bin
/objformat
; then
10243 objformat
=`/usr/bin/objformat`
10246 freebsd
[23].
*) objformat
=aout
;;
10247 *) objformat
=elf
;;
10250 version_type
=freebsd-
$objformat
10251 case $version_type in
10253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10258 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10262 shlibpath_var
=LD_LIBRARY_PATH
10265 shlibpath_overrides_runpath
=yes
10267 freebsd3.
[01]* | freebsdelf3.
[01]*)
10268 shlibpath_overrides_runpath
=yes
10269 hardcode_into_libs
=yes
10271 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10272 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10273 shlibpath_overrides_runpath
=no
10274 hardcode_into_libs
=yes
10276 *) # from 4.6 on, and DragonFly
10277 shlibpath_overrides_runpath
=yes
10278 hardcode_into_libs
=yes
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
10290 hardcode_into_libs
=yes
10297 dynamic_linker
="$host_os runtime_loader"
10298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10299 soname_spec
='${libname}${release}${shared_ext}$major'
10300 shlibpath_var
=LIBRARY_PATH
10301 shlibpath_overrides_runpath
=yes
10302 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10303 hardcode_into_libs
=yes
10306 hpux9
* | hpux10
* | hpux11
*)
10307 # Give a soname corresponding to the major version so that dld.sl refuses to
10308 # link against other versions.
10315 hardcode_into_libs
=yes
10316 dynamic_linker
="$host_os dld.so"
10317 shlibpath_var
=LD_LIBRARY_PATH
10318 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 soname_spec
='${libname}${release}${shared_ext}$major'
10321 if test "X$HPUX_IA64_MODE" = X32
; then
10322 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10324 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10326 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10330 hardcode_into_libs
=yes
10331 dynamic_linker
="$host_os dld.sl"
10332 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10333 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10334 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 soname_spec
='${libname}${release}${shared_ext}$major'
10336 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10337 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10341 dynamic_linker
="$host_os dld.sl"
10342 shlibpath_var
=SHLIB_PATH
10343 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 soname_spec
='${libname}${release}${shared_ext}$major'
10348 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10349 postinstall_cmds
='chmod 555 $lib'
10350 # or fails outright, so override atomically:
10351 install_override_mode
=555
10358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359 soname_spec
='${libname}${release}${shared_ext}$major'
10360 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10361 shlibpath_var
=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath
=no
10363 hardcode_into_libs
=yes
10366 irix5
* | irix6
* | nonstopux
*)
10368 nonstopux
*) version_type
=nonstopux
;;
10370 if test "$lt_cv_prog_gnu_ld" = yes; then
10378 soname_spec
='${libname}${release}${shared_ext}$major'
10379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10381 irix5
* | nonstopux
*)
10382 libsuff
= shlibsuff
=
10385 case $LD in # libtool.m4 will add one of these switches to LD
10386 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10387 libsuff
= shlibsuff
= libmagic
=32-bit;;
10388 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10389 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10390 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10391 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10392 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10396 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10397 shlibpath_overrides_runpath
=no
10398 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10399 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10400 hardcode_into_libs
=yes
10403 # No shared lib support for Linux oldld, aout, or coff.
10404 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10408 # This must be Linux ELF.
10409 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10414 soname_spec
='${libname}${release}${shared_ext}$major'
10415 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10416 shlibpath_var
=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath
=no
10419 # Some binutils ld are patched to set DT_RUNPATH
10420 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10423 lt_cv_shlibpath_overrides_runpath
=no
10424 save_LDFLAGS
=$LDFLAGS
10425 save_libdir
=$libdir
10426 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10427 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10439 if ac_fn_c_try_link
"$LINENO"; then :
10440 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10441 lt_cv_shlibpath_overrides_runpath
=yes
10444 rm -f core conftest.err conftest.
$ac_objext \
10445 conftest
$ac_exeext conftest.
$ac_ext
10446 LDFLAGS
=$save_LDFLAGS
10447 libdir
=$save_libdir
10451 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10453 # This implies no fast_install, which is unacceptable.
10454 # Some rework will be needed to allow for fast_install
10455 # before this can be enabled.
10456 hardcode_into_libs
=yes
10458 # Append ld.so.conf contents to the search path
10459 if test -f /etc
/ld.so.conf
; then
10460 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' ' '`
10461 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10464 # We used to test for /lib/ld.so.1 and disable shared libraries on
10465 # powerpc, because MkLinux only supported shared libraries with the
10466 # GNU dynamic linker. Since this was broken with cross compilers,
10467 # most powerpc-linux boxes support dynamic linking these days and
10468 # people can always --disable-shared, the test was removed, and we
10469 # assume the GNU/Linux dynamic linker is in use.
10470 dynamic_linker
='GNU/Linux ld.so'
10477 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10478 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10479 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10480 dynamic_linker
='NetBSD (a.out) ld.so'
10482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10483 soname_spec
='${libname}${release}${shared_ext}$major'
10484 dynamic_linker
='NetBSD ld.elf_so'
10486 shlibpath_var
=LD_LIBRARY_PATH
10487 shlibpath_overrides_runpath
=yes
10488 hardcode_into_libs
=yes
10493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10494 shlibpath_var
=LD_LIBRARY_PATH
10495 shlibpath_overrides_runpath
=yes
10502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 soname_spec
='${libname}${release}${shared_ext}$major'
10504 shlibpath_var
=LD_LIBRARY_PATH
10505 shlibpath_overrides_runpath
=no
10506 hardcode_into_libs
=yes
10507 dynamic_linker
='ldqnx.so'
10512 sys_lib_dlsearch_path_spec
="/usr/lib"
10514 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10516 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10517 *) need_version
=no
;;
10519 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10520 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10521 shlibpath_var
=LD_LIBRARY_PATH
10522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10524 openbsd2.
[89] | openbsd2.
[89].
*)
10525 shlibpath_overrides_runpath
=no
10528 shlibpath_overrides_runpath
=yes
10532 shlibpath_overrides_runpath
=yes
10537 libname_spec
='$name'
10540 library_names_spec
='$libname${shared_ext} $libname.a'
10541 dynamic_linker
='OS/2 ld.exe'
10542 shlibpath_var
=LIBPATH
10545 osf3
* | osf4
* | osf5
*)
10549 soname_spec
='${libname}${release}${shared_ext}$major'
10550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 shlibpath_var
=LD_LIBRARY_PATH
10552 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10553 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10564 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 soname_spec
='${libname}${release}${shared_ext}$major'
10566 shlibpath_var
=LD_LIBRARY_PATH
10567 shlibpath_overrides_runpath
=yes
10568 hardcode_into_libs
=yes
10569 # ldd complains unless libraries are executable
10570 postinstall_cmds
='chmod +x $lib'
10575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10576 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10577 shlibpath_var
=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath
=yes
10579 if test "$with_gnu_ld" = yes; then
10587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec
='${libname}${release}${shared_ext}$major'
10589 shlibpath_var
=LD_LIBRARY_PATH
10590 case $host_vendor in
10592 shlibpath_overrides_runpath
=no
10594 runpath_var
=LD_RUN_PATH
10602 shlibpath_overrides_runpath
=no
10603 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10609 if test -d /usr
/nec
;then
10611 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10612 soname_spec
='$libname${shared_ext}.$major'
10613 shlibpath_var
=LD_LIBRARY_PATH
10617 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10618 version_type
=freebsd-elf
10621 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10622 soname_spec
='${libname}${release}${shared_ext}$major'
10623 shlibpath_var
=LD_LIBRARY_PATH
10624 shlibpath_overrides_runpath
=yes
10625 hardcode_into_libs
=yes
10626 if test "$with_gnu_ld" = yes; then
10627 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10629 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10632 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10636 sys_lib_dlsearch_path_spec
='/usr/lib'
10640 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645 shlibpath_var
=LD_LIBRARY_PATH
10646 shlibpath_overrides_runpath
=no
10647 hardcode_into_libs
=yes
10652 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 soname_spec
='${libname}${release}${shared_ext}$major'
10654 shlibpath_var
=LD_LIBRARY_PATH
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10662 $as_echo "$dynamic_linker" >&6; }
10663 test "$dynamic_linker" = no
&& can_build_shared
=no
10665 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10666 if test "$GCC" = yes; then
10667 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10670 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10671 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10673 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10674 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10769 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10771 if test -n "$hardcode_libdir_flag_spec" ||
10772 test -n "$runpath_var" ||
10773 test "X$hardcode_automatic" = "Xyes" ; then
10775 # We can hardcode non-existent directories.
10776 if test "$hardcode_direct" != no
&&
10777 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10778 # have to relink, otherwise we might link with an installed library
10779 # when we should be linking with a yet-to-be-installed one
10780 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10781 test "$hardcode_minus_L" != no
; then
10782 # Linking always hardcodes the temporary library directory.
10783 hardcode_action
=relink
10785 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10786 hardcode_action
=immediate
10789 # We cannot hardcode anything, or else we can only hardcode existing
10791 hardcode_action
=unsupported
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10794 $as_echo "$hardcode_action" >&6; }
10796 if test "$hardcode_action" = relink ||
10797 test "$inherit_rpath" = yes; then
10798 # Fast installation is not supported
10799 enable_fast_install
=no
10800 elif test "$shlibpath_overrides_runpath" = yes ||
10801 test "$enable_shared" = no
; then
10802 # Fast installation is not necessary
10803 enable_fast_install
=needless
10811 if test "x$enable_dlopen" != xyes
; then
10812 enable_dlopen
=unknown
10813 enable_dlopen_self
=unknown
10814 enable_dlopen_self_static
=unknown
10821 lt_cv_dlopen
="load_add_on"
10823 lt_cv_dlopen_self
=yes
10826 mingw
* | pw32
* | cegcc
*)
10827 lt_cv_dlopen
="LoadLibrary"
10832 lt_cv_dlopen
="dlopen"
10837 # if libdl is installed we need to link against it
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10839 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10840 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10843 ac_check_lib_save_LIBS
=$LIBS
10845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10863 if ac_fn_c_try_link
"$LINENO"; then :
10864 ac_cv_lib_dl_dlopen
=yes
10866 ac_cv_lib_dl_dlopen
=no
10868 rm -f core conftest.err conftest.
$ac_objext \
10869 conftest
$ac_exeext conftest.
$ac_ext
10870 LIBS
=$ac_check_lib_save_LIBS
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10873 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10874 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10875 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10878 lt_cv_dlopen
="dyld"
10880 lt_cv_dlopen_self
=yes
10887 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10888 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10889 lt_cv_dlopen
="shl_load"
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10892 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10893 if test "${ac_cv_lib_dld_shl_load+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. */
10911 return shl_load ();
10916 if ac_fn_c_try_link
"$LINENO"; then :
10917 ac_cv_lib_dld_shl_load
=yes
10919 ac_cv_lib_dld_shl_load
=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_dld_shl_load" >&5
10926 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10927 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10928 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10930 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10931 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10932 lt_cv_dlopen
="dlopen"
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10935 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10939 ac_check_lib_save_LIBS
=$LIBS
10941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10944 /* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10959 if ac_fn_c_try_link
"$LINENO"; then :
10960 ac_cv_lib_dl_dlopen
=yes
10962 ac_cv_lib_dl_dlopen
=no
10964 rm -f core conftest.err conftest.
$ac_objext \
10965 conftest
$ac_exeext conftest.
$ac_ext
10966 LIBS
=$ac_check_lib_save_LIBS
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10970 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10971 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10974 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10975 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10978 ac_check_lib_save_LIBS
=$LIBS
10979 LIBS
="-lsvld $LIBS"
10980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10983 /* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10998 if ac_fn_c_try_link
"$LINENO"; then :
10999 ac_cv_lib_svld_dlopen
=yes
11001 ac_cv_lib_svld_dlopen
=no
11003 rm -f core conftest.err conftest.
$ac_objext \
11004 conftest
$ac_exeext conftest.
$ac_ext
11005 LIBS
=$ac_check_lib_save_LIBS
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11008 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11009 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11010 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11013 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11014 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
11017 ac_check_lib_save_LIBS
=$LIBS
11019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h. */
11022 /* Override any GCC internal prototype to avoid an error.
11023 Use char because int might match the return type of a GCC
11024 builtin and then its argument prototype would still apply. */
11032 return dld_link ();
11037 if ac_fn_c_try_link
"$LINENO"; then :
11038 ac_cv_lib_dld_dld_link
=yes
11040 ac_cv_lib_dld_dld_link
=no
11042 rm -f core conftest.err conftest.
$ac_objext \
11043 conftest
$ac_exeext conftest.
$ac_ext
11044 LIBS
=$ac_check_lib_save_LIBS
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11047 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11048 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11049 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11070 if test "x$lt_cv_dlopen" != xno
; then
11076 case $lt_cv_dlopen in
11078 save_CPPFLAGS
="$CPPFLAGS"
11079 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11081 save_LDFLAGS
="$LDFLAGS"
11082 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11085 LIBS
="$lt_cv_dlopen_libs $LIBS"
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11088 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11089 if test "${lt_cv_dlopen_self+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11092 if test "$cross_compiling" = yes; then :
11093 lt_cv_dlopen_self
=cross
11095 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11096 lt_status
=$lt_dlunknown
11097 cat > conftest.
$ac_ext <<_LT_EOF
11098 #line 11098 "configure"
11099 #include "confdefs.h"
11108 # define LT_DLGLOBAL RTLD_GLOBAL
11111 # define LT_DLGLOBAL DL_GLOBAL
11113 # define LT_DLGLOBAL 0
11117 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11118 find out it does not work in some platform. */
11119 #ifndef LT_DLLAZY_OR_NOW
11121 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11124 # define LT_DLLAZY_OR_NOW DL_LAZY
11127 # define LT_DLLAZY_OR_NOW RTLD_NOW
11130 # define LT_DLLAZY_OR_NOW DL_NOW
11132 # define LT_DLLAZY_OR_NOW 0
11139 /* When -fvisbility=hidden is used, assume the code has been annotated
11140 correspondingly for the symbols needed. */
11141 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11142 void fnord () __attribute__((visibility("default")));
11145 void fnord () { int i=42; }
11148 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11149 int status = $lt_dlunknown;
11153 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11156 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11157 else puts (dlerror ());
11159 /* dlclose (self); */
11167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11168 (eval $ac_link) 2>&5
11170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11171 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11172 (.
/conftest
; exit; ) >&5 2>/dev
/null
11174 case x
$lt_status in
11175 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11176 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11177 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11180 # compilation failed
11181 lt_cv_dlopen_self
=no
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11189 $as_echo "$lt_cv_dlopen_self" >&6; }
11191 if test "x$lt_cv_dlopen_self" = xyes
; then
11192 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11194 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11195 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
11198 if test "$cross_compiling" = yes; then :
11199 lt_cv_dlopen_self_static
=cross
11201 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11202 lt_status
=$lt_dlunknown
11203 cat > conftest.
$ac_ext <<_LT_EOF
11204 #line 11204 "configure"
11205 #include "confdefs.h"
11214 # define LT_DLGLOBAL RTLD_GLOBAL
11217 # define LT_DLGLOBAL DL_GLOBAL
11219 # define LT_DLGLOBAL 0
11223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11224 find out it does not work in some platform. */
11225 #ifndef LT_DLLAZY_OR_NOW
11227 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11230 # define LT_DLLAZY_OR_NOW DL_LAZY
11233 # define LT_DLLAZY_OR_NOW RTLD_NOW
11236 # define LT_DLLAZY_OR_NOW DL_NOW
11238 # define LT_DLLAZY_OR_NOW 0
11245 /* When -fvisbility=hidden is used, assume the code has been annotated
11246 correspondingly for the symbols needed. */
11247 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11248 void fnord () __attribute__((visibility("default")));
11251 void fnord () { int i=42; }
11254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11255 int status = $lt_dlunknown;
11259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11262 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11263 else puts (dlerror ());
11265 /* dlclose (self); */
11273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11274 (eval $ac_link) 2>&5
11276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11277 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11278 (.
/conftest
; exit; ) >&5 2>/dev
/null
11280 case x
$lt_status in
11281 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11282 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11283 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11286 # compilation failed
11287 lt_cv_dlopen_self_static
=no
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11295 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11298 CPPFLAGS
="$save_CPPFLAGS"
11299 LDFLAGS
="$save_LDFLAGS"
11304 case $lt_cv_dlopen_self in
11305 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11306 *) enable_dlopen_self
=unknown
;;
11309 case $lt_cv_dlopen_self_static in
11310 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11311 *) enable_dlopen_self_static
=unknown
;;
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11334 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11335 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11336 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11337 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11339 $as_echo "yes" >&6; }
11341 # FIXME - insert some real tests, host_os isn't really good enough
11344 if test -n "$STRIP" ; then
11345 striplib
="$STRIP -x"
11346 old_striplib
="$STRIP -S"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11348 $as_echo "yes" >&6; }
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11372 # Report which library types will actually be built
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11374 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11376 $as_echo "$can_build_shared" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11379 $as_echo_n "checking whether to build shared libraries... " >&6; }
11380 test "$can_build_shared" = "no" && enable_shared
=no
11382 # On AIX, shared libraries and static libraries use the same namespace, and
11383 # are all built from PIC.
11386 test "$enable_shared" = yes && enable_static
=no
11387 if test -n "$RANLIB"; then
11388 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11389 postinstall_cmds
='$RANLIB $lib'
11394 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11395 test "$enable_shared" = yes && enable_static
=no
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11400 $as_echo "$enable_shared" >&6; }
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11403 $as_echo_n "checking whether to build static libraries... " >&6; }
11404 # Make sure either enable_shared or enable_static is yes.
11405 test "$enable_shared" = yes || enable_static
=yes
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11407 $as_echo "$enable_static" >&6; }
11414 ac_cpp
='$CPP $CPPFLAGS'
11415 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11416 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11417 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11433 ac_config_commands
="$ac_config_commands libtool"
11438 # Only expand once:
11445 *-cygwin* |
*-mingw*)
11446 # 'host' will be top-level target in the case of a target lib,
11447 # we must compare to with_cross_host to decide if this is a native
11448 # or cross-compiler and select where to install dlls appropriately.
11449 if test -n "$with_cross_host" &&
11450 test x
"$with_cross_host" != x
"no"; then
11451 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11453 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11468 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11469 # Check whether --enable-maintainer-mode was given.
11470 if test "${enable_maintainer_mode+set}" = set; then :
11471 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11473 USE_MAINTAINER_MODE
=no
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11477 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11478 if test $USE_MAINTAINER_MODE = yes; then
11479 MAINTAINER_MODE_TRUE
=
11480 MAINTAINER_MODE_FALSE
='#'
11482 MAINTAINER_MODE_TRUE
='#'
11483 MAINTAINER_MODE_FALSE
=
11486 MAINT
=$MAINTAINER_MODE_TRUE
11490 # Create a spec file, so that compile/link tests don't fail
11491 test -f libgfortran.spec ||
touch libgfortran.spec
11492 FCFLAGS
="$FCFLAGS -L."
11494 # We need gfortran to compile parts of the library
11495 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11496 #AC_PROG_FC(gfortran)
11497 case `echo $GFORTRAN` in
11501 set dummy
$GFORTRAN; ac_word
=$2
11502 if test -x "$ac_word"; then
11508 ac_ext
=${ac_fc_srcext-f}
11509 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11510 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11512 if test -n "$ac_tool_prefix"; then
11513 for ac_prog
in gfortran
11515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11516 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518 $as_echo_n "checking for $ac_word... " >&6; }
11519 if test "${ac_cv_prog_FC+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11522 if test -n "$FC"; then
11523 ac_cv_prog_FC
="$FC" # Let the user override the test.
11525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11526 for as_dir
in $PATH
11529 test -z "$as_dir" && as_dir
=.
11530 for ac_exec_ext
in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543 if test -n "$FC"; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11545 $as_echo "$FC" >&6; }
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11552 test -n "$FC" && break
11555 if test -z "$FC"; then
11557 for ac_prog
in gfortran
11559 # Extract the first word of "$ac_prog", so it can be a program name with args.
11560 set dummy
$ac_prog; ac_word
=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11564 $as_echo_n "(cached) " >&6
11566 if test -n "$ac_ct_FC"; then
11567 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11570 for as_dir
in $PATH
11573 test -z "$as_dir" && as_dir
=.
11574 for ac_exec_ext
in '' $ac_executable_extensions; do
11575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11576 ac_cv_prog_ac_ct_FC
="$ac_prog"
11577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11587 if test -n "$ac_ct_FC"; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11589 $as_echo "$ac_ct_FC" >&6; }
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11596 test -n "$ac_ct_FC" && break
11599 if test "x$ac_ct_FC" = x
; then
11602 case $cross_compiling:$ac_tool_warned in
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11606 ac_tool_warned
=yes ;;
11613 # Provide some information about the compiler.
11614 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11617 for ac_option
in --version -v -V -qversion; do
11618 { { ac_try
="$ac_compiler $ac_option >&5"
11619 case "(($ac_try" in
11620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11624 $as_echo "$ac_try_echo"; } >&5
11625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11627 if test -s conftest.err; then
11629 ... rest of stderr output deleted ...
11630 10q' conftest.err >conftest.er1
11631 cat conftest.er1 >&5
11632 rm -f conftest.er1 conftest.err
11634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11635 test $ac_status = 0; }
11639 # If we don't use `.F
' as extension, the preprocessor is not run on the
11640 # input file. (Note that this only needs to work for GNU compilers.)
11641 ac_save_ext=$ac_ext
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11644 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11645 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11646 $as_echo_n "(cached) " >&6
11648 cat > conftest.$ac_ext <<_ACEOF
11656 if ac_fn_fc_try_compile "$LINENO"; then :
11657 ac_compiler_gnu=yes
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11666 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11667 ac_ext=$ac_save_ext
11668 ac_test_FCFLAGS=${FCFLAGS+set}
11669 ac_save_FCFLAGS=$FCFLAGS
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11672 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11673 if test "${ac_cv_prog_fc_g+set}" = set; then :
11674 $as_echo_n "(cached) " >&6
11677 cat > conftest.$ac_ext <<_ACEOF
11682 if ac_fn_fc_try_compile "$LINENO"; then :
11683 ac_cv_prog_fc_g=yes
11687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11691 $as_echo "$ac_cv_prog_fc_g" >&6; }
11692 if test "$ac_test_FCFLAGS" = set; then
11693 FCFLAGS=$ac_save_FCFLAGS
11694 elif test $ac_cv_prog_fc_g = yes; then
11695 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11701 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11709 ac_cpp='$CPP $CPPFLAGS'
11710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
11711 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
11712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11714 ac_ext=${ac_fc_srcext-f}
11715 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
11716 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
11717 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11720 if test -z "$FC" || test "X$FC" = "Xno"; then
11724 archive_cmds_need_lc_FC=no
11725 allow_undefined_flag_FC=
11726 always_export_symbols_FC=no
11727 archive_expsym_cmds_FC=
11728 export_dynamic_flag_spec_FC=
11729 hardcode_direct_FC=no
11730 hardcode_direct_absolute_FC=no
11731 hardcode_libdir_flag_spec_FC=
11732 hardcode_libdir_flag_spec_ld_FC=
11733 hardcode_libdir_separator_FC=
11734 hardcode_minus_L_FC=no
11735 hardcode_automatic_FC=no
11736 inherit_rpath_FC=no
11738 module_expsym_cmds_FC=
11739 link_all_deplibs_FC=unknown
11740 old_archive_cmds_FC=$old_archive_cmds
11741 reload_flag_FC=$reload_flag
11742 reload_cmds_FC=$reload_cmds
11743 no_undefined_flag_FC=
11744 whole_archive_flag_spec_FC=
11745 enable_shared_with_static_runtimes_FC=no
11747 # Source file extension for fc test sources.
11748 ac_ext=${ac_fc_srcext-f}
11750 # Object file extension for compiled fc test sources.
11754 # No sense in running all these tests if we already determined that
11755 # the FC compiler isn't working. Some variables
(like enable_shared
)
11756 # are currently assumed to apply to all compilers on this platform,
11757 # and will be corrupted by setting them based on a non-working compiler.
11758 if test "$_lt_disable_FC" != yes; then
11759 # Code to be used in simple compile tests
11760 lt_simple_compile_test_code
="\
11766 # Code to be used in simple link tests
11767 lt_simple_link_test_code
="\
11772 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11779 # If no C compiler was specified, use CC.
11782 # If no C compiler flags were specified, use CFLAGS.
11783 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11785 # Allow CC to be a program name with arguments.
11789 # save warnings/boilerplate of simple test code
11790 ac_outfile
=conftest.
$ac_objext
11791 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11792 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11793 _lt_compiler_boilerplate
=`cat conftest.err`
11796 ac_outfile
=conftest.
$ac_objext
11797 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11798 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11799 _lt_linker_boilerplate
=`cat conftest.err`
11803 # Allow CC to be a program name with arguments.
11808 GCC
=$ac_cv_fc_compiler_gnu
11811 for cc_temp
in $compiler""; do
11813 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11814 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11819 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11822 if test -n "$compiler"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11824 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11826 $as_echo "$can_build_shared" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11829 $as_echo_n "checking whether to build shared libraries... " >&6; }
11830 test "$can_build_shared" = "no" && enable_shared
=no
11832 # On AIX, shared libraries and static libraries use the same namespace, and
11833 # are all built from PIC.
11836 test "$enable_shared" = yes && enable_static
=no
11837 if test -n "$RANLIB"; then
11838 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11839 postinstall_cmds
='$RANLIB $lib'
11843 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11844 test "$enable_shared" = yes && enable_static
=no
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11849 $as_echo "$enable_shared" >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11852 $as_echo_n "checking whether to build static libraries... " >&6; }
11853 # Make sure either enable_shared or enable_static is yes.
11854 test "$enable_shared" = yes || enable_static
=yes
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11856 $as_echo "$enable_static" >&6; }
11858 GCC_FC
="$ac_cv_fc_compiler_gnu"
11862 ## There is no encapsulation within the following macros, do not change
11863 ## the running order or otherwise move them around unless you know exactly
11864 ## what you are doing...
11865 # Dependencies to place before and after the object being linked:
11867 postdep_objects_FC
=
11870 compiler_lib_search_path_FC
=
11872 cat > conftest.
$ac_ext <<_LT_EOF
11881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11882 (eval $ac_compile) 2>&5
11884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11885 test $ac_status = 0; }; then
11886 # Parse the compiler output and extract the necessary
11887 # objects, libraries and library flags.
11889 # Sentinel used to keep track of whether or not we are before
11890 # the conftest object file.
11891 pre_test_object_deps_done
=no
11893 for p
in `eval "$output_verbose_link_cmd"`; do
11897 # Some compilers place space between "-{L,R}" and the path.
11898 # Remove the space.
11899 if test $p = "-L" ||
11900 test $p = "-R"; then
11907 if test "$pre_test_object_deps_done" = no
; then
11910 # Internal compiler library paths should come after those
11911 # provided the user. The postdeps already come after the
11912 # user supplied libs so there is no need to process them.
11913 if test -z "$compiler_lib_search_path_FC"; then
11914 compiler_lib_search_path_FC
="${prev}${p}"
11916 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
11919 # The "-l" case would never come before the object being
11920 # linked, so don't bother handling this case.
11923 if test -z "$postdeps_FC"; then
11924 postdeps_FC
="${prev}${p}"
11926 postdeps_FC
="${postdeps_FC} ${prev}${p}"
11932 # This assumes that the test object file only shows up
11933 # once in the compiler output.
11934 if test "$p" = "conftest.$objext"; then
11935 pre_test_object_deps_done
=yes
11939 if test "$pre_test_object_deps_done" = no
; then
11940 if test -z "$predep_objects_FC"; then
11941 predep_objects_FC
="$p"
11943 predep_objects_FC
="$predep_objects_FC $p"
11946 if test -z "$postdep_objects_FC"; then
11947 postdep_objects_FC
="$p"
11949 postdep_objects_FC
="$postdep_objects_FC $p"
11954 *) ;; # Ignore the rest.
11962 echo "libtool.m4: error: problem compiling FC test program"
11965 $RM -f confest.
$objext
11967 # PORTME: override above test on systems where it is broken
11970 case " $postdeps_FC " in
11971 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
11973 compiler_lib_search_dirs_FC
=
11974 if test -n "${compiler_lib_search_path_FC}"; then
11975 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12008 lt_prog_compiler_wl_FC
=
12009 lt_prog_compiler_pic_FC
=
12010 lt_prog_compiler_static_FC
=
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12013 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12015 if test "$GCC" = yes; then
12016 lt_prog_compiler_wl_FC
='-Wl,'
12017 lt_prog_compiler_static_FC
='-static'
12021 # All AIX code is PIC.
12022 if test "$host_cpu" = ia64
; then
12023 # AIX 5 now supports IA64 processor
12024 lt_prog_compiler_static_FC
='-Bstatic'
12026 lt_prog_compiler_pic_FC
='-fPIC'
12032 # see comment about AmigaOS4 .so support
12033 lt_prog_compiler_pic_FC
='-fPIC'
12036 # FIXME: we need at least 68020 code to build shared libraries, but
12037 # adding the `-m68020' flag to GCC prevents building anything better,
12039 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12044 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12045 # PIC is the default for these OSes.
12048 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12049 # This hack is so that the source file can tell whether it is being
12050 # built for inclusion in a dll (and should export symbols for example).
12051 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12052 # (--disable-auto-import) libraries
12053 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12056 darwin
* | rhapsody
*)
12057 # PIC is the default on this platform
12058 # Common symbols not allowed in MH_DYLIB files
12059 lt_prog_compiler_pic_FC
='-fno-common'
12063 # PIC is the default for Haiku.
12064 # The "-static" flag exists, but is broken.
12065 lt_prog_compiler_static_FC
=
12069 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12070 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12071 # sets the default TLS model and affects inlining.
12077 lt_prog_compiler_pic_FC
='-fPIC'
12083 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12084 # Instead, we relocate shared libraries at runtime.
12088 # Just because we use GCC doesn't mean we suddenly get shared libraries
12089 # on systems that don't support them.
12090 lt_prog_compiler_can_build_shared_FC
=no
12095 # QNX uses GNU C++, but need to define -shared option too, otherwise
12096 # it will coredump.
12097 lt_prog_compiler_pic_FC
='-fPIC -shared'
12101 if test -d /usr
/nec
; then
12102 lt_prog_compiler_pic_FC
=-Kconform_pic
12107 lt_prog_compiler_pic_FC
='-fPIC'
12111 case $cc_basename in
12112 nvcc
*) # Cuda Compiler Driver 2.2
12113 lt_prog_compiler_wl_FC
='-Xlinker '
12114 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12118 # PORTME Check for flag to pass linker flags through the system compiler.
12121 lt_prog_compiler_wl_FC
='-Wl,'
12122 if test "$host_cpu" = ia64
; then
12123 # AIX 5 now supports IA64 processor
12124 lt_prog_compiler_static_FC
='-Bstatic'
12126 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12130 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12131 # This hack is so that the source file can tell whether it is being
12132 # built for inclusion in a dll (and should export symbols for example).
12133 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12136 hpux9
* | hpux10
* | hpux11
*)
12137 lt_prog_compiler_wl_FC
='-Wl,'
12138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12139 # not for PA HP-UX.
12145 lt_prog_compiler_pic_FC
='+Z'
12148 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12149 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12152 irix5
* | irix6
* | nonstopux
*)
12153 lt_prog_compiler_wl_FC
='-Wl,'
12154 # PIC (with -KPIC) is the default.
12155 lt_prog_compiler_static_FC
='-non_shared'
12158 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12159 case $cc_basename in
12160 # old Intel for x86_64 which still supported -KPIC.
12162 lt_prog_compiler_wl_FC
='-Wl,'
12163 lt_prog_compiler_pic_FC
='-KPIC'
12164 lt_prog_compiler_static_FC
='-static'
12166 # icc used to be incompatible with GCC.
12167 # ICC 10 doesn't accept -KPIC any more.
12169 lt_prog_compiler_wl_FC
='-Wl,'
12170 lt_prog_compiler_pic_FC
='-fPIC'
12171 lt_prog_compiler_static_FC
='-static'
12173 # Lahey Fortran 8.1.
12175 lt_prog_compiler_wl_FC
='-Wl,'
12176 lt_prog_compiler_pic_FC
='--shared'
12177 lt_prog_compiler_static_FC
='--static'
12179 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12180 # Portland Group compilers (*not* the Pentium gcc compiler,
12181 # which looks to be a dead project)
12182 lt_prog_compiler_wl_FC
='-Wl,'
12183 lt_prog_compiler_pic_FC
='-fpic'
12184 lt_prog_compiler_static_FC
='-Bstatic'
12187 lt_prog_compiler_wl_FC
='-Wl,'
12188 # All Alpha code is PIC.
12189 lt_prog_compiler_static_FC
='-non_shared'
12191 xl
* | bgxl
* | bgf
* | mpixl
*)
12192 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12193 lt_prog_compiler_wl_FC
='-Wl,'
12194 lt_prog_compiler_pic_FC
='-qpic'
12195 lt_prog_compiler_static_FC
='-qstaticlink'
12198 case `$CC -V 2>&1 | sed 5q` in
12199 *Sun\ F
* |
*Sun
*Fortran
*)
12200 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12201 lt_prog_compiler_pic_FC
='-KPIC'
12202 lt_prog_compiler_static_FC
='-Bstatic'
12203 lt_prog_compiler_wl_FC
=''
12207 lt_prog_compiler_pic_FC
='-KPIC'
12208 lt_prog_compiler_static_FC
='-Bstatic'
12209 lt_prog_compiler_wl_FC
='-Wl,'
12217 lt_prog_compiler_pic_FC
='-KPIC'
12218 lt_prog_compiler_static_FC
='-Bstatic'
12222 # QNX uses GNU C++, but need to define -shared option too, otherwise
12223 # it will coredump.
12224 lt_prog_compiler_pic_FC
='-fPIC -shared'
12227 osf3
* | osf4
* | osf5
*)
12228 lt_prog_compiler_wl_FC
='-Wl,'
12229 # All OSF/1 code is PIC.
12230 lt_prog_compiler_static_FC
='-non_shared'
12234 lt_prog_compiler_static_FC
='-non_shared'
12238 lt_prog_compiler_pic_FC
='-KPIC'
12239 lt_prog_compiler_static_FC
='-Bstatic'
12240 case $cc_basename in
12241 f77
* | f90
* | f95
*)
12242 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12244 lt_prog_compiler_wl_FC
='-Wl,';;
12249 lt_prog_compiler_wl_FC
='-Qoption ld '
12250 lt_prog_compiler_pic_FC
='-PIC'
12251 lt_prog_compiler_static_FC
='-Bstatic'
12254 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12255 lt_prog_compiler_wl_FC
='-Wl,'
12256 lt_prog_compiler_pic_FC
='-KPIC'
12257 lt_prog_compiler_static_FC
='-Bstatic'
12261 if test -d /usr
/nec
;then
12262 lt_prog_compiler_pic_FC
='-Kconform_pic'
12263 lt_prog_compiler_static_FC
='-Bstatic'
12267 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12268 lt_prog_compiler_wl_FC
='-Wl,'
12269 lt_prog_compiler_pic_FC
='-KPIC'
12270 lt_prog_compiler_static_FC
='-Bstatic'
12274 lt_prog_compiler_wl_FC
='-Wl,'
12275 lt_prog_compiler_can_build_shared_FC
=no
12279 lt_prog_compiler_pic_FC
='-pic'
12280 lt_prog_compiler_static_FC
='-Bstatic'
12284 lt_prog_compiler_can_build_shared_FC
=no
12290 # For platforms which do not support PIC, -DPIC is meaningless:
12292 lt_prog_compiler_pic_FC
=
12295 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12299 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12304 # Check to make sure the PIC flag actually works.
12306 if test -n "$lt_prog_compiler_pic_FC"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12308 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12309 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12312 lt_cv_prog_compiler_pic_works_FC
=no
12313 ac_outfile
=conftest.
$ac_objext
12314 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12315 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12316 # Insert the option either (1) after the last *FLAGS variable, or
12317 # (2) before a word containing "conftest.", or (3) at the end.
12318 # Note that $ac_compile itself does not contain backslashes and begins
12319 # with a dollar sign (not a hyphen), so the echo should work correctly.
12320 # The option is referenced via a variable to avoid confusing sed.
12321 lt_compile
=`echo "$ac_compile" | $SED \
12322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12324 -e 's:$: $lt_compiler_flag:'`
12325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12326 (eval "$lt_compile" 2>conftest.err
)
12328 cat conftest.err
>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 if (exit $ac_status) && test -s "$ac_outfile"; then
12331 # The compiler can only warn and ignore the option if not recognized
12332 # So say no if there are warnings other than the usual output.
12333 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12334 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12335 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12336 lt_cv_prog_compiler_pic_works_FC
=yes
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12343 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12345 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12346 case $lt_prog_compiler_pic_FC in
12348 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12351 lt_prog_compiler_pic_FC
=
12352 lt_prog_compiler_can_build_shared_FC
=no
12360 # Check to make sure the static flag actually works.
12362 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12364 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12365 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12368 lt_cv_prog_compiler_static_works_FC
=no
12369 save_LDFLAGS
="$LDFLAGS"
12370 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12371 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12372 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12373 # The linker can only warn and ignore the option if not recognized
12374 # So say no if there are warnings
12375 if test -s conftest.err
; then
12376 # Append any errors to the config.log.
12377 cat conftest.err
1>&5
12378 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12379 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12380 if diff conftest.exp conftest.er2
>/dev
/null
; then
12381 lt_cv_prog_compiler_static_works_FC
=yes
12384 lt_cv_prog_compiler_static_works_FC
=yes
12388 LDFLAGS
="$save_LDFLAGS"
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12392 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12394 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12397 lt_prog_compiler_static_FC
=
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12405 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12408 lt_cv_prog_compiler_c_o_FC
=no
12409 $RM -r conftest
2>/dev
/null
12413 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12415 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12416 # Insert the option either (1) after the last *FLAGS variable, or
12417 # (2) before a word containing "conftest.", or (3) at the end.
12418 # Note that $ac_compile itself does not contain backslashes and begins
12419 # with a dollar sign (not a hyphen), so the echo should work correctly.
12420 lt_compile
=`echo "$ac_compile" | $SED \
12421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12423 -e 's:$: $lt_compiler_flag:'`
12424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12425 (eval "$lt_compile" 2>out
/conftest.err
)
12427 cat out
/conftest.err
>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12431 # The compiler can only warn and ignore the option if not recognized
12432 # So say no if there are warnings
12433 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12434 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12435 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12436 lt_cv_prog_compiler_c_o_FC
=yes
12441 # SGI C++ compiler will create directory out/ii_files/ for
12442 # template instantiation
12443 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12444 $RM out
/* && rmdir out
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12451 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12457 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12460 lt_cv_prog_compiler_c_o_FC
=no
12461 $RM -r conftest
2>/dev
/null
12465 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12467 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12468 # Insert the option either (1) after the last *FLAGS variable, or
12469 # (2) before a word containing "conftest.", or (3) at the end.
12470 # Note that $ac_compile itself does not contain backslashes and begins
12471 # with a dollar sign (not a hyphen), so the echo should work correctly.
12472 lt_compile
=`echo "$ac_compile" | $SED \
12473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12475 -e 's:$: $lt_compiler_flag:'`
12476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12477 (eval "$lt_compile" 2>out
/conftest.err
)
12479 cat out
/conftest.err
>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12483 # The compiler can only warn and ignore the option if not recognized
12484 # So say no if there are warnings
12485 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12486 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12487 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12488 lt_cv_prog_compiler_c_o_FC
=yes
12493 # SGI C++ compiler will create directory out/ii_files/ for
12494 # template instantiation
12495 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12496 $RM out
/* && rmdir out
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12503 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12508 hard_links
="nottested"
12509 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12510 # do not overwrite the value of need_locks provided by the user
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12512 $as_echo_n "checking if we can lock with hard links... " >&6; }
12515 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12517 ln conftest.a conftest.b
2>&5 || hard_links
=no
12518 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12520 $as_echo "$hard_links" >&6; }
12521 if test "$hard_links" = no
; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12523 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12533 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12536 allow_undefined_flag_FC
=
12537 always_export_symbols_FC
=no
12539 archive_expsym_cmds_FC
=
12540 compiler_needs_object_FC
=no
12541 enable_shared_with_static_runtimes_FC
=no
12542 export_dynamic_flag_spec_FC
=
12543 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12544 hardcode_automatic_FC
=no
12545 hardcode_direct_FC
=no
12546 hardcode_direct_absolute_FC
=no
12547 hardcode_libdir_flag_spec_FC
=
12548 hardcode_libdir_flag_spec_ld_FC
=
12549 hardcode_libdir_separator_FC
=
12550 hardcode_minus_L_FC
=no
12551 hardcode_shlibpath_var_FC
=unsupported
12552 inherit_rpath_FC
=no
12553 link_all_deplibs_FC
=unknown
12555 module_expsym_cmds_FC
=
12556 old_archive_from_new_cmds_FC
=
12557 old_archive_from_expsyms_cmds_FC
=
12558 thread_safe_flag_spec_FC
=
12559 whole_archive_flag_spec_FC
=
12560 # include_expsyms should be a list of space-separated symbols to be *always*
12561 # included in the symbol list
12562 include_expsyms_FC
=
12563 # exclude_expsyms can be an extended regexp of symbols to exclude
12564 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12565 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12566 # as well as any symbol that contains `d'.
12567 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12568 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12569 # platforms (ab)use it in PIC code, but their linkers get confused if
12570 # the symbol is explicitly referenced. Since portable code cannot
12571 # rely on this symbol name, it's probably fine to never include it in
12572 # preloaded symbol tables.
12573 # Exclude shared library initialization/finalization symbols.
12574 extract_expsyms_cmds
=
12577 cygwin
* | mingw
* | pw32
* | cegcc
*)
12578 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12579 # When not using gcc, we currently assume that we are using
12580 # Microsoft Visual C++.
12581 if test "$GCC" != yes; then
12586 # we just hope/assume this is gcc and not c89 (= MSVC++)
12596 # On some targets, GNU ld is compatible enough with the native linker
12597 # that we're better off using the native interface for both.
12598 lt_use_gnu_ld_interface
=no
12599 if test "$with_gnu_ld" = yes; then
12602 # The AIX port of GNU ld has always aspired to compatibility
12603 # with the native linker. However, as the warning in the GNU ld
12604 # block says, versions before 2.19.5* couldn't really create working
12605 # shared libraries, regardless of the interface used.
12606 case `$LD -v 2>&1` in
12607 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12608 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12609 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12611 lt_use_gnu_ld_interface
=yes
12616 lt_use_gnu_ld_interface
=yes
12621 if test "$lt_use_gnu_ld_interface" = yes; then
12622 # If archive_cmds runs LD, not CC, wlarc should be empty
12625 # Set some defaults for GNU ld with shared library support. These
12626 # are reset later if shared libraries are not supported. Putting them
12627 # here allows them to be overridden if necessary.
12628 runpath_var
=LD_RUN_PATH
12629 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12630 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12631 # ancient GNU ld didn't support --whole-archive et. al.
12632 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12633 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12635 whole_archive_flag_spec_FC
=
12637 supports_anon_versioning
=no
12638 case `$LD -v 2>&1` in
12639 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12640 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12641 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12642 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12643 *\
2.11.
*) ;; # other 2.11 versions
12644 *) supports_anon_versioning
=yes ;;
12647 # See if GNU ld supports shared libraries.
12650 # On AIX/PPC, the GNU linker is very broken
12651 if test "$host_cpu" != ia64
; then
12655 *** Warning: the GNU linker, at least up to release 2.19, is reported
12656 *** to be unable to reliably create shared libraries on AIX.
12657 *** Therefore, libtool is disabling shared libraries support. If you
12658 *** really care for shared libraries, you may want to install binutils
12659 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12660 *** You will then need to restart the configuration process.
12669 # see comment about AmigaOS4 .so support
12670 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671 archive_expsym_cmds_FC
=''
12674 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)'
12675 hardcode_libdir_flag_spec_FC
='-L$libdir'
12676 hardcode_minus_L_FC
=yes
12682 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12683 allow_undefined_flag_FC
=unsupported
12684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12685 # support --undefined. This deserves some investigation. FIXME
12686 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12692 cygwin
* | mingw
* | pw32
* | cegcc
*)
12693 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12694 # as there is no search path for DLLs.
12695 hardcode_libdir_flag_spec_FC
='-L$libdir'
12696 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
12697 allow_undefined_flag_FC
=unsupported
12698 always_export_symbols_FC
=no
12699 enable_shared_with_static_runtimes_FC
=yes
12700 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12702 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12703 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12704 # If the export-symbols file already is a .def file (1st line
12705 # is EXPORTS), use it as is; otherwise, prepend...
12706 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12707 cp $export_symbols $output_objdir/$soname.def;
12709 echo EXPORTS > $output_objdir/$soname.def;
12710 cat $export_symbols >> $output_objdir/$soname.def;
12712 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12719 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12720 link_all_deplibs_FC
=yes
12724 hardcode_direct_FC
=no
12725 hardcode_shlibpath_var_FC
=no
12726 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
12727 export_dynamic_flag_spec_FC
='${wl}-E'
12728 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12729 # Instead, shared libraries are loaded at an image base (0x10000000 by
12730 # default) and relocated if they conflict, which is a slow very memory
12731 # consuming and fragmenting process. To avoid this, we pick a random,
12732 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12733 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12734 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'
12735 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'
12738 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12740 if test "$host_os" = linux-dietlibc
; then
12741 case $cc_basename in
12742 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12745 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12746 && test "$tmp_diet" = no
12749 tmp_sharedflag
='-shared'
12750 case $cc_basename,$host_cpu in
12751 pgcc
*) # Portland Group C compiler
12752 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'
12753 tmp_addflag
=' $pic_flag'
12755 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12756 # Portland Group f77 and f90 compilers
12757 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'
12758 tmp_addflag
=' $pic_flag -Mnomain' ;;
12759 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12760 tmp_addflag
=' -i_dynamic' ;;
12761 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12762 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12763 ifc
* | ifort
*) # Intel Fortran compiler
12764 tmp_addflag
=' -nofor_main' ;;
12765 lf95
*) # Lahey Fortran 8.1
12766 whole_archive_flag_spec_FC
=
12767 tmp_sharedflag
='--shared' ;;
12768 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12769 tmp_sharedflag
='-qmkshrobj'
12771 nvcc
*) # Cuda Compiler Driver 2.2
12772 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'
12773 compiler_needs_object_FC
=yes
12776 case `$CC -V 2>&1 | sed 5q` in
12777 *Sun\ C
*) # Sun C 5.9
12778 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'
12779 compiler_needs_object_FC
=yes
12780 tmp_sharedflag
='-G' ;;
12781 *Sun\ F
*) # Sun Fortran 8.3
12782 tmp_sharedflag
='-G' ;;
12784 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12786 if test "x$supports_anon_versioning" = xyes
; then
12787 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
12788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12789 echo "local: *; };" >> $output_objdir/$libname.ver~
12790 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12793 case $cc_basename in
12794 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12795 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12796 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
12797 hardcode_libdir_flag_spec_FC
=
12798 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
12799 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12800 if test "x$supports_anon_versioning" = xyes
; then
12801 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
12802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12803 echo "local: *; };" >> $output_objdir/$libname.ver~
12804 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12814 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12815 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12818 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12819 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12824 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12828 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12829 *** create shared libraries on Solaris systems. Therefore, libtool
12830 *** is disabling shared libraries support. We urge you to upgrade GNU
12831 *** binutils to release 2.9.1 or newer. Another option is to modify
12832 *** your PATH or compiler configuration so that the native linker is
12833 *** used, and then restart.
12836 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12837 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12838 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12844 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12845 case `$LD -v 2>&1` in
12846 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12850 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12851 *** reliably create shared libraries on SCO systems. Therefore, libtool
12852 *** is disabling shared libraries support. We urge you to upgrade GNU
12853 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12854 *** your PATH or compiler configuration so that the native linker is
12855 *** used, and then restart.
12860 # For security reasons, it is highly recommended that you always
12861 # use absolute paths for naming shared libraries, and exclude the
12862 # DT_RUNPATH tag from executables and libraries. But doing so
12863 # requires that you compile everything twice, which is a pain.
12864 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12865 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12866 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12867 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12876 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12878 hardcode_direct_FC
=yes
12879 hardcode_shlibpath_var_FC
=no
12883 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12884 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12885 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12892 if test "$ld_shlibs_FC" = no
; then
12894 hardcode_libdir_flag_spec_FC
=
12895 export_dynamic_flag_spec_FC
=
12896 whole_archive_flag_spec_FC
=
12899 # PORTME fill in a description of your system's linker (not GNU ld)
12902 allow_undefined_flag_FC
=unsupported
12903 always_export_symbols_FC
=yes
12904 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'
12905 # Note: this linker hardcodes the directories in LIBPATH if there
12906 # are no directories specified by -L.
12907 hardcode_minus_L_FC
=yes
12908 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12909 # Neither direct hardcoding nor static linking is supported with a
12911 hardcode_direct_FC
=unsupported
12916 if test "$host_cpu" = ia64
; then
12917 # On IA64, the linker does run time linking by default, so we don't
12918 # have to do anything special.
12919 aix_use_runtimelinking
=no
12920 exp_sym_flag
='-Bexport'
12923 # If we're using GNU nm, then we don't want the "-C" option.
12924 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12925 # Also, AIX nm treats weak defined symbols like other global
12926 # defined symbols, whereas GNU nm marks them as "W".
12927 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12928 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'
12930 export_symbols_cmds_FC
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12932 aix_use_runtimelinking
=no
12934 # Test if we are trying to use run time linking or normal
12935 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12936 # need to do runtime linking.
12937 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12938 for ld_flag
in $LDFLAGS; do
12939 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12940 aix_use_runtimelinking
=yes
12947 exp_sym_flag
='-bexport'
12948 no_entry_flag
='-bnoentry'
12951 # When large executables or shared objects are built, AIX ld can
12952 # have problems creating the table of contents. If linking a library
12953 # or program results in "error TOC overflow" add -mminimal-toc to
12954 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12955 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12958 hardcode_direct_FC
=yes
12959 hardcode_direct_absolute_FC
=yes
12960 hardcode_libdir_separator_FC
=':'
12961 link_all_deplibs_FC
=yes
12962 file_list_spec_FC
='${wl}-f,'
12964 if test "$GCC" = yes; then
12965 case $host_os in aix4.
[012]|aix4.
[012].
*)
12966 # We only want to do this on AIX 4.2 and lower, the check
12967 # below for broken collect2 doesn't work under 4.3+
12968 collect2name
=`${CC} -print-prog-name=collect2`
12969 if test -f "$collect2name" &&
12970 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12972 # We have reworked collect2
12975 # We have old collect2
12976 hardcode_direct_FC
=unsupported
12977 # It fails to find uninstalled libraries when the uninstalled
12978 # path is not listed in the libpath. Setting hardcode_minus_L
12979 # to unsupported forces relinking
12980 hardcode_minus_L_FC
=yes
12981 hardcode_libdir_flag_spec_FC
='-L$libdir'
12982 hardcode_libdir_separator_FC
=
12986 shared_flag
='-shared'
12987 if test "$aix_use_runtimelinking" = yes; then
12988 shared_flag
="$shared_flag "'${wl}-G'
12992 if test "$host_cpu" = ia64
; then
12993 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12994 # chokes on -Wl,-G. The following line is correct:
12997 if test "$aix_use_runtimelinking" = yes; then
12998 shared_flag
='${wl}-G'
13000 shared_flag
='${wl}-bM:SRE'
13005 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13006 # It seems that -bexpall does not export symbols beginning with
13007 # underscore (_), so it is better to generate a list of symbols to export.
13008 always_export_symbols_FC
=yes
13009 if test "$aix_use_runtimelinking" = yes; then
13010 # Warning - without using the other runtime loading flags (-brtl),
13011 # -berok will link without error, but may produce a broken library.
13012 allow_undefined_flag_FC
='-berok'
13013 # Determine the default libpath from the value encoded in an
13014 # empty executable.
13015 cat > conftest.
$ac_ext <<_ACEOF
13020 if ac_fn_fc_try_link
"$LINENO"; then :
13022 lt_aix_libpath_sed
='
13023 /Import File Strings/,/^$/ {
13029 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13030 # Check for a 64-bit object if we didn't find anything.
13031 if test -z "$aix_libpath"; then
13032 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13035 rm -f core conftest.err conftest.
$ac_objext \
13036 conftest
$ac_exeext conftest.
$ac_ext
13037 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13039 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13040 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"
13042 if test "$host_cpu" = ia64
; then
13043 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13044 allow_undefined_flag_FC
="-z nodefs"
13045 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"
13047 # Determine the default libpath from the value encoded in an
13048 # empty executable.
13049 cat > conftest.
$ac_ext <<_ACEOF
13054 if ac_fn_fc_try_link
"$LINENO"; then :
13056 lt_aix_libpath_sed
='
13057 /Import File Strings/,/^$/ {
13063 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13064 # Check for a 64-bit object if we didn't find anything.
13065 if test -z "$aix_libpath"; then
13066 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13069 rm -f core conftest.err conftest.
$ac_objext \
13070 conftest
$ac_exeext conftest.
$ac_ext
13071 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13073 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13074 # Warning - without using the other run time loading flags,
13075 # -berok will link without error, but may produce a broken library.
13076 no_undefined_flag_FC
=' ${wl}-bernotok'
13077 allow_undefined_flag_FC
=' ${wl}-berok'
13078 if test "$with_gnu_ld" = yes; then
13079 # We only use this code for GNU lds that support --whole-archive.
13080 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13082 # Exported symbols can be pulled into shared objects from archives
13083 whole_archive_flag_spec_FC
='$convenience'
13085 archive_cmds_need_lc_FC
=yes
13086 # This is similar to how AIX traditionally builds its shared libraries.
13087 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'
13095 # see comment about AmigaOS4 .so support
13096 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13097 archive_expsym_cmds_FC
=''
13100 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)'
13101 hardcode_libdir_flag_spec_FC
='-L$libdir'
13102 hardcode_minus_L_FC
=yes
13108 export_dynamic_flag_spec_FC
=-rdynamic
13111 cygwin
* | mingw
* | pw32
* | cegcc
*)
13112 # When not using gcc, we currently assume that we are using
13113 # Microsoft Visual C++.
13114 # hardcode_libdir_flag_spec is actually meaningless, as there is
13115 # no search path for DLLs.
13116 hardcode_libdir_flag_spec_FC
=' '
13117 allow_undefined_flag_FC
=unsupported
13118 # Tell ltmain to make .lib files, not .a files.
13120 # Tell ltmain to make .dll files, not .so files.
13122 # FIXME: Setting linknames here is a bad hack.
13123 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13124 # The linker will automatically build a .lib file if we build a DLL.
13125 old_archive_from_new_cmds_FC
='true'
13126 # FIXME: Should let the user specify the lib program.
13127 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13128 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13129 enable_shared_with_static_runtimes_FC
=yes
13132 darwin
* | rhapsody
*)
13135 archive_cmds_need_lc_FC
=no
13136 hardcode_direct_FC
=no
13137 hardcode_automatic_FC
=yes
13138 hardcode_shlibpath_var_FC
=unsupported
13139 if test "$lt_cv_ld_force_load" = "yes"; then
13140 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\"`'
13142 whole_archive_flag_spec_FC
=''
13144 link_all_deplibs_FC
=yes
13145 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13146 case $cc_basename in
13147 ifort
*) _lt_dar_can_shared
=yes ;;
13148 *) _lt_dar_can_shared
=$GCC ;;
13150 if test "$_lt_dar_can_shared" = "yes"; then
13151 output_verbose_link_cmd
=func_echo_all
13152 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}"
13153 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13154 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}"
13155 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}"
13164 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13165 hardcode_libdir_flag_spec_FC
='-L$libdir'
13166 hardcode_shlibpath_var_FC
=no
13169 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13170 # support. Future versions do this automatically, but an explicit c++rt0.o
13171 # does not break anything, and helps significantly (at the cost of a little
13174 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13175 hardcode_libdir_flag_spec_FC
='-R$libdir'
13176 hardcode_direct_FC
=yes
13177 hardcode_shlibpath_var_FC
=no
13180 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13182 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13183 hardcode_direct_FC
=yes
13184 hardcode_minus_L_FC
=yes
13185 hardcode_shlibpath_var_FC
=no
13188 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13189 freebsd
* | dragonfly
*)
13190 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13191 hardcode_libdir_flag_spec_FC
='-R$libdir'
13192 hardcode_direct_FC
=yes
13193 hardcode_shlibpath_var_FC
=no
13197 if test "$GCC" = yes; then
13198 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'
13200 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'
13202 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13203 hardcode_libdir_separator_FC
=:
13204 hardcode_direct_FC
=yes
13206 # hardcode_minus_L: Not really in the search PATH,
13207 # but as the default location of the library.
13208 hardcode_minus_L_FC
=yes
13209 export_dynamic_flag_spec_FC
='${wl}-E'
13213 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13214 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13216 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13218 if test "$with_gnu_ld" = no
; then
13219 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13220 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13221 hardcode_libdir_separator_FC
=:
13222 hardcode_direct_FC
=yes
13223 hardcode_direct_absolute_FC
=yes
13224 export_dynamic_flag_spec_FC
='${wl}-E'
13225 # hardcode_minus_L: Not really in the search PATH,
13226 # but as the default location of the library.
13227 hardcode_minus_L_FC
=yes
13232 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13235 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13238 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13241 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13247 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13250 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13253 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13257 if test "$with_gnu_ld" = no
; then
13258 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13259 hardcode_libdir_separator_FC
=:
13263 hardcode_direct_FC
=no
13264 hardcode_shlibpath_var_FC
=no
13267 hardcode_direct_FC
=yes
13268 hardcode_direct_absolute_FC
=yes
13269 export_dynamic_flag_spec_FC
='${wl}-E'
13271 # hardcode_minus_L: Not really in the search PATH,
13272 # but as the default location of the library.
13273 hardcode_minus_L_FC
=yes
13279 irix5
* | irix6
* | nonstopux
*)
13280 if test "$GCC" = yes; then
13281 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'
13282 # Try to use the -exported_symbol ld option, if it does not
13283 # work, assume that -exports_file does not work either and
13284 # implicitly export all symbols.
13285 save_LDFLAGS
="$LDFLAGS"
13286 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13287 cat > conftest.
$ac_ext <<_ACEOF
13290 if ac_fn_fc_try_link
"$LINENO"; then :
13291 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'
13294 rm -f core conftest.err conftest.
$ac_objext \
13295 conftest
$ac_exeext conftest.
$ac_ext
13296 LDFLAGS
="$save_LDFLAGS"
13298 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'
13299 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'
13301 archive_cmds_need_lc_FC
='no'
13302 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13303 hardcode_libdir_separator_FC
=:
13304 inherit_rpath_FC
=yes
13305 link_all_deplibs_FC
=yes
13309 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13310 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13312 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13314 hardcode_libdir_flag_spec_FC
='-R$libdir'
13315 hardcode_direct_FC
=yes
13316 hardcode_shlibpath_var_FC
=no
13320 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13321 hardcode_direct_FC
=yes
13322 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13323 hardcode_libdir_separator_FC
=:
13324 hardcode_shlibpath_var_FC
=no
13331 if test -f /usr
/libexec
/ld.so
; then
13332 hardcode_direct_FC
=yes
13333 hardcode_shlibpath_var_FC
=no
13334 hardcode_direct_absolute_FC
=yes
13335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13336 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13337 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13338 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13339 export_dynamic_flag_spec_FC
='${wl}-E'
13342 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13343 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13344 hardcode_libdir_flag_spec_FC
='-R$libdir'
13347 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13348 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13358 hardcode_libdir_flag_spec_FC
='-L$libdir'
13359 hardcode_minus_L_FC
=yes
13360 allow_undefined_flag_FC
=unsupported
13361 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'
13362 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13366 if test "$GCC" = yes; then
13367 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13368 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'
13370 allow_undefined_flag_FC
=' -expect_unresolved \*'
13371 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'
13373 archive_cmds_need_lc_FC
='no'
13374 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13375 hardcode_libdir_separator_FC
=:
13378 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13379 if test "$GCC" = yes; then
13380 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13381 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'
13382 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13384 allow_undefined_flag_FC
=' -expect_unresolved \*'
13385 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'
13386 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~
13387 $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'
13389 # Both c and cxx compiler support -rpath directly
13390 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13392 archive_cmds_need_lc_FC
='no'
13393 hardcode_libdir_separator_FC
=:
13397 no_undefined_flag_FC
=' -z defs'
13398 if test "$GCC" = yes; then
13400 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13401 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13402 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13404 case `$CC -V 2>&1` in
13407 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13408 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13409 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13413 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13414 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13415 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13419 hardcode_libdir_flag_spec_FC
='-R$libdir'
13420 hardcode_shlibpath_var_FC
=no
13422 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13424 # The compiler driver will combine and reorder linker options,
13425 # but understands `-z linker_flag'. GCC discards it without `$wl',
13426 # but is careful enough not to reorder.
13427 # Supported since Solaris 2.6 (maybe 2.5.1?)
13428 if test "$GCC" = yes; then
13429 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13431 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13435 link_all_deplibs_FC
=yes
13439 if test "x$host_vendor" = xsequent
; then
13440 # Use $CC to link under sequent, because it throws in some extra .o
13441 # files that make .init and .fini sections work.
13442 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13444 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13446 hardcode_libdir_flag_spec_FC
='-L$libdir'
13447 hardcode_direct_FC
=yes
13448 hardcode_minus_L_FC
=yes
13449 hardcode_shlibpath_var_FC
=no
13453 case $host_vendor in
13455 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456 hardcode_direct_FC
=yes # is this really true???
13459 ## LD is ld it makes a PLAMLIB
13460 ## CC just makes a GrossModule.
13461 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13462 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13463 hardcode_direct_FC
=no
13466 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13470 runpath_var
='LD_RUN_PATH'
13471 hardcode_shlibpath_var_FC
=no
13475 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_shlibpath_var_FC
=no
13477 export_dynamic_flag_spec_FC
='-Bexport'
13481 if test -d /usr
/nec
; then
13482 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483 hardcode_shlibpath_var_FC
=no
13484 runpath_var
=LD_RUN_PATH
13485 hardcode_runpath_var
=yes
13490 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13491 no_undefined_flag_FC
='${wl}-z,text'
13492 archive_cmds_need_lc_FC
=no
13493 hardcode_shlibpath_var_FC
=no
13494 runpath_var
='LD_RUN_PATH'
13496 if test "$GCC" = yes; then
13497 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13498 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13500 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13505 sysv5
* | sco3.2v5
* | sco5v6
*)
13506 # Note: We can NOT use -z defs as we might desire, because we do not
13507 # link with -lc, and that would cause any symbols used from libc to
13508 # always be unresolved, which means just about no library would
13509 # ever link correctly. If we're not using GNU ld we use -z text
13510 # though, which does catch some bad symbols but isn't as heavy-handed
13512 no_undefined_flag_FC
='${wl}-z,text'
13513 allow_undefined_flag_FC
='${wl}-z,nodefs'
13514 archive_cmds_need_lc_FC
=no
13515 hardcode_shlibpath_var_FC
=no
13516 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13517 hardcode_libdir_separator_FC
=':'
13518 link_all_deplibs_FC
=yes
13519 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13520 runpath_var
='LD_RUN_PATH'
13522 if test "$GCC" = yes; then
13523 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13526 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13532 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13533 hardcode_libdir_flag_spec_FC
='-L$libdir'
13534 hardcode_shlibpath_var_FC
=no
13542 if test x
$host_vendor = xsni
; then
13544 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13545 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13552 $as_echo "$ld_shlibs_FC" >&6; }
13553 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13555 with_gnu_ld_FC
=$with_gnu_ld
13563 # Do we need to explicitly link libc?
13565 case "x$archive_cmds_need_lc_FC" in
13567 # Assume -lc should be added
13568 archive_cmds_need_lc_FC
=yes
13570 if test "$enable_shared" = yes && test "$GCC" = yes; then
13571 case $archive_cmds_FC in
13573 # FIXME: we may have to deal with multi-command sequences.
13576 # Test whether the compiler implicitly links with -lc since on some
13577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13578 # to ld, don't add -lc before -lgcc.
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13580 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13581 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13582 $as_echo_n "(cached) " >&6
13585 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13588 (eval $ac_compile) 2>&5
13590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13591 test $ac_status = 0; } 2>conftest.err
; then
13594 libobjs
=conftest.
$ac_objext
13596 wl
=$lt_prog_compiler_wl_FC
13597 pic_flag
=$lt_prog_compiler_pic_FC
13603 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13604 allow_undefined_flag_FC
=
13605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13606 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13609 test $ac_status = 0; }
13611 lt_cv_archive_cmds_need_lc_FC
=no
13613 lt_cv_archive_cmds_need_lc_FC
=yes
13615 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13617 cat conftest.err
1>&5
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13623 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13624 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13695 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13697 library_names_spec
=
13698 libname_spec
='lib$name'
13702 postuninstall_cmds
=
13706 shlibpath_overrides_runpath
=unknown
13708 dynamic_linker
="$host_os ld.so"
13709 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13710 need_lib_prefix
=unknown
13711 hardcode_into_libs
=no
13713 # when you set need_version to no, make sure it does not cause -set_version
13714 # flags to be left without arguments
13715 need_version
=unknown
13720 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13721 shlibpath_var
=LIBPATH
13723 # AIX 3 has no versioning support, so we append a major version to the name.
13724 soname_spec
='${libname}${release}${shared_ext}$major'
13731 hardcode_into_libs
=yes
13732 if test "$host_cpu" = ia64
; then
13733 # AIX 5 supports IA64
13734 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13735 shlibpath_var
=LD_LIBRARY_PATH
13737 # With GCC up to 2.95.x, collect2 would create an import file
13738 # for dependence libraries. The import file would start with
13739 # the line `#! .'. This would cause the generated library to
13740 # depend on `.', always an invalid library. This was fixed in
13741 # development snapshots of GCC prior to 3.0.
13743 aix4 | aix4.
[01] | aix4.
[01].
*)
13744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13746 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
13749 can_build_shared
=no
13753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13754 # soname into executable. Probably we can add versioning support to
13755 # collect2, so additional links can be useful in future.
13756 if test "$aix_use_runtimelinking" = yes; then
13757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13758 # instead of lib<name>.a to let people know that these are not
13759 # typical AIX shared libraries.
13760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762 # We preserve .a as extension for shared libraries through AIX4.2
13763 # and later when we are not doing run time linking.
13764 library_names_spec
='${libname}${release}.a $libname.a'
13765 soname_spec
='${libname}${release}${shared_ext}$major'
13767 shlibpath_var
=LIBPATH
13774 # Since July 2007 AmigaOS4 officially supports .so libraries.
13775 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779 library_names_spec
='$libname.ixlibrary $libname.a'
13780 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13781 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'
13787 library_names_spec
='${libname}${shared_ext}'
13788 dynamic_linker
="$host_os ld.so"
13789 shlibpath_var
=LIBRARY_PATH
13795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13796 soname_spec
='${libname}${release}${shared_ext}$major'
13797 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13798 shlibpath_var
=LD_LIBRARY_PATH
13799 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13800 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13801 # the default ld.so.conf also contains /usr/contrib/lib and
13802 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13803 # libtool to hard-code these into programs
13806 cygwin
* | mingw
* | pw32
* | cegcc
*)
13807 version_type
=windows
13812 case $GCC,$host_os in
13813 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
13814 library_names_spec
='$libname.dll.a'
13815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13816 postinstall_cmds
='base_file=`basename \${file}`~
13817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13818 dldir=$destdir/`dirname \$dlpath`~
13819 test -d \$dldir || mkdir -p \$dldir~
13820 $install_prog $dir/$dlname \$dldir/$dlname~
13821 chmod a+x \$dldir/$dlname~
13822 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13823 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13825 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13826 dlpath=$dir/\$dldll~
13828 shlibpath_overrides_runpath
=yes
13832 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13833 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13837 # MinGW DLLs use traditional 'lib' prefix
13838 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13841 # pw32 DLLs use 'pw' prefix rather than 'lib'
13842 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13848 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13851 dynamic_linker
='Win32 ld.exe'
13852 # FIXME: first we should search . and the directory the executable is in
13856 darwin
* | rhapsody
*)
13857 dynamic_linker
="$host_os dyld"
13858 version_type
=darwin
13861 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13862 soname_spec
='${libname}${release}${major}$shared_ext'
13863 shlibpath_overrides_runpath
=yes
13864 shlibpath_var
=DYLD_LIBRARY_PATH
13865 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13867 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13875 soname_spec
='${libname}${release}${shared_ext}$major'
13876 shlibpath_var
=LD_LIBRARY_PATH
13879 freebsd
* | dragonfly
*)
13880 # DragonFly does not have aout. When/if they implement a new
13881 # versioning mechanism, adjust this.
13882 if test -x /usr
/bin
/objformat
; then
13883 objformat
=`/usr/bin/objformat`
13886 freebsd
[23].
*) objformat
=aout
;;
13887 *) objformat
=elf
;;
13890 version_type
=freebsd-
$objformat
13891 case $version_type in
13893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13898 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13902 shlibpath_var
=LD_LIBRARY_PATH
13905 shlibpath_overrides_runpath
=yes
13907 freebsd3.
[01]* | freebsdelf3.
[01]*)
13908 shlibpath_overrides_runpath
=yes
13909 hardcode_into_libs
=yes
13911 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13912 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13913 shlibpath_overrides_runpath
=no
13914 hardcode_into_libs
=yes
13916 *) # from 4.6 on, and DragonFly
13917 shlibpath_overrides_runpath
=yes
13918 hardcode_into_libs
=yes
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
13930 hardcode_into_libs
=yes
13937 dynamic_linker
="$host_os runtime_loader"
13938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13939 soname_spec
='${libname}${release}${shared_ext}$major'
13940 shlibpath_var
=LIBRARY_PATH
13941 shlibpath_overrides_runpath
=yes
13942 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13943 hardcode_into_libs
=yes
13946 hpux9
* | hpux10
* | hpux11
*)
13947 # Give a soname corresponding to the major version so that dld.sl refuses to
13948 # link against other versions.
13955 hardcode_into_libs
=yes
13956 dynamic_linker
="$host_os dld.so"
13957 shlibpath_var
=LD_LIBRARY_PATH
13958 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec
='${libname}${release}${shared_ext}$major'
13961 if test "X$HPUX_IA64_MODE" = X32
; then
13962 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13964 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13966 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13970 hardcode_into_libs
=yes
13971 dynamic_linker
="$host_os dld.sl"
13972 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13973 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13975 soname_spec
='${libname}${release}${shared_ext}$major'
13976 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13977 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13981 dynamic_linker
="$host_os dld.sl"
13982 shlibpath_var
=SHLIB_PATH
13983 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 soname_spec
='${libname}${release}${shared_ext}$major'
13988 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13989 postinstall_cmds
='chmod 555 $lib'
13990 # or fails outright, so override atomically:
13991 install_override_mode
=555
13998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13999 soname_spec
='${libname}${release}${shared_ext}$major'
14000 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14001 shlibpath_var
=LD_LIBRARY_PATH
14002 shlibpath_overrides_runpath
=no
14003 hardcode_into_libs
=yes
14006 irix5
* | irix6
* | nonstopux
*)
14008 nonstopux
*) version_type
=nonstopux
;;
14010 if test "$lt_cv_prog_gnu_ld" = yes; then
14018 soname_spec
='${libname}${release}${shared_ext}$major'
14019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14021 irix5
* | nonstopux
*)
14022 libsuff
= shlibsuff
=
14025 case $LD in # libtool.m4 will add one of these switches to LD
14026 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14027 libsuff
= shlibsuff
= libmagic
=32-bit;;
14028 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14029 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14030 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14031 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14032 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14036 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14037 shlibpath_overrides_runpath
=no
14038 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14039 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14040 hardcode_into_libs
=yes
14043 # No shared lib support for Linux oldld, aout, or coff.
14044 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14048 # This must be Linux ELF.
14049 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14054 soname_spec
='${libname}${release}${shared_ext}$major'
14055 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14056 shlibpath_var
=LD_LIBRARY_PATH
14057 shlibpath_overrides_runpath
=no
14059 # Some binutils ld are patched to set DT_RUNPATH
14060 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14061 $as_echo_n "(cached) " >&6
14063 lt_cv_shlibpath_overrides_runpath
=no
14064 save_LDFLAGS
=$LDFLAGS
14065 save_libdir
=$libdir
14066 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14067 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14068 cat > conftest.
$ac_ext <<_ACEOF
14073 if ac_fn_fc_try_link
"$LINENO"; then :
14074 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14075 lt_cv_shlibpath_overrides_runpath
=yes
14078 rm -f core conftest.err conftest.
$ac_objext \
14079 conftest
$ac_exeext conftest.
$ac_ext
14080 LDFLAGS
=$save_LDFLAGS
14081 libdir
=$save_libdir
14085 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14087 # This implies no fast_install, which is unacceptable.
14088 # Some rework will be needed to allow for fast_install
14089 # before this can be enabled.
14090 hardcode_into_libs
=yes
14092 # Append ld.so.conf contents to the search path
14093 if test -f /etc
/ld.so.conf
; then
14094 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' ' '`
14095 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14098 # We used to test for /lib/ld.so.1 and disable shared libraries on
14099 # powerpc, because MkLinux only supported shared libraries with the
14100 # GNU dynamic linker. Since this was broken with cross compilers,
14101 # most powerpc-linux boxes support dynamic linking these days and
14102 # people can always --disable-shared, the test was removed, and we
14103 # assume the GNU/Linux dynamic linker is in use.
14104 dynamic_linker
='GNU/Linux ld.so'
14111 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14112 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14113 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14114 dynamic_linker
='NetBSD (a.out) ld.so'
14116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14117 soname_spec
='${libname}${release}${shared_ext}$major'
14118 dynamic_linker
='NetBSD ld.elf_so'
14120 shlibpath_var
=LD_LIBRARY_PATH
14121 shlibpath_overrides_runpath
=yes
14122 hardcode_into_libs
=yes
14127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14128 shlibpath_var
=LD_LIBRARY_PATH
14129 shlibpath_overrides_runpath
=yes
14136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 soname_spec
='${libname}${release}${shared_ext}$major'
14138 shlibpath_var
=LD_LIBRARY_PATH
14139 shlibpath_overrides_runpath
=no
14140 hardcode_into_libs
=yes
14141 dynamic_linker
='ldqnx.so'
14146 sys_lib_dlsearch_path_spec
="/usr/lib"
14148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14150 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14151 *) need_version
=no
;;
14153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14154 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14155 shlibpath_var
=LD_LIBRARY_PATH
14156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14158 openbsd2.
[89] | openbsd2.
[89].
*)
14159 shlibpath_overrides_runpath
=no
14162 shlibpath_overrides_runpath
=yes
14166 shlibpath_overrides_runpath
=yes
14171 libname_spec
='$name'
14174 library_names_spec
='$libname${shared_ext} $libname.a'
14175 dynamic_linker
='OS/2 ld.exe'
14176 shlibpath_var
=LIBPATH
14179 osf3
* | osf4
* | osf5
*)
14183 soname_spec
='${libname}${release}${shared_ext}$major'
14184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14185 shlibpath_var
=LD_LIBRARY_PATH
14186 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14187 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14198 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199 soname_spec
='${libname}${release}${shared_ext}$major'
14200 shlibpath_var
=LD_LIBRARY_PATH
14201 shlibpath_overrides_runpath
=yes
14202 hardcode_into_libs
=yes
14203 # ldd complains unless libraries are executable
14204 postinstall_cmds
='chmod +x $lib'
14209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14210 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14211 shlibpath_var
=LD_LIBRARY_PATH
14212 shlibpath_overrides_runpath
=yes
14213 if test "$with_gnu_ld" = yes; then
14221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14222 soname_spec
='${libname}${release}${shared_ext}$major'
14223 shlibpath_var
=LD_LIBRARY_PATH
14224 case $host_vendor in
14226 shlibpath_overrides_runpath
=no
14228 runpath_var
=LD_RUN_PATH
14236 shlibpath_overrides_runpath
=no
14237 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14243 if test -d /usr
/nec
;then
14245 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14246 soname_spec
='$libname${shared_ext}.$major'
14247 shlibpath_var
=LD_LIBRARY_PATH
14251 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14252 version_type
=freebsd-elf
14255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14256 soname_spec
='${libname}${release}${shared_ext}$major'
14257 shlibpath_var
=LD_LIBRARY_PATH
14258 shlibpath_overrides_runpath
=yes
14259 hardcode_into_libs
=yes
14260 if test "$with_gnu_ld" = yes; then
14261 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14263 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14266 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14270 sys_lib_dlsearch_path_spec
='/usr/lib'
14274 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14279 shlibpath_var
=LD_LIBRARY_PATH
14280 shlibpath_overrides_runpath
=no
14281 hardcode_into_libs
=yes
14286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14287 soname_spec
='${libname}${release}${shared_ext}$major'
14288 shlibpath_var
=LD_LIBRARY_PATH
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14296 $as_echo "$dynamic_linker" >&6; }
14297 test "$dynamic_linker" = no
&& can_build_shared
=no
14299 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14300 if test "$GCC" = yes; then
14301 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14304 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14305 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14307 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14308 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14349 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14350 hardcode_action_FC
=
14351 if test -n "$hardcode_libdir_flag_spec_FC" ||
14352 test -n "$runpath_var_FC" ||
14353 test "X$hardcode_automatic_FC" = "Xyes" ; then
14355 # We can hardcode non-existent directories.
14356 if test "$hardcode_direct_FC" != no
&&
14357 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14358 # have to relink, otherwise we might link with an installed library
14359 # when we should be linking with a yet-to-be-installed one
14360 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14361 test "$hardcode_minus_L_FC" != no
; then
14362 # Linking always hardcodes the temporary library directory.
14363 hardcode_action_FC
=relink
14365 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14366 hardcode_action_FC
=immediate
14369 # We cannot hardcode anything, or else we can only hardcode existing
14371 hardcode_action_FC
=unsupported
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14374 $as_echo "$hardcode_action_FC" >&6; }
14376 if test "$hardcode_action_FC" = relink ||
14377 test "$inherit_rpath_FC" = yes; then
14378 # Fast installation is not supported
14379 enable_fast_install
=no
14380 elif test "$shlibpath_overrides_runpath" = yes ||
14381 test "$enable_shared" = no
; then
14382 # Fast installation is not necessary
14383 enable_fast_install
=needless
14392 fi # test -n "$compiler"
14396 fi # test "$_lt_disable_FC" != yes
14399 ac_cpp
='$CPP $CPPFLAGS'
14400 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14401 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14402 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14405 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14407 # For libtool versioning info, format is CURRENT:REVISION:AGE
14408 libtool_VERSION
=1:0:0
14411 # Check header files.
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14413 $as_echo_n "checking for ANSI C header files... " >&6; }
14414 if test "${ac_cv_header_stdc+set}" = set; then :
14415 $as_echo_n "(cached) " >&6
14417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 #include <stdlib.h>
14420 #include <stdarg.h>
14421 #include <string.h>
14432 if ac_fn_c_try_compile
"$LINENO"; then :
14433 ac_cv_header_stdc
=yes
14435 ac_cv_header_stdc
=no
14437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14439 if test $ac_cv_header_stdc = yes; then
14440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443 #include <string.h>
14446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14447 $EGREP "memchr" >/dev
/null
2>&1; then :
14450 ac_cv_header_stdc
=no
14456 if test $ac_cv_header_stdc = yes; then
14457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460 #include <stdlib.h>
14463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14464 $EGREP "free" >/dev
/null
2>&1; then :
14467 ac_cv_header_stdc
=no
14473 if test $ac_cv_header_stdc = yes; then
14474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14475 if test "$cross_compiling" = yes; then :
14478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14481 #include <stdlib.h>
14482 #if ((' ' & 0x0FF) == 0x020)
14483 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14484 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14486 # define ISLOWER(c) \
14487 (('a' <= (c) && (c) <= 'i') \
14488 || ('j' <= (c) && (c) <= 'r') \
14489 || ('s' <= (c) && (c) <= 'z'))
14490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14498 for (i = 0; i < 256; i++)
14499 if (XOR (islower (i), ISLOWER (i))
14500 || toupper (i) != TOUPPER (i))
14505 if ac_fn_c_try_run
"$LINENO"; then :
14508 ac_cv_header_stdc
=no
14510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14517 $as_echo "$ac_cv_header_stdc" >&6; }
14518 if test $ac_cv_header_stdc = yes; then
14520 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14525 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14526 if test "${ac_cv_header_time+set}" = set; then :
14527 $as_echo_n "(cached) " >&6
14529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531 #include <sys/types.h>
14532 #include <sys/time.h>
14538 if ((struct tm *) 0)
14544 if ac_fn_c_try_compile
"$LINENO"; then :
14545 ac_cv_header_time
=yes
14547 ac_cv_header_time
=no
14549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14552 $as_echo "$ac_cv_header_time" >&6; }
14553 if test $ac_cv_header_time = yes; then
14555 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14560 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14561 if test "${gcc_cv_header_string+set}" = set; then :
14562 $as_echo_n "(cached) " >&6
14564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 #include <string.h>
14567 #include <strings.h>
14576 if ac_fn_c_try_compile
"$LINENO"; then :
14577 gcc_cv_header_string
=yes
14579 gcc_cv_header_string
=no
14581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14584 $as_echo "$gcc_cv_header_string" >&6; }
14585 if test $gcc_cv_header_string = yes; then
14587 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14591 for ac_header
in unistd.h semaphore.h sys
/loadavg.h sys
/time.h sys
/time.h
14593 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14594 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14595 eval as_val
=\$
$as_ac_Header
14596 if test "x$as_val" = x
""yes; then :
14597 cat >>confdefs.h
<<_ACEOF
14598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14608 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14610 acx_cv_header_stdint
=stddef.h
14611 acx_cv_header_stdint_kind
="(already complete)"
14612 for i
in stdint.h
$inttype_headers; do
14613 unset ac_cv_type_uintptr_t
14614 unset ac_cv_type_uintmax_t
14615 unset ac_cv_type_int_least32_t
14616 unset ac_cv_type_int_fast32_t
14617 unset ac_cv_type_uint64_t
14618 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14619 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14622 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
14623 acx_cv_header_stdint
=$i
14628 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14631 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
14634 acx_cv_header_stdint_kind
="(mostly complete)"
14637 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14640 if test "x$ac_cv_type_int_least32_t" = x
""yes; then :
14643 acx_cv_header_stdint_kind
="(mostly complete)"
14646 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14649 if test "x$ac_cv_type_int_fast32_t" = x
""yes; then :
14652 acx_cv_header_stdint_kind
="(mostly complete)"
14655 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14658 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
14661 acx_cv_header_stdint_kind
="(lacks uint64_t)"
14666 if test "$acx_cv_header_stdint" = stddef.h
; then
14667 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
14668 for i
in stdint.h
$inttype_headers; do
14669 unset ac_cv_type_uintptr_t
14670 unset ac_cv_type_uint32_t
14671 unset ac_cv_type_uint64_t
14672 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14673 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14676 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
14677 acx_cv_header_stdint
=$i
14682 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14685 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
14689 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14692 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
14699 if test "$acx_cv_header_stdint" = stddef.h
; then
14700 acx_cv_header_stdint_kind
="(u_intXX_t style)"
14701 for i
in sys
/types.h
$inttype_headers; do
14702 unset ac_cv_type_u_int32_t
14703 unset ac_cv_type_u_int64_t
14704 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14705 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14708 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
14709 acx_cv_header_stdint
=$i
14714 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14717 if test "x$ac_cv_type_u_int64_t" = x
""yes; then :
14724 if test "$acx_cv_header_stdint" = stddef.h
; then
14725 acx_cv_header_stdint_kind
="(using manual detection)"
14728 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
14729 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
14730 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
14731 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
14732 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
14734 # ----------------- Summarize what we found so far
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14737 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14739 case `$as_basename -- gstdint.h ||
14740 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14741 Xgstdint.h : 'X\(//\)$' \| \
14742 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14743 $as_echo X/gstdint.h |
14744 sed '/^.*\/\([^/][^/]*\)\/*$/{
14757 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14758 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14759 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14760 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14765 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14767 # ----------------- done included file, check C basic types --------
14769 # Lacking an uintptr_t? Test size of void *
14770 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14771 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
14772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14774 # This bug is HP SR number 8606223364.
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14776 $as_echo_n "checking size of void *... " >&6; }
14777 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14780 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14783 if test "$ac_cv_type_void_p" = yes; then
14784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14786 { as_fn_set_status
77
14787 as_fn_error
"cannot compute sizeof (void *)
14788 See \`config.log' for more details." "$LINENO" 5; }; }
14790 ac_cv_sizeof_void_p
=0
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14796 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14800 cat >>confdefs.h
<<_ACEOF
14801 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14807 # Lacking an uint64_t? Test size of long
14808 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14809 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
14810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14812 # This bug is HP SR number 8606223364.
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14814 $as_echo_n "checking size of long... " >&6; }
14815 if test "${ac_cv_sizeof_long+set}" = set; then :
14816 $as_echo_n "(cached) " >&6
14818 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14821 if test "$ac_cv_type_long" = yes; then
14822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14824 { as_fn_set_status
77
14825 as_fn_error
"cannot compute sizeof (long)
14826 See \`config.log' for more details." "$LINENO" 5; }; }
14828 ac_cv_sizeof_long
=0
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14834 $as_echo "$ac_cv_sizeof_long" >&6; }
14838 cat >>confdefs.h
<<_ACEOF
14839 #define SIZEOF_LONG $ac_cv_sizeof_long
14845 if test $acx_cv_header_stdint = stddef.h
; then
14846 # Lacking a good header? Test size of everything and deduce all types.
14847 # The cast to long int works around a bug in the HP C Compiler
14848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14850 # This bug is HP SR number 8606223364.
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14852 $as_echo_n "checking size of int... " >&6; }
14853 if test "${ac_cv_sizeof_int+set}" = set; then :
14854 $as_echo_n "(cached) " >&6
14856 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14859 if test "$ac_cv_type_int" = yes; then
14860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14862 { as_fn_set_status
77
14863 as_fn_error
"cannot compute sizeof (int)
14864 See \`config.log' for more details." "$LINENO" 5; }; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14872 $as_echo "$ac_cv_sizeof_int" >&6; }
14876 cat >>confdefs.h
<<_ACEOF
14877 #define SIZEOF_INT $ac_cv_sizeof_int
14881 # The cast to long int works around a bug in the HP C Compiler
14882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14884 # This bug is HP SR number 8606223364.
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14886 $as_echo_n "checking size of short... " >&6; }
14887 if test "${ac_cv_sizeof_short+set}" = set; then :
14888 $as_echo_n "(cached) " >&6
14890 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14893 if test "$ac_cv_type_short" = yes; then
14894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14896 { as_fn_set_status
77
14897 as_fn_error
"cannot compute sizeof (short)
14898 See \`config.log' for more details." "$LINENO" 5; }; }
14900 ac_cv_sizeof_short
=0
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14906 $as_echo "$ac_cv_sizeof_short" >&6; }
14910 cat >>confdefs.h
<<_ACEOF
14911 #define SIZEOF_SHORT $ac_cv_sizeof_short
14915 # The cast to long int works around a bug in the HP C Compiler
14916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14918 # This bug is HP SR number 8606223364.
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14920 $as_echo_n "checking size of char... " >&6; }
14921 if test "${ac_cv_sizeof_char+set}" = set; then :
14922 $as_echo_n "(cached) " >&6
14924 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14927 if test "$ac_cv_type_char" = yes; then
14928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14930 { as_fn_set_status
77
14931 as_fn_error
"cannot compute sizeof (char)
14932 See \`config.log' for more details." "$LINENO" 5; }; }
14934 ac_cv_sizeof_char
=0
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14940 $as_echo "$ac_cv_sizeof_char" >&6; }
14944 cat >>confdefs.h
<<_ACEOF
14945 #define SIZEOF_CHAR $ac_cv_sizeof_char
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14951 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14952 case "$ac_cv_sizeof_char" in
14953 1) acx_cv_type_int8_t
=char
;;
14954 *) as_fn_error
"no 8-bit type, please report a bug" "$LINENO" 5
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14957 $as_echo "$acx_cv_type_int8_t" >&6; }
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14960 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14961 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14962 2:*) acx_cv_type_int16_t
=int
;;
14963 *:2) acx_cv_type_int16_t
=short
;;
14964 *) as_fn_error
"no 16-bit type, please report a bug" "$LINENO" 5
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14967 $as_echo "$acx_cv_type_int16_t" >&6; }
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14970 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14971 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14972 4:*) acx_cv_type_int32_t
=int
;;
14973 *:4) acx_cv_type_int32_t
=long
;;
14974 *) as_fn_error
"no 32-bit type, please report a bug" "$LINENO" 5
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14977 $as_echo "$acx_cv_type_int32_t" >&6; }
14980 # These tests are here to make the output prettier
14982 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14983 case "$ac_cv_sizeof_long" in
14984 8) acx_cv_type_int64_t
=long
;;
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14987 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14989 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14992 # Now we can use the above types
14994 if test "$ac_cv_type_uintptr_t" != yes; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14996 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14997 case $ac_cv_sizeof_void_p in
14998 2) acx_cv_type_intptr_t
=int16_t
;;
14999 4) acx_cv_type_intptr_t
=int32_t
;;
15000 8) acx_cv_type_intptr_t
=int64_t
;;
15001 *) as_fn_error
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15004 $as_echo "$acx_cv_type_intptr_t" >&6; }
15007 # ----------------- done all checks, emit header -------------
15008 ac_config_commands
="$ac_config_commands gstdint.h"
15013 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15014 # In case the pthread.h system header is not found, this test will fail.
15016 CFLAGS
="$CFLAGS -pthread"
15017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15019 #include <pthread.h>
15020 void *g(void *d) { return NULL; }
15024 pthread_t t; pthread_create(&t,NULL,g,NULL);
15029 if ac_fn_c_try_link
"$LINENO"; then :
15030 XPCFLAGS
=" -Wc,-pthread"
15032 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
15033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15035 #include <pthread.h>
15036 void *g(void *d) { return NULL; }
15040 pthread_t t; pthread_create(&t,NULL,g,NULL);
15045 if ac_fn_c_try_link
"$LINENO"; then :
15048 as_fn_error
"Pthreads are required to build libgomp" "$LINENO" 5
15050 rm -f core conftest.err conftest.
$ac_objext \
15051 conftest
$ac_exeext conftest.
$ac_ext
15053 rm -f core conftest.err conftest.
$ac_objext \
15054 conftest
$ac_exeext conftest.
$ac_ext
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15058 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15059 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15060 $as_echo_n "(cached) " >&6
15062 ac_check_lib_save_LIBS
=$LIBS
15064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15067 /* Override any GCC internal prototype to avoid an error.
15068 Use char because int might match the return type of a GCC
15069 builtin and then its argument prototype would still apply. */
15082 if ac_fn_c_try_link
"$LINENO"; then :
15083 ac_cv_lib_dl_dlsym
=yes
15085 ac_cv_lib_dl_dlsym
=no
15087 rm -f core conftest.err conftest.
$ac_objext \
15088 conftest
$ac_exeext conftest.
$ac_ext
15089 LIBS
=$ac_check_lib_save_LIBS
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15092 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15093 if test "x$ac_cv_lib_dl_dlsym" = x
""yes; then :
15094 cat >>confdefs.h
<<_ACEOF
15095 #define HAVE_LIBDL 1
15104 ac_fn_c_check_header_mongrel
"$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
15105 if test "x$ac_cv_header_dirent_h" = x
""yes; then :
15113 if test x
$plugin_support = xyes
; then
15115 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15117 elif test "x$enable_accelerator" != xno
; then
15118 as_fn_error
"Can't have support for accelerators without support for plugins" "$LINENO" 5
15123 subdirs
="$subdirs plugin"
15126 # Check for functions needed.
15127 for ac_func
in getloadavg clock_gettime strtoull
15129 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15130 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15131 eval as_val
=\$
$as_ac_var
15132 if test "x$as_val" = x
""yes; then :
15133 cat >>confdefs.h
<<_ACEOF
15134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15141 # Check for broken semaphore implementation on darwin.
15142 # sem_init returns: sem_init error: Function not implemented.
15146 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15151 # Check whether --enable-linux-futex was given.
15152 if test "${enable_linux_futex+set}" = set; then :
15153 enableval
=$enable_linux_futex;
15154 case "$enableval" in
15156 *) as_fn_error
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15160 enable_linux_futex
=default
15166 case "$enable_linux_futex" in
15168 # If headers don't have gettid/futex syscalls definition, then
15169 # default to no, otherwise there will be compile time failures.
15170 # Otherwise, default to yes. If we don't detect we are
15171 # compiled/linked against NPTL and not cross-compiling, check
15172 # if programs are run by default against NPTL and if not, issue
15174 enable_linux_futex
=no
15175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 #include <sys/syscall.h>
15182 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15187 if ac_fn_c_try_link
"$LINENO"; then :
15189 LIBS
="-lpthread $LIBS"
15190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15192 #ifndef _GNU_SOURCE
15193 #define _GNU_SOURCE 1
15195 #include <pthread.h>
15196 pthread_t th; void *status;
15200 pthread_tryjoin_np (th, &status);
15205 if ac_fn_c_try_link
"$LINENO"; then :
15206 enable_linux_futex
=yes
15208 if test x
$cross_compiling = xno
; then
15209 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15210 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15212 If so, please configure with --disable-linux-futex" >&5
15213 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15214 If so, please configure with --disable-linux-futex" >&2;}
15217 enable_linux_futex
=yes
15219 rm -f core conftest.err conftest.
$ac_objext \
15220 conftest
$ac_exeext conftest.
$ac_ext
15223 rm -f core conftest.err conftest.
$ac_objext \
15224 conftest
$ac_exeext conftest.
$ac_ext
15227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 #include <sys/syscall.h>
15234 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15239 if ac_fn_c_try_link
"$LINENO"; then :
15242 as_fn_error
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15244 rm -f core conftest.err conftest.
$ac_objext \
15245 conftest
$ac_exeext conftest.
$ac_ext
15250 enable_linux_futex
=no
15253 if test x
$enable_linux_futex = xyes
; then
15258 # Check for pthread_{,attr_}[sg]etaffinity_np.
15259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15261 #define _GNU_SOURCE
15262 #include <pthread.h>
15267 pthread_attr_t attr;
15268 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15269 if (CPU_ISSET (0, &cpuset))
15270 CPU_SET (1, &cpuset);
15272 CPU_ZERO (&cpuset);
15273 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15274 pthread_attr_init (&attr);
15275 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15276 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15281 if ac_fn_c_try_link
"$LINENO"; then :
15283 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15286 rm -f core conftest.err conftest.
$ac_objext \
15287 conftest
$ac_exeext conftest.
$ac_ext
15289 # At least for glibc, clock_gettime is in librt. But don't pull that
15290 # in if it still doesn't give us the function we want.
15291 if test $ac_cv_func_clock_gettime = no
; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15293 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15294 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15295 $as_echo_n "(cached) " >&6
15297 ac_check_lib_save_LIBS
=$LIBS
15299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15302 /* Override any GCC internal prototype to avoid an error.
15303 Use char because int might match the return type of a GCC
15304 builtin and then its argument prototype would still apply. */
15308 char clock_gettime ();
15312 return clock_gettime ();
15317 if ac_fn_c_try_link
"$LINENO"; then :
15318 ac_cv_lib_rt_clock_gettime
=yes
15320 ac_cv_lib_rt_clock_gettime
=no
15322 rm -f core conftest.err conftest.
$ac_objext \
15323 conftest
$ac_exeext conftest.
$ac_ext
15324 LIBS
=$ac_check_lib_save_LIBS
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15327 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15328 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
15331 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15337 # See if we support thread-local storage.
15340 # Check whether --enable-tls was given.
15341 if test "${enable_tls+set}" = set; then :
15342 enableval
=$enable_tls;
15343 case "$enableval" in
15345 *) as_fn_error
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15354 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15355 if test "${gcc_cv_have_tls+set}" = set; then :
15356 $as_echo_n "(cached) " >&6
15359 if test "$cross_compiling" = yes; then :
15360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 __thread int a; int b; int main() { return a = b; }
15364 if ac_fn_c_try_link
"$LINENO"; then :
15365 chktls_save_LDFLAGS
="$LDFLAGS"
15368 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15371 chktls_save_CFLAGS
="$CFLAGS"
15372 CFLAGS
="-fPIC $CFLAGS"
15373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 int f() { return 0; }
15377 if ac_fn_c_try_link
"$LINENO"; then :
15378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15380 __thread int a; int b; int f() { return a = b; }
15382 if ac_fn_c_try_link
"$LINENO"; then :
15383 gcc_cv_have_tls
=yes
15387 rm -f core conftest.err conftest.
$ac_objext \
15388 conftest
$ac_exeext conftest.
$ac_ext
15390 gcc_cv_have_tls
=yes
15392 rm -f core conftest.err conftest.
$ac_objext \
15393 conftest
$ac_exeext conftest.
$ac_ext
15394 CFLAGS
="$chktls_save_CFLAGS"
15395 LDFLAGS
="$chktls_save_LDFLAGS"
15399 rm -f core conftest.err conftest.
$ac_objext \
15400 conftest
$ac_exeext conftest.
$ac_ext
15404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15406 __thread int a; int b; int main() { return a = b; }
15408 if ac_fn_c_try_run
"$LINENO"; then :
15409 chktls_save_LDFLAGS
="$LDFLAGS"
15410 LDFLAGS
="-static $LDFLAGS"
15411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413 int main() { return 0; }
15415 if ac_fn_c_try_link
"$LINENO"; then :
15416 if test "$cross_compiling" = yes; then :
15417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15419 as_fn_error
"cannot run test program while cross compiling
15420 See \`config.log' for more details." "$LINENO" 5; }
15422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h. */
15424 __thread int a; int b; int main() { return a = b; }
15426 if ac_fn_c_try_run
"$LINENO"; then :
15427 gcc_cv_have_tls
=yes
15431 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15432 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15436 gcc_cv_have_tls
=yes
15438 rm -f core conftest.err conftest.
$ac_objext \
15439 conftest
$ac_exeext conftest.
$ac_ext
15440 LDFLAGS
="$chktls_save_LDFLAGS"
15441 if test $gcc_cv_have_tls = yes; then
15442 chktls_save_CFLAGS
="$CFLAGS"
15443 thread_CFLAGS
=failed
15444 for flag
in '' '-pthread' '-lpthread'; do
15445 CFLAGS
="$flag $chktls_save_CFLAGS"
15446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15448 #include <pthread.h>
15449 void *g(void *d) { return NULL; }
15453 pthread_t t; pthread_create(&t,NULL,g,NULL);
15458 if ac_fn_c_try_link
"$LINENO"; then :
15459 thread_CFLAGS
="$flag"
15461 rm -f core conftest.err conftest.
$ac_objext \
15462 conftest
$ac_exeext conftest.
$ac_ext
15463 if test "X$thread_CFLAGS" != Xfailed
; then
15467 CFLAGS
="$chktls_save_CFLAGS"
15468 if test "X$thread_CFLAGS" != Xfailed
; then
15469 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15470 if test "$cross_compiling" = yes; then :
15471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15473 as_fn_error
"cannot run test program while cross compiling
15474 See \`config.log' for more details." "$LINENO" 5; }
15476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15478 #include <pthread.h>
15480 static int *volatile a_in_other_thread;
15482 thread_func (void *arg)
15484 a_in_other_thread = &a;
15491 void *thread_retval;
15492 int *volatile a_in_main_thread;
15493 a_in_main_thread = &a;
15494 if (pthread_create (&thread, (pthread_attr_t *)0,
15495 thread_func, (void *)0))
15497 if (pthread_join (thread, &thread_retval))
15499 return (a_in_other_thread == a_in_main_thread);
15504 if ac_fn_c_try_run
"$LINENO"; then :
15505 gcc_cv_have_tls
=yes
15509 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15510 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15513 CFLAGS
="$chktls_save_CFLAGS"
15519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15520 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15525 $as_echo "$gcc_cv_have_tls" >&6; }
15526 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15528 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15532 # See what sort of export controls are available.
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15535 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15536 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15537 $as_echo_n "(cached) " >&6
15540 save_CFLAGS
="$CFLAGS"
15541 CFLAGS
="$CFLAGS -Werror"
15542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 void __attribute__((visibility("hidden"))) foo(void) { }
15553 if ac_fn_c_try_compile
"$LINENO"; then :
15554 libgomp_cv_have_attribute_visibility
=yes
15556 libgomp_cv_have_attribute_visibility
=no
15558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15559 CFLAGS
="$save_CFLAGS"
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15562 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15563 if test $libgomp_cv_have_attribute_visibility = yes; then
15565 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15570 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15571 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15572 $as_echo_n "(cached) " >&6
15575 save_CFLAGS
="$CFLAGS"
15576 CFLAGS
="$CFLAGS -Werror"
15577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579 void __attribute__((dllexport)) foo(void) { }
15588 if ac_fn_c_try_compile
"$LINENO"; then :
15589 libgomp_cv_have_attribute_dllexport
=yes
15591 libgomp_cv_have_attribute_dllexport
=no
15593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15594 CFLAGS
="$save_CFLAGS"
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15597 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15598 if test $libgomp_cv_have_attribute_dllexport = yes; then
15600 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15605 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15606 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15607 $as_echo_n "(cached) " >&6
15610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15614 extern void bar(void) __attribute__((alias("foo")));
15623 if ac_fn_c_try_link
"$LINENO"; then :
15624 libgomp_cv_have_attribute_alias
=yes
15626 libgomp_cv_have_attribute_alias
=no
15628 rm -f core conftest.err conftest.
$ac_objext \
15629 conftest
$ac_exeext conftest.
$ac_ext
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15632 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15633 if test $libgomp_cv_have_attribute_alias = yes; then
15635 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15640 # Check whether --with-gnu-ld was given.
15641 if test "${with_gnu_ld+set}" = set; then :
15642 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
15648 if test "$GCC" = yes; then
15649 # Check if gcc -print-prog-name=ld gives a path.
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15651 $as_echo_n "checking for ld used by $CC... " >&6; }
15654 # gcc leaves a trailing carriage return which upsets mingw
15655 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15657 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15660 # Accept absolute paths.
15662 re_direlt
='/[^/][^/]*/\.\./'
15663 # Canonicalize the pathname of ld
15664 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15665 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
15666 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15668 test -z "$LD" && LD
="$ac_prog"
15671 # If it fails, then pretend we aren't using GCC.
15675 # If it is relative, then search for the first ld in PATH.
15676 with_gnu_ld
=unknown
15679 elif test "$with_gnu_ld" = yes; then
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15681 $as_echo_n "checking for GNU ld... " >&6; }
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15684 $as_echo_n "checking for non-GNU ld... " >&6; }
15686 if test "${lt_cv_path_LD+set}" = set; then :
15687 $as_echo_n "(cached) " >&6
15689 if test -z "$LD"; then
15690 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15691 for ac_dir
in $PATH; do
15693 test -z "$ac_dir" && ac_dir
=.
15694 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15695 lt_cv_path_LD
="$ac_dir/$ac_prog"
15696 # Check to see if the program is GNU ld. I'd rather use --version,
15697 # but apparently some variants of GNU ld only accept -v.
15698 # Break only if it was the GNU/non-GNU ld that we prefer.
15699 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15700 *GNU
* |
*'with BFD'*)
15701 test "$with_gnu_ld" != no
&& break
15704 test "$with_gnu_ld" != yes && break
15711 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
15715 LD
="$lt_cv_path_LD"
15716 if test -n "$LD"; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15718 $as_echo "$LD" >&6; }
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15721 $as_echo "no" >&6; }
15723 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15725 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15726 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15727 $as_echo_n "(cached) " >&6
15729 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15730 case `$LD -v 2>&1 </dev/null` in
15731 *GNU
* |
*'with BFD'*)
15732 lt_cv_prog_gnu_ld
=yes
15735 lt_cv_prog_gnu_ld
=no
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15740 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15741 with_gnu_ld
=$lt_cv_prog_gnu_ld
15749 # If we're not using GNU ld, then there's no point in even trying these
15750 # tests. Check for that first. We should have already tested for gld
15751 # by now (in libtool), but require it now just to be safe...
15752 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
15753 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
15757 # The name set by libtool depends on the version of libtool. Shame on us
15758 # for depending on an impl detail, but c'est la vie. Older versions used
15759 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15760 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15761 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15762 # set (hence we're using an older libtool), then set it.
15763 if test x
${with_gnu_ld+set} != xset
; then
15764 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
15765 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15768 with_gnu_ld
=$ac_cv_prog_gnu_ld
15772 # Start by getting the version number. I think the libtool test already
15773 # does some of this, but throws away the result.
15774 libgomp_ld_is_gold
=no
15775 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
15776 libgomp_ld_is_gold
=yes
15779 ldver
=`$LD --version 2>/dev/null |
15780 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'`
15782 libgomp_gnu_ld_version
=`echo $ldver | \
15783 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15785 # Set --gc-sections.
15786 if test "$with_gnu_ld" = "notbroken"; then
15787 # GNU ld it is! Joy and bunny rabbits!
15789 # All these tests are for C++; save the language and the compiler flags.
15790 # Need to do this so that g++ won't try to link in libstdc++
15791 ac_test_CFLAGS
="${CFLAGS+set}"
15792 ac_save_CFLAGS
="$CFLAGS"
15793 CFLAGS
='-x c++ -Wl,--gc-sections'
15795 # Check for -Wl,--gc-sections
15796 # XXX This test is broken at the moment, as symbols required for linking
15797 # are now in libsupc++ (not built yet). In addition, this test has
15798 # cored on solaris in the past. In addition, --gc-sections doesn't
15799 # really work at the moment (keeps on discarding used sections, first
15800 # .eh_frame and now some of the glibc sections for iconv).
15801 # Bzzzzt. Thanks for playing, maybe next time.
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15803 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15804 if test "$cross_compiling" = yes; then :
15805 ac_sectionLDflags
=yes
15807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15808 /* end confdefs.h. */
15818 if ac_fn_c_try_run
"$LINENO"; then :
15819 ac_sectionLDflags
=yes
15821 ac_sectionLDflags
=no
15823 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15824 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15827 if test "$ac_test_CFLAGS" = set; then
15828 CFLAGS
="$ac_save_CFLAGS"
15830 # this is the suspicious part
15833 if test "$ac_sectionLDflags" = "yes"; then
15834 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15837 $as_echo "$ac_sectionLDflags" >&6; }
15840 # Set linker optimization flags.
15841 if test x
"$with_gnu_ld" = x
"yes"; then
15842 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
15850 # Check whether --enable-symvers was given.
15851 if test "${enable_symvers+set}" = set; then :
15852 enableval
=$enable_symvers;
15853 case "$enableval" in
15854 yes|no|gnu
*|sun
) ;;
15855 *) as_fn_error
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15864 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15865 # don't know enough about $LD to do tricks...
15868 # Turn a 'yes' into a suitable default.
15869 if test x
$enable_symvers = xyes
; then
15870 # FIXME The following test is too strict, in theory.
15871 if test $enable_shared = no ||
test "x$LD" = x
; then
15874 if test $with_gnu_ld = yes ; then
15877 case ${target_os} in
15878 # Sun symbol versioning exists since Solaris 2.5.
15879 solaris2.
[5-9]* | solaris2.1
[0-9]*)
15880 enable_symvers
=sun
;;
15882 enable_symvers
=no
;;
15888 # Check if 'sun' was requested on non-Solaris 2 platforms.
15889 if test x
$enable_symvers = xsun
; then
15890 case ${target_os} in
15895 # Unlikely to work.
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15897 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15899 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15901 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15907 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15908 if test $enable_symvers != no
; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15910 $as_echo_n "checking for shared libgcc... " >&6; }
15911 ac_save_CFLAGS
="$CFLAGS"
15913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15924 if ac_fn_c_try_link
"$LINENO"; then :
15925 libgomp_shared_libgcc
=yes
15927 libgomp_shared_libgcc
=no
15929 rm -f core conftest.err conftest.
$ac_objext \
15930 conftest
$ac_exeext conftest.
$ac_ext
15931 CFLAGS
="$ac_save_CFLAGS"
15932 if test $libgomp_shared_libgcc = no
; then
15933 cat > conftest.c
<<EOF
15934 int main (void) { return 0; }
15936 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15937 -shared -shared-libgcc -o conftest.so \
15938 conftest.c -v 2>&1 >/dev/null \
15939 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15940 rm -f conftest.c conftest.so
15941 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
15942 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
15943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15954 if ac_fn_c_try_link
"$LINENO"; then :
15955 libgomp_shared_libgcc
=yes
15957 rm -f core conftest.err conftest.
$ac_objext \
15958 conftest
$ac_exeext conftest.
$ac_ext
15959 CFLAGS
="$ac_save_CFLAGS"
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15963 $as_echo "$libgomp_shared_libgcc" >&6; }
15966 # For GNU ld, we need at least this version. The format is described in
15967 # LIBGOMP_CHECK_LINKER_FEATURES above.
15968 libgomp_min_gnu_ld_version
=21400
15969 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15971 # Check to see if unspecified "yes" value can win, given results above.
15972 # Change "yes" into either "no" or a style name.
15973 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
15974 if test $with_gnu_ld = yes; then
15975 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15977 elif test $libgomp_ld_is_gold = yes ; then
15980 # The right tools, the right setup, but too old. Fallbacks?
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15982 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15984 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15986 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15988 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15989 if test $libgomp_gnu_ld_version -ge 21200 ; then
15990 # Globbing fix is present, proper block support is not.
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15992 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15997 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16001 elif test $enable_symvers = sun
; then
16002 : All interesting versions of Sun ld support sun style symbol versioning.
16004 # just fail for now
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16006 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16008 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16010 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16012 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16018 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16019 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16020 $as_echo_n "(cached) " >&6
16023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16025 void foo (void); __asm (".symver foo, bar@SYMVER");
16034 if ac_fn_c_try_compile
"$LINENO"; then :
16035 libgomp_cv_have_as_symver_directive
=yes
16037 libgomp_cv_have_as_symver_directive
=no
16039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16042 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16043 if test $libgomp_cv_have_as_symver_directive = yes; then
16045 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16049 if test $enable_symvers != no
; then
16050 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16051 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16053 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16054 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16057 if test $enable_symvers = gnu
; then
16058 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16059 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16061 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16062 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16065 if test $enable_symvers = sun
; then
16066 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16067 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16069 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16070 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16074 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16076 if test $enable_symvers != no
; then
16077 case ${target_os} in
16078 # The Solaris 2 runtime linker doesn't support the GNU extension of
16079 # binding the same symbol to different versions
16082 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16085 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16092 if test $enable_symvers = gnu
; then
16094 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16098 # Get target configury.
16099 .
${srcdir}/configure.tgt
16100 CFLAGS
="$save_CFLAGS $XCFLAGS"
16102 # Check for __sync_val_compare_and_swap, but only after the target has
16103 # had a chance to set XCFLAGS.
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16106 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16107 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16108 $as_echo_n "(cached) " >&6
16111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16117 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16122 if ac_fn_c_try_link
"$LINENO"; then :
16123 libgomp_cv_have_sync_builtins
=yes
16125 libgomp_cv_have_sync_builtins
=no
16127 rm -f core conftest.err conftest.
$ac_objext \
16128 conftest
$ac_exeext conftest.
$ac_ext
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16131 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16132 if test $libgomp_cv_have_sync_builtins = yes; then
16134 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16138 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16144 # Cleanup and exit.
16145 CFLAGS
="$save_CFLAGS"
16146 cat >confcache
<<\_ACEOF
16147 # This file is a shell script that caches the results of configure
16148 # tests run on this system so they can be shared between configure
16149 # scripts and configure runs, see configure's option --config-cache.
16150 # It is not useful on other systems. If it contains results you don't
16151 # want to keep, you may remove or edit it.
16153 # config.status only pays attention to the cache file if you give it
16154 # the --recheck option to rerun configure.
16156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16158 # following values.
16162 # The following way of writing the cache mishandles newlines in values,
16163 # but we know of no workaround that is simple, portable, and efficient.
16164 # So, we kill variables containing newlines.
16165 # Ultrix sh set writes to stderr and can't be redirected directly,
16166 # and sets the high bit in the cache file unless we assign to the vars.
16168 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16169 eval ac_val
=\$
$ac_var
16173 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16177 _ | IFS | as_nl
) ;; #(
16178 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16179 *) { eval $ac_var=; unset $ac_var;} ;;
16185 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16186 *${as_nl}ac_space
=\
*)
16187 # `set' does not quote correctly, so add quotes: double-quote
16188 # substitution turns \\\\ into \\, and sed turns \\ into \.
16191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16194 # `set' quotes correctly as required by POSIX, so do not add quotes.
16195 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16204 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16206 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16208 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16209 if test -w "$cache_file"; then
16210 test "x$cache_file" != "x/dev/null" &&
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16212 $as_echo "$as_me: updating cache $cache_file" >&6;}
16213 cat confcache
>$cache_file
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16216 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16221 if test ${multilib} = yes; then
16222 multilib_arg
="--enable-multilib"
16227 # Set up the set of libraries that we need to link against for libgomp.
16228 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16229 # which will force linkage against -lpthread (or equivalent for the system).
16230 # That's not 100% ideal, but about the best we can do easily.
16231 if test $enable_shared = yes; then
16232 link_gomp
="-lgomp %{static: $LIBS}"
16234 link_gomp
="-lgomp $LIBS"
16238 if test "$ac_cv_fc_compiler_gnu" = yes; then
16240 USE_FORTRAN_FALSE
='#'
16242 USE_FORTRAN_TRUE
='#'
16247 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16248 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16249 # the underscore here and update the PREREQ. If it doesn't, then we'll
16250 # need to copy this macro to our acinclude.m4.
16251 save_CFLAGS
="$CFLAGS"
16252 for i
in $config_path; do
16253 if test -f $srcdir/config
/$i/omp-lock.h
; then
16254 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16259 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16262 as_fn_error
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16266 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16271 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16276 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16281 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16284 as_fn_error
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16288 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16293 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16298 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16304 # If the lock fits in an integer, then arrange for Fortran to use that
16305 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16306 # Except that we don't have a way at present to multi-lib the installed
16307 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16309 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16310 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16311 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16314 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16315 OMP_NEST_LOCK_KIND
=8
16317 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16318 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16319 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16322 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16323 OMP_NEST_LOCK_25_KIND
=8
16338 CFLAGS
="$save_CFLAGS"
16340 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16342 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
16344 ac_config_files
="$ac_config_files libgomp.spec"
16346 cat >confcache
<<\_ACEOF
16347 # This file is a shell script that caches the results of configure
16348 # tests run on this system so they can be shared between configure
16349 # scripts and configure runs, see configure's option --config-cache.
16350 # It is not useful on other systems. If it contains results you don't
16351 # want to keep, you may remove or edit it.
16353 # config.status only pays attention to the cache file if you give it
16354 # the --recheck option to rerun configure.
16356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16358 # following values.
16362 # The following way of writing the cache mishandles newlines in values,
16363 # but we know of no workaround that is simple, portable, and efficient.
16364 # So, we kill variables containing newlines.
16365 # Ultrix sh set writes to stderr and can't be redirected directly,
16366 # and sets the high bit in the cache file unless we assign to the vars.
16368 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16369 eval ac_val
=\$
$ac_var
16373 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16377 _ | IFS | as_nl
) ;; #(
16378 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16379 *) { eval $ac_var=; unset $ac_var;} ;;
16385 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16386 *${as_nl}ac_space
=\
*)
16387 # `set' does not quote correctly, so add quotes: double-quote
16388 # substitution turns \\\\ into \\, and sed turns \\ into \.
16391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16394 # `set' quotes correctly as required by POSIX, so do not add quotes.
16395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16406 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16408 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16409 if test -w "$cache_file"; then
16410 test "x$cache_file" != "x/dev/null" &&
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16412 $as_echo "$as_me: updating cache $cache_file" >&6;}
16413 cat confcache
>$cache_file
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16421 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16422 # Let make expand exec_prefix.
16423 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16425 DEFS
=-DHAVE_CONFIG_H
16429 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16430 # 1. Remove the extension, and $U if already installed.
16431 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16432 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16434 # will be set to the directory where LIBOBJS objects are built.
16435 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16436 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16438 LIBOBJS
=$ac_libobjs
16440 LTLIBOBJS
=$ac_ltlibobjs
16443 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16444 as_fn_error
"conditional \"GENINSRC\" was never defined.
16445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447 if test -n "$EXEEXT"; then
16449 am__EXEEXT_FALSE
='#'
16451 am__EXEEXT_TRUE
='#'
16455 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16456 as_fn_error
"conditional \"AMDEP\" was never defined.
16457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16460 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16464 as_fn_error
"conditional \"BUILD_INFO\" was never defined.
16465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16468 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16472 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16476 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16480 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16484 as_fn_error
"conditional \"USE_FORTRAN\" was never defined.
16485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16488 : ${CONFIG_STATUS=./config.status}
16490 ac_clean_files_save
=$ac_clean_files
16491 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16493 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16495 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16497 # Generated by $as_me.
16498 # Run this file to recreate the current configuration.
16499 # Compiler output produced by configure, useful for debugging
16500 # configure, is in config.log if it exists.
16503 ac_cs_recheck=false
16506 SHELL=\${CONFIG_SHELL-$SHELL}
16509 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16510 ## -------------------- ##
16511 ## M4sh Initialization. ##
16512 ## -------------------- ##
16514 # Be more Bourne compatible
16515 DUALCASE
=1; export DUALCASE
# for MKS sh
16516 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16519 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16520 # is contrary to our usage. Disable this feature.
16521 alias -g '${1+"$@"}'='"$@"'
16522 setopt NO_GLOB_SUBST
16524 case `(set -o) 2>/dev/null` in #(
16536 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16537 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16538 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16539 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16540 # Prefer a ksh shell builtin over an external printf program on Solaris,
16541 # but without wasting forks for bash or zsh.
16542 if test -z "$BASH_VERSION$ZSH_VERSION" \
16543 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16544 as_echo='print
-r --'
16545 as_echo_n='print
-rn --'
16546 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16547 as_echo='printf %s
\n'
16548 as_echo_n='printf %s
'
16550 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16551 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16552 as_echo_n='/usr
/ucb
/echo -n'
16554 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16555 as_echo_n_body='eval
16559 expr "X$arg" : "X\\(.*\\)$as_nl";
16560 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16562 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16564 export as_echo_n_body
16565 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16567 export as_echo_body
16568 as_echo='sh
-c $as_echo_body as_echo
'
16571 # The user is always right.
16572 if test "${PATH_SEPARATOR+set}" != set; then
16574 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16575 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16582 # We need space, tab and new line, in precisely that order. Quoting is
16583 # there to prevent editors from complaining about space-tab.
16584 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16585 # splitting by setting IFS to empty value.)
16588 # Find who we are. Look in the path if we contain no directory separator.
16590 *[\\/]* ) as_myself=$0 ;;
16591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16595 test -z "$as_dir" && as_dir=.
16596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16602 # We did not find ourselves, most probably we were run as `sh COMMAND'
16603 # in which case we are not to be found in the path.
16604 if test "x$as_myself" = x
; then
16607 if test ! -f "$as_myself"; then
16608 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16612 # Unset variables that we do not need and which cause bugs (e.g. in
16613 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16614 # suppresses any "Segmentation fault" message there. '((' could
16615 # trigger a bug in pdksh 5.2.14.
16616 for as_var
in BASH_ENV ENV MAIL MAILPATH
16617 do eval test x\
${$as_var+set} = xset \
16618 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16631 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16634 # as_fn_error ERROR [LINENO LOG_FD]
16635 # ---------------------------------
16636 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16637 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16638 # script with status $?, using 1 if that was 0.
16641 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16643 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16644 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16646 $as_echo "$as_me: error: $1" >&2
16647 as_fn_exit
$as_status
16651 # as_fn_set_status STATUS
16652 # -----------------------
16653 # Set $? to STATUS, without forking.
16654 as_fn_set_status
()
16657 } # as_fn_set_status
16659 # as_fn_exit STATUS
16660 # -----------------
16661 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16665 as_fn_set_status
$1
16671 # Portably unset VAR.
16674 { eval $1=; unset $1;}
16676 as_unset
=as_fn_unset
16677 # as_fn_append VAR VALUE
16678 # ----------------------
16679 # Append the text in VALUE to the end of the definition contained in VAR. Take
16680 # advantage of any shell optimizations that allow amortized linear growth over
16681 # repeated appends, instead of the typical quadratic growth present in naive
16683 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16684 eval 'as_fn_append ()
16695 # as_fn_arith ARG...
16696 # ------------------
16697 # Perform arithmetic evaluation on the ARGs, and store the result in the
16698 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16699 # must be portable across $(()) and expr.
16700 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16701 eval 'as_fn_arith ()
16708 as_val
=`expr "$@" || test $? -eq 1`
16713 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16714 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16720 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16721 as_basename
=basename
16726 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16732 as_me
=`$as_basename -- "$0" ||
16733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16734 X"$0" : 'X\(//\)$' \| \
16735 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16737 sed '/^.*\/\([^/][^/]*\)\/*$/{
16751 # Avoid depending upon Character Ranges.
16752 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16753 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16754 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16755 as_cr_digits
='0123456789'
16756 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16758 ECHO_C
= ECHO_N
= ECHO_T
=
16759 case `echo -n x` in #(((((
16761 case `echo 'xy\c'` in
16762 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16764 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16771 rm -f conf$$ conf$$.exe conf$$.
file
16772 if test -d conf$$.dir
; then
16773 rm -f conf$$.dir
/conf$$.
file
16776 mkdir conf$$.dir
2>/dev
/null
16778 if (echo >conf$$.
file) 2>/dev
/null
; then
16779 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16781 # ... but there are two gotchas:
16782 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16783 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16784 # In both cases, we have to default to `cp -p'.
16785 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16787 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16795 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16796 rmdir conf$$.dir
2>/dev
/null
16801 # Create "$as_dir" as a directory, including parents if necessary.
16806 -*) as_dir
=.
/$as_dir;;
16808 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16812 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16813 *) as_qdir
=$as_dir;;
16815 as_dirs
="'$as_qdir' $as_dirs"
16816 as_dir
=`$as_dirname -- "$as_dir" ||
16817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16818 X"$as_dir" : 'X\(//\)[^/]' \| \
16819 X"$as_dir" : 'X\(//\)$' \| \
16820 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16821 $as_echo X"$as_dir" |
16822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16826 /^X\(\/\/\)[^/].*/{
16839 test -d "$as_dir" && break
16841 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16842 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16846 if mkdir
-p .
2>/dev
/null
; then
16847 as_mkdir_p
='mkdir -p "$as_dir"'
16849 test -d .
/-p && rmdir .
/-p
16853 if test -x / >/dev
/null
2>&1; then
16854 as_test_x
='test -x'
16856 if ls -dL / >/dev
/null
2>&1; then
16863 if test -d "$1"; then
16869 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16870 ???[sx]*):;;*)false;;esac;fi
16874 as_executable_p
=$as_test_x
16876 # Sed expression to map a string onto a valid CPP name.
16877 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16879 # Sed expression to map a string onto a valid variable name.
16880 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16884 ## ----------------------------------- ##
16885 ## Main body of $CONFIG_STATUS script. ##
16886 ## ----------------------------------- ##
16888 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16891 # Save the log message, to keep $0 and so on meaningful, and to
16892 # report actual input values of CONFIG_FILES etc. instead of their
16893 # values after options handling.
16895 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16896 generated by GNU Autoconf 2.64. Invocation command line was
16898 CONFIG_FILES = $CONFIG_FILES
16899 CONFIG_HEADERS = $CONFIG_HEADERS
16900 CONFIG_LINKS = $CONFIG_LINKS
16901 CONFIG_COMMANDS = $CONFIG_COMMANDS
16904 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16909 case $ac_config_files in *"
16910 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16913 case $ac_config_headers in *"
16914 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16919 # Files that config.status was made for.
16920 config_files="$ac_config_files"
16921 config_headers="$ac_config_headers"
16922 config_commands="$ac_config_commands"
16926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16928 \`$as_me' instantiates files and other configuration actions
16929 from templates according to the current configuration. Unless the files
16930 and actions are specified as TAGs, all are instantiated by default.
16932 Usage: $0 [OPTION]... [TAG]...
16934 -h, --help print this help, then exit
16935 -V, --version print version number and configuration settings, then exit
16936 -q, --quiet, --silent
16937 do not print progress messages
16938 -d, --debug don't remove temporary files
16939 --recheck update $as_me by reconfiguring in the same conditions
16940 --file=FILE[:TEMPLATE]
16941 instantiate the configuration file FILE
16942 --header=FILE[:TEMPLATE]
16943 instantiate the configuration header FILE
16945 Configuration files:
16948 Configuration headers:
16951 Configuration commands:
16954 Report bugs to the package provider.
16955 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16956 General help using GNU software: <http://www.gnu.org/gethelp/>."
16959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16961 GNU OpenMP Runtime Library config.status 1.0
16962 configured by $0, generated by GNU Autoconf 2.64,
16963 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16965 Copyright (C) 2009 Free Software Foundation, Inc.
16966 This config.status script is free software; the Free Software Foundation
16967 gives unlimited permission to copy, distribute and modify it."
16974 test -n "\$AWK" || AWK=awk
16977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16978 # The default lists apply if the user does not specify any file.
16984 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16985 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16996 # Handling of the options.
16997 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16999 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17000 $as_echo "$ac_cs_version"; exit ;;
17001 --debug |
--debu |
--deb |
--de |
--d |
-d )
17003 --file |
--fil |
--fi |
--f )
17006 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17008 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17009 ac_need_defaults
=false
;;
17010 --header |
--heade |
--head |
--hea )
17013 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17015 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17016 ac_need_defaults
=false
;;
17018 # Conflict between --help and --header
17019 as_fn_error
"ambiguous option: \`$1'
17020 Try \`$0 --help' for more information.";;
17021 --help |
--hel |
-h )
17022 $as_echo "$ac_cs_usage"; exit ;;
17023 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17024 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17027 # This is an error.
17028 -*) as_fn_error
"unrecognized option: \`$1'
17029 Try \`$0 --help' for more information." ;;
17031 *) as_fn_append ac_config_targets
" $1"
17032 ac_need_defaults
=false
;;
17038 ac_configure_extra_args
=
17040 if $ac_cs_silent; then
17042 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17047 if \$ac_cs_recheck; then
17048 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17050 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17051 CONFIG_SHELL='$SHELL'
17052 export CONFIG_SHELL
17057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17062 ## Running $as_me. ##
17068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17076 with_multisubdir="$with_multisubdir"
17077 with_multisrctop="$with_multisrctop"
17078 with_target_subdir="$with_target_subdir"
17079 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17080 multi_basedir="$multi_basedir"
17081 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17084 GFORTRAN="$GFORTRAN"
17086 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17089 # The HP-UX ksh and POSIX shell print the target directory to stdout
17090 # if CDPATH is set.
17091 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17093 sed_quote_subst='$sed_quote_subst'
17094 double_quote_subst='$double_quote_subst'
17095 delay_variable_subst='$delay_variable_subst'
17096 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17097 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17098 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17099 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17100 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17101 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17102 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17103 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17104 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17105 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17106 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17107 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17108 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17109 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17110 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17111 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17112 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17113 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17114 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17115 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17116 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17117 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17118 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17119 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17120 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17121 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17122 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17123 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17124 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17125 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17126 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17127 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17128 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17129 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17130 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17131 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17132 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17133 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17134 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17135 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17136 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17137 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17138 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17139 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17140 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17141 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17142 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17143 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17144 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"`'
17145 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17146 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17147 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17148 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17149 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17150 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17151 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17152 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17153 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17154 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17155 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17156 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17157 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17158 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17159 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17160 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17161 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17162 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17163 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17164 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17165 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17166 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17167 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17168 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17169 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17170 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17171 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17172 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17173 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17174 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17175 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17176 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17177 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17178 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17179 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17180 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17181 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17182 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17183 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17184 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17185 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17186 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17187 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17188 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17189 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17190 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17191 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17192 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17193 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17194 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17195 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17196 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17197 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17198 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17199 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17200 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17201 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17202 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17203 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17204 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17205 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17206 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17207 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17208 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17209 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17210 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17211 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17212 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17213 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17214 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17215 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17216 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17217 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17218 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17219 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17220 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17221 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17222 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17223 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17224 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17225 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17226 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17227 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17228 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17229 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17230 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17231 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17232 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17233 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17234 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17235 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17236 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17237 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17238 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17239 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17240 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17241 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17242 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17243 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17244 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17245 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17246 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17247 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17248 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17249 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17250 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17251 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17252 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17253 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17254 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17255 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17256 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17257 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17258 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17259 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17260 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17261 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17262 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17263 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17264 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17265 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17266 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17267 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17268 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17269 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17270 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17273 LTCFLAGS='$LTCFLAGS'
17274 compiler='$compiler_DEFAULT'
17276 # A function that is used when there is no print builtin or printf.
17277 func_fallback_echo ()
17279 eval 'cat <<_LTECHO_EOF
17284 # Quote evaled strings.
17298 deplibs_check_method \
17307 lt_cv_sys_global_symbol_pipe \
17308 lt_cv_sys_global_symbol_to_cdecl \
17309 lt_cv_sys_global_symbol_to_c_name_address \
17310 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17311 lt_prog_compiler_no_builtin_flag \
17312 lt_prog_compiler_wl \
17313 lt_prog_compiler_pic \
17314 lt_prog_compiler_static \
17315 lt_cv_prog_compiler_c_o \
17323 export_dynamic_flag_spec \
17324 whole_archive_flag_spec \
17325 compiler_needs_object \
17327 allow_undefined_flag \
17328 no_undefined_flag \
17329 hardcode_libdir_flag_spec \
17330 hardcode_libdir_flag_spec_ld \
17331 hardcode_libdir_separator \
17336 variables_saved_for_relink \
17338 library_names_spec \
17340 install_override_mode \
17344 compiler_lib_search_dirs \
17349 compiler_lib_search_path \
17353 lt_prog_compiler_no_builtin_flag_FC \
17354 lt_prog_compiler_wl_FC \
17355 lt_prog_compiler_pic_FC \
17356 lt_prog_compiler_static_FC \
17357 lt_cv_prog_compiler_c_o_FC \
17358 export_dynamic_flag_spec_FC \
17359 whole_archive_flag_spec_FC \
17360 compiler_needs_object_FC \
17362 allow_undefined_flag_FC \
17363 no_undefined_flag_FC \
17364 hardcode_libdir_flag_spec_FC \
17365 hardcode_libdir_flag_spec_ld_FC \
17366 hardcode_libdir_separator_FC \
17367 fix_srcfile_path_FC \
17368 exclude_expsyms_FC \
17369 include_expsyms_FC \
17370 file_list_spec_FC \
17371 compiler_lib_search_dirs_FC \
17372 predep_objects_FC \
17373 postdep_objects_FC \
17376 compiler_lib_search_path_FC; do
17377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17378 *[\\\\\\\`\\"\\\$]*)
17379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17387 # Double-quote double-evaled strings.
17388 for var in reload_cmds \
17389 old_postinstall_cmds \
17390 old_postuninstall_cmds \
17392 extract_expsyms_cmds \
17393 old_archive_from_new_cmds \
17394 old_archive_from_expsyms_cmds \
17396 archive_expsym_cmds \
17398 module_expsym_cmds \
17399 export_symbols_cmds \
17402 postuninstall_cmds \
17404 sys_lib_search_path_spec \
17405 sys_lib_dlsearch_path_spec \
17407 old_archive_cmds_FC \
17408 old_archive_from_new_cmds_FC \
17409 old_archive_from_expsyms_cmds_FC \
17411 archive_expsym_cmds_FC \
17413 module_expsym_cmds_FC \
17414 export_symbols_cmds_FC \
17415 prelink_cmds_FC; do
17416 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17417 *[\\\\\\\`\\"\\\$]*)
17418 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17421 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17426 ac_aux_dir='$ac_aux_dir'
17427 xsi_shell='$xsi_shell'
17428 lt_shell_append='$lt_shell_append'
17430 # See if we are running on zsh, and set the options which allow our
17431 # commands through without removal of \ escapes INIT.
17432 if test -n "\${ZSH_VERSION+set}" ; then
17433 setopt NO_GLOB_SUBST
17439 TIMESTAMP='$TIMESTAMP'
17450 acx_cv_header_stdint="$acx_cv_header_stdint"
17451 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17452 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17453 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17454 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17455 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17456 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17457 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17458 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17459 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17460 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17461 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17462 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17463 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17470 # Handling of arguments.
17471 for ac_config_target
in $ac_config_targets
17473 case $ac_config_target in
17474 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17475 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17476 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17477 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17478 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
17479 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
17480 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
17481 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
17482 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
17483 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17484 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17485 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
17487 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17492 # If the user did not use the arguments to specify the items to instantiate,
17493 # then the envvar interface is used. Set only those that are not.
17494 # We use the long form for the default assignment because of an extremely
17495 # bizarre bug on SunOS 4.1.3.
17496 if $ac_need_defaults; then
17497 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17499 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17502 # Have a temporary directory for convenience. Make it in the build tree
17503 # simply because there is no reason against having it here, and in addition,
17504 # creating and moving files from /tmp can sometimes cause problems.
17505 # Hook for its removal unless debugging.
17506 # Note that there is a small window in which the directory will not be cleaned:
17507 # after its creation but before its name has been assigned to `$tmp'.
17511 trap 'exit_status=$?
17512 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17514 trap 'as_fn_exit 1' 1 2 13 15
17516 # Create a (secure) tmp directory for tmp files.
17519 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17520 test -n "$tmp" && test -d "$tmp"
17523 tmp
=.
/conf$$
-$RANDOM
17524 (umask 077 && mkdir
"$tmp")
17525 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17527 # Set up the scripts for CONFIG_FILES section.
17528 # No need to generate them if there are no CONFIG_FILES.
17529 # This happens for instance with `./config.status config.h'.
17530 if test -n "$CONFIG_FILES"; then
17533 ac_cr
=`echo X | tr X '\015'`
17534 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17535 # But we know of no other shell where ac_cr would be empty at this
17536 # point, so we can use a bashism as a fallback.
17537 if test "x$ac_cr" = x
; then
17538 eval ac_cr
=\$
\'\\r
\'
17540 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17541 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17544 ac_cs_awk_cr
=$ac_cr
17547 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17552 echo "cat >conf$$subs.awk <<_ACEOF" &&
17553 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17555 } >conf$$subs.sh ||
17556 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17557 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17559 for ac_last_try in false false false false false :; do
17560 . ./conf$$subs.sh ||
17561 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17563 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17564 if test $ac_delim_n = $ac_delim_num; then
17566 elif $ac_last_try; then
17567 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17569 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17572 rm -f conf$$subs.sh
17574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17575 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17579 s/^/S["/; s
/!.
*/"]=/
17589 s/\(.\{148\}\).*/\1/
17591 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17596 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17603 s/\(.\{148\}\).*/\1/
17605 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17609 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17614 ' <conf$$subs.awk | sed '
17619 ' >>$CONFIG_STATUS || ac_write_fail=1
17620 rm -f conf$$subs.awk
17621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17623 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17624 for (key in S) S_is_set[key] = 1
17630 nfields = split(line, field, "@
")
17632 len = length(field[1])
17633 for (i = 2; i < nfields; i++) {
17635 keylen = length(key)
17636 if (S_is_set[key]) {
17638 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17639 len += length(value) + length(field[++i])
17650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17651 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17652 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17655 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17656 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17661 # trailing colons and then remove the whole line if VPATH becomes empty
17662 # (actually we leave an empty line to preserve line numbers).
17663 if test "x
$srcdir" = x.; then
17664 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17665 s/:*\$(srcdir):*/:/
17666 s/:*\${srcdir}:*/:/
17668 s/^\([^=]*=[ ]*\):*/\1/
17674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17675 fi # test -n "$CONFIG_FILES"
17677 # Set up the scripts for CONFIG_HEADERS section.
17678 # No need to generate them if there are no CONFIG_HEADERS.
17679 # This happens for instance with `./config.status Makefile'.
17680 if test -n "$CONFIG_HEADERS"; then
17681 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17685 # Transform confdefs.h into an awk script `defines.awk', embedded as
17686 # here-document in config.status, that substitutes the proper values into
17687 # config.h.in to produce config.h.
17689 # Create a delimiter string that does not exist in confdefs.h, to ease
17690 # handling of long lines.
17692 for ac_last_try in false false :; do
17693 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17694 if test -z "$ac_t"; then
17696 elif $ac_last_try; then
17697 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17699 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17703 # For the awk script, D is an array of macro values keyed by name,
17704 # likewise P contains macro parameters if any. Preserve backslash
17705 # newline sequences.
17707 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17709 s/.\{148\}/&'"$ac_delim"'/g
17712 s/^[ ]*#[ ]*define[ ][ ]*/ /
17719 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17721 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17726 D["\
1"]=" \
3\\\\\\n
"\\/p
17728 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17733 s/.\{148\}/&'"$ac_delim"'/g
17738 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17741 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17743 ' <confdefs.h | sed '
17744 s/'"$ac_delim"'/"\\\
17745 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17748 for (key in D) D_is_set[key] = 1
17751 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17753 split(line, arg, " ")
17754 if (arg[1] == "#") {
17758 defundef
= substr
(arg
[1], 2)
17761 split(mac1
, mac2
, "(") #)
17763 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17764 if (D_is_set
[macro
]) {
17765 # Preserve the white space surrounding the "#".
17766 print prefix
"define", macro P
[macro
] D
[macro
]
17769 # Replace #undef with comments. This is necessary, for example,
17770 # in the case of _POSIX_SOURCE, which is predefined and required
17771 # on some systems where configure will not decide to define it.
17772 if (defundef
== "undef") {
17773 print
"/*", prefix defundef
, macro
, "*/"
17781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17782 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17783 fi # test -n "$CONFIG_HEADERS"
17786 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17791 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17793 case $ac_mode$ac_tag in
17795 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17796 :[FH
]-) ac_tag
=-:-;;
17797 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17814 -) ac_f
="$tmp/stdin";;
17815 *) # Look for the file first in the build tree, then in the source tree
17816 # (if the path is not absolute). The absolute path cannot be DOS-style,
17817 # because $ac_f cannot contain `:'.
17821 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17823 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17825 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17826 as_fn_append ac_file_inputs
" '$ac_f'"
17829 # Let's still pretend it is `configure' which instantiates (i.e., don't
17830 # use $as_me), people would be surprised to read:
17831 # /* config.h. Generated by config.status. */
17832 configure_input
='Generated from '`
17833 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17835 if test x
"$ac_file" != x-
; then
17836 configure_input
="$ac_file. $configure_input"
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17838 $as_echo "$as_me: creating $ac_file" >&6;}
17840 # Neutralize special characters interpreted by sed in replacement strings.
17841 case $configure_input in #(
17842 *\
&* |
*\|
* |
*\\* )
17843 ac_sed_conf_input
=`$as_echo "$configure_input" |
17844 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17845 *) ac_sed_conf_input
=$configure_input;;
17849 *:-:* |
*:-) cat >"$tmp/stdin" \
17850 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17855 ac_dir
=`$as_dirname -- "$ac_file" ||
17856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17857 X"$ac_file" : 'X\(//\)[^/]' \| \
17858 X"$ac_file" : 'X\(//\)$' \| \
17859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17860 $as_echo X"$ac_file" |
17861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17865 /^X\(\/\/\)[^/].*/{
17878 as_dir
="$ac_dir"; as_fn_mkdir_p
17882 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17884 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17885 # A ".." for each directory in $ac_dir_suffix.
17886 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17887 case $ac_top_builddir_sub in
17888 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17889 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17892 ac_abs_top_builddir
=$ac_pwd
17893 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17894 # for backward compatibility:
17895 ac_top_builddir
=$ac_top_build_prefix
17898 .
) # We are building in place.
17900 ac_top_srcdir
=$ac_top_builddir_sub
17901 ac_abs_top_srcdir
=$ac_pwd ;;
17902 [\\/]* | ?
:[\\/]* ) # Absolute name.
17903 ac_srcdir
=$srcdir$ac_dir_suffix;
17904 ac_top_srcdir
=$srcdir
17905 ac_abs_top_srcdir
=$srcdir ;;
17906 *) # Relative name.
17907 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17908 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17909 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17911 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17921 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17922 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17924 ac_MKDIR_P
=$MKDIR_P
17926 [\\/$
]* | ?
:[\\/]* ) ;;
17927 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17932 # If the template does not know about datarootdir, expand it.
17933 # FIXME: This hack should be removed a few years after 2.60.
17934 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17945 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17946 *datarootdir
*) ac_datarootdir_seen
=yes;;
17947 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17949 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17952 ac_datarootdir_hack='
17953 s&@datadir@&$datadir&g
17954 s&@docdir@&$docdir&g
17955 s&@infodir@&$infodir&g
17956 s&@localedir@&$localedir&g
17957 s&@mandir@&$mandir&g
17958 s&\\\${datarootdir}&$datarootdir&g' ;;
17962 # Neutralize VPATH when `$srcdir' = `.'.
17963 # Shell code in configure.ac might set extrasub.
17964 # FIXME: do we really want to maintain this feature?
17965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17966 ac_sed_extra="$ac_vpsub
17969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17971 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17972 s|@configure_input@|
$ac_sed_conf_input|
;t t
17973 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17974 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17975 s
&@srcdir@
&$ac_srcdir&;t t
17976 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17977 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17978 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17979 s
&@builddir@
&$ac_builddir&;t t
17980 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17981 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17982 s
&@INSTALL@
&$ac_INSTALL&;t t
17983 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17984 $ac_datarootdir_hack
17986 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17987 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17989 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17990 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17993 which seems to be undefined. Please make sure it is defined." >&5
17994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17995 which seems to be undefined. Please make sure it is defined." >&2;}
17999 -) cat "$tmp/out" && rm -f "$tmp/out";;
18000 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18002 || as_fn_error "could not create $ac_file" "$LINENO" 5
18008 if test x"$ac_file" != x-; then
18010 $as_echo "/* $configure_input */" \
18011 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18012 } >"$tmp/config.h" \
18013 || as_fn_error "could not create $ac_file" "$LINENO" 5
18014 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18016 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18019 mv "$tmp/config.h" "$ac_file" \
18020 || as_fn_error "could not create $ac_file" "$LINENO" 5
18023 $as_echo "/* $configure_input */" \
18024 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18025 || as_fn_error "could not create -" "$LINENO" 5
18027 # Compute "$ac_file"'s index
in $config_headers.
18030 for _am_header
in $config_headers :; do
18031 case $_am_header in
18032 $_am_arg |
$_am_arg:* )
18035 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18038 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18039 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18040 X"$_am_arg" : 'X\(//\)[^/]' \| \
18041 X"$_am_arg" : 'X\(//\)$' \| \
18042 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18043 $as_echo X"$_am_arg" |
18044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18048 /^X\(\/\/\)[^/].*/{
18060 s/.*/./; q'`/stamp-h
$_am_stamp_count
18063 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18064 $as_echo "$as_me: executing $ac_file commands" >&6;}
18069 case $ac_file$ac_mode in
18071 # Only add multilib support code if we just rebuilt the top-level
18073 case " $CONFIG_FILES " in
18075 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18078 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18079 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18080 # are listed without --file. Let's play safe and only enable the eval
18081 # if we detect the quoting.
18082 case $CONFIG_FILES in
18083 *\'*) eval set x
"$CONFIG_FILES" ;;
18084 *) set x
$CONFIG_FILES ;;
18089 # Strip MF so we end up with the name of the file.
18090 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18091 # Check whether this is an Automake generated Makefile or not.
18092 # We used to match only the files named `Makefile.in', but
18093 # some people rename them; so instead we look at the file content.
18094 # Grep'ing the first line is not enough: some people post-process
18095 # each Makefile.in and add a new line on top of each file to say so.
18096 # Grep'ing the whole file is not good either: AIX grep has a line
18097 # limit of 2048, but all sed's we know have understand at least 4000.
18098 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18099 dirpart
=`$as_dirname -- "$mf" ||
18100 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18101 X"$mf" : 'X\(//\)[^/]' \| \
18102 X"$mf" : 'X\(//\)$' \| \
18103 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18109 /^X\(\/\/\)[^/].*/{
18125 # Extract the definition of DEPDIR, am__include, and am__quote
18126 # from the Makefile without running `make'.
18127 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18128 test -z "$DEPDIR" && continue
18129 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18130 test -z "am__include" && continue
18131 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18132 # When using ansi2knr, U may be empty or an underscore; expand it
18133 U
=`sed -n 's/^U = //p' < "$mf"`
18134 # Find all dependency output files, they are included files with
18135 # $(DEPDIR) in their names. We invoke sed twice because it is the
18136 # simplest approach to changing $(DEPDIR) to its actual value in the
18138 for file in `sed -n "
18139 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18140 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18141 # Make sure the directory exists.
18142 test -f "$dirpart/$file" && continue
18143 fdir
=`$as_dirname -- "$file" ||
18144 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18145 X"$file" : 'X\(//\)[^/]' \| \
18146 X"$file" : 'X\(//\)$' \| \
18147 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18148 $as_echo X"$file" |
18149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18153 /^X\(\/\/\)[^/].*/{
18166 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18167 # echo "creating $dirpart/$file"
18168 echo '# dummy' > "$dirpart/$file"
18175 # See if we are running on zsh, and set the options which allow our
18176 # commands through without removal of \ escapes.
18177 if test -n "${ZSH_VERSION+set}" ; then
18178 setopt NO_GLOB_SUBST
18181 cfgfile
="${ofile}T"
18182 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18185 cat <<_LT_EOF >> "$cfgfile"
18188 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18189 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18191 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18193 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18194 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18195 # Written by Gordon Matzigkeit, 1996
18197 # This file is part of GNU Libtool.
18199 # GNU Libtool is free software; you can redistribute it and/or
18200 # modify it under the terms of the GNU General Public License as
18201 # published by the Free Software Foundation; either version 2 of
18202 # the License, or (at your option) any later version.
18204 # As a special exception to the GNU General Public License,
18205 # if you distribute this file as part of a program or library that
18206 # is built using GNU Libtool, you may include this file under the
18207 # same distribution terms that you use for the rest of that program.
18209 # GNU Libtool is distributed in the hope that it will be useful,
18210 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18211 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18212 # GNU General Public License for more details.
18214 # You should have received a copy of the GNU General Public License
18215 # along with GNU Libtool; see the file COPYING. If not, a copy
18216 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18217 # obtained by writing to the Free Software Foundation, Inc.,
18218 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18221 # The names of the tagged configurations supported by this script.
18222 available_tags="FC "
18224 # ### BEGIN LIBTOOL CONFIG
18226 # Which release of libtool.m4 was used?
18227 macro_version=$macro_version
18228 macro_revision=$macro_revision
18230 # Whether or not to build shared libraries.
18231 build_libtool_libs=$enable_shared
18233 # Whether or not to build static libraries.
18234 build_old_libs=$enable_static
18236 # What type of objects to build.
18239 # Whether or not to optimize for fast installation.
18240 fast_install=$enable_fast_install
18242 # Shell to use when invoking shell scripts.
18245 # An echo program that protects backslashes.
18249 host_alias=$host_alias
18253 # The build system.
18254 build_alias=$build_alias
18258 # A sed program that does not truncate output.
18261 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18262 Xsed="\$SED -e 1s/^X//"
18264 # A grep program that handles long lines.
18270 # A literal string matcher.
18273 # A BSD- or MS-compatible name lister.
18276 # Whether we need soft or hard links.
18279 # What is the maximum length of a command?
18280 max_cmd_len=$max_cmd_len
18282 # Object file suffix (normally "o").
18285 # Executable file suffix (normally "").
18288 # whether the shell understands "unset".
18291 # turn spaces into newlines.
18294 # turn newlines into spaces.
18297 # An object symbol dumper.
18298 OBJDUMP=$lt_OBJDUMP
18300 # Method to check whether dependent libraries are shared objects.
18301 deplibs_check_method=$lt_deplibs_check_method
18303 # Command to use when deplibs_check_method == "file_magic".
18304 file_magic_cmd=$lt_file_magic_cmd
18308 AR_FLAGS=$lt_AR_FLAGS
18310 # A symbol stripping program.
18313 # Commands used to install an old-style archive.
18315 old_postinstall_cmds=$lt_old_postinstall_cmds
18316 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18318 # Whether to use a lock for old archive extraction.
18319 lock_old_archive_extraction=$lock_old_archive_extraction
18324 # LTCC compiler flags.
18325 LTCFLAGS=$lt_CFLAGS
18327 # Take the output of nm and produce a listing of raw symbols and C names.
18328 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18330 # Transform the output of nm in a proper C declaration.
18331 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18333 # Transform the output of nm in a C name address pair.
18334 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18336 # Transform the output of nm in a C name address pair when lib prefix is needed.
18337 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18339 # The name of the directory that contains temporary libtool files.
18342 # Used to examine libraries when file_magic_cmd begins with "file".
18343 MAGIC_CMD=$MAGIC_CMD
18345 # Must we lock files when doing compilation?
18346 need_locks=$lt_need_locks
18348 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18349 DSYMUTIL=$lt_DSYMUTIL
18351 # Tool to change global to local symbols on Mac OS X.
18354 # Tool to manipulate fat objects and archives on Mac OS X.
18357 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18360 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18361 OTOOL64=$lt_OTOOL64
18363 # Old archive suffix (normally "a").
18366 # Shared library suffix (normally ".so").
18367 shrext_cmds=$lt_shrext_cmds
18369 # The commands to extract the exported symbol list from a shared archive.
18370 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18372 # Variables whose values should be saved in libtool wrapper scripts and
18373 # restored at link time.
18374 variables_saved_for_relink=$lt_variables_saved_for_relink
18376 # Do we need the "lib" prefix for modules?
18377 need_lib_prefix=$need_lib_prefix
18379 # Do we need a version for libraries?
18380 need_version=$need_version
18382 # Library versioning type.
18383 version_type=$version_type
18385 # Shared library runtime path variable.
18386 runpath_var=$runpath_var
18388 # Shared library path variable.
18389 shlibpath_var=$shlibpath_var
18391 # Is shlibpath searched before the hard-coded library search path?
18392 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18394 # Format of library name prefix.
18395 libname_spec=$lt_libname_spec
18397 # List of archive names. First name is the real one, the rest are links.
18398 # The last name is the one that the linker finds with -lNAME
18399 library_names_spec=$lt_library_names_spec
18401 # The coded name of the library, if different from the real name.
18402 soname_spec=$lt_soname_spec
18404 # Permission mode override for installation of shared libraries.
18405 install_override_mode=$lt_install_override_mode
18407 # Command to use after installation of a shared archive.
18408 postinstall_cmds=$lt_postinstall_cmds
18410 # Command to use after uninstallation of a shared archive.
18411 postuninstall_cmds=$lt_postuninstall_cmds
18413 # Commands used to finish a libtool library installation in a directory.
18414 finish_cmds=$lt_finish_cmds
18416 # As "finish_cmds", except a single script fragment to be evaled but
18418 finish_eval=$lt_finish_eval
18420 # Whether we should hardcode library paths into libraries.
18421 hardcode_into_libs=$hardcode_into_libs
18423 # Compile-time system search path for libraries.
18424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18426 # Run-time system search path for libraries.
18427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18429 # Whether dlopen is supported.
18430 dlopen_support=$enable_dlopen
18432 # Whether dlopen of programs is supported.
18433 dlopen_self=$enable_dlopen_self
18435 # Whether dlopen of statically linked programs is supported.
18436 dlopen_self_static=$enable_dlopen_self_static
18438 # Commands to strip libraries.
18439 old_striplib=$lt_old_striplib
18440 striplib=$lt_striplib
18443 # The linker used to build libraries.
18446 # How to create reloadable object files.
18447 reload_flag=$lt_reload_flag
18448 reload_cmds=$lt_reload_cmds
18450 # Commands used to build an old-style archive.
18451 old_archive_cmds=$lt_old_archive_cmds
18453 # A language specific compiler.
18456 # Is the compiler the GNU compiler?
18459 # Compiler flag to turn off builtin functions.
18460 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18462 # How to pass a linker flag through the compiler.
18463 wl=$lt_lt_prog_compiler_wl
18465 # Additional compiler flags for building library objects.
18466 pic_flag=$lt_lt_prog_compiler_pic
18468 # Compiler flag to prevent dynamic linking.
18469 link_static_flag=$lt_lt_prog_compiler_static
18471 # Does compiler simultaneously support -c and -o options?
18472 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18474 # Whether or not to add -lc for building shared libraries.
18475 build_libtool_need_lc=$archive_cmds_need_lc
18477 # Whether or not to disallow shared libs when runtime libs are static.
18478 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18480 # Compiler flag to allow reflexive dlopens.
18481 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18483 # Compiler flag to generate shared objects directly from archives.
18484 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18486 # Whether the compiler copes with passing no objects directly.
18487 compiler_needs_object=$lt_compiler_needs_object
18489 # Create an old-style archive from a shared archive.
18490 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18492 # Create a temporary old-style archive to link instead of a shared archive.
18493 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18495 # Commands used to build a shared archive.
18496 archive_cmds=$lt_archive_cmds
18497 archive_expsym_cmds=$lt_archive_expsym_cmds
18499 # Commands used to build a loadable module if different from building
18500 # a shared archive.
18501 module_cmds=$lt_module_cmds
18502 module_expsym_cmds=$lt_module_expsym_cmds
18504 # Whether we are building with GNU ld or not.
18505 with_gnu_ld=$lt_with_gnu_ld
18507 # Flag that allows shared libraries with undefined symbols to be built.
18508 allow_undefined_flag=$lt_allow_undefined_flag
18510 # Flag that enforces no undefined symbols.
18511 no_undefined_flag=$lt_no_undefined_flag
18513 # Flag to hardcode \$libdir into a binary during linking.
18514 # This must work even if \$libdir does not exist
18515 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18517 # If ld is used when linking, flag to hardcode \$libdir into a binary
18518 # during linking. This must work even if \$libdir does not exist.
18519 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18521 # Whether we need a single "-rpath" flag with a separated argument.
18522 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18524 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18525 # DIR into the resulting binary.
18526 hardcode_direct=$hardcode_direct
18528 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18529 # DIR into the resulting binary and the resulting library dependency is
18530 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18531 # library is relocated.
18532 hardcode_direct_absolute=$hardcode_direct_absolute
18534 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18535 # into the resulting binary.
18536 hardcode_minus_L=$hardcode_minus_L
18538 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18539 # into the resulting binary.
18540 hardcode_shlibpath_var=$hardcode_shlibpath_var
18542 # Set to "yes" if building a shared library automatically hardcodes DIR
18543 # into the library and all subsequent libraries and executables linked
18545 hardcode_automatic=$hardcode_automatic
18547 # Set to yes if linker adds runtime paths of dependent libraries
18548 # to runtime path list.
18549 inherit_rpath=$inherit_rpath
18551 # Whether libtool must link a program against all its dependency libraries.
18552 link_all_deplibs=$link_all_deplibs
18554 # Fix the shell variable \$srcfile for the compiler.
18555 fix_srcfile_path=$lt_fix_srcfile_path
18557 # Set to "yes" if exported symbols are required.
18558 always_export_symbols=$always_export_symbols
18560 # The commands to list exported symbols.
18561 export_symbols_cmds=$lt_export_symbols_cmds
18563 # Symbols that should not be listed in the preloaded symbols.
18564 exclude_expsyms=$lt_exclude_expsyms
18566 # Symbols that must always be exported.
18567 include_expsyms=$lt_include_expsyms
18569 # Commands necessary for linking programs (against libraries) with templates.
18570 prelink_cmds=$lt_prelink_cmds
18572 # Specify filename containing input files.
18573 file_list_spec=$lt_file_list_spec
18575 # How to hardcode a shared library path into an executable.
18576 hardcode_action=$hardcode_action
18578 # The directories searched by this compiler when creating a shared library.
18579 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18581 # Dependencies to place before and after the objects being linked to
18582 # create a shared library.
18583 predep_objects=$lt_predep_objects
18584 postdep_objects=$lt_postdep_objects
18585 predeps=$lt_predeps
18586 postdeps=$lt_postdeps
18588 # The library search path used internally by the compiler when linking
18589 # a shared library.
18590 compiler_lib_search_path=$lt_compiler_lib_search_path
18592 # ### END LIBTOOL CONFIG
18598 cat <<\_LT_EOF
>> "$cfgfile"
18599 # AIX sometimes has problems with the GCC collect2 program. For some
18600 # reason, if we set the COLLECT_NAMES environment variable, the problems
18601 # vanish in a puff of smoke.
18602 if test "X${COLLECT_NAMES+set}" != Xset
; then
18604 export COLLECT_NAMES
18611 ltmain
="$ac_aux_dir/ltmain.sh"
18614 # We use sed instead of cat because bash on DJGPP gets confused if
18615 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18616 # text mode, it properly converts lines to CR/LF. This bash problem
18617 # is reportedly fixed, but why not run on old versions too?
18618 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18619 ||
(rm -f "$cfgfile"; exit 1)
18623 cat << \_LT_EOF
>> "$cfgfile"
18625 # func_dirname file append nondir_replacement
18626 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18627 # otherwise set result to NONDIR_REPLACEMENT.
18631 */*) func_dirname_result
="${1%/*}${2}" ;;
18632 * ) func_dirname_result
="${3}" ;;
18636 # func_basename file
18639 func_basename_result
="${1##*/}"
18642 # func_dirname_and_basename file append nondir_replacement
18643 # perform func_basename and func_dirname in a single function
18645 # dirname: Compute the dirname of FILE. If nonempty,
18646 # add APPEND to the result, otherwise set result
18647 # to NONDIR_REPLACEMENT.
18648 # value returned in "$func_dirname_result"
18649 # basename: Compute filename of FILE.
18650 # value retuned in "$func_basename_result"
18651 # Implementation must be kept synchronized with func_dirname
18652 # and func_basename. For efficiency, we do not delegate to
18653 # those functions but instead duplicate the functionality here.
18654 func_dirname_and_basename
()
18657 */*) func_dirname_result
="${1%/*}${2}" ;;
18658 * ) func_dirname_result
="${3}" ;;
18660 func_basename_result
="${1##*/}"
18663 # func_stripname prefix suffix name
18664 # strip PREFIX and SUFFIX off of NAME.
18665 # PREFIX and SUFFIX must not contain globbing or regex special
18666 # characters, hashes, percent signs, but SUFFIX may contain a leading
18667 # dot (in which case that matches only a dot).
18670 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18671 # positional parameters, so assign one to ordinary parameter first.
18672 func_stripname_result
=${3}
18673 func_stripname_result
=${func_stripname_result#"${1}"}
18674 func_stripname_result
=${func_stripname_result%"${2}"}
18680 func_opt_split_opt
=${1%%=*}
18681 func_opt_split_arg
=${1#*=}
18688 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18689 *) func_lo2o_result
=${1} ;;
18693 # func_xform libobj-or-source
18696 func_xform_result
=${1%.*}.lo
18699 # func_arith arithmetic-term...
18702 func_arith_result
=$
(( $
* ))
18706 # STRING may not start with a hyphen.
18709 func_len_result
=${#1}
18714 *) # Bourne compatible functions.
18715 cat << \_LT_EOF
>> "$cfgfile"
18717 # func_dirname file append nondir_replacement
18718 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18719 # otherwise set result to NONDIR_REPLACEMENT.
18722 # Extract subdirectory from the argument.
18723 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18724 if test "X$func_dirname_result" = "X${1}"; then
18725 func_dirname_result
="${3}"
18727 func_dirname_result
="$func_dirname_result${2}"
18731 # func_basename file
18734 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18738 # func_stripname prefix suffix name
18739 # strip PREFIX and SUFFIX off of NAME.
18740 # PREFIX and SUFFIX must not contain globbing or regex special
18741 # characters, hashes, percent signs, but SUFFIX may contain a leading
18742 # dot (in which case that matches only a dot).
18743 # func_strip_suffix prefix name
18747 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18748 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18753 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18754 my_sed_long_arg
='1s/^-[^=]*=//'
18759 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18760 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18766 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18769 # func_xform libobj-or-source
18772 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18775 # func_arith arithmetic-term...
18778 func_arith_result
=`expr "$@"`
18782 # STRING may not start with a hyphen.
18785 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18791 case $lt_shell_append in
18793 cat << \_LT_EOF
>> "$cfgfile"
18795 # func_append var value
18796 # Append VALUE to the end of shell variable VAR.
18804 cat << \_LT_EOF
>> "$cfgfile"
18806 # func_append var value
18807 # Append VALUE to the end of shell variable VAR.
18818 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18819 ||
(rm -f "$cfgfile"; exit 1)
18821 mv -f "$cfgfile" "$ofile" ||
18822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18826 cat <<_LT_EOF >> "$ofile"
18828 # ### BEGIN LIBTOOL TAG CONFIG: FC
18830 # The linker used to build libraries.
18833 # How to create reloadable object files.
18834 reload_flag=$lt_reload_flag_FC
18835 reload_cmds=$lt_reload_cmds_FC
18837 # Commands used to build an old-style archive.
18838 old_archive_cmds=$lt_old_archive_cmds_FC
18840 # A language specific compiler.
18843 # Is the compiler the GNU compiler?
18846 # Compiler flag to turn off builtin functions.
18847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18849 # How to pass a linker flag through the compiler.
18850 wl=$lt_lt_prog_compiler_wl_FC
18852 # Additional compiler flags for building library objects.
18853 pic_flag=$lt_lt_prog_compiler_pic_FC
18855 # Compiler flag to prevent dynamic linking.
18856 link_static_flag=$lt_lt_prog_compiler_static_FC
18858 # Does compiler simultaneously support -c and -o options?
18859 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18861 # Whether or not to add -lc for building shared libraries.
18862 build_libtool_need_lc=$archive_cmds_need_lc_FC
18864 # Whether or not to disallow shared libs when runtime libs are static.
18865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18867 # Compiler flag to allow reflexive dlopens.
18868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18870 # Compiler flag to generate shared objects directly from archives.
18871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18873 # Whether the compiler copes with passing no objects directly.
18874 compiler_needs_object=$lt_compiler_needs_object_FC
18876 # Create an old-style archive from a shared archive.
18877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18879 # Create a temporary old-style archive to link instead of a shared archive.
18880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18882 # Commands used to build a shared archive.
18883 archive_cmds=$lt_archive_cmds_FC
18884 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18886 # Commands used to build a loadable module if different from building
18887 # a shared archive.
18888 module_cmds=$lt_module_cmds_FC
18889 module_expsym_cmds=$lt_module_expsym_cmds_FC
18891 # Whether we are building with GNU ld or not.
18892 with_gnu_ld=$lt_with_gnu_ld_FC
18894 # Flag that allows shared libraries with undefined symbols to be built.
18895 allow_undefined_flag=$lt_allow_undefined_flag_FC
18897 # Flag that enforces no undefined symbols.
18898 no_undefined_flag=$lt_no_undefined_flag_FC
18900 # Flag to hardcode \$libdir into a binary during linking.
18901 # This must work even if \$libdir does not exist
18902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18904 # If ld is used when linking, flag to hardcode \$libdir into a binary
18905 # during linking. This must work even if \$libdir does not exist.
18906 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18908 # Whether we need a single "-rpath" flag with a separated argument.
18909 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18912 # DIR into the resulting binary.
18913 hardcode_direct=$hardcode_direct_FC
18915 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18916 # DIR into the resulting binary and the resulting library dependency is
18917 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18918 # library is relocated.
18919 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18921 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18922 # into the resulting binary.
18923 hardcode_minus_L=$hardcode_minus_L_FC
18925 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18926 # into the resulting binary.
18927 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18929 # Set to "yes" if building a shared library automatically hardcodes DIR
18930 # into the library and all subsequent libraries and executables linked
18932 hardcode_automatic=$hardcode_automatic_FC
18934 # Set to yes if linker adds runtime paths of dependent libraries
18935 # to runtime path list.
18936 inherit_rpath=$inherit_rpath_FC
18938 # Whether libtool must link a program against all its dependency libraries.
18939 link_all_deplibs=$link_all_deplibs_FC
18941 # Fix the shell variable \$srcfile for the compiler.
18942 fix_srcfile_path=$lt_fix_srcfile_path_FC
18944 # Set to "yes" if exported symbols are required.
18945 always_export_symbols=$always_export_symbols_FC
18947 # The commands to list exported symbols.
18948 export_symbols_cmds=$lt_export_symbols_cmds_FC
18950 # Symbols that should not be listed in the preloaded symbols.
18951 exclude_expsyms=$lt_exclude_expsyms_FC
18953 # Symbols that must always be exported.
18954 include_expsyms=$lt_include_expsyms_FC
18956 # Commands necessary for linking programs (against libraries) with templates.
18957 prelink_cmds=$lt_prelink_cmds_FC
18959 # Specify filename containing input files.
18960 file_list_spec=$lt_file_list_spec_FC
18962 # How to hardcode a shared library path into an executable.
18963 hardcode_action=$hardcode_action_FC
18965 # The directories searched by this compiler when creating a shared library.
18966 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18968 # Dependencies to place before and after the objects being linked to
18969 # create a shared library.
18970 predep_objects=$lt_predep_objects_FC
18971 postdep_objects=$lt_postdep_objects_FC
18972 predeps=$lt_predeps_FC
18973 postdeps=$lt_postdeps_FC
18975 # The library search path used internally by the compiler when linking
18976 # a shared library.
18977 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18979 # ### END LIBTOOL TAG CONFIG: FC
18984 if test "$GCC" = yes; then
18985 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18987 echo "/* generated for $CC */" > tmp-stdint.h
18990 sed 's/^ *//' >> tmp-stdint.h
<<EOF
18992 #ifndef GCC_GENERATED_STDINT_H
18993 #define GCC_GENERATED_STDINT_H 1
18995 #include <sys/types.h>
18998 if test "$acx_cv_header_stdint" != stdint.h
; then
18999 echo "#include <stddef.h>" >> tmp-stdint.h
19001 if test "$acx_cv_header_stdint" != stddef.h
; then
19002 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19005 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19006 /* glibc uses these symbols as guards to prevent redefinitions. */
19007 #ifdef __int8_t_defined
19012 #ifdef __uint32_t_defined
19018 # ----------------- done header, emit basic int types -------------
19019 if test "$acx_cv_header_stdint" = stddef.h
; then
19020 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19024 #ifndef __uint8_t_defined
19025 #define __uint8_t_defined
19027 typedef unsigned $acx_cv_type_int8_t uint8_t;
19034 #ifndef __uint16_t_defined
19035 #define __uint16_t_defined
19037 typedef unsigned $acx_cv_type_int16_t uint16_t;
19044 #ifndef __uint32_t_defined
19045 #define __uint32_t_defined
19047 typedef unsigned $acx_cv_type_int32_t uint32_t;
19054 #ifndef __int8_t_defined
19055 #define __int8_t_defined
19057 typedef $acx_cv_type_int8_t int8_t;
19064 #ifndef __int16_t_defined
19065 #define __int16_t_defined
19067 typedef $acx_cv_type_int16_t int16_t;
19074 #ifndef __int32_t_defined
19075 #define __int32_t_defined
19077 typedef $acx_cv_type_int32_t int32_t;
19082 elif test "$ac_cv_type_u_int32_t" = yes; then
19083 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19085 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19098 #ifndef __uint8_t_defined
19099 #define __uint8_t_defined
19101 typedef u_int8_t uint8_t;
19108 #ifndef __uint16_t_defined
19109 #define __uint16_t_defined
19111 typedef u_int16_t uint16_t;
19118 #ifndef __uint32_t_defined
19119 #define __uint32_t_defined
19121 typedef u_int32_t uint32_t;
19127 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19129 /* Some systems have guard macros to prevent redefinitions, define them. */
19151 # ------------- done basic int types, emit int64_t types ------------
19152 if test "$ac_cv_type_uint64_t" = yes; then
19153 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19155 /* system headers have good uint64_t and int64_t */
19163 elif test "$ac_cv_type_u_int64_t" = yes; then
19164 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19166 /* system headers have an u_int64_t (and int64_t) */
19172 #ifndef __uint64_t_defined
19173 #define __uint64_t_defined
19175 typedef u_int64_t uint64_t;
19180 elif test -n "$acx_cv_type_int64_t"; then
19181 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19183 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19187 typedef $acx_cv_type_int64_t int64_t;
19192 #ifndef __uint64_t_defined
19193 #define __uint64_t_defined
19195 typedef unsigned $acx_cv_type_int64_t uint64_t;
19201 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19203 /* some common heuristics for int64_t, using compiler-specific tests */
19204 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19207 #ifndef __int64_t_defined
19209 typedef long long int64_t;
19216 typedef unsigned long long uint64_t;
19220 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19221 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19222 does not implement __extension__. But that compiler doesn't define
19224 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19225 # define __extension__
19231 __extension__ typedef long long int64_t;
19237 __extension__ typedef unsigned long long uint64_t;
19241 #elif !defined __STRICT_ANSI__
19242 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19247 typedef __int64 int64_t;
19253 typedef unsigned __int64 uint64_t;
19256 # endif /* compiler */
19258 #endif /* ANSI version */
19262 # ------------- done int64_t types, emit intptr types ------------
19263 if test "$ac_cv_type_uintptr_t" != yes; then
19264 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19266 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19267 #ifndef __uintptr_t_defined
19269 typedef u$acx_cv_type_intptr_t uintptr_t;
19272 #ifndef __intptr_t_defined
19274 typedef $acx_cv_type_intptr_t intptr_t;
19280 # ------------- done intptr types, emit int_least types ------------
19281 if test "$ac_cv_type_int_least32_t" != yes; then
19282 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19284 /* Define int_least types */
19285 typedef int8_t int_least8_t;
19286 typedef int16_t int_least16_t;
19287 typedef int32_t int_least32_t;
19289 typedef int64_t int_least64_t;
19292 typedef uint8_t uint_least8_t;
19293 typedef uint16_t uint_least16_t;
19294 typedef uint32_t uint_least32_t;
19296 typedef uint64_t uint_least64_t;
19301 # ------------- done intptr types, emit int_fast types ------------
19302 if test "$ac_cv_type_int_fast32_t" != yes; then
19303 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19305 /* Define int_fast types. short is often slow */
19306 typedef int8_t int_fast8_t;
19307 typedef int int_fast16_t;
19308 typedef int32_t int_fast32_t;
19310 typedef int64_t int_fast64_t;
19313 typedef uint8_t uint_fast8_t;
19314 typedef unsigned int uint_fast16_t;
19315 typedef uint32_t uint_fast32_t;
19317 typedef uint64_t uint_fast64_t;
19322 if test "$ac_cv_type_uintmax_t" != yes; then
19323 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19325 /* Define intmax based on what we found */
19328 typedef int64_t intmax_t;
19330 typedef long intmax_t;
19335 typedef uint64_t uintmax_t;
19337 typedef unsigned long uintmax_t;
19343 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19345 #endif /* GCC_GENERATED_STDINT_H */
19348 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
19351 mv -f tmp-stdint.h gstdint.h
19362 ac_clean_files
=$ac_clean_files_save
19364 test $ac_write_fail = 0 ||
19365 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19368 # configure is writing to config.log, and then calls config.status.
19369 # config.status does its own redirection, appending to config.log.
19370 # Unfortunately, on DOS this fails, as config.log is still kept open
19371 # by configure, so config.status won't be able to write to it; its
19372 # output is simply discarded. So we exec the FD to /dev/null,
19373 # effectively closing config.log, so it can be properly (re)opened and
19374 # appended to by config.status. When coming back to configure, we
19375 # need to make the FD available again.
19376 if test "$no_create" != yes; then
19378 ac_config_status_args
=
19379 test "$silent" = yes &&
19380 ac_config_status_args
="$ac_config_status_args --quiet"
19382 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19385 # would make configure fail if this is the last instruction.
19386 $ac_cs_success || as_fn_exit $?
19390 # CONFIG_SUBDIRS section.
19392 if test "$no_recursion" != yes; then
19394 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19395 # so they do not pile up.
19396 ac_sub_configure_args
=
19398 eval "set x $ac_configure_args"
19402 if test -n "$ac_prev"; then
19407 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19408 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19409 ac_prev
=cache_file
;;
19410 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19411 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19414 --config-cache |
-C)
19416 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19418 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19420 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19422 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19424 --disable-option-checking)
19428 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19430 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19434 # Always prepend --prefix to ensure using the same prefix
19435 # in subdir configurations.
19436 ac_arg
="--prefix=$prefix"
19438 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19440 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19443 if test "$silent" = yes; then
19444 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19447 # Always prepend --disable-option-checking to silence warnings, since
19448 # different subdirs can have different --enable and --with options.
19449 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19452 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19454 # Do not complain, so a configure script can configure whichever
19455 # parts of a large source tree are present.
19456 test -d "$srcdir/$ac_dir" ||
continue
19458 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19459 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19460 $as_echo "$ac_msg" >&6
19461 as_dir
="$ac_dir"; as_fn_mkdir_p
19465 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19467 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19468 # A ".." for each directory in $ac_dir_suffix.
19469 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19470 case $ac_top_builddir_sub in
19471 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19472 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19475 ac_abs_top_builddir
=$ac_pwd
19476 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19477 # for backward compatibility:
19478 ac_top_builddir
=$ac_top_build_prefix
19481 .
) # We are building in place.
19483 ac_top_srcdir
=$ac_top_builddir_sub
19484 ac_abs_top_srcdir
=$ac_pwd ;;
19485 [\\/]* | ?
:[\\/]* ) # Absolute name.
19486 ac_srcdir
=$srcdir$ac_dir_suffix;
19487 ac_top_srcdir
=$srcdir
19488 ac_abs_top_srcdir
=$srcdir ;;
19489 *) # Relative name.
19490 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19491 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19492 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19494 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19499 # Check for guested configure; otherwise get Cygnus style configure.
19500 if test -f "$ac_srcdir/configure.gnu"; then
19501 ac_sub_configure
=$ac_srcdir/configure.gnu
19502 elif test -f "$ac_srcdir/configure"; then
19503 ac_sub_configure
=$ac_srcdir/configure
19504 elif test -f "$ac_srcdir/configure.in"; then
19505 # This should be Cygnus configure.
19506 ac_sub_configure
=$ac_aux_dir/configure
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19513 # The recursion is here.
19514 if test -n "$ac_sub_configure"; then
19515 # Make the cache file name correct relative to the subdirectory.
19516 case $cache_file in
19517 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19518 *) # Relative name.
19519 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19523 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19524 # The eval makes quoting arguments work.
19525 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19526 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19527 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19533 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19535 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}