2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for fcdemo 1.0.
5 # Report bugs to <bug-libtool@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='fcdemo'
572 PACKAGE_TARNAME='fcdemo'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='fcdemo 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
578 ac_unique_file="foof.f90"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
679 INSTALL_STRIP_PROGRAM
721 program_transform_name
734 enable_option_checking
736 enable_dependency_tracking
745 ac_precious_vars='build_alias
758 # Initialize some variables set by options.
760 ac_init_version=false
761 ac_unrecognized_opts=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
772 program_transform_name=s,x,x,
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir='${datarootdir}/info'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
810 # If the previous option needs an argument, assign it.
811 if test -n "$ac_prev"; then
812 eval $ac_prev=\$ac_option
818 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 # Accept the important Cygnus configure options, so we can diagnose typos.
825 case $ac_dashdash$ac_option in
829 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834 -build | --build | --buil | --bui | --bu)
835 ac_prev=build_alias ;;
836 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837 build_alias=$ac_optarg ;;
839 -cache-file | --cache-file | --cache-fil | --cache-fi \
840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841 ac_prev=cache_file ;;
842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844 cache_file=$ac_optarg ;;
847 cache_file=config.cache ;;
849 -datadir | --datadir | --datadi | --datad)
851 -datadir=* | --datadir=* | --datadi=* | --datad=*)
852 datadir=$ac_optarg ;;
854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855 | --dataroo | --dataro | --datar)
856 ac_prev=datarootdir ;;
857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859 datarootdir=$ac_optarg ;;
861 -disable-* | --disable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error $? "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
875 eval enable_$ac_useropt=no ;;
877 -docdir | --docdir | --docdi | --doc | --do)
879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887 -enable-* | --enable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
901 eval enable_$ac_useropt=\$ac_optarg ;;
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
916 -help | --help | --hel | --he | -h)
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 htmldir=$ac_optarg ;;
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
946 -libdir | --libdir | --libdi | --libd)
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
958 -localedir | --localedir | --localedi | --localed | --locale)
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 # Obsolete; use --without-fp.
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1037 -psdir | --psdir | --psdi | --psd | --ps)
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 sbindir=$ac_optarg ;;
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 sharedstatedir=$ac_optarg ;;
1063 -site | --site | --sit)
1065 -site=* | --site=* | --sit=*)
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071 srcdir=$ac_optarg ;;
1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078 sysconfdir=$ac_optarg ;;
1080 -target | --target | --targe | --targ | --tar | --ta | --t)
1081 ac_prev=target_alias ;;
1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083 target_alias=$ac_optarg ;;
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
1092 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1105 eval with_$ac_useropt=\$ac_optarg ;;
1107 -without-* | --without-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1121 eval with_$ac_useropt=no ;;
1124 # Obsolete; use --with-x.
1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128 | --x-incl | --x-inc | --x-in | --x-i)
1129 ac_prev=x_includes ;;
1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132 x_includes=$ac_optarg ;;
1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136 ac_prev=x_libraries ;;
1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139 x_libraries=$ac_optarg ;;
1141 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 case $ac_envvar in #(
1149 '' | [0-9]* | *[!_$as_cr_alnum]* )
1150 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152 eval $ac_envvar=\$ac_optarg
1153 export $ac_envvar ;;
1156 # FIXME: should be removed in autoconf 3.0.
1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166 if test -n "$ac_prev"; then
1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168 as_fn_error $? "missing argument to $ac_option"
1171 if test -n "$ac_unrecognized_opts"; then
1172 case $enable_option_checking in
1174 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 # Check all directory arguments for consistency.
1180 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1185 eval ac_val=\$$ac_var
1186 # Remove trailing slashes.
1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190 eval $ac_var=\$ac_val;;
1192 # Be sure to have absolute directory names.
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1205 target=$target_alias
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209 if test "x$build_alias" = x; then
1210 cross_compiling=maybe
1211 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212 If a cross compiler is detected then cross compile mode will be used" >&2
1213 elif test "x$build_alias" != "x$host_alias"; then
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221 test "$silent" = yes && exec 6>/dev/null
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 as_fn_error $? "pwd does not report name of working directory"
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1264 ac_srcdir_defaulted=no
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 # Report the --help message.
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1298 \`configure' configures fcdemo 1.0 to adapt to many kinds of systems.
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1305 Defaults for the options are specified in brackets.
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking ...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1329 For better control, use the options below.
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/fcdemo]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1356 --program-prefix=PREFIX prepend PREFIX to installed program names
1357 --program-suffix=SUFFIX append SUFFIX to installed program names
1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1366 if test -n "$ac_init_help"; then
1367 case $ac_init_help in
1368 short | recursive ) echo "Configuration of fcdemo 1.0:";;
1373 --disable-option-checking ignore unrecognized --enable/--with options
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --disable-dependency-tracking speeds up one-time build
1377 --enable-dependency-tracking do not reject slow dependency extractors
1378 --enable-shared[=PKGS] build shared libraries [default=yes]
1379 --enable-static[=PKGS] build static libraries [default=yes]
1380 --enable-fast-install[=PKGS]
1381 optimize for fast installation [default=yes]
1382 --disable-libtool-lock avoid locking (might break parallel builds)
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-dist ignore errors not affecting `make dist'
1388 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1390 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1391 --with-sysroot=DIR Search for dependent libraries within DIR
1392 (or the compiler's sysroot if not specified).
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 FC Fortran compiler command
1403 FCFLAGS Fortran compiler flags
1406 Use these variables to override the choices made by `configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1409 Report bugs to <bug-libtool@gnu.org>.
1414 if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
1416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1417 test -d "$ac_dir" ||
1418 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1426 # A ".." for each directory in $ac_dir_suffix.
1427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1428 case $ac_top_builddir_sub in
1429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433 ac_abs_top_builddir=$ac_pwd
1434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1435 # for backward compatibility:
1436 ac_top_builddir=$ac_top_build_prefix
1439 .) # We are building in place.
1441 ac_top_srcdir=$ac_top_builddir_sub
1442 ac_abs_top_srcdir=$ac_pwd ;;
1443 [\\/]* | ?:[\\/]* ) # Absolute name.
1444 ac_srcdir=$srcdir$ac_dir_suffix;
1445 ac_top_srcdir=$srcdir
1446 ac_abs_top_srcdir=$srcdir ;;
1448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1449 ac_top_srcdir=$ac_top_build_prefix$srcdir
1450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454 cd "$ac_dir" || { ac_status=$?; continue; }
1455 # Check for guested configure.
1456 if test -f "$ac_srcdir/configure.gnu"; then
1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459 elif test -f "$ac_srcdir/configure"; then
1461 $SHELL "$ac_srcdir/configure" --help=recursive
1463 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1465 cd "$ac_pwd" || { ac_status=$?; break; }
1469 test -n "$ac_init_help" && exit $ac_status
1470 if $ac_init_version; then
1472 fcdemo configure 1.0
1473 generated by GNU Autoconf 2.68
1475 Copyright (C) 2010 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1482 ## ------------------------ ##
1483 ## Autoconf initialization. ##
1484 ## ------------------------ ##
1486 # ac_fn_c_try_compile LINENO
1487 # --------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_c_try_compile ()
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 rm -f conftest.$ac_objext
1493 if { { ac_try="$ac_compile"
1495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_compile") 2>conftest.err
1502 if test -s conftest.err; then
1503 grep -v '^ *+' conftest.err >conftest.er1
1504 cat conftest.er1 >&5
1505 mv -f conftest.er1 conftest.err
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } && {
1509 test -z "$ac_c_werror_flag" ||
1510 test ! -s conftest.err
1511 } && test -s conftest.$ac_objext; then :
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520 as_fn_set_status $ac_retval
1522 } # ac_fn_c_try_compile
1524 # ac_fn_fc_try_compile LINENO
1525 # ---------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_fc_try_compile ()
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_fc_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1560 } # ac_fn_fc_try_compile
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 $as_test_x conftest$ac_exeext
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1606 } # ac_fn_c_try_link
1608 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609 # -------------------------------------------------------
1610 # Tests whether HEADER exists and can be compiled using the include files in
1611 # INCLUDES, setting the cache variable VAR accordingly.
1612 ac_fn_c_check_header_compile ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1625 if ac_fn_c_try_compile "$LINENO"; then :
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 } # ac_fn_c_check_header_compile
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=$ac_status
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1718 # ac_fn_c_check_func LINENO FUNC VAR
1719 # ----------------------------------
1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721 ac_fn_c_check_func ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1733 #define $2 innocuous_$2
1735 /* System header to define __stub macros and hopefully few prototypes,
1736 which can conflict with char $2 (); below.
1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738 <limits.h> exists even on freestanding compilers. */
1741 # include <limits.h>
1743 # include <assert.h>
1748 /* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1755 /* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758 #if defined __stub_$2 || defined __stub___$2
1762 #ifdef FC_DUMMY_MAIN
1763 #ifndef FC_DUMMY_MAIN_EQ_F77
1767 int FC_DUMMY_MAIN() { return 1; }
1778 if ac_fn_c_try_link "$LINENO"; then :
1783 rm -f core conftest.err conftest.$ac_objext \
1784 conftest$ac_exeext conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 } # ac_fn_c_check_func
1793 # ac_fn_fc_try_link LINENO
1794 # ------------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_fc_try_link ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_fc_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 $as_test_x conftest$ac_exeext
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1837 } # ac_fn_fc_try_link
1838 cat >config.log <<_ACEOF
1839 This file contains any messages produced by compilers while
1840 running configure, to aid debugging if configure makes a mistake.
1842 It was created by fcdemo $as_me 1.0, which was
1843 generated by GNU Autoconf 2.68. Invocation command line was
1855 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1856 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1857 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1858 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1859 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1862 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1864 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1865 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1866 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1867 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1868 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1869 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1870 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 $as_echo "PATH: $as_dir"
1895 # Keep a trace of the command line.
1896 # Strip out --no-create and --no-recursion so they do not pile up.
1897 # Strip out --silent because we don't want to record it for future runs.
1898 # Also quote any args containing shell meta-characters.
1899 # Make two passes to allow for proper duplicate-argument suppression.
1903 ac_must_keep_next=false
1909 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911 | -silent | --silent | --silen | --sile | --sil)
1914 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1917 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1919 as_fn_append ac_configure_args1 " '$ac_arg'"
1920 if test $ac_must_keep_next = true; then
1921 ac_must_keep_next=false # Got value, back to normal.
1924 *=* | --config-cache | -C | -disable-* | --disable-* \
1925 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927 | -with-* | --with-* | -without-* | --without-* | --x)
1928 case "$ac_configure_args0 " in
1929 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1932 -* ) ac_must_keep_next=true ;;
1935 as_fn_append ac_configure_args " '$ac_arg'"
1940 { ac_configure_args0=; unset ac_configure_args0;}
1941 { ac_configure_args1=; unset ac_configure_args1;}
1943 # When interrupted or exit'd, cleanup temporary files, and complete
1944 # config.log. We remove comments because anyway the quotes in there
1945 # would cause problems or look ugly.
1946 # WARNING: Use '\'' to represent an apostrophe within the trap.
1947 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1948 trap 'exit_status=$?
1949 # Save into config.log some information that might help in debugging.
1953 $as_echo "## ---------------- ##
1954 ## Cache variables. ##
1955 ## ---------------- ##"
1957 # The following way of writing the cache mishandles newlines in values,
1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960 eval ac_val=\$$ac_var
1964 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1965 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1968 _ | IFS | as_nl) ;; #(
1969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1970 *) { eval $ac_var=; unset $ac_var;} ;;
1975 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1976 *${as_nl}ac_space=\ *)
1978 "s/'\''/'\''\\\\'\'''\''/g;
1979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989 $as_echo "## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##"
1993 for ac_var in $ac_subst_vars
1995 eval ac_val=\$$ac_var
1997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999 $as_echo "$ac_var='\''$ac_val'\''"
2003 if test -n "$ac_subst_files"; then
2004 $as_echo "## ------------------- ##
2005 ## File substitutions. ##
2006 ## ------------------- ##"
2008 for ac_var in $ac_subst_files
2010 eval ac_val=\$$ac_var
2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 $as_echo "$ac_var='\''$ac_val'\''"
2019 if test -s confdefs.h; then
2020 $as_echo "## ----------- ##
2027 test "$ac_signal" != 0 &&
2028 $as_echo "$as_me: caught signal $ac_signal"
2029 $as_echo "$as_me: exit $exit_status"
2031 rm -f core *.core core.conftest.* &&
2032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2035 for ac_signal in 1 2 13 15; do
2036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2040 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2041 rm -f -r conftest* confdefs.h
2043 $as_echo "/* confdefs.h */" > confdefs.h
2045 # Predefined preprocessor variables.
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_NAME "$PACKAGE_NAME"
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_STRING "$PACKAGE_STRING"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_URL "$PACKAGE_URL"
2072 # Let the site file select an alternate cache file if it wants to.
2073 # Prefer an explicitly selected file to automatically selected ones.
2076 if test -n "$CONFIG_SITE"; then
2077 # We do not want a PATH search for config.site.
2078 case $CONFIG_SITE in #((
2079 -*) ac_site_file1=./$CONFIG_SITE;;
2080 */*) ac_site_file1=$CONFIG_SITE;;
2081 *) ac_site_file1=./$CONFIG_SITE;;
2083 elif test "x$prefix" != xNONE; then
2084 ac_site_file1=$prefix/share/config.site
2085 ac_site_file2=$prefix/etc/config.site
2087 ac_site_file1=$ac_default_prefix/share/config.site
2088 ac_site_file2=$ac_default_prefix/etc/config.site
2090 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2092 test "x$ac_site_file" = xNONE && continue
2093 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2095 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2096 sed 's/^/| /' "$ac_site_file" >&5
2098 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100 as_fn_error $? "failed to load site script $ac_site_file
2101 See \`config.log' for more details" "$LINENO" 5; }
2105 if test -r "$cache_file"; then
2106 # Some versions of bash will fail to source /dev/null (special files
2107 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2108 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110 $as_echo "$as_me: loading cache $cache_file" >&6;}
2112 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113 *) . "./$cache_file";;
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118 $as_echo "$as_me: creating cache $cache_file" >&6;}
2122 # Check that the precious variables saved in the cache have kept the same
2124 ac_cache_corrupted=false
2125 for ac_var in $ac_precious_vars; do
2126 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2127 eval ac_new_set=\$ac_env_${ac_var}_set
2128 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2129 eval ac_new_val=\$ac_env_${ac_var}_value
2130 case $ac_old_set,$ac_new_set in
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134 ac_cache_corrupted=: ;;
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2137 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138 ac_cache_corrupted=: ;;
2141 if test "x$ac_old_val" != "x$ac_new_val"; then
2142 # differences in whitespace do not lead to failure.
2143 ac_old_val_w=`echo x $ac_old_val`
2144 ac_new_val_w=`echo x $ac_new_val`
2145 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2147 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148 ac_cache_corrupted=:
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2151 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2152 eval $ac_var=\$ac_old_val
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2155 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2157 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2160 # Pass precious variables to config.status.
2161 if test "$ac_new_set" = set; then
2163 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2164 *) ac_arg=$ac_var=$ac_new_val ;;
2166 case " $ac_configure_args " in
2167 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2168 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2172 if $ac_cache_corrupted; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2176 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2179 ## -------------------- ##
2180 ## Main body of script. ##
2181 ## -------------------- ##
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190 ac_config_headers="$ac_config_headers config.h:config-h.in"
2194 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2195 if test -f "$ac_dir/install-sh"; then
2197 ac_install_sh="$ac_aux_dir/install-sh -c"
2199 elif test -f "$ac_dir/install.sh"; then
2201 ac_install_sh="$ac_aux_dir/install.sh -c"
2203 elif test -f "$ac_dir/shtool"; then
2205 ac_install_sh="$ac_aux_dir/shtool install -c"
2209 if test -z "$ac_aux_dir"; then
2210 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2224 # Check whether --with-dist was given.
2225 if test "${with_dist+set}" = set; then :
2230 ## ------------------------ ##
2231 ## Automake Initialisation. ##
2232 ## ------------------------ ##
2233 am__api_version='1.11'
2235 # Find a good install program. We prefer a C program (faster),
2236 # so one script is as good as another. But avoid the broken or
2237 # incompatible versions:
2238 # SysV /etc/install, /usr/sbin/install
2239 # SunOS /usr/etc/install
2240 # IRIX /sbin/install
2242 # AmigaOS /C/install, which installs bootblocks on floppy discs
2243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246 # OS/2's system install, which has a completely different semantic
2247 # ./install, which can be erroneously created by make from ./install.sh.
2248 # Reject install programs that cannot install multiple files.
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2251 if test -z "$INSTALL"; then
2252 if ${ac_cv_path_install+:} false; then :
2253 $as_echo_n "(cached) " >&6
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 # Account for people who put trailing slashes in PATH elements.
2261 case $as_dir/ in #((
2262 ./ | .// | /[cC]/* | \
2263 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2264 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2267 # OSF1 and SCO ODT 3.0 have their own names for install.
2268 # Don't use installbsd from OSF since it installs stuff as root
2270 for ac_prog in ginstall scoinst install; do
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2273 if test $ac_prog = install &&
2274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # AIX install. It has an incompatible calling convention.
2277 elif test $ac_prog = install &&
2278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # program-specific install script used by HP pwplus--don't use.
2282 rm -rf conftest.one conftest.two conftest.dir
2283 echo one > conftest.one
2284 echo two > conftest.two
2286 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287 test -s conftest.one && test -s conftest.two &&
2288 test -s conftest.dir/conftest.one &&
2289 test -s conftest.dir/conftest.two
2291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2304 rm -rf conftest.one conftest.two conftest.dir
2307 if test "${ac_cv_path_install+set}" = set; then
2308 INSTALL=$ac_cv_path_install
2310 # As a last resort, use the slow shell script. Don't cache a
2311 # value for INSTALL within a source directory, because that will
2312 # break other packages using the cache if that directory is
2313 # removed, or if the value is a relative name.
2314 INSTALL=$ac_install_sh
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318 $as_echo "$INSTALL" >&6; }
2320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321 # It thinks the first close brace ends the variable substitution.
2322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329 $as_echo_n "checking whether build environment is sane... " >&6; }
2332 echo timestamp > conftest.file
2333 # Reject unsafe characters in $srcdir or the absolute working directory
2334 # name. Accept space and tab only in the latter.
2338 *[\\\"\#\$\&\'\`$am_lf]*)
2339 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2342 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2343 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2346 # Do `set' in a subshell so we don't clobber the current shell's
2347 # arguments. Must try -L first in case configure is actually a
2348 # symlink; some systems play weird games with the mod time of symlinks
2349 # (eg FreeBSD returns the mod time of the symlink's containing
2352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353 if test "$*" = "X"; then
2355 set X `ls -t "$srcdir/configure" conftest.file`
2358 if test "$*" != "X $srcdir/configure conftest.file" \
2359 && test "$*" != "X conftest.file $srcdir/configure"; then
2361 # If neither matched, then we have a broken ls. This can happen
2362 # if, for instance, CONFIG_SHELL is bash and it inherits a
2363 # broken ls alias from the environment. This has actually
2364 # happened. Such a system could not be considered "sane".
2365 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2366 alias in your environment" "$LINENO" 5
2369 test "$2" = conftest.file
2375 as_fn_error $? "newly created file is older than distributed files!
2376 Check your system clock" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2379 $as_echo "yes" >&6; }
2380 test "$program_prefix" != NONE &&
2381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2382 # Use a double $ so make ignores it.
2383 test "$program_suffix" != NONE &&
2384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2385 # Double any \ or $.
2386 # By default was `s,x,x', remove it if useless.
2387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2390 # expand $ac_aux_dir to an absolute path
2391 am_aux_dir=`cd $ac_aux_dir && pwd`
2393 if test x"${MISSING+set}" != xset; then
2396 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2398 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2401 # Use eval to expand $SHELL
2402 if eval "$MISSING --run true"; then
2403 am_missing_run="$MISSING --run "
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2407 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2410 if test x"${install_sh}" != xset; then
2413 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2415 install_sh="\${SHELL} $am_aux_dir/install-sh"
2419 # Installed binaries are usually stripped using `strip' when the user
2420 # run `make install-strip'. However `strip' might not be the right
2421 # tool to use in cross-compilation environments, therefore Automake
2422 # will honor the `STRIP' environment variable to overrule this program.
2423 if test "$cross_compiling" != no; then
2424 if test -n "$ac_tool_prefix"; then
2425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2426 set dummy ${ac_tool_prefix}strip; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_STRIP+:} false; then :
2430 $as_echo_n "(cached) " >&6
2432 if test -n "$STRIP"; then
2433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 STRIP=$ac_cv_prog_STRIP
2453 if test -n "$STRIP"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2455 $as_echo "$STRIP" >&6; }
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2463 if test -z "$ac_cv_prog_STRIP"; then
2465 # Extract the first word of "strip", so it can be a program name with args.
2466 set dummy strip; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2470 $as_echo_n "(cached) " >&6
2472 if test -n "$ac_ct_STRIP"; then
2473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_ac_ct_STRIP="strip"
2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2493 if test -n "$ac_ct_STRIP"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2495 $as_echo "$ac_ct_STRIP" >&6; }
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2501 if test "x$ac_ct_STRIP" = x; then
2504 case $cross_compiling:$ac_tool_warned in
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508 ac_tool_warned=yes ;;
2513 STRIP="$ac_cv_prog_STRIP"
2517 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2520 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2521 if test -z "$MKDIR_P"; then
2522 if ${ac_cv_path_mkdir+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2529 test -z "$as_dir" && as_dir=.
2530 for ac_prog in mkdir gmkdir; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2533 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2534 'mkdir (GNU coreutils) '* | \
2535 'mkdir (coreutils) '* | \
2536 'mkdir (fileutils) '4.1*)
2537 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2547 test -d ./--version && rmdir ./--version
2548 if test "${ac_cv_path_mkdir+set}" = set; then
2549 MKDIR_P="$ac_cv_path_mkdir -p"
2551 # As a last resort, use the slow shell script. Don't cache a
2552 # value for MKDIR_P within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the value is a relative name.
2555 MKDIR_P="$ac_install_sh -d"
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2559 $as_echo "$MKDIR_P" >&6; }
2563 [\\/$]* | ?:[\\/]*) ;;
2564 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2567 for ac_prog in gawk mawk nawk awk
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_AWK+:} false; then :
2574 $as_echo_n "(cached) " >&6
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AWK="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 if test -n "$AWK"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599 $as_echo "$AWK" >&6; }
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2606 test -n "$AWK" && break
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2610 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2612 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2613 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2614 $as_echo_n "(cached) " >&6
2616 cat >conftest.make <<\_ACEOF
2619 @echo '@@@%%%=$(MAKE)=@@@%%%'
2621 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2622 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2624 eval ac_cv_prog_make_${ac_make}_set=yes;;
2626 eval ac_cv_prog_make_${ac_make}_set=no;;
2630 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632 $as_echo "yes" >&6; }
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 SET_MAKE="MAKE=${MAKE-make}"
2640 rm -rf .tst 2>/dev/null
2641 mkdir .tst 2>/dev/null
2642 if test -d .tst; then
2647 rmdir .tst 2>/dev/null
2649 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2650 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2651 # is not polluted with repeated "-I."
2652 am__isrc=' -I$(srcdir)'
2653 # test to see if srcdir already configured
2654 if test -f $srcdir/config.status; then
2655 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2659 # test whether we have cygpath
2660 if test -z "$CYGPATH_W"; then
2661 if (cygpath --version) >/dev/null 2>/dev/null; then
2662 CYGPATH_W='cygpath -w'
2669 # Define the identity of the package.
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE "$PACKAGE"
2679 cat >>confdefs.h <<_ACEOF
2680 #define VERSION "$VERSION"
2683 # Some tools Automake needs.
2685 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2688 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2691 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2694 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2697 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2699 # We need awk for the "check" target. The system "awk" is bad on
2701 # Always define AMTAR for backward compatibility.
2703 AMTAR=${AMTAR-"${am_missing_run}tar"}
2705 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2713 ## ------------------ ##
2714 ## C compiler checks. ##
2715 ## ------------------ ##
2717 ac_cpp='$CPP $CPPFLAGS'
2718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_CC+:} false; then :
2727 $as_echo_n "(cached) " >&6
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 if test -n "$CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2760 if test -z "$ac_cv_prog_CC"; then
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2767 $as_echo_n "(cached) " >&6
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_ac_ct_CC="gcc"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2792 $as_echo "$ac_ct_CC" >&6; }
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2798 if test "x$ac_ct_CC" = x; then
2801 case $cross_compiling:$ac_tool_warned in
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805 ac_tool_warned=yes ;;
2813 if test -z "$CC"; then
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}cc; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false; then :
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_CC="${ac_tool_prefix}cc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2854 if test -z "$CC"; then
2855 # Extract the first word of "cc", so it can be a program name with args.
2856 set dummy cc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2874 ac_prog_rejected=yes
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test $ac_prog_rejected = yes; then
2886 # We found a bogon in the path, so make sure we never use it.
2887 set dummy $ac_cv_prog_CC
2889 if test $# != 0; then
2890 # We chose a different compiler from the bogus one.
2891 # However, it has the same basename, so the bogon will be chosen
2892 # first if we set CC to just the basename; use the full file name.
2894 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2910 if test -z "$CC"; then
2911 if test -n "$ac_tool_prefix"; then
2912 for ac_prog in cl.exe
2914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_CC+:} false; then :
2919 $as_echo_n "(cached) " >&6
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2951 test -n "$CC" && break
2954 if test -z "$CC"; then
2956 for ac_prog in cl.exe
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy $ac_prog; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2963 $as_echo_n "(cached) " >&6
2965 if test -n "$ac_ct_CC"; then
2966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_ac_ct_CC="$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2988 $as_echo "$ac_ct_CC" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2995 test -n "$ac_ct_CC" && break
2998 if test "x$ac_ct_CC" = x; then
3001 case $cross_compiling:$ac_tool_warned in
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3014 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 as_fn_error $? "no acceptable C compiler found in \$PATH
3017 See \`config.log' for more details" "$LINENO" 5; }
3019 # Provide some information about the compiler.
3020 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3023 for ac_option in --version -v -V -qversion; do
3024 { { ac_try="$ac_compiler $ac_option >&5"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3033 if test -s conftest.err; then
3035 ... rest of stderr output deleted ...
3036 10q' conftest.err >conftest.er1
3037 cat conftest.er1 >&5
3039 rm -f conftest.er1 conftest.err
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }
3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045 /* end confdefs.h. */
3055 ac_clean_files_save=$ac_clean_files
3056 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3057 # Try to create an executable without -o first, disregard a.out.
3058 # It will help us diagnose broken compilers, and finding out an intuition
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3061 $as_echo_n "checking whether the C compiler works... " >&6; }
3062 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3064 # The possible output files:
3065 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3068 for ac_file in $ac_files
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3072 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3077 if { { ac_try="$ac_link_default"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_link_default") 2>&5
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }; then :
3088 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3089 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3090 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3091 # so that the user can short-circuit this test for compilers unknown to
3093 for ac_file in $ac_files ''
3095 test -f "$ac_file" || continue
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3100 # We found the default executable, but exeext='' is most
3104 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3106 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 # We set ac_cv_exeext here because the later test for it is not
3109 # safe: cross compilers may not add the suffix if given an `-o'
3110 # argument, so we may need to know it at that point already.
3111 # Even if this section looks crufty: it has the advantage of
3118 test "$ac_cv_exeext" = no && ac_cv_exeext=
3123 if test -z "$ac_file"; then :
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 $as_echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error 77 "C compiler cannot create executables
3132 See \`config.log' for more details" "$LINENO" 5; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135 $as_echo "yes" >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3138 $as_echo_n "checking for C compiler default output file name... " >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3140 $as_echo "$ac_file" >&6; }
3141 ac_exeext=$ac_cv_exeext
3143 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3144 ac_clean_files=$ac_clean_files_save
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3146 $as_echo_n "checking for suffix of executables... " >&6; }
3147 if { { ac_try="$ac_link"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_link") 2>&5
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }; then :
3158 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3159 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3160 # work properly (i.e., refer to `conftest.exe'), while it won't with
3162 for ac_file in conftest.exe conftest conftest.*; do
3163 test -f "$ac_file" || continue
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details" "$LINENO" 5; }
3177 rm -f conftest conftest$ac_cv_exeext
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3179 $as_echo "$ac_cv_exeext" >&6; }
3181 rm -f conftest.$ac_ext
3182 EXEEXT=$ac_cv_exeext
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h. */
3190 FILE *f = fopen ("conftest.out", "w");
3191 return ferror (f) || fclose (f) != 0;
3197 ac_clean_files="$ac_clean_files conftest.out"
3198 # Check that the compiler produces executables we can run. If not, either
3199 # the compiler is broken, or we cross compile.
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3201 $as_echo_n "checking whether we are cross compiling... " >&6; }
3202 if test "$cross_compiling" != yes; then
3203 { { ac_try="$ac_link"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link") 2>&5
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }
3214 if { ac_try='./conftest$ac_cv_exeext'
3215 { { case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_try") 2>&5
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }; }; then
3227 if test "$cross_compiling" = maybe; then
3230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 as_fn_error $? "cannot run C compiled programs.
3233 If you meant to cross compile, use \`--host'.
3234 See \`config.log' for more details" "$LINENO" 5; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3239 $as_echo "$cross_compiling" >&6; }
3241 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3242 ac_clean_files=$ac_clean_files_save
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3244 $as_echo_n "checking for suffix of object files... " >&6; }
3245 if ${ac_cv_objext+:} false; then :
3246 $as_echo_n "(cached) " >&6
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3259 rm -f conftest.o conftest.obj
3260 if { { ac_try="$ac_compile"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_compile") 2>&5
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; then :
3271 for ac_file in conftest.o conftest.obj conftest.*; do
3272 test -f "$ac_file" || continue;
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3280 $as_echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error $? "cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details" "$LINENO" 5; }
3288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3291 $as_echo "$ac_cv_objext" >&6; }
3292 OBJEXT=$ac_cv_objext
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3296 if ${ac_cv_c_compiler_gnu+:} false; then :
3297 $as_echo_n "(cached) " >&6
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3313 if ac_fn_c_try_compile "$LINENO"; then :
3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3324 if test $ac_compiler_gnu = yes; then
3329 ac_test_CFLAGS=${CFLAGS+set}
3330 ac_save_CFLAGS=$CFLAGS
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3333 if ${ac_cv_prog_cc_g+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 ac_save_c_werror_flag=$ac_c_werror_flag
3337 ac_c_werror_flag=yes
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3351 if ac_fn_c_try_compile "$LINENO"; then :
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3366 if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_c_werror_flag=$ac_save_c_werror_flag
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3382 if ac_fn_c_try_compile "$LINENO"; then :
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 ac_c_werror_flag=$ac_save_c_werror_flag
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3393 $as_echo "$ac_cv_prog_cc_g" >&6; }
3394 if test "$ac_test_CFLAGS" = set; then
3395 CFLAGS=$ac_save_CFLAGS
3396 elif test $ac_cv_prog_cc_g = yes; then
3397 if test "$GCC" = yes; then
3403 if test "$GCC" = yes; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3411 if ${ac_cv_prog_cc_c89+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 ac_cv_prog_cc_c89=no
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3420 #include <sys/types.h>
3421 #include <sys/stat.h>
3422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3423 struct buf { int x; };
3424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3425 static char *e (p, i)
3431 static char *f (char * (*g) (char **, int), char **p, ...)
3436 s = g (p, va_arg (v,int));
3441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3442 function prototypes and stuff, but not '\xHH' hex character constants.
3443 These don't provoke an error unfortunately, instead are silently treated
3444 as 'x'. The following induces an error, until -std is added to get
3445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3446 array size at least. It's necessary to write '\x00'==0 to get something
3447 that's true only with -std. */
3448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3451 inside strings and character constants. */
3453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3455 int test (int i, double x);
3456 struct s1 {int (*f) (int a);};
3457 struct s2 {int (*f) (double a);};
3458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3472 CC="$ac_save_CC $ac_arg"
3473 if ac_fn_c_try_compile "$LINENO"; then :
3474 ac_cv_prog_cc_c89=$ac_arg
3476 rm -f core conftest.err conftest.$ac_objext
3477 test "x$ac_cv_prog_cc_c89" != "xno" && break
3479 rm -f conftest.$ac_ext
3484 case "x$ac_cv_prog_cc_c89" in
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3487 $as_echo "none needed" >&6; } ;;
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3490 $as_echo "unsupported" >&6; } ;;
3492 CC="$CC $ac_cv_prog_cc_c89"
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3496 if test "x$ac_cv_prog_cc_c89" != xno; then :
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 DEPDIR="${am__leading_dot}deps"
3507 ac_config_commands="$ac_config_commands depfiles"
3510 am_make=${MAKE-make}
3511 cat > confinc << 'END'
3513 @echo this is the am__doit target
3516 # If we don't find an include directive, just comment out the code.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3518 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3522 # First try GNU make style include.
3523 echo "include confinc" > confmf
3524 # Ignore all kinds of additional output from `make'.
3525 case `$am_make -s -f confmf 2> /dev/null` in #(
3526 *the\ am__doit\ target*)
3532 # Now try BSD make style include.
3533 if test "$am__include" = "#"; then
3534 echo '.include "confinc"' > confmf
3535 case `$am_make -s -f confmf 2> /dev/null` in #(
3536 *the\ am__doit\ target*)
3537 am__include=.include
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3546 $as_echo "$_am_result" >&6; }
3547 rm -f confinc confmf
3549 # Check whether --enable-dependency-tracking was given.
3550 if test "${enable_dependency_tracking+set}" = set; then :
3551 enableval=$enable_dependency_tracking;
3554 if test "x$enable_dependency_tracking" != xno; then
3555 am_depcomp="$ac_aux_dir/depcomp"
3558 if test "x$enable_dependency_tracking" != xno; then
3568 depcc="$CC" am_compiler_list=
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3571 $as_echo_n "checking dependency style of $depcc... " >&6; }
3572 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3576 # We make a subdir and do the tests there. Otherwise we can end up
3577 # making bogus files that we don't know about and never remove. For
3578 # instance it was reported that on HP-UX the gcc test will end up
3579 # making a dummy file named `D' -- because `-MD' means `put the output
3582 # Copy depcomp to subdir because otherwise we won't find it if we're
3583 # using a relative directory.
3584 cp "$am_depcomp" conftest.dir
3586 # We will build objects and dependencies in a subdirectory because
3587 # it helps to detect inapplicable dependency modes. For instance
3588 # both Tru64's cc and ICC support -MD to output dependencies as a
3589 # side effect of compilation, but ICC will put the dependencies in
3590 # the current directory while Tru64 will put them in the object
3594 am_cv_CC_dependencies_compiler_type=none
3595 if test "$am_compiler_list" = ""; then
3596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3599 case " $depcc " in #(
3600 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3603 for depmode in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3612 for i in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub/conftst$i.h
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3620 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3621 # mode. It turns out that the SunPro C++ compiler does not properly
3622 # handle `-M -o', and we need to detect this. Also, some Intel
3623 # versions had trouble with output in subdirs
3624 am__obj=sub/conftest.${OBJEXT-o}
3625 am__minus_obj="-o $am__obj"
3628 # This depmode causes a compiler race in universal mode.
3629 test "$am__universal" = false || continue
3632 # after this tag, mechanisms are not by side-effect, so they'll
3633 # only be used when explicitly requested
3634 if test "x$enable_dependency_tracking" = xyes; then
3640 msvisualcpp | msvcmsys)
3641 # This compiler won't grok `-c -o', but also, the minuso test has
3642 # not run yet. These depmodes are late enough in the game, and
3643 # so weak that their functioning should not be impacted.
3644 am__obj=conftest.${OBJEXT-o}
3649 if depmode=$depmode \
3650 source=sub/conftest.c object=$am__obj \
3651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3652 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3653 >/dev/null 2>conftest.err &&
3654 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3656 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3658 # icc doesn't choke on unknown options, it will just issue warnings
3659 # or remarks (even with -Werror). So we grep stderr for any message
3660 # that says an option was ignored or not supported.
3661 # When given -MP, icc 7.0 and 7.1 complain thusly:
3662 # icc: Command line warning: ignoring option '-M'; no argument required
3663 # The diagnosis changed in icc 8.0:
3664 # icc: Command line remark: option '-MP' not supported
3665 if (grep 'ignoring option' conftest.err ||
3666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3667 am_cv_CC_dependencies_compiler_type=$depmode
3676 am_cv_CC_dependencies_compiler_type=none
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3681 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3685 test "x$enable_dependency_tracking" != xno \
3686 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3688 am__fastdepCC_FALSE='#'
3690 am__fastdepCC_TRUE='#'
3691 am__fastdepCC_FALSE=
3696 ## ------------------------ ##
3697 ## Fortran compiler checks. ##
3698 ## ------------------------ ##
3699 ac_ext=${ac_fc_srcext-f}
3700 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3701 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3704 ac_ext=${ac_fc_srcext-f}
3705 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3706 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3708 if test -n "$ac_tool_prefix"; then
3709 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
3711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 $as_echo_n "checking for $ac_word... " >&6; }
3715 if ${ac_cv_prog_FC+:} false; then :
3716 $as_echo_n "(cached) " >&6
3718 if test -n "$FC"; then
3719 ac_cv_prog_FC="$FC" # Let the user override the test.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 if test -n "$FC"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
3741 $as_echo "$FC" >&6; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3748 test -n "$FC" && break
3751 if test -z "$FC"; then
3753 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
3755 # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if ${ac_cv_prog_ac_ct_FC+:} false; then :
3760 $as_echo_n "(cached) " >&6
3762 if test -n "$ac_ct_FC"; then
3763 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_ac_ct_FC="$ac_prog"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 ac_ct_FC=$ac_cv_prog_ac_ct_FC
3783 if test -n "$ac_ct_FC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
3785 $as_echo "$ac_ct_FC" >&6; }
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3792 test -n "$ac_ct_FC" && break
3795 if test "x$ac_ct_FC" = x; then
3798 case $cross_compiling:$ac_tool_warned in
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3809 # Provide some information about the compiler.
3810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
3813 for ac_option in --version -v -V -qversion; do
3814 { { ac_try="$ac_compiler $ac_option >&5"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3823 if test -s conftest.err; then
3825 ... rest of stderr output deleted ...
3826 10q' conftest.err >conftest.er1
3827 cat conftest.er1 >&5
3829 rm -f conftest.er1 conftest.err
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }
3835 # If we don't use `.F' as extension, the preprocessor is not run on the
3836 # input file. (Note that this only needs to work for GNU compilers.)
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
3840 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
3841 if ${ac_cv_fc_compiler_gnu+:} false; then :
3842 $as_echo_n "(cached) " >&6
3844 cat > conftest.$ac_ext <<_ACEOF
3852 if ac_fn_fc_try_compile "$LINENO"; then :
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
3862 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
3864 ac_test_FCFLAGS=${FCFLAGS+set}
3865 ac_save_FCFLAGS=$FCFLAGS
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
3868 $as_echo_n "checking whether $FC accepts -g... " >&6; }
3869 if ${ac_cv_prog_fc_g+:} false; then :
3870 $as_echo_n "(cached) " >&6
3873 cat > conftest.$ac_ext <<_ACEOF
3878 if ac_fn_fc_try_compile "$LINENO"; then :
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
3887 $as_echo "$ac_cv_prog_fc_g" >&6; }
3888 if test "$ac_test_FCFLAGS" = set; then
3889 FCFLAGS=$ac_save_FCFLAGS
3890 elif test $ac_cv_prog_fc_g = yes; then
3891 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
3897 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
3904 ac_ext=${ac_fc_srcext-f}
3905 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3906 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3909 if test -z "$with_dist"; then
3911 ac_ext=${ac_fc_srcext-f}
3912 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3913 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
3916 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
3917 if ${ac_cv_prog_fc_v+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 cat > conftest.$ac_ext <<_ACEOF
3925 if ac_fn_fc_try_compile "$LINENO"; then :
3927 # Try some options frequently used verbose output
3928 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3929 cat > conftest.$ac_ext <<_ACEOF
3935 # Compile and link our simple test program by passing a flag (argument
3936 # 1 to this macro) to the Fortran compiler in order to get
3937 # "verbose" output that we can then parse for the Fortran linker
3939 ac_save_FCFLAGS=$FCFLAGS
3940 FCFLAGS="$FCFLAGS $ac_verb"
3941 eval "set x $ac_link"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
3944 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
3945 # LIBRARY_PATH; skip all such settings.
3946 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
3947 sed '/^Driving:/d; /^Configured with:/d;
3948 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
3949 $as_echo "$ac_fc_v_output" >&5
3950 FCFLAGS=$ac_save_FCFLAGS
3954 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3955 # /foo, /bar, and /baz are search directories for the Fortran linker.
3956 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3957 ac_fc_v_output="`echo $ac_fc_v_output |
3959 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
3961 # FIXME: we keep getting bitten by quoted arguments; a more general fix
3962 # that detects unbalanced quotes in FLIBS should be implemented
3963 # and (ugh) tested at some point.
3964 case $ac_fc_v_output in
3965 # If we are using xlf then replace all the commas with spaces.
3967 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
3969 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3970 # $LIBS confuse us, and the libraries appear later in the output anyway).
3971 *mGLOB_options_string*)
3972 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
3974 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
3975 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
3976 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
3977 *-cmdline\ * | *-ignore\ * | *-def\ *)
3978 ac_fc_v_output=`echo $ac_fc_v_output | sed "\
3979 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
3980 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
3981 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
3983 # If we are using Cray Fortran then delete quotes.
3985 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
3989 # look for -l* and *.a constructs in the output
3990 for ac_arg in $ac_fc_v_output; do
3992 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3993 ac_cv_prog_fc_v=$ac_verb
3998 if test -z "$ac_cv_prog_fc_v"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
4000 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
4004 $as_echo "$as_me: WARNING: compilation failed" >&2;}
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
4010 $as_echo "$ac_cv_prog_fc_v" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
4012 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
4013 if ${ac_cv_fc_libs+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 if test "x$FCLIBS" != "x"; then
4017 ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
4020 cat > conftest.$ac_ext <<_ACEOF
4026 # Compile and link our simple test program by passing a flag (argument
4027 # 1 to this macro) to the Fortran compiler in order to get
4028 # "verbose" output that we can then parse for the Fortran linker
4030 ac_save_FCFLAGS=$FCFLAGS
4031 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4032 eval "set x $ac_link"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
4035 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
4036 # LIBRARY_PATH; skip all such settings.
4037 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
4038 sed '/^Driving:/d; /^Configured with:/d;
4039 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
4040 $as_echo "$ac_fc_v_output" >&5
4041 FCFLAGS=$ac_save_FCFLAGS
4045 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4046 # /foo, /bar, and /baz are search directories for the Fortran linker.
4047 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4048 ac_fc_v_output="`echo $ac_fc_v_output |
4050 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
4052 # FIXME: we keep getting bitten by quoted arguments; a more general fix
4053 # that detects unbalanced quotes in FLIBS should be implemented
4054 # and (ugh) tested at some point.
4055 case $ac_fc_v_output in
4056 # If we are using xlf then replace all the commas with spaces.
4058 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
4060 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4061 # $LIBS confuse us, and the libraries appear later in the output anyway).
4062 *mGLOB_options_string*)
4063 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
4065 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
4066 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
4067 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
4068 *-cmdline\ * | *-ignore\ * | *-def\ *)
4069 ac_fc_v_output=`echo $ac_fc_v_output | sed "\
4070 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
4071 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
4072 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
4074 # If we are using Cray Fortran then delete quotes.
4076 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
4083 # Save positional arguments (if any)
4084 ac_save_positional="$@"
4086 set X $ac_fc_v_output
4087 while test $# != 1; do
4091 [\\/]*.a | ?:[\\/]*.a)
4093 for ac_i in $ac_cv_fc_libs; do
4094 if test x"$ac_arg" = x"$ac_i"; then
4100 if test x"$ac_exists" = xtrue; then :
4103 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4108 for ac_i in $ac_cv_fc_libs; do
4109 if test x"$ac_arg" = x"$ac_i"; then
4115 if test x"$ac_exists" = xtrue; then :
4118 if test "$ac_compiler_gnu" = yes; then
4119 for ac_link_opt in $ac_arg; do
4120 ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
4123 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4127 # Ignore these flags.
4128 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
4129 |-LANG:=* | -LIST:* | -LNO:* | -link)
4132 test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4135 # These flags, when seen by themselves, take an argument.
4136 # We remove the space between option and argument and re-iterate
4137 # unless we find an empty arg or a new option (starting with -)
4148 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4150 for ac_i in $ac_cv_fc_libs; do
4151 if test x"$ac_j" = x"$ac_i"; then
4157 if test x"$ac_exists" = xtrue; then :
4160 ac_arg="$ac_arg $ac_j"
4161 ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
4167 for ac_i in $ac_cv_fc_libs; do
4168 if test x"$ac_arg" = x"$ac_i"; then
4174 if test x"$ac_exists" = xtrue; then :
4177 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4180 -zallextract*| -zdefaultextract)
4181 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4183 # Ignore everything else.
4186 # restore positional arguments
4187 set X $ac_save_positional; shift
4189 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
4190 # then we insist that the "run path" must be an absolute path (i.e. it
4191 # must begin with a "/").
4192 case `(uname -sr) 2>/dev/null` in
4194 ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
4195 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4196 test "x$ac_ld_run_path" != x &&
4197 if test "$ac_compiler_gnu" = yes; then
4198 for ac_link_opt in $ac_ld_run_path; do
4199 ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
4202 ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
4206 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
4210 $as_echo "$ac_cv_fc_libs" >&6; }
4211 FCLIBS="$ac_cv_fc_libs"
4214 ac_ext=${ac_fc_srcext-f}
4215 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4216 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4220 ac_ext=${ac_fc_srcext-f}
4221 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4222 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
4226 $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
4227 if ${ac_cv_fc_dummy_main+:} false; then :
4228 $as_echo_n "(cached) " >&6
4230 ac_fc_dm_save_LIBS=$LIBS
4231 LIBS="$LIBS $FCLIBS"
4232 ac_fortran_dm_var=FC_DUMMY_MAIN
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 # First, try linking without a dummy main:
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4243 #ifdef FC_DUMMY_MAIN
4244 #ifndef FC_DUMMY_MAIN_EQ_F77
4248 int FC_DUMMY_MAIN() { return 1; }
4259 if ac_fn_c_try_link "$LINENO"; then :
4260 ac_cv_fortran_dummy_main=none
4262 ac_cv_fortran_dummy_main=unknown
4264 rm -f core conftest.err conftest.$ac_objext \
4265 conftest$ac_exeext conftest.$ac_ext
4267 if test $ac_cv_fortran_dummy_main = unknown; then
4268 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271 #define $ac_fortran_dm_var $ac_func
4272 #ifdef FC_DUMMY_MAIN
4273 #ifndef FC_DUMMY_MAIN_EQ_F77
4277 int FC_DUMMY_MAIN() { return 1; }
4288 if ac_fn_c_try_link "$LINENO"; then :
4289 ac_cv_fortran_dummy_main=$ac_func; break
4291 rm -f core conftest.err conftest.$ac_objext \
4292 conftest$ac_exeext conftest.$ac_ext
4295 ac_ext=${ac_fc_srcext-f}
4296 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4297 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4299 ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
4301 LIBS=$ac_fc_dm_save_LIBS
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
4305 $as_echo "$ac_cv_fc_dummy_main" >&6; }
4306 FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
4307 if test "$FC_DUMMY_MAIN" != unknown; then :
4308 if test $FC_DUMMY_MAIN != none; then
4310 cat >>confdefs.h <<_ACEOF
4311 #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
4314 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4316 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
4321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323 as_fn_error $? "linking to Fortran libraries from C fails
4324 See \`config.log' for more details" "$LINENO" 5; }
4327 ac_ext=${ac_fc_srcext-f}
4328 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4329 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4332 ac_ext=${ac_fc_srcext-f}
4333 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4334 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
4337 $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
4338 if ${ac_cv_fc_mangling+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 cat > conftest.$ac_ext <<_ACEOF
4345 subroutine foo_bar()
4349 if ac_fn_fc_try_compile "$LINENO"; then :
4350 mv conftest.$ac_objext cfortran_test.$ac_objext
4353 LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
4356 ac_cpp='$CPP $CPPFLAGS'
4357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361 for ac_foobar in foobar FOOBAR; do
4362 for ac_underscore in "" "_"; do
4363 ac_func="$ac_foobar$ac_underscore"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4367 /* Override any GCC internal prototype to avoid an error.
4368 Use char because int might match the return type of a GCC
4369 builtin and then its argument prototype would still apply. */
4374 #ifdef FC_DUMMY_MAIN
4375 #ifndef FC_DUMMY_MAIN_EQ_F77
4379 int FC_DUMMY_MAIN() { return 1; }
4390 if ac_fn_c_try_link "$LINENO"; then :
4391 ac_success=yes; break 2
4393 rm -f core conftest.err conftest.$ac_objext \
4394 conftest$ac_exeext conftest.$ac_ext
4397 ac_ext=${ac_fc_srcext-f}
4398 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4399 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4402 if test "$ac_success" = "yes"; then
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420 for ac_extra in "" "_"; do
4421 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4425 /* Override any GCC internal prototype to avoid an error.
4426 Use char because int might match the return type of a GCC
4427 builtin and then its argument prototype would still apply. */
4432 #ifdef FC_DUMMY_MAIN
4433 #ifndef FC_DUMMY_MAIN_EQ_F77
4437 int FC_DUMMY_MAIN() { return 1; }
4448 if ac_fn_c_try_link "$LINENO"; then :
4449 ac_success_extra=yes; break
4451 rm -f core conftest.err conftest.$ac_objext \
4452 conftest$ac_exeext conftest.$ac_ext
4454 ac_ext=${ac_fc_srcext-f}
4455 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4456 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4459 if test "$ac_success_extra" = "yes"; then
4460 ac_cv_fc_mangling="$ac_case case"
4461 if test -z "$ac_underscore"; then
4462 ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
4464 ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
4466 if test -z "$ac_extra"; then
4467 ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
4469 ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
4472 ac_cv_fc_mangling="unknown"
4475 ac_cv_fc_mangling="unknown"
4480 rm -f cfortran_test*
4482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error $? "cannot compile a simple Fortran program
4485 See \`config.log' for more details" "$LINENO" 5; }
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
4491 $as_echo "$ac_cv_fc_mangling" >&6; }
4493 ac_ext=${ac_fc_srcext-f}
4494 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4495 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4498 ac_ext=${ac_fc_srcext-f}
4499 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4500 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4502 case $ac_cv_fc_mangling in
4503 "lower case, no underscore, no extra underscore")
4504 $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
4506 $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
4508 "lower case, no underscore, extra underscore")
4509 $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
4511 $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
4513 "lower case, underscore, no extra underscore")
4514 $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
4516 $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
4518 "lower case, underscore, extra underscore")
4519 $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
4521 $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
4523 "upper case, no underscore, no extra underscore")
4524 $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
4526 $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
4528 "upper case, no underscore, extra underscore")
4529 $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
4531 $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
4533 "upper case, underscore, no extra underscore")
4534 $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
4536 $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
4538 "upper case, underscore, extra underscore")
4539 $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
4541 $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
4545 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4549 ac_ext=${ac_fc_srcext-f}
4550 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4551 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4554 ac_ext=${ac_fc_srcext-f}
4555 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4556 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5
4559 $as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; }
4560 if ${ac_cv_fc_srcext_f90+:} false; then :
4561 $as_echo_n "(cached) " >&6
4564 ac_fcflags_srcext_save=$ac_fcflags_srcext
4566 ac_cv_fc_srcext_f90=unknown
4567 for ac_flag in none -qsuffix=f=f90 -Tf; do
4568 test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
4569 cat > conftest.$ac_ext <<_ACEOF
4574 if ac_fn_fc_try_compile "$LINENO"; then :
4575 ac_cv_fc_srcext_f90=$ac_flag; break
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 rm -f conftest.$ac_objext conftest.f90
4580 ac_fcflags_srcext=$ac_fcflags_srcext_save
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5
4584 $as_echo "$ac_cv_fc_srcext_f90" >&6; }
4585 if test "x$ac_cv_fc_srcext_f90" = xunknown; then
4586 as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5
4589 if test "x$ac_cv_fc_srcext_f90" = xnone; then
4590 ac_fcflags_srcext=""
4593 ac_fcflags_srcext=$ac_cv_fc_srcext_f90
4594 FCFLAGS_f90=$ac_cv_fc_srcext_f90
4599 ac_ext=${ac_fc_srcext-f}
4600 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4601 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4604 ac_ext=${ac_fc_srcext-f}
4605 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4606 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag needed to accept free-form source" >&5
4609 $as_echo_n "checking for Fortran flag needed to accept free-form source... " >&6; }
4610 if ${ac_cv_fc_freeform+:} false; then :
4611 $as_echo_n "(cached) " >&6
4613 ac_cv_fc_freeform=unknown
4614 ac_fc_freeform_FCFLAGS_save=$FCFLAGS
4615 for ac_flag in none -ffree-form -FR -free -qfree -Mfree -Mfreeform \
4616 -freeform "-f free" +source=free -nfix
4618 test "x$ac_flag" != xnone && FCFLAGS="$ac_fc_freeform_FCFLAGS_save $ac_flag"
4619 cat > conftest.$ac_ext <<_ACEOF
4622 ! FIXME: how to best confuse non-freeform compilers?
4623 print *, 'Hello ', &
4627 if ac_fn_fc_try_compile "$LINENO"; then :
4628 ac_cv_fc_freeform=$ac_flag; break
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 FCFLAGS=$ac_fc_freeform_FCFLAGS_save
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_freeform" >&5
4637 $as_echo "$ac_cv_fc_freeform" >&6; }
4638 if test "x$ac_cv_fc_freeform" = xunknown; then
4639 as_fn_error 77 "Fortran does not accept free-form source" "$LINENO" 5
4641 if test "x$ac_cv_fc_freeform" != xnone; then
4642 FCFLAGS="$FCFLAGS $ac_cv_fc_freeform"
4646 ac_ext=${ac_fc_srcext-f}
4647 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4648 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4653 ac_cpp='$CPP $CPPFLAGS'
4654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 ## ----------------------- ##
4660 ## Libtool initialisation. ##
4661 ## ----------------------- ##
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4665 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4670 macro_version='2.4.2'
4671 macro_revision='1.3337'
4685 ltmain="$ac_aux_dir/ltmain.sh"
4687 # Make sure we can run config.sub.
4688 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4689 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4692 $as_echo_n "checking build system type... " >&6; }
4693 if ${ac_cv_build+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 ac_build_alias=$build_alias
4697 test "x$ac_build_alias" = x &&
4698 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4699 test "x$ac_build_alias" = x &&
4700 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4701 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4706 $as_echo "$ac_cv_build" >&6; }
4707 case $ac_cv_build in
4709 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4712 ac_save_IFS=$IFS; IFS='-'
4718 # Remember, the first character of IFS is used to create $*,
4719 # except with old shells:
4722 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4726 $as_echo_n "checking host system type... " >&6; }
4727 if ${ac_cv_host+:} false; then :
4728 $as_echo_n "(cached) " >&6
4730 if test "x$host_alias" = x; then
4731 ac_cv_host=$ac_cv_build
4733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4739 $as_echo "$ac_cv_host" >&6; }
4742 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4745 ac_save_IFS=$IFS; IFS='-'
4751 # Remember, the first character of IFS is used to create $*,
4752 # except with old shells:
4755 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4758 # Backslashify metacharacters that are still active within
4759 # double-quoted strings.
4760 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4762 # Same as above, but do not quote variable references.
4763 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4765 # Sed substitution to delay expansion of an escaped shell variable in a
4766 # double_quote_subst'ed string.
4767 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4769 # Sed substitution to delay expansion of an escaped single quote.
4770 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4772 # Sed substitution to avoid accidental globbing in evaled expressions
4773 no_glob_subst='s/\*/\\\*/g'
4775 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4776 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4777 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4780 $as_echo_n "checking how to print strings... " >&6; }
4781 # Test print first, because it will be a builtin if present.
4782 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4783 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4785 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4788 # Use this function as a fallback that always works.
4789 func_fallback_echo ()
4791 eval 'cat <<_LTECHO_EOF
4795 ECHO='func_fallback_echo'
4798 # func_echo_all arg...
4799 # Invoke $ECHO with all args, space-separated.
4806 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4807 $as_echo "printf" >&6; } ;;
4808 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4809 $as_echo "print -r" >&6; } ;;
4810 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4811 $as_echo "cat" >&6; } ;;
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4828 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4829 if ${ac_cv_path_SED+:} false; then :
4830 $as_echo_n "(cached) " >&6
4832 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4833 for ac_i in 1 2 3 4 5 6 7; do
4834 ac_script="$ac_script$as_nl$ac_script"
4836 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4837 { ac_script=; unset ac_script;}
4838 if test -z "$SED"; then
4839 ac_path_SED_found=false
4840 # Loop through the user's path and test for each of PROGNAME-LIST
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 test -z "$as_dir" && as_dir=.
4846 for ac_prog in sed gsed; do
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4849 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4850 # Check for GNU ac_path_SED and select it if it is found.
4851 # Check for GNU $ac_path_SED
4852 case `"$ac_path_SED" --version 2>&1` in
4854 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4857 $as_echo_n 0123456789 >"conftest.in"
4860 cat "conftest.in" "conftest.in" >"conftest.tmp"
4861 mv "conftest.tmp" "conftest.in"
4862 cp "conftest.in" "conftest.nl"
4863 $as_echo '' >> "conftest.nl"
4864 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4866 as_fn_arith $ac_count + 1 && ac_count=$as_val
4867 if test $ac_count -gt ${ac_path_SED_max-0}; then
4868 # Best one so far, save it but keep looking for a better one
4869 ac_cv_path_SED="$ac_path_SED"
4870 ac_path_SED_max=$ac_count
4872 # 10*(2^10) chars as input seems more than enough
4873 test $ac_count -gt 10 && break
4875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4878 $ac_path_SED_found && break 3
4883 if test -z "$ac_cv_path_SED"; then
4884 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4892 $as_echo "$ac_cv_path_SED" >&6; }
4893 SED="$ac_cv_path_SED"
4896 test -z "$SED" && SED=sed
4897 Xsed="$SED -e 1s/^X//"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4910 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4911 if ${ac_cv_path_GREP+:} false; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -z "$GREP"; then
4915 ac_path_GREP_found=false
4916 # Loop through the user's path and test for each of PROGNAME-LIST
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4921 test -z "$as_dir" && as_dir=.
4922 for ac_prog in grep ggrep; do
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4925 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4926 # Check for GNU ac_path_GREP and select it if it is found.
4927 # Check for GNU $ac_path_GREP
4928 case `"$ac_path_GREP" --version 2>&1` in
4930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4933 $as_echo_n 0123456789 >"conftest.in"
4936 cat "conftest.in" "conftest.in" >"conftest.tmp"
4937 mv "conftest.tmp" "conftest.in"
4938 cp "conftest.in" "conftest.nl"
4939 $as_echo 'GREP' >> "conftest.nl"
4940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942 as_fn_arith $ac_count + 1 && ac_count=$as_val
4943 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4944 # Best one so far, save it but keep looking for a better one
4945 ac_cv_path_GREP="$ac_path_GREP"
4946 ac_path_GREP_max=$ac_count
4948 # 10*(2^10) chars as input seems more than enough
4949 test $ac_count -gt 10 && break
4951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4954 $ac_path_GREP_found && break 3
4959 if test -z "$ac_cv_path_GREP"; then
4960 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4963 ac_cv_path_GREP=$GREP
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4968 $as_echo "$ac_cv_path_GREP" >&6; }
4969 GREP="$ac_cv_path_GREP"
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4973 $as_echo_n "checking for egrep... " >&6; }
4974 if ${ac_cv_path_EGREP+:} false; then :
4975 $as_echo_n "(cached) " >&6
4977 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4978 then ac_cv_path_EGREP="$GREP -E"
4980 if test -z "$EGREP"; then
4981 ac_path_EGREP_found=false
4982 # Loop through the user's path and test for each of PROGNAME-LIST
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4987 test -z "$as_dir" && as_dir=.
4988 for ac_prog in egrep; do
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4991 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4992 # Check for GNU ac_path_EGREP and select it if it is found.
4993 # Check for GNU $ac_path_EGREP
4994 case `"$ac_path_EGREP" --version 2>&1` in
4996 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4999 $as_echo_n 0123456789 >"conftest.in"
5002 cat "conftest.in" "conftest.in" >"conftest.tmp"
5003 mv "conftest.tmp" "conftest.in"
5004 cp "conftest.in" "conftest.nl"
5005 $as_echo 'EGREP' >> "conftest.nl"
5006 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5008 as_fn_arith $ac_count + 1 && ac_count=$as_val
5009 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5010 # Best one so far, save it but keep looking for a better one
5011 ac_cv_path_EGREP="$ac_path_EGREP"
5012 ac_path_EGREP_max=$ac_count
5014 # 10*(2^10) chars as input seems more than enough
5015 test $ac_count -gt 10 && break
5017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5020 $ac_path_EGREP_found && break 3
5025 if test -z "$ac_cv_path_EGREP"; then
5026 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5029 ac_cv_path_EGREP=$EGREP
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5035 $as_echo "$ac_cv_path_EGREP" >&6; }
5036 EGREP="$ac_cv_path_EGREP"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5040 $as_echo_n "checking for fgrep... " >&6; }
5041 if ${ac_cv_path_FGREP+:} false; then :
5042 $as_echo_n "(cached) " >&6
5044 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5045 then ac_cv_path_FGREP="$GREP -F"
5047 if test -z "$FGREP"; then
5048 ac_path_FGREP_found=false
5049 # Loop through the user's path and test for each of PROGNAME-LIST
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5054 test -z "$as_dir" && as_dir=.
5055 for ac_prog in fgrep; do
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5058 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5059 # Check for GNU ac_path_FGREP and select it if it is found.
5060 # Check for GNU $ac_path_FGREP
5061 case `"$ac_path_FGREP" --version 2>&1` in
5063 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5066 $as_echo_n 0123456789 >"conftest.in"
5069 cat "conftest.in" "conftest.in" >"conftest.tmp"
5070 mv "conftest.tmp" "conftest.in"
5071 cp "conftest.in" "conftest.nl"
5072 $as_echo 'FGREP' >> "conftest.nl"
5073 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075 as_fn_arith $ac_count + 1 && ac_count=$as_val
5076 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5077 # Best one so far, save it but keep looking for a better one
5078 ac_cv_path_FGREP="$ac_path_FGREP"
5079 ac_path_FGREP_max=$ac_count
5081 # 10*(2^10) chars as input seems more than enough
5082 test $ac_count -gt 10 && break
5084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087 $ac_path_FGREP_found && break 3
5092 if test -z "$ac_cv_path_FGREP"; then
5093 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5096 ac_cv_path_FGREP=$FGREP
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5102 $as_echo "$ac_cv_path_FGREP" >&6; }
5103 FGREP="$ac_cv_path_FGREP"
5106 test -z "$GREP" && GREP=grep
5126 # Check whether --with-gnu-ld was given.
5127 if test "${with_gnu_ld+set}" = set; then :
5128 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5134 if test "$GCC" = yes; then
5135 # Check if gcc -print-prog-name=ld gives a path.
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5137 $as_echo_n "checking for ld used by $CC... " >&6; }
5140 # gcc leaves a trailing carriage return which upsets mingw
5141 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5143 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5146 # Accept absolute paths.
5148 re_direlt='/[^/][^/]*/\.\./'
5149 # Canonicalize the pathname of ld
5150 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5151 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5152 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5154 test -z "$LD" && LD="$ac_prog"
5157 # If it fails, then pretend we aren't using GCC.
5161 # If it is relative, then search for the first ld in PATH.
5165 elif test "$with_gnu_ld" = yes; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5167 $as_echo_n "checking for GNU ld... " >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5170 $as_echo_n "checking for non-GNU ld... " >&6; }
5172 if ${lt_cv_path_LD+:} false; then :
5173 $as_echo_n "(cached) " >&6
5175 if test -z "$LD"; then
5176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5177 for ac_dir in $PATH; do
5179 test -z "$ac_dir" && ac_dir=.
5180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5181 lt_cv_path_LD="$ac_dir/$ac_prog"
5182 # Check to see if the program is GNU ld. I'd rather use --version,
5183 # but apparently some variants of GNU ld only accept -v.
5184 # Break only if it was the GNU/non-GNU ld that we prefer.
5185 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5186 *GNU* | *'with BFD'*)
5187 test "$with_gnu_ld" != no && break
5190 test "$with_gnu_ld" != yes && break
5197 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5202 if test -n "$LD"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5204 $as_echo "$LD" >&6; }
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5209 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5211 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5212 if ${lt_cv_prog_gnu_ld+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5216 case `$LD -v 2>&1 </dev/null` in
5217 *GNU* | *'with BFD'*)
5218 lt_cv_prog_gnu_ld=yes
5221 lt_cv_prog_gnu_ld=no
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5226 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5227 with_gnu_ld=$lt_cv_prog_gnu_ld
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5238 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5239 if ${lt_cv_path_NM+:} false; then :
5240 $as_echo_n "(cached) " >&6
5242 if test -n "$NM"; then
5243 # Let the user override the test.
5246 lt_nm_to_check="${ac_tool_prefix}nm"
5247 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5248 lt_nm_to_check="$lt_nm_to_check nm"
5250 for lt_tmp_nm in $lt_nm_to_check; do
5251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5252 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5254 test -z "$ac_dir" && ac_dir=.
5255 tmp_nm="$ac_dir/$lt_tmp_nm"
5256 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5257 # Check to see if the nm accepts a BSD-compat flag.
5258 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5259 # nm: unknown option "B" ignored
5260 # Tru64's nm complains that /dev/null is an invalid object file
5261 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5262 */dev/null* | *'Invalid file or object type'*)
5263 lt_cv_path_NM="$tmp_nm -B"
5267 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5269 lt_cv_path_NM="$tmp_nm -p"
5273 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5274 continue # so that we can try to find one that supports BSD flags
5283 : ${lt_cv_path_NM=no}
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5287 $as_echo "$lt_cv_path_NM" >&6; }
5288 if test "$lt_cv_path_NM" != "no"; then
5291 # Didn't find any BSD compatible name lister, look for dumpbin.
5292 if test -n "$DUMPBIN"; then :
5293 # Let the user override the test.
5295 if test -n "$ac_tool_prefix"; then
5296 for ac_prog in dumpbin "link -dump"
5298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_DUMPBIN+:} false; then :
5303 $as_echo_n "(cached) " >&6
5305 if test -n "$DUMPBIN"; then
5306 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5315 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 DUMPBIN=$ac_cv_prog_DUMPBIN
5326 if test -n "$DUMPBIN"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5328 $as_echo "$DUMPBIN" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5335 test -n "$DUMPBIN" && break
5338 if test -z "$DUMPBIN"; then
5339 ac_ct_DUMPBIN=$DUMPBIN
5340 for ac_prog in dumpbin "link -dump"
5342 # Extract the first word of "$ac_prog", so it can be a program name with args.
5343 set dummy $ac_prog; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5347 $as_echo_n "(cached) " >&6
5349 if test -n "$ac_ct_DUMPBIN"; then
5350 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5370 if test -n "$ac_ct_DUMPBIN"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5372 $as_echo "$ac_ct_DUMPBIN" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5379 test -n "$ac_ct_DUMPBIN" && break
5382 if test "x$ac_ct_DUMPBIN" = x; then
5385 case $cross_compiling:$ac_tool_warned in
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5389 ac_tool_warned=yes ;;
5391 DUMPBIN=$ac_ct_DUMPBIN
5395 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5397 DUMPBIN="$DUMPBIN -symbols"
5405 if test "$DUMPBIN" != ":"; then
5409 test -z "$NM" && NM=nm
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5417 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5418 if ${lt_cv_nm_interface+:} false; then :
5419 $as_echo_n "(cached) " >&6
5421 lt_cv_nm_interface="BSD nm"
5422 echo "int some_variable = 0;" > conftest.$ac_ext
5423 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5424 (eval "$ac_compile" 2>conftest.err)
5425 cat conftest.err >&5
5426 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5427 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5428 cat conftest.err >&5
5429 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5430 cat conftest.out >&5
5431 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5432 lt_cv_nm_interface="MS dumpbin"
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5437 $as_echo "$lt_cv_nm_interface" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5440 $as_echo_n "checking whether ln -s works... " >&6; }
5442 if test "$LN_S" = "ln -s"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5444 $as_echo "yes" >&6; }
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5447 $as_echo "no, using $LN_S" >&6; }
5450 # find the maximum length of command line arguments
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5452 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5453 if ${lt_cv_sys_max_cmd_len+:} false; then :
5454 $as_echo_n "(cached) " >&6
5461 # On DJGPP, this test can blow up pretty badly due to problems in libc
5462 # (any single argument exceeding 2000 bytes causes a buffer overrun
5463 # during glob expansion). Even if it were fixed, the result of this
5464 # check would be larger than it should be.
5465 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5469 # Under GNU Hurd, this test is not required because there is
5470 # no limit to the length of command line arguments.
5471 # Libtool will interpret -1 as no limit whatsoever
5472 lt_cv_sys_max_cmd_len=-1;
5475 cygwin* | mingw* | cegcc*)
5476 # On Win9x/ME, this test blows up -- it succeeds, but takes
5477 # about 5 minutes as the teststring grows exponentially.
5478 # Worse, since 9x/ME are not pre-emptively multitasking,
5479 # you end up with a "frozen" computer, even though with patience
5480 # the test eventually succeeds (with a max line length of 256k).
5481 # Instead, let's just punt: use the minimum linelength reported by
5482 # all of the supported platforms: 8192 (on NT/2K/XP).
5483 lt_cv_sys_max_cmd_len=8192;
5487 # On MiNT this can take a long time and run out of memory.
5488 lt_cv_sys_max_cmd_len=8192;
5492 # On AmigaOS with pdksh, this test takes hours, literally.
5493 # So we just punt and use a minimum line length of 8192.
5494 lt_cv_sys_max_cmd_len=8192;
5497 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5498 # This has been around since 386BSD, at least. Likely further.
5499 if test -x /sbin/sysctl; then
5500 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5501 elif test -x /usr/sbin/sysctl; then
5502 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5504 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5506 # And add a safety zone
5507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5512 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5513 lt_cv_sys_max_cmd_len=196608
5517 # The test takes a long time on OS/2.
5518 lt_cv_sys_max_cmd_len=8192
5522 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5523 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5524 # nice to cause kernel panics so lets avoid the loop below.
5525 # First set a reasonable default.
5526 lt_cv_sys_max_cmd_len=16384
5528 if test -x /sbin/sysconfig; then
5529 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5530 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5535 lt_cv_sys_max_cmd_len=102400
5537 sysv5* | sco5v6* | sysv4.2uw2*)
5538 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5539 if test -n "$kargmax"; then
5540 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5542 lt_cv_sys_max_cmd_len=32768
5546 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5547 if test -n "$lt_cv_sys_max_cmd_len"; then
5548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5551 # Make teststring a little bigger before we do anything with it.
5552 # a 1K string should be a reasonable start.
5553 for i in 1 2 3 4 5 6 7 8 ; do
5554 teststring=$teststring$teststring
5556 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5557 # If test is not a shell built-in, we'll probably end up computing a
5558 # maximum length that is only half of the actual maximum length, but
5560 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5561 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5562 test $i != 17 # 1/2 MB should be enough
5565 teststring=$teststring$teststring
5567 # Only check the string length outside the loop.
5568 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5570 # Add a significant safety factor because C++ compilers can tack on
5571 # massive amounts of additional arguments before passing them to the
5572 # linker. It appears as though 1/2 is a usable value.
5573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5580 if test -n $lt_cv_sys_max_cmd_len ; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5582 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5585 $as_echo "none" >&6; }
5587 max_cmd_len=$lt_cv_sys_max_cmd_len
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5599 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5600 # Try some XSI features
5603 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5605 && eval 'test $(( 1 + 1 )) -eq 2 \
5606 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5609 $as_echo "$xsi_shell" >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5613 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5615 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5617 && lt_shell_append=yes
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5619 $as_echo "$lt_shell_append" >&6; }
5622 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5632 # test EBCDIC or ASCII
5633 case `echo X|tr X '\101'` in
5634 A) # ASCII based system
5635 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5636 lt_SP2NL='tr \040 \012'
5637 lt_NL2SP='tr \015\012 \040\040'
5639 *) # EBCDIC based system
5640 lt_SP2NL='tr \100 \n'
5641 lt_NL2SP='tr \r\n \100\100'
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5654 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5655 if ${lt_cv_to_host_file_cmd+:} false; then :
5656 $as_echo_n "(cached) " >&6
5661 *-*-mingw* ) # actually msys
5662 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5665 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5667 * ) # otherwise, assume *nix
5668 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5674 *-*-mingw* ) # actually msys
5675 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5678 lt_cv_to_host_file_cmd=func_convert_file_noop
5680 * ) # otherwise, assume *nix
5681 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5685 * ) # unhandled hosts (and "normal" native builds)
5686 lt_cv_to_host_file_cmd=func_convert_file_noop
5692 to_host_file_cmd=$lt_cv_to_host_file_cmd
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5694 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5701 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5702 if ${lt_cv_to_tool_file_cmd+:} false; then :
5703 $as_echo_n "(cached) " >&6
5705 #assume ordinary cross tools, or native build.
5706 lt_cv_to_tool_file_cmd=func_convert_file_noop
5710 *-*-mingw* ) # actually msys
5711 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5719 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5721 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5728 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5729 if ${lt_cv_ld_reload_flag+:} false; then :
5730 $as_echo_n "(cached) " >&6
5732 lt_cv_ld_reload_flag='-r'
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5735 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5736 reload_flag=$lt_cv_ld_reload_flag
5737 case $reload_flag in
5739 *) reload_flag=" $reload_flag" ;;
5741 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5743 cygwin* | mingw* | pw32* | cegcc*)
5744 if test "$GCC" != yes; then
5749 if test "$GCC" = yes; then
5750 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5752 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5765 if test -n "$ac_tool_prefix"; then
5766 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5767 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if ${ac_cv_prog_OBJDUMP+:} false; then :
5771 $as_echo_n "(cached) " >&6
5773 if test -n "$OBJDUMP"; then
5774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 OBJDUMP=$ac_cv_prog_OBJDUMP
5794 if test -n "$OBJDUMP"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5796 $as_echo "$OBJDUMP" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5804 if test -z "$ac_cv_prog_OBJDUMP"; then
5805 ac_ct_OBJDUMP=$OBJDUMP
5806 # Extract the first word of "objdump", so it can be a program name with args.
5807 set dummy objdump; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5811 $as_echo_n "(cached) " >&6
5813 if test -n "$ac_ct_OBJDUMP"; then
5814 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5834 if test -n "$ac_ct_OBJDUMP"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5836 $as_echo "$ac_ct_OBJDUMP" >&6; }
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5842 if test "x$ac_ct_OBJDUMP" = x; then
5845 case $cross_compiling:$ac_tool_warned in
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849 ac_tool_warned=yes ;;
5851 OBJDUMP=$ac_ct_OBJDUMP
5854 OBJDUMP="$ac_cv_prog_OBJDUMP"
5857 test -z "$OBJDUMP" && OBJDUMP=objdump
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5868 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5869 if ${lt_cv_deplibs_check_method+:} false; then :
5870 $as_echo_n "(cached) " >&6
5872 lt_cv_file_magic_cmd='$MAGIC_CMD'
5873 lt_cv_file_magic_test_file=
5874 lt_cv_deplibs_check_method='unknown'
5875 # Need to set the preceding variable on all platforms that support
5876 # interlibrary dependencies.
5877 # 'none' -- dependencies not supported.
5878 # `unknown' -- same as none, but documents that we really don't know.
5879 # 'pass_all' -- all dependencies passed with no checks.
5880 # 'test_compile' -- check by making test program.
5881 # 'file_magic [[regex]]' -- check by looking for files in library path
5882 # which responds to the $file_magic_cmd with a given extended regex.
5883 # If you have `file' or equivalent on your system and you're not sure
5884 # whether `pass_all' will *always* work, you probably want this one.
5888 lt_cv_deplibs_check_method=pass_all
5892 lt_cv_deplibs_check_method=pass_all
5896 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5897 lt_cv_file_magic_cmd='/usr/bin/file -L'
5898 lt_cv_file_magic_test_file=/shlib/libc.so
5902 # func_win32_libid is a shell function defined in ltmain.sh
5903 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5904 lt_cv_file_magic_cmd='func_win32_libid'
5908 # Base MSYS/MinGW do not provide the 'file' command needed by
5909 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5910 # unless we find 'file', for example because we are cross-compiling.
5911 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5912 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5913 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5914 lt_cv_file_magic_cmd='func_win32_libid'
5916 # Keep this pattern in sync with the one in func_win32_libid.
5917 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5918 lt_cv_file_magic_cmd='$OBJDUMP -f'
5923 # use the weaker test based on 'objdump'. See mingw*.
5924 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5925 lt_cv_file_magic_cmd='$OBJDUMP -f'
5928 darwin* | rhapsody*)
5929 lt_cv_deplibs_check_method=pass_all
5932 freebsd* | dragonfly*)
5933 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5936 # Not sure whether the presence of OpenBSD here was a mistake.
5937 # Let's accept both of them until this is cleared up.
5938 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5939 lt_cv_file_magic_cmd=/usr/bin/file
5940 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5944 lt_cv_deplibs_check_method=pass_all
5949 lt_cv_deplibs_check_method=pass_all
5953 lt_cv_deplibs_check_method=pass_all
5956 hpux10.20* | hpux11*)
5957 lt_cv_file_magic_cmd=/usr/bin/file
5960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5961 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5964 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]'
5965 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5969 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5975 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5979 irix5* | irix6* | nonstopux*)
5981 *-32|*"-32 ") libmagic=32-bit;;
5982 *-n32|*"-n32 ") libmagic=N32;;
5983 *-64|*"-64 ") libmagic=64-bit;;
5984 *) libmagic=never-match;;
5986 lt_cv_deplibs_check_method=pass_all
5989 # This must be glibc/ELF.
5990 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5991 lt_cv_deplibs_check_method=pass_all
5995 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6004 lt_cv_file_magic_cmd=/usr/bin/file
6005 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6009 lt_cv_deplibs_check_method=pass_all
6013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6020 osf3* | osf4* | osf5*)
6021 lt_cv_deplibs_check_method=pass_all
6025 lt_cv_deplibs_check_method=pass_all
6029 lt_cv_deplibs_check_method=pass_all
6032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6033 lt_cv_deplibs_check_method=pass_all
6037 case $host_vendor in
6039 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]'
6040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6043 lt_cv_deplibs_check_method=pass_all
6046 lt_cv_file_magic_cmd='/bin/file'
6047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6050 lt_cv_file_magic_cmd='/bin/file'
6051 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6052 lt_cv_file_magic_test_file=/lib/libc.so
6055 lt_cv_deplibs_check_method=pass_all
6058 lt_cv_deplibs_check_method=pass_all
6064 lt_cv_deplibs_check_method=pass_all
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6070 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6074 if test "$build" = "$host"; then
6077 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6080 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6086 file_magic_cmd=$lt_cv_file_magic_cmd
6087 deplibs_check_method=$lt_cv_deplibs_check_method
6088 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6111 if test -n "$ac_tool_prefix"; then
6112 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6113 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_prog_DLLTOOL+:} false; then :
6117 $as_echo_n "(cached) " >&6
6119 if test -n "$DLLTOOL"; then
6120 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 DLLTOOL=$ac_cv_prog_DLLTOOL
6140 if test -n "$DLLTOOL"; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6142 $as_echo "$DLLTOOL" >&6; }
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6150 if test -z "$ac_cv_prog_DLLTOOL"; then
6151 ac_ct_DLLTOOL=$DLLTOOL
6152 # Extract the first word of "dlltool", so it can be a program name with args.
6153 set dummy dlltool; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6157 $as_echo_n "(cached) " >&6
6159 if test -n "$ac_ct_DLLTOOL"; then
6160 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6180 if test -n "$ac_ct_DLLTOOL"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6182 $as_echo "$ac_ct_DLLTOOL" >&6; }
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6188 if test "x$ac_ct_DLLTOOL" = x; then
6191 case $cross_compiling:$ac_tool_warned in
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195 ac_tool_warned=yes ;;
6197 DLLTOOL=$ac_ct_DLLTOOL
6200 DLLTOOL="$ac_cv_prog_DLLTOOL"
6203 test -z "$DLLTOOL" && DLLTOOL=dlltool
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6215 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6216 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6217 $as_echo_n "(cached) " >&6
6219 lt_cv_sharedlib_from_linklib_cmd='unknown'
6222 cygwin* | mingw* | pw32* | cegcc*)
6223 # two different shell functions defined in ltmain.sh
6224 # decide which to use based on capabilities of $DLLTOOL
6225 case `$DLLTOOL --help 2>&1` in
6226 *--identify-strict*)
6227 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6230 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6235 # fallback: assume linklib IS sharedlib
6236 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6242 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6243 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6244 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6252 if test -n "$ac_tool_prefix"; then
6255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if ${ac_cv_prog_AR+:} false; then :
6260 $as_echo_n "(cached) " >&6
6262 if test -n "$AR"; then
6263 ac_cv_prog_AR="$AR" # Let the user override the test.
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 if test -n "$AR"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6285 $as_echo "$AR" >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6292 test -n "$AR" && break
6295 if test -z "$AR"; then
6299 # Extract the first word of "$ac_prog", so it can be a program name with args.
6300 set dummy $ac_prog; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -n "$ac_ct_AR"; then
6307 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_ac_ct_AR="$ac_prog"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6327 if test -n "$ac_ct_AR"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6329 $as_echo "$ac_ct_AR" >&6; }
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6336 test -n "$ac_ct_AR" && break
6339 if test "x$ac_ct_AR" = x; then
6342 case $cross_compiling:$ac_tool_warned in
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6346 ac_tool_warned=yes ;;
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6366 $as_echo_n "checking for archiver @FILE support... " >&6; }
6367 if ${lt_cv_ar_at_file+:} false; then :
6368 $as_echo_n "(cached) " >&6
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6374 #ifdef FC_DUMMY_MAIN
6375 #ifndef FC_DUMMY_MAIN_EQ_F77
6379 int FC_DUMMY_MAIN() { return 1; }
6390 if ac_fn_c_try_compile "$LINENO"; then :
6391 echo conftest.$ac_objext > conftest.lst
6392 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6394 (eval $lt_ar_try) 2>&5
6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397 test $ac_status = 0; }
6398 if test "$ac_status" -eq 0; then
6399 # Ensure the archiver fails upon bogus file names.
6400 rm -f conftest.$ac_objext libconftest.a
6401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6402 (eval $lt_ar_try) 2>&5
6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405 test $ac_status = 0; }
6406 if test "$ac_status" -ne 0; then
6410 rm -f conftest.* libconftest.a
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6417 $as_echo "$lt_cv_ar_at_file" >&6; }
6419 if test "x$lt_cv_ar_at_file" = xno; then
6422 archiver_list_spec=$lt_cv_ar_at_file
6431 if test -n "$ac_tool_prefix"; then
6432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}strip; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_STRIP+:} false; then :
6437 $as_echo_n "(cached) " >&6
6439 if test -n "$STRIP"; then
6440 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 STRIP=$ac_cv_prog_STRIP
6460 if test -n "$STRIP"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6462 $as_echo "$STRIP" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6470 if test -z "$ac_cv_prog_STRIP"; then
6472 # Extract the first word of "strip", so it can be a program name with args.
6473 set dummy strip; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6477 $as_echo_n "(cached) " >&6
6479 if test -n "$ac_ct_STRIP"; then
6480 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_ac_ct_STRIP="strip"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6500 if test -n "$ac_ct_STRIP"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6502 $as_echo "$ac_ct_STRIP" >&6; }
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6508 if test "x$ac_ct_STRIP" = x; then
6511 case $cross_compiling:$ac_tool_warned in
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6520 STRIP="$ac_cv_prog_STRIP"
6523 test -z "$STRIP" && STRIP=:
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_RANLIB+:} false; then :
6536 $as_echo_n "(cached) " >&6
6538 if test -n "$RANLIB"; then
6539 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 RANLIB=$ac_cv_prog_RANLIB
6559 if test -n "$RANLIB"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6561 $as_echo "$RANLIB" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6569 if test -z "$ac_cv_prog_RANLIB"; then
6570 ac_ct_RANLIB=$RANLIB
6571 # Extract the first word of "ranlib", so it can be a program name with args.
6572 set dummy ranlib; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6576 $as_echo_n "(cached) " >&6
6578 if test -n "$ac_ct_RANLIB"; then
6579 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_RANLIB="ranlib"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6599 if test -n "$ac_ct_RANLIB"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6601 $as_echo "$ac_ct_RANLIB" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6607 if test "x$ac_ct_RANLIB" = x; then
6610 case $cross_compiling:$ac_tool_warned in
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6616 RANLIB=$ac_ct_RANLIB
6619 RANLIB="$ac_cv_prog_RANLIB"
6622 test -z "$RANLIB" && RANLIB=:
6629 # Determine commands to create old-style static archives.
6630 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6631 old_postinstall_cmds='chmod 644 $oldlib'
6632 old_postuninstall_cmds=
6634 if test -n "$RANLIB"; then
6637 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6640 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6643 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6648 lock_old_archive_extraction=yes ;;
6650 lock_old_archive_extraction=no ;;
6691 # If no C compiler was specified, use CC.
6694 # If no C compiler flags were specified, use CFLAGS.
6695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6697 # Allow CC to be a program name with arguments.
6701 # Check for command to grab the raw symbol name followed by C symbol from nm.
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6703 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6704 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6705 $as_echo_n "(cached) " >&6
6708 # These are sane defaults that work on at least a few old systems.
6709 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6711 # Character class describing NM global symbol codes.
6712 symcode='[BCDEGRST]'
6714 # Regexp to match symbols that can be accessed directly from C.
6715 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6717 # Define system-specific variables.
6722 cygwin* | mingw* | pw32* | cegcc*)
6723 symcode='[ABCDGISTW]'
6726 if test "$host_cpu" = ia64; then
6727 symcode='[ABCDEGRST]'
6731 symcode='[BCDEGRST]'
6734 symcode='[BCDEGQRST]'
6745 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6753 # If we're using GNU nm, then use its standard symbol codes.
6754 case `$NM -V 2>&1` in
6755 *GNU* | *'with BFD'*)
6756 symcode='[ABCDGIRSTW]' ;;
6759 # Transform an extracted symbol line into a proper C declaration.
6760 # Some systems (esp. on ia64) link data and code symbols differently,
6761 # so use this general approach.
6762 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6764 # Transform an extracted symbol line into symbol name and symbol address
6765 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6766 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'"
6768 # Handle CRLF in mingw tool chain
6772 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6776 # Try without a prefix underscore, then with it.
6777 for ac_symprfx in "" "_"; do
6779 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6780 symxfrm="\\1 $ac_symprfx\\2 \\2"
6782 # Write the raw and C identifiers.
6783 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6784 # Fake it for dumpbin and say T for any non-static function
6785 # and D for any global variable.
6786 # Also find C++ and __fastcall symbols from MSVC++,
6787 # which start with @ or ?.
6788 lt_cv_sys_global_symbol_pipe="$AWK '"\
6789 " {last_section=section; section=\$ 3};"\
6790 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6791 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6792 " \$ 0!~/External *\|/{next};"\
6793 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6794 " {if(hide[section]) next};"\
6795 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6796 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6797 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6798 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6799 " ' prfx=^$ac_symprfx"
6801 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6803 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6805 # Check to see that the pipe works correctly.
6809 cat > conftest.$ac_ext <<_LT_EOF
6814 void nm_test_func(void);
6815 void nm_test_func(void){}
6819 int main(){nm_test_var='a';nm_test_func();return(0);}
6822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6823 (eval $ac_compile) 2>&5
6825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6826 test $ac_status = 0; }; then
6827 # Now try to grab the symbols.
6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6830 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833 test $ac_status = 0; } && test -s "$nlist"; then
6834 # Try sorting and uniquifying the output.
6835 if sort "$nlist" | uniq > "$nlist"T; then
6836 mv -f "$nlist"T "$nlist"
6841 # Make sure that we snagged all the symbols we need.
6842 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6843 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6844 cat <<_LT_EOF > conftest.$ac_ext
6845 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6846 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6847 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6848 relocations are performed -- see ld's documentation on pseudo-relocs. */
6849 # define LT_DLSYM_CONST
6850 #elif defined(__osf__)
6851 /* This system does not cope well with relocations in const data. */
6852 # define LT_DLSYM_CONST
6854 # define LT_DLSYM_CONST const
6862 # Now generate the symbol file.
6863 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6865 cat <<_LT_EOF >> conftest.$ac_ext
6867 /* The mapping between symbol names and symbols. */
6868 LT_DLSYM_CONST struct {
6872 lt__PROGRAM__LTX_preloaded_symbols[] =
6874 { "@PROGRAM@", (void *) 0 },
6876 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6877 cat <<\_LT_EOF >> conftest.$ac_ext
6881 /* This works around a problem in FreeBSD linker */
6882 #ifdef FREEBSD_WORKAROUND
6883 static const void *lt_preloaded_setup() {
6884 return lt__PROGRAM__LTX_preloaded_symbols;
6892 # Now try linking the two files.
6893 mv conftest.$ac_objext conftstm.$ac_objext
6894 lt_globsym_save_LIBS=$LIBS
6895 lt_globsym_save_CFLAGS=$CFLAGS
6896 LIBS="conftstm.$ac_objext"
6897 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6899 (eval $ac_link) 2>&5
6901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6905 LIBS=$lt_globsym_save_LIBS
6906 CFLAGS=$lt_globsym_save_CFLAGS
6908 echo "cannot find nm_test_func in $nlist" >&5
6911 echo "cannot find nm_test_var in $nlist" >&5
6914 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6917 echo "$progname: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6920 rm -rf conftest* conftst*
6922 # Do not use the global_symbol_pipe unless it works.
6923 if test "$pipe_works" = yes; then
6926 lt_cv_sys_global_symbol_pipe=
6932 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6933 lt_cv_sys_global_symbol_to_cdecl=
6935 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6937 $as_echo "failed" >&6; }
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6940 $as_echo "ok" >&6; }
6943 # Response file support.
6944 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6945 nm_file_list_spec='@'
6946 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6947 nm_file_list_spec='@'
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6977 $as_echo_n "checking for sysroot... " >&6; }
6979 # Check whether --with-sysroot was given.
6980 if test "${with_sysroot+set}" = set; then :
6981 withval=$with_sysroot;
6988 case ${with_sysroot} in #(
6990 if test "$GCC" = yes; then
6991 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6995 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7001 $as_echo "${with_sysroot}" >&6; }
7002 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7007 $as_echo "${lt_sysroot:-no}" >&6; }
7013 # Check whether --enable-libtool-lock was given.
7014 if test "${enable_libtool_lock+set}" = set; then :
7015 enableval=$enable_libtool_lock;
7018 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7020 # Some flags need to be propagated to the compiler or linker for good
7024 # Find out which ABI we are using.
7025 echo 'int i;' > conftest.$ac_ext
7026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7027 (eval $ac_compile) 2>&5
7029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030 test $ac_status = 0; }; then
7031 case `/usr/bin/file conftest.$ac_objext` in
7043 # Find out which ABI we are using.
7044 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7046 (eval $ac_compile) 2>&5
7048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; }; then
7050 if test "$lt_cv_prog_gnu_ld" = yes; then
7051 case `/usr/bin/file conftest.$ac_objext` in
7053 LD="${LD-ld} -melf32bsmip"
7056 LD="${LD-ld} -melf32bmipn32"
7059 LD="${LD-ld} -melf64bmip"
7063 case `/usr/bin/file conftest.$ac_objext` in
7079 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7080 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7081 # Find out which ABI we are using.
7082 echo 'int i;' > conftest.$ac_ext
7083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7084 (eval $ac_compile) 2>&5
7086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087 test $ac_status = 0; }; then
7088 case `/usr/bin/file conftest.o` in
7091 x86_64-*kfreebsd*-gnu)
7092 LD="${LD-ld} -m elf_i386_fbsd"
7095 LD="${LD-ld} -m elf_i386"
7097 ppc64-*linux*|powerpc64-*linux*)
7098 LD="${LD-ld} -m elf32ppclinux"
7101 LD="${LD-ld} -m elf_s390"
7104 LD="${LD-ld} -m elf32_sparc"
7110 x86_64-*kfreebsd*-gnu)
7111 LD="${LD-ld} -m elf_x86_64_fbsd"
7114 LD="${LD-ld} -m elf_x86_64"
7116 ppc*-*linux*|powerpc*-*linux*)
7117 LD="${LD-ld} -m elf64ppc"
7119 s390*-*linux*|s390*-*tpf*)
7120 LD="${LD-ld} -m elf64_s390"
7123 LD="${LD-ld} -m elf64_sparc"
7133 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7134 SAVE_CFLAGS="$CFLAGS"
7135 CFLAGS="$CFLAGS -belf"
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7137 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7138 if ${lt_cv_cc_needs_belf+:} false; then :
7139 $as_echo_n "(cached) " >&6
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7150 #ifdef FC_DUMMY_MAIN
7151 #ifndef FC_DUMMY_MAIN_EQ_F77
7155 int FC_DUMMY_MAIN() { return 1; }
7166 if ac_fn_c_try_link "$LINENO"; then :
7167 lt_cv_cc_needs_belf=yes
7169 lt_cv_cc_needs_belf=no
7171 rm -f core conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
7174 ac_cpp='$CPP $CPPFLAGS'
7175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7181 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7182 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7183 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7184 CFLAGS="$SAVE_CFLAGS"
7188 # Find out which ABI we are using.
7189 echo 'int i;' > conftest.$ac_ext
7190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7191 (eval $ac_compile) 2>&5
7193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7194 test $ac_status = 0; }; then
7195 case `/usr/bin/file conftest.o` in
7197 case $lt_cv_prog_gnu_ld in
7201 LD="${LD-ld} -m elf_x86_64"
7204 LD="${LD-ld} -m elf64_sparc"
7207 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7208 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7213 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7225 need_locks="$enable_libtool_lock"
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}mt; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7233 $as_echo_n "(cached) " >&6
7235 if test -n "$MANIFEST_TOOL"; then
7236 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7256 if test -n "$MANIFEST_TOOL"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7258 $as_echo "$MANIFEST_TOOL" >&6; }
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7266 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7267 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7268 # Extract the first word of "mt", so it can be a program name with args.
7269 set dummy mt; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7273 $as_echo_n "(cached) " >&6
7275 if test -n "$ac_ct_MANIFEST_TOOL"; then
7276 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7296 if test -n "$ac_ct_MANIFEST_TOOL"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7298 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7304 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7307 case $cross_compiling:$ac_tool_warned in
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7313 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7316 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7319 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7321 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7322 if ${lt_cv_path_mainfest_tool+:} false; then :
7323 $as_echo_n "(cached) " >&6
7325 lt_cv_path_mainfest_tool=no
7326 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7327 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7328 cat conftest.err >&5
7329 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7330 lt_cv_path_mainfest_tool=yes
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7335 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7336 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7346 rhapsody* | darwin*)
7347 if test -n "$ac_tool_prefix"; then
7348 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7349 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 if test -n "$DSYMUTIL"; then
7356 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7376 if test -n "$DSYMUTIL"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7378 $as_echo "$DSYMUTIL" >&6; }
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7386 if test -z "$ac_cv_prog_DSYMUTIL"; then
7387 ac_ct_DSYMUTIL=$DSYMUTIL
7388 # Extract the first word of "dsymutil", so it can be a program name with args.
7389 set dummy dsymutil; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7393 $as_echo_n "(cached) " >&6
7395 if test -n "$ac_ct_DSYMUTIL"; then
7396 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7405 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7416 if test -n "$ac_ct_DSYMUTIL"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7418 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7424 if test "x$ac_ct_DSYMUTIL" = x; then
7427 case $cross_compiling:$ac_tool_warned in
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7433 DSYMUTIL=$ac_ct_DSYMUTIL
7436 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7439 if test -n "$ac_tool_prefix"; then
7440 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7441 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_prog_NMEDIT+:} false; then :
7445 $as_echo_n "(cached) " >&6
7447 if test -n "$NMEDIT"; then
7448 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 NMEDIT=$ac_cv_prog_NMEDIT
7468 if test -n "$NMEDIT"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7470 $as_echo "$NMEDIT" >&6; }
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7478 if test -z "$ac_cv_prog_NMEDIT"; then
7479 ac_ct_NMEDIT=$NMEDIT
7480 # Extract the first word of "nmedit", so it can be a program name with args.
7481 set dummy nmedit; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7485 $as_echo_n "(cached) " >&6
7487 if test -n "$ac_ct_NMEDIT"; then
7488 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7508 if test -n "$ac_ct_NMEDIT"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7510 $as_echo "$ac_ct_NMEDIT" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7516 if test "x$ac_ct_NMEDIT" = x; then
7519 case $cross_compiling:$ac_tool_warned in
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523 ac_tool_warned=yes ;;
7525 NMEDIT=$ac_ct_NMEDIT
7528 NMEDIT="$ac_cv_prog_NMEDIT"
7531 if test -n "$ac_tool_prefix"; then
7532 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7533 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_prog_LIPO+:} false; then :
7537 $as_echo_n "(cached) " >&6
7539 if test -n "$LIPO"; then
7540 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 LIPO=$ac_cv_prog_LIPO
7560 if test -n "$LIPO"; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7562 $as_echo "$LIPO" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7570 if test -z "$ac_cv_prog_LIPO"; then
7572 # Extract the first word of "lipo", so it can be a program name with args.
7573 set dummy lipo; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7577 $as_echo_n "(cached) " >&6
7579 if test -n "$ac_ct_LIPO"; then
7580 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7589 ac_cv_prog_ac_ct_LIPO="lipo"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7600 if test -n "$ac_ct_LIPO"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7602 $as_echo "$ac_ct_LIPO" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7608 if test "x$ac_ct_LIPO" = x; then
7611 case $cross_compiling:$ac_tool_warned in
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615 ac_tool_warned=yes ;;
7620 LIPO="$ac_cv_prog_LIPO"
7623 if test -n "$ac_tool_prefix"; then
7624 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7625 set dummy ${ac_tool_prefix}otool; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_prog_OTOOL+:} false; then :
7629 $as_echo_n "(cached) " >&6
7631 if test -n "$OTOOL"; then
7632 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 OTOOL=$ac_cv_prog_OTOOL
7652 if test -n "$OTOOL"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7654 $as_echo "$OTOOL" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7662 if test -z "$ac_cv_prog_OTOOL"; then
7664 # Extract the first word of "otool", so it can be a program name with args.
7665 set dummy otool; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7669 $as_echo_n "(cached) " >&6
7671 if test -n "$ac_ct_OTOOL"; then
7672 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7681 ac_cv_prog_ac_ct_OTOOL="otool"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7692 if test -n "$ac_ct_OTOOL"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7694 $as_echo "$ac_ct_OTOOL" >&6; }
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7700 if test "x$ac_ct_OTOOL" = x; then
7703 case $cross_compiling:$ac_tool_warned in
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7707 ac_tool_warned=yes ;;
7712 OTOOL="$ac_cv_prog_OTOOL"
7715 if test -n "$ac_tool_prefix"; then
7716 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7717 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_OTOOL64+:} false; then :
7721 $as_echo_n "(cached) " >&6
7723 if test -n "$OTOOL64"; then
7724 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 OTOOL64=$ac_cv_prog_OTOOL64
7744 if test -n "$OTOOL64"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7746 $as_echo "$OTOOL64" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7754 if test -z "$ac_cv_prog_OTOOL64"; then
7755 ac_ct_OTOOL64=$OTOOL64
7756 # Extract the first word of "otool64", so it can be a program name with args.
7757 set dummy otool64; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7761 $as_echo_n "(cached) " >&6
7763 if test -n "$ac_ct_OTOOL64"; then
7764 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773 ac_cv_prog_ac_ct_OTOOL64="otool64"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7784 if test -n "$ac_ct_OTOOL64"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7786 $as_echo "$ac_ct_OTOOL64" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7792 if test "x$ac_ct_OTOOL64" = x; then
7795 case $cross_compiling:$ac_tool_warned in
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799 ac_tool_warned=yes ;;
7801 OTOOL64=$ac_ct_OTOOL64
7804 OTOOL64="$ac_cv_prog_OTOOL64"
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7834 $as_echo_n "checking for -single_module linker flag... " >&6; }
7835 if ${lt_cv_apple_cc_single_mod+:} false; then :
7836 $as_echo_n "(cached) " >&6
7838 lt_cv_apple_cc_single_mod=no
7839 if test -z "${LT_MULTI_MODULE}"; then
7840 # By default we will add the -single_module flag. You can override
7841 # by either setting the environment variable LT_MULTI_MODULE
7842 # non-empty at configure time, or by adding -multi_module to the
7844 rm -rf libconftest.dylib*
7845 echo "int foo(void){return 1;}" > conftest.c
7846 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7847 -dynamiclib -Wl,-single_module conftest.c" >&5
7848 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7849 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7851 # If there is a non-empty error log, and "single_module"
7852 # appears in it, assume the flag caused a linker warning
7853 if test -s conftest.err && $GREP single_module conftest.err; then
7854 cat conftest.err >&5
7855 # Otherwise, if the output was created with a 0 exit code from
7856 # the compiler, it worked.
7857 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7858 lt_cv_apple_cc_single_mod=yes
7860 cat conftest.err >&5
7862 rm -rf libconftest.dylib*
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7867 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7870 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7871 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7872 $as_echo_n "(cached) " >&6
7874 lt_cv_ld_exported_symbols_list=no
7875 save_LDFLAGS=$LDFLAGS
7876 echo "_main" > conftest.sym
7877 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7881 #ifdef FC_DUMMY_MAIN
7882 #ifndef FC_DUMMY_MAIN_EQ_F77
7886 int FC_DUMMY_MAIN() { return 1; }
7897 if ac_fn_c_try_link "$LINENO"; then :
7898 lt_cv_ld_exported_symbols_list=yes
7900 lt_cv_ld_exported_symbols_list=no
7902 rm -f core conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7904 LDFLAGS="$save_LDFLAGS"
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7908 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7911 $as_echo_n "checking for -force_load linker flag... " >&6; }
7912 if ${lt_cv_ld_force_load+:} false; then :
7913 $as_echo_n "(cached) " >&6
7915 lt_cv_ld_force_load=no
7916 cat > conftest.c << _LT_EOF
7917 int forced_loaded() { return 2;}
7919 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7920 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7921 echo "$AR cru libconftest.a conftest.o" >&5
7922 $AR cru libconftest.a conftest.o 2>&5
7923 echo "$RANLIB libconftest.a" >&5
7924 $RANLIB libconftest.a 2>&5
7925 cat > conftest.c << _LT_EOF
7926 int main() { return 0;}
7928 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7929 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7931 if test -s conftest.err && $GREP force_load conftest.err; then
7932 cat conftest.err >&5
7933 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7934 lt_cv_ld_force_load=yes
7936 cat conftest.err >&5
7938 rm -f conftest.err libconftest.a conftest conftest.c
7939 rm -rf conftest.dSYM
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7943 $as_echo "$lt_cv_ld_force_load" >&6; }
7945 rhapsody* | darwin1.[012])
7946 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7948 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7949 darwin*) # darwin 5.x on
7950 # if running on 10.5 or later, the deployment target defaults
7951 # to the OS version, if on x86, and 10.4, the deployment
7952 # target defaults to 10.4. Don't you love it?
7953 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7954 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7955 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7957 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7959 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7963 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7964 _lt_dar_single_mod='$single_module'
7966 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7967 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7969 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7971 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7972 _lt_dsymutil='~$DSYMUTIL $lib || :'
7980 ac_cpp='$CPP $CPPFLAGS'
7981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7985 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7986 # On Suns, sometimes $CPP names a directory.
7987 if test -n "$CPP" && test -d "$CPP"; then
7990 if test -z "$CPP"; then
7991 if ${ac_cv_prog_CPP+:} false; then :
7992 $as_echo_n "(cached) " >&6
7994 # Double quotes because CPP needs to be expanded
7995 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7998 for ac_c_preproc_warn_flag in '' yes
8000 # Use a header file that comes with gcc, so configuring glibc
8001 # with a fresh cross-compiler works.
8002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8003 # <limits.h> exists even on freestanding compilers.
8004 # On the NeXT, cc -E runs the code through the compiler's parser,
8005 # not just through cpp. "Syntax error" is here to catch this case.
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8009 # include <limits.h>
8011 # include <assert.h>
8015 if ac_fn_c_try_cpp "$LINENO"; then :
8018 # Broken: fails on valid input.
8021 rm -f conftest.err conftest.i conftest.$ac_ext
8023 # OK, works on sane cases. Now check whether nonexistent headers
8024 # can be detected and how.
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 #include <ac_nonexistent.h>
8029 if ac_fn_c_try_cpp "$LINENO"; then :
8030 # Broken: success on invalid input.
8033 # Passes both tests.
8037 rm -f conftest.err conftest.i conftest.$ac_ext
8040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8041 rm -f conftest.i conftest.err conftest.$ac_ext
8042 if $ac_preproc_ok; then :
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8055 $as_echo "$CPP" >&6; }
8057 for ac_c_preproc_warn_flag in '' yes
8059 # Use a header file that comes with gcc, so configuring glibc
8060 # with a fresh cross-compiler works.
8061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8062 # <limits.h> exists even on freestanding compilers.
8063 # On the NeXT, cc -E runs the code through the compiler's parser,
8064 # not just through cpp. "Syntax error" is here to catch this case.
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8068 # include <limits.h>
8070 # include <assert.h>
8074 if ac_fn_c_try_cpp "$LINENO"; then :
8077 # Broken: fails on valid input.
8080 rm -f conftest.err conftest.i conftest.$ac_ext
8082 # OK, works on sane cases. Now check whether nonexistent headers
8083 # can be detected and how.
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086 #include <ac_nonexistent.h>
8088 if ac_fn_c_try_cpp "$LINENO"; then :
8089 # Broken: success on invalid input.
8092 # Passes both tests.
8096 rm -f conftest.err conftest.i conftest.$ac_ext
8099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8100 rm -f conftest.i conftest.err conftest.$ac_ext
8101 if $ac_preproc_ok; then :
8104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8106 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8107 See \`config.log' for more details" "$LINENO" 5; }
8111 ac_cpp='$CPP $CPPFLAGS'
8112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8118 $as_echo_n "checking for ANSI C header files... " >&6; }
8119 if ${ac_cv_header_stdc+:} false; then :
8120 $as_echo_n "(cached) " >&6
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8129 #ifdef FC_DUMMY_MAIN
8130 #ifndef FC_DUMMY_MAIN_EQ_F77
8134 int FC_DUMMY_MAIN() { return 1; }
8145 if ac_fn_c_try_compile "$LINENO"; then :
8146 ac_cv_header_stdc=yes
8148 ac_cv_header_stdc=no
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 if test $ac_cv_header_stdc = yes; then
8153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160 $EGREP "memchr" >/dev/null 2>&1; then :
8163 ac_cv_header_stdc=no
8169 if test $ac_cv_header_stdc = yes; then
8170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8177 $EGREP "free" >/dev/null 2>&1; then :
8180 ac_cv_header_stdc=no
8186 if test $ac_cv_header_stdc = yes; then
8187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8188 if test "$cross_compiling" = yes; then :
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8195 #if ((' ' & 0x0FF) == 0x020)
8196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8199 # define ISLOWER(c) \
8200 (('a' <= (c) && (c) <= 'i') \
8201 || ('j' <= (c) && (c) <= 'r') \
8202 || ('s' <= (c) && (c) <= 'z'))
8203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8211 for (i = 0; i < 256; i++)
8212 if (XOR (islower (i), ISLOWER (i))
8213 || toupper (i) != TOUPPER (i))
8218 if ac_fn_c_try_run "$LINENO"; then :
8221 ac_cv_header_stdc=no
8223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8224 conftest.$ac_objext conftest.beam conftest.$ac_ext
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8230 $as_echo "$ac_cv_header_stdc" >&6; }
8231 if test $ac_cv_header_stdc = yes; then
8233 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8239 inttypes.h stdint.h unistd.h
8241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8242 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8244 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8245 cat >>confdefs.h <<_ACEOF
8246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8254 for ac_header in dlfcn.h
8256 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8258 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8259 cat >>confdefs.h <<_ACEOF
8260 #define HAVE_DLFCN_H 1
8269 func_stripname_cnf ()
8272 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8273 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8275 } # func_stripname_cnf
8291 # Check whether --enable-shared was given.
8292 if test "${enable_shared+set}" = set; then :
8293 enableval=$enable_shared; p=${PACKAGE-default}
8295 yes) enable_shared=yes ;;
8296 no) enable_shared=no ;;
8299 # Look at the argument we got. We use all the common list separators.
8300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8301 for pkg in $enableval; do
8303 if test "X$pkg" = "X$p"; then
8322 # Check whether --enable-static was given.
8323 if test "${enable_static+set}" = set; then :
8324 enableval=$enable_static; p=${PACKAGE-default}
8326 yes) enable_static=yes ;;
8327 no) enable_static=no ;;
8330 # Look at the argument we got. We use all the common list separators.
8331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8332 for pkg in $enableval; do
8334 if test "X$pkg" = "X$p"; then
8354 # Check whether --with-pic was given.
8355 if test "${with_pic+set}" = set; then :
8356 withval=$with_pic; lt_p=${PACKAGE-default}
8358 yes|no) pic_mode=$withval ;;
8361 # Look at the argument we got. We use all the common list separators.
8362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8363 for lt_pkg in $withval; do
8365 if test "X$lt_pkg" = "X$lt_p"; then
8377 test -z "$pic_mode" && pic_mode=default
8385 # Check whether --enable-fast-install was given.
8386 if test "${enable_fast_install+set}" = set; then :
8387 enableval=$enable_fast_install; p=${PACKAGE-default}
8389 yes) enable_fast_install=yes ;;
8390 no) enable_fast_install=no ;;
8392 enable_fast_install=no
8393 # Look at the argument we got. We use all the common list separators.
8394 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8395 for pkg in $enableval; do
8397 if test "X$pkg" = "X$p"; then
8398 enable_fast_install=yes
8405 enable_fast_install=yes
8418 # This can be used to rebuild libtool when needed
8419 LIBTOOL_DEPS="$ltmain"
8421 # Always use our own libtool.
8422 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8453 test -z "$LN_S" && LN_S="ln -s"
8468 if test -n "${ZSH_VERSION+set}" ; then
8469 setopt NO_GLOB_SUBST
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8473 $as_echo_n "checking for objdir... " >&6; }
8474 if ${lt_cv_objdir+:} false; then :
8475 $as_echo_n "(cached) " >&6
8477 rm -f .libs 2>/dev/null
8478 mkdir .libs 2>/dev/null
8479 if test -d .libs; then
8482 # MS-DOS does not allow filenames that begin with a dot.
8485 rmdir .libs 2>/dev/null
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8488 $as_echo "$lt_cv_objdir" >&6; }
8489 objdir=$lt_cv_objdir
8495 cat >>confdefs.h <<_ACEOF
8496 #define LT_OBJDIR "$lt_cv_objdir/"
8504 # AIX sometimes has problems with the GCC collect2 program. For some
8505 # reason, if we set the COLLECT_NAMES environment variable, the problems
8506 # vanish in a puff of smoke.
8507 if test "X${COLLECT_NAMES+set}" != Xset; then
8509 export COLLECT_NAMES
8516 can_build_shared=yes
8518 # All known linkers require a `.a' archive for static linking (except MSVC,
8519 # which needs '.lib').
8522 with_gnu_ld="$lt_cv_prog_gnu_ld"
8525 old_CFLAGS="$CFLAGS"
8527 # Set sane defaults for various variables
8528 test -z "$CC" && CC=cc
8529 test -z "$LTCC" && LTCC=$CC
8530 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8531 test -z "$LD" && LD=ld
8532 test -z "$ac_objext" && ac_objext=o
8534 for cc_temp in $compiler""; do
8536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8542 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8545 # Only perform the check for file, if the check method requires it
8546 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8547 case $deplibs_check_method in
8549 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8551 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8552 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8553 $as_echo_n "(cached) " >&6
8557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8560 lt_save_MAGIC_CMD="$MAGIC_CMD"
8561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8563 for ac_dir in $ac_dummy; do
8565 test -z "$ac_dir" && ac_dir=.
8566 if test -f $ac_dir/${ac_tool_prefix}file; then
8567 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8568 if test -n "$file_magic_test_file"; then
8569 case $deplibs_check_method in
8571 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8574 $EGREP "$file_magic_regex" > /dev/null; then
8579 *** Warning: the command libtool uses to detect shared libraries,
8580 *** $file_magic_cmd, produces output that libtool cannot recognize.
8581 *** The result is that libtool may fail to recognize shared libraries
8582 *** as such. This will affect the creation of libtool libraries that
8583 *** depend on shared libraries, but programs linked with such libtool
8584 *** libraries will work regardless of this problem. Nevertheless, you
8585 *** may want to report the problem to your system manager and/or to
8586 *** bug-libtool@gnu.org
8596 MAGIC_CMD="$lt_save_MAGIC_CMD"
8601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8602 if test -n "$MAGIC_CMD"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8604 $as_echo "$MAGIC_CMD" >&6; }
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8614 if test -z "$lt_cv_path_MAGIC_CMD"; then
8615 if test -n "$ac_tool_prefix"; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8617 $as_echo_n "checking for file... " >&6; }
8618 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8619 $as_echo_n "(cached) " >&6
8623 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8626 lt_save_MAGIC_CMD="$MAGIC_CMD"
8627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8628 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8629 for ac_dir in $ac_dummy; do
8631 test -z "$ac_dir" && ac_dir=.
8632 if test -f $ac_dir/file; then
8633 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8634 if test -n "$file_magic_test_file"; then
8635 case $deplibs_check_method in
8637 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8640 $EGREP "$file_magic_regex" > /dev/null; then
8645 *** Warning: the command libtool uses to detect shared libraries,
8646 *** $file_magic_cmd, produces output that libtool cannot recognize.
8647 *** The result is that libtool may fail to recognize shared libraries
8648 *** as such. This will affect the creation of libtool libraries that
8649 *** depend on shared libraries, but programs linked with such libtool
8650 *** libraries will work regardless of this problem. Nevertheless, you
8651 *** may want to report the problem to your system manager and/or to
8652 *** bug-libtool@gnu.org
8662 MAGIC_CMD="$lt_save_MAGIC_CMD"
8667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8668 if test -n "$MAGIC_CMD"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8670 $as_echo "$MAGIC_CMD" >&6; }
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8686 # Use C for the default configuration in the libtool script
8690 ac_cpp='$CPP $CPPFLAGS'
8691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8696 # Source file extension for C test sources.
8699 # Object file extension for compiled C test sources.
8703 # Code to be used in simple compile tests
8704 lt_simple_compile_test_code="int some_variable = 0;"
8706 # Code to be used in simple link tests
8707 lt_simple_link_test_code='int main(){return(0);}'
8715 # If no C compiler was specified, use CC.
8718 # If no C compiler flags were specified, use CFLAGS.
8719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8721 # Allow CC to be a program name with arguments.
8724 # Save the default compiler, since it gets overwritten when the other
8725 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8726 compiler_DEFAULT=$CC
8728 # save warnings/boilerplate of simple test code
8729 ac_outfile=conftest.$ac_objext
8730 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8732 _lt_compiler_boilerplate=`cat conftest.err`
8735 ac_outfile=conftest.$ac_objext
8736 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8738 _lt_linker_boilerplate=`cat conftest.err`
8743 ## There is no encapsulation within the following macros, do not change
8744 ## the running order or otherwise move them around unless you know exactly
8745 ## what you are doing...
8746 if test -n "$compiler"; then
8748 lt_prog_compiler_no_builtin_flag=
8750 if test "$GCC" = yes; then
8751 case $cc_basename in
8753 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8755 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8759 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8760 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8761 $as_echo_n "(cached) " >&6
8763 lt_cv_prog_compiler_rtti_exceptions=no
8764 ac_outfile=conftest.$ac_objext
8765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8766 lt_compiler_flag="-fno-rtti -fno-exceptions"
8767 # Insert the option either (1) after the last *FLAGS variable, or
8768 # (2) before a word containing "conftest.", or (3) at the end.
8769 # Note that $ac_compile itself does not contain backslashes and begins
8770 # with a dollar sign (not a hyphen), so the echo should work correctly.
8771 # The option is referenced via a variable to avoid confusing sed.
8772 lt_compile=`echo "$ac_compile" | $SED \
8773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775 -e 's:$: $lt_compiler_flag:'`
8776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8777 (eval "$lt_compile" 2>conftest.err)
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 if (exit $ac_status) && test -s "$ac_outfile"; then
8782 # The compiler can only warn and ignore the option if not recognized
8783 # So say no if there are warnings other than the usual output.
8784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8787 lt_cv_prog_compiler_rtti_exceptions=yes
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8794 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8796 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8797 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8809 lt_prog_compiler_wl=
8810 lt_prog_compiler_pic=
8811 lt_prog_compiler_static=
8814 if test "$GCC" = yes; then
8815 lt_prog_compiler_wl='-Wl,'
8816 lt_prog_compiler_static='-static'
8820 # All AIX code is PIC.
8821 if test "$host_cpu" = ia64; then
8822 # AIX 5 now supports IA64 processor
8823 lt_prog_compiler_static='-Bstatic'
8830 # see comment about AmigaOS4 .so support
8831 lt_prog_compiler_pic='-fPIC'
8834 # FIXME: we need at least 68020 code to build shared libraries, but
8835 # adding the `-m68020' flag to GCC prevents building anything better,
8837 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8842 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8843 # PIC is the default for these OSes.
8846 mingw* | cygwin* | pw32* | os2* | cegcc*)
8847 # This hack is so that the source file can tell whether it is being
8848 # built for inclusion in a dll (and should export symbols for example).
8849 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8850 # (--disable-auto-import) libraries
8851 lt_prog_compiler_pic='-DDLL_EXPORT'
8854 darwin* | rhapsody*)
8855 # PIC is the default on this platform
8856 # Common symbols not allowed in MH_DYLIB files
8857 lt_prog_compiler_pic='-fno-common'
8861 # PIC is the default for Haiku.
8862 # The "-static" flag exists, but is broken.
8863 lt_prog_compiler_static=
8867 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8868 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8869 # sets the default TLS model and affects inlining.
8875 lt_prog_compiler_pic='-fPIC'
8881 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8882 # Instead, we relocate shared libraries at runtime.
8886 # Just because we use GCC doesn't mean we suddenly get shared libraries
8887 # on systems that don't support them.
8888 lt_prog_compiler_can_build_shared=no
8893 # QNX uses GNU C++, but need to define -shared option too, otherwise
8895 lt_prog_compiler_pic='-fPIC -shared'
8899 if test -d /usr/nec; then
8900 lt_prog_compiler_pic=-Kconform_pic
8905 lt_prog_compiler_pic='-fPIC'
8909 case $cc_basename in
8910 nvcc*) # Cuda Compiler Driver 2.2
8911 lt_prog_compiler_wl='-Xlinker '
8912 if test -n "$lt_prog_compiler_pic"; then
8913 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8918 # PORTME Check for flag to pass linker flags through the system compiler.
8921 lt_prog_compiler_wl='-Wl,'
8922 if test "$host_cpu" = ia64; then
8923 # AIX 5 now supports IA64 processor
8924 lt_prog_compiler_static='-Bstatic'
8926 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8930 mingw* | cygwin* | pw32* | os2* | cegcc*)
8931 # This hack is so that the source file can tell whether it is being
8932 # built for inclusion in a dll (and should export symbols for example).
8933 lt_prog_compiler_pic='-DDLL_EXPORT'
8936 hpux9* | hpux10* | hpux11*)
8937 lt_prog_compiler_wl='-Wl,'
8938 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8945 lt_prog_compiler_pic='+Z'
8948 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8949 lt_prog_compiler_static='${wl}-a ${wl}archive'
8952 irix5* | irix6* | nonstopux*)
8953 lt_prog_compiler_wl='-Wl,'
8954 # PIC (with -KPIC) is the default.
8955 lt_prog_compiler_static='-non_shared'
8958 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8959 case $cc_basename in
8960 # old Intel for x86_64 which still supported -KPIC.
8962 lt_prog_compiler_wl='-Wl,'
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-static'
8966 # icc used to be incompatible with GCC.
8967 # ICC 10 doesn't accept -KPIC any more.
8969 lt_prog_compiler_wl='-Wl,'
8970 lt_prog_compiler_pic='-fPIC'
8971 lt_prog_compiler_static='-static'
8973 # Lahey Fortran 8.1.
8975 lt_prog_compiler_wl='-Wl,'
8976 lt_prog_compiler_pic='--shared'
8977 lt_prog_compiler_static='--static'
8980 # NAG Fortran compiler
8981 lt_prog_compiler_wl='-Wl,-Wl,,'
8982 lt_prog_compiler_pic='-PIC'
8983 lt_prog_compiler_static='-Bstatic'
8985 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8986 # Portland Group compilers (*not* the Pentium gcc compiler,
8987 # which looks to be a dead project)
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-fpic'
8990 lt_prog_compiler_static='-Bstatic'
8993 lt_prog_compiler_wl='-Wl,'
8994 # All Alpha code is PIC.
8995 lt_prog_compiler_static='-non_shared'
8997 xl* | bgxl* | bgf* | mpixl*)
8998 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8999 lt_prog_compiler_wl='-Wl,'
9000 lt_prog_compiler_pic='-qpic'
9001 lt_prog_compiler_static='-qstaticlink'
9004 case `$CC -V 2>&1 | sed 5q` in
9005 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9006 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9007 lt_prog_compiler_pic='-KPIC'
9008 lt_prog_compiler_static='-Bstatic'
9009 lt_prog_compiler_wl=''
9011 *Sun\ F* | *Sun*Fortran*)
9012 lt_prog_compiler_pic='-KPIC'
9013 lt_prog_compiler_static='-Bstatic'
9014 lt_prog_compiler_wl='-Qoption ld '
9018 lt_prog_compiler_pic='-KPIC'
9019 lt_prog_compiler_static='-Bstatic'
9020 lt_prog_compiler_wl='-Wl,'
9022 *Intel*\ [CF]*Compiler*)
9023 lt_prog_compiler_wl='-Wl,'
9024 lt_prog_compiler_pic='-fPIC'
9025 lt_prog_compiler_static='-static'
9028 lt_prog_compiler_wl='-Wl,'
9029 lt_prog_compiler_pic='-fpic'
9030 lt_prog_compiler_static='-Bstatic'
9038 lt_prog_compiler_pic='-KPIC'
9039 lt_prog_compiler_static='-Bstatic'
9043 # QNX uses GNU C++, but need to define -shared option too, otherwise
9045 lt_prog_compiler_pic='-fPIC -shared'
9048 osf3* | osf4* | osf5*)
9049 lt_prog_compiler_wl='-Wl,'
9050 # All OSF/1 code is PIC.
9051 lt_prog_compiler_static='-non_shared'
9055 lt_prog_compiler_static='-non_shared'
9059 lt_prog_compiler_pic='-KPIC'
9060 lt_prog_compiler_static='-Bstatic'
9061 case $cc_basename in
9062 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9063 lt_prog_compiler_wl='-Qoption ld ';;
9065 lt_prog_compiler_wl='-Wl,';;
9070 lt_prog_compiler_wl='-Qoption ld '
9071 lt_prog_compiler_pic='-PIC'
9072 lt_prog_compiler_static='-Bstatic'
9075 sysv4 | sysv4.2uw2* | sysv4.3*)
9076 lt_prog_compiler_wl='-Wl,'
9077 lt_prog_compiler_pic='-KPIC'
9078 lt_prog_compiler_static='-Bstatic'
9082 if test -d /usr/nec ;then
9083 lt_prog_compiler_pic='-Kconform_pic'
9084 lt_prog_compiler_static='-Bstatic'
9088 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9089 lt_prog_compiler_wl='-Wl,'
9090 lt_prog_compiler_pic='-KPIC'
9091 lt_prog_compiler_static='-Bstatic'
9095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_can_build_shared=no
9100 lt_prog_compiler_pic='-pic'
9101 lt_prog_compiler_static='-Bstatic'
9105 lt_prog_compiler_can_build_shared=no
9111 # For platforms which do not support PIC, -DPIC is meaningless:
9113 lt_prog_compiler_pic=
9116 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9121 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9122 if ${lt_cv_prog_compiler_pic+:} false; then :
9123 $as_echo_n "(cached) " >&6
9125 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9128 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9129 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9132 # Check to make sure the PIC flag actually works.
9134 if test -n "$lt_prog_compiler_pic"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9136 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9137 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9138 $as_echo_n "(cached) " >&6
9140 lt_cv_prog_compiler_pic_works=no
9141 ac_outfile=conftest.$ac_objext
9142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9143 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9144 # Insert the option either (1) after the last *FLAGS variable, or
9145 # (2) before a word containing "conftest.", or (3) at the end.
9146 # Note that $ac_compile itself does not contain backslashes and begins
9147 # with a dollar sign (not a hyphen), so the echo should work correctly.
9148 # The option is referenced via a variable to avoid confusing sed.
9149 lt_compile=`echo "$ac_compile" | $SED \
9150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9152 -e 's:$: $lt_compiler_flag:'`
9153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9154 (eval "$lt_compile" 2>conftest.err)
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 if (exit $ac_status) && test -s "$ac_outfile"; then
9159 # The compiler can only warn and ignore the option if not recognized
9160 # So say no if there are warnings other than the usual output.
9161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9163 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9164 lt_cv_prog_compiler_pic_works=yes
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9171 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9173 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9174 case $lt_prog_compiler_pic in
9176 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9179 lt_prog_compiler_pic=
9180 lt_prog_compiler_can_build_shared=no
9196 # Check to make sure the static flag actually works.
9198 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9200 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9201 if ${lt_cv_prog_compiler_static_works+:} false; then :
9202 $as_echo_n "(cached) " >&6
9204 lt_cv_prog_compiler_static_works=no
9205 save_LDFLAGS="$LDFLAGS"
9206 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9207 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9208 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9209 # The linker can only warn and ignore the option if not recognized
9210 # So say no if there are warnings
9211 if test -s conftest.err; then
9212 # Append any errors to the config.log.
9213 cat conftest.err 1>&5
9214 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9216 if diff conftest.exp conftest.er2 >/dev/null; then
9217 lt_cv_prog_compiler_static_works=yes
9220 lt_cv_prog_compiler_static_works=yes
9224 LDFLAGS="$save_LDFLAGS"
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9228 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9230 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9233 lt_prog_compiler_static=
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9244 if ${lt_cv_prog_compiler_c_o+:} false; then :
9245 $as_echo_n "(cached) " >&6
9247 lt_cv_prog_compiler_c_o=no
9248 $RM -r conftest 2>/dev/null
9252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9254 lt_compiler_flag="-o out/conftest2.$ac_objext"
9255 # Insert the option either (1) after the last *FLAGS variable, or
9256 # (2) before a word containing "conftest.", or (3) at the end.
9257 # Note that $ac_compile itself does not contain backslashes and begins
9258 # with a dollar sign (not a hyphen), so the echo should work correctly.
9259 lt_compile=`echo "$ac_compile" | $SED \
9260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9262 -e 's:$: $lt_compiler_flag:'`
9263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9264 (eval "$lt_compile" 2>out/conftest.err)
9266 cat out/conftest.err >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9270 # The compiler can only warn and ignore the option if not recognized
9271 # So say no if there are warnings
9272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9275 lt_cv_prog_compiler_c_o=yes
9280 # SGI C++ compiler will create directory out/ii_files/ for
9281 # template instantiation
9282 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9283 $RM out/* && rmdir out
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9290 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9298 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9299 if ${lt_cv_prog_compiler_c_o+:} false; then :
9300 $as_echo_n "(cached) " >&6
9302 lt_cv_prog_compiler_c_o=no
9303 $RM -r conftest 2>/dev/null
9307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9309 lt_compiler_flag="-o out/conftest2.$ac_objext"
9310 # Insert the option either (1) after the last *FLAGS variable, or
9311 # (2) before a word containing "conftest.", or (3) at the end.
9312 # Note that $ac_compile itself does not contain backslashes and begins
9313 # with a dollar sign (not a hyphen), so the echo should work correctly.
9314 lt_compile=`echo "$ac_compile" | $SED \
9315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9317 -e 's:$: $lt_compiler_flag:'`
9318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9319 (eval "$lt_compile" 2>out/conftest.err)
9321 cat out/conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9325 # The compiler can only warn and ignore the option if not recognized
9326 # So say no if there are warnings
9327 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9328 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9329 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9330 lt_cv_prog_compiler_c_o=yes
9335 # SGI C++ compiler will create directory out/ii_files/ for
9336 # template instantiation
9337 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9338 $RM out/* && rmdir out
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9345 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9350 hard_links="nottested"
9351 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9352 # do not overwrite the value of need_locks provided by the user
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9354 $as_echo_n "checking if we can lock with hard links... " >&6; }
9357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9359 ln conftest.a conftest.b 2>&5 || hard_links=no
9360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9362 $as_echo "$hard_links" >&6; }
9363 if test "$hard_links" = no; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9365 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9378 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9381 allow_undefined_flag=
9382 always_export_symbols=no
9384 archive_expsym_cmds=
9385 compiler_needs_object=no
9386 enable_shared_with_static_runtimes=no
9387 export_dynamic_flag_spec=
9388 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9389 hardcode_automatic=no
9391 hardcode_direct_absolute=no
9392 hardcode_libdir_flag_spec=
9393 hardcode_libdir_separator=
9395 hardcode_shlibpath_var=unsupported
9397 link_all_deplibs=unknown
9400 old_archive_from_new_cmds=
9401 old_archive_from_expsyms_cmds=
9402 thread_safe_flag_spec=
9403 whole_archive_flag_spec=
9404 # include_expsyms should be a list of space-separated symbols to be *always*
9405 # included in the symbol list
9407 # exclude_expsyms can be an extended regexp of symbols to exclude
9408 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9409 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9410 # as well as any symbol that contains `d'.
9411 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9412 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9413 # platforms (ab)use it in PIC code, but their linkers get confused if
9414 # the symbol is explicitly referenced. Since portable code cannot
9415 # rely on this symbol name, it's probably fine to never include it in
9416 # preloaded symbol tables.
9417 # Exclude shared library initialization/finalization symbols.
9418 extract_expsyms_cmds=
9421 cygwin* | mingw* | pw32* | cegcc*)
9422 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9423 # When not using gcc, we currently assume that we are using
9424 # Microsoft Visual C++.
9425 if test "$GCC" != yes; then
9430 # we just hope/assume this is gcc and not c89 (= MSVC++)
9440 # On some targets, GNU ld is compatible enough with the native linker
9441 # that we're better off using the native interface for both.
9442 lt_use_gnu_ld_interface=no
9443 if test "$with_gnu_ld" = yes; then
9446 # The AIX port of GNU ld has always aspired to compatibility
9447 # with the native linker. However, as the warning in the GNU ld
9448 # block says, versions before 2.19.5* couldn't really create working
9449 # shared libraries, regardless of the interface used.
9450 case `$LD -v 2>&1` in
9451 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9452 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9453 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9455 lt_use_gnu_ld_interface=yes
9460 lt_use_gnu_ld_interface=yes
9465 if test "$lt_use_gnu_ld_interface" = yes; then
9466 # If archive_cmds runs LD, not CC, wlarc should be empty
9469 # Set some defaults for GNU ld with shared library support. These
9470 # are reset later if shared libraries are not supported. Putting them
9471 # here allows them to be overridden if necessary.
9472 runpath_var=LD_RUN_PATH
9473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474 export_dynamic_flag_spec='${wl}--export-dynamic'
9475 # ancient GNU ld didn't support --whole-archive et. al.
9476 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9477 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9479 whole_archive_flag_spec=
9481 supports_anon_versioning=no
9482 case `$LD -v 2>&1` in
9483 *GNU\ gold*) supports_anon_versioning=yes ;;
9484 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9485 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9486 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9487 *\ 2.11.*) ;; # other 2.11 versions
9488 *) supports_anon_versioning=yes ;;
9491 # See if GNU ld supports shared libraries.
9494 # On AIX/PPC, the GNU linker is very broken
9495 if test "$host_cpu" != ia64; then
9499 *** Warning: the GNU linker, at least up to release 2.19, is reported
9500 *** to be unable to reliably create shared libraries on AIX.
9501 *** Therefore, libtool is disabling shared libraries support. If you
9502 *** really care for shared libraries, you may want to install binutils
9503 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9504 *** You will then need to restart the configuration process.
9513 # see comment about AmigaOS4 .so support
9514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9515 archive_expsym_cmds=''
9518 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)'
9519 hardcode_libdir_flag_spec='-L$libdir'
9520 hardcode_minus_L=yes
9526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527 allow_undefined_flag=unsupported
9528 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9529 # support --undefined. This deserves some investigation. FIXME
9530 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9536 cygwin* | mingw* | pw32* | cegcc*)
9537 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9538 # as there is no search path for DLLs.
9539 hardcode_libdir_flag_spec='-L$libdir'
9540 export_dynamic_flag_spec='${wl}--export-all-symbols'
9541 allow_undefined_flag=unsupported
9542 always_export_symbols=no
9543 enable_shared_with_static_runtimes=yes
9544 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9545 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9547 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9549 # If the export-symbols file already is a .def file (1st line
9550 # is EXPORTS), use it as is; otherwise, prepend...
9551 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9552 cp $export_symbols $output_objdir/$soname.def;
9554 echo EXPORTS > $output_objdir/$soname.def;
9555 cat $export_symbols >> $output_objdir/$soname.def;
9557 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565 link_all_deplibs=yes
9570 hardcode_shlibpath_var=no
9571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9572 export_dynamic_flag_spec='${wl}-E'
9573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9574 # Instead, shared libraries are loaded at an image base (0x10000000 by
9575 # default) and relocated if they conflict, which is a slow very memory
9576 # consuming and fragmenting process. To avoid this, we pick a random,
9577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9578 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9579 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9580 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'
9583 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9585 if test "$host_os" = linux-dietlibc; then
9586 case $cc_basename in
9587 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9590 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9591 && test "$tmp_diet" = no
9593 tmp_addflag=' $pic_flag'
9594 tmp_sharedflag='-shared'
9595 case $cc_basename,$host_cpu in
9596 pgcc*) # Portland Group C compiler
9597 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'
9598 tmp_addflag=' $pic_flag'
9600 pgf77* | pgf90* | pgf95* | pgfortran*)
9601 # Portland Group f77 and f90 compilers
9602 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'
9603 tmp_addflag=' $pic_flag -Mnomain' ;;
9604 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9605 tmp_addflag=' -i_dynamic' ;;
9606 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9607 tmp_addflag=' -i_dynamic -nofor_main' ;;
9608 ifc* | ifort*) # Intel Fortran compiler
9609 tmp_addflag=' -nofor_main' ;;
9610 lf95*) # Lahey Fortran 8.1
9611 whole_archive_flag_spec=
9612 tmp_sharedflag='--shared' ;;
9613 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9614 tmp_sharedflag='-qmkshrobj'
9616 nvcc*) # Cuda Compiler Driver 2.2
9617 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'
9618 compiler_needs_object=yes
9621 case `$CC -V 2>&1 | sed 5q` in
9622 *Sun\ C*) # Sun C 5.9
9623 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'
9624 compiler_needs_object=yes
9625 tmp_sharedflag='-G' ;;
9626 *Sun\ F*) # Sun Fortran 8.3
9627 tmp_sharedflag='-G' ;;
9629 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9631 if test "x$supports_anon_versioning" = xyes; then
9632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9634 echo "local: *; };" >> $output_objdir/$libname.ver~
9635 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9638 case $cc_basename in
9639 xlf* | bgf* | bgxlf* | mpixlf*)
9640 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9641 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9643 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9644 if test "x$supports_anon_versioning" = xyes; then
9645 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9647 echo "local: *; };" >> $output_objdir/$libname.ver~
9648 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9658 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9659 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9662 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9668 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9672 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9673 *** create shared libraries on Solaris systems. Therefore, libtool
9674 *** is disabling shared libraries support. We urge you to upgrade GNU
9675 *** binutils to release 2.9.1 or newer. Another option is to modify
9676 *** your PATH or compiler configuration so that the native linker is
9677 *** used, and then restart.
9680 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9688 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9689 case `$LD -v 2>&1` in
9690 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9694 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9695 *** reliably create shared libraries on SCO systems. Therefore, libtool
9696 *** is disabling shared libraries support. We urge you to upgrade GNU
9697 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9698 *** your PATH or compiler configuration so that the native linker is
9699 *** used, and then restart.
9704 # For security reasons, it is highly recommended that you always
9705 # use absolute paths for naming shared libraries, and exclude the
9706 # DT_RUNPATH tag from executables and libraries. But doing so
9707 # requires that you compile everything twice, which is a pain.
9708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9720 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_shlibpath_var=no
9727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9728 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9729 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9736 if test "$ld_shlibs" = no; then
9738 hardcode_libdir_flag_spec=
9739 export_dynamic_flag_spec=
9740 whole_archive_flag_spec=
9743 # PORTME fill in a description of your system's linker (not GNU ld)
9746 allow_undefined_flag=unsupported
9747 always_export_symbols=yes
9748 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'
9749 # Note: this linker hardcodes the directories in LIBPATH if there
9750 # are no directories specified by -L.
9751 hardcode_minus_L=yes
9752 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9753 # Neither direct hardcoding nor static linking is supported with a
9755 hardcode_direct=unsupported
9760 if test "$host_cpu" = ia64; then
9761 # On IA64, the linker does run time linking by default, so we don't
9762 # have to do anything special.
9763 aix_use_runtimelinking=no
9764 exp_sym_flag='-Bexport'
9767 # If we're using GNU nm, then we don't want the "-C" option.
9768 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9769 # Also, AIX nm treats weak defined symbols like other global
9770 # defined symbols, whereas GNU nm marks them as "W".
9771 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9772 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'
9774 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'
9776 aix_use_runtimelinking=no
9778 # Test if we are trying to use run time linking or normal
9779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9780 # need to do runtime linking.
9781 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9782 for ld_flag in $LDFLAGS; do
9783 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9784 aix_use_runtimelinking=yes
9791 exp_sym_flag='-bexport'
9792 no_entry_flag='-bnoentry'
9795 # When large executables or shared objects are built, AIX ld can
9796 # have problems creating the table of contents. If linking a library
9797 # or program results in "error TOC overflow" add -mminimal-toc to
9798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9803 hardcode_direct_absolute=yes
9804 hardcode_libdir_separator=':'
9805 link_all_deplibs=yes
9806 file_list_spec='${wl}-f,'
9808 if test "$GCC" = yes; then
9809 case $host_os in aix4.[012]|aix4.[012].*)
9810 # We only want to do this on AIX 4.2 and lower, the check
9811 # below for broken collect2 doesn't work under 4.3+
9812 collect2name=`${CC} -print-prog-name=collect2`
9813 if test -f "$collect2name" &&
9814 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9816 # We have reworked collect2
9819 # We have old collect2
9820 hardcode_direct=unsupported
9821 # It fails to find uninstalled libraries when the uninstalled
9822 # path is not listed in the libpath. Setting hardcode_minus_L
9823 # to unsupported forces relinking
9824 hardcode_minus_L=yes
9825 hardcode_libdir_flag_spec='-L$libdir'
9826 hardcode_libdir_separator=
9830 shared_flag='-shared'
9831 if test "$aix_use_runtimelinking" = yes; then
9832 shared_flag="$shared_flag "'${wl}-G'
9836 if test "$host_cpu" = ia64; then
9837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9838 # chokes on -Wl,-G. The following line is correct:
9841 if test "$aix_use_runtimelinking" = yes; then
9842 shared_flag='${wl}-G'
9844 shared_flag='${wl}-bM:SRE'
9849 export_dynamic_flag_spec='${wl}-bexpall'
9850 # It seems that -bexpall does not export symbols beginning with
9851 # underscore (_), so it is better to generate a list of symbols to export.
9852 always_export_symbols=yes
9853 if test "$aix_use_runtimelinking" = yes; then
9854 # Warning - without using the other runtime loading flags (-brtl),
9855 # -berok will link without error, but may produce a broken library.
9856 allow_undefined_flag='-berok'
9857 # Determine the default libpath from the value encoded in an
9859 if test "${lt_cv_aix_libpath+set}" = set; then
9860 aix_libpath=$lt_cv_aix_libpath
9862 if ${lt_cv_aix_libpath_+:} false; then :
9863 $as_echo_n "(cached) " >&6
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9868 #ifdef FC_DUMMY_MAIN
9869 #ifndef FC_DUMMY_MAIN_EQ_F77
9873 int FC_DUMMY_MAIN() { return 1; }
9884 if ac_fn_c_try_link "$LINENO"; then :
9886 lt_aix_libpath_sed='
9887 /Import File Strings/,/^$/ {
9889 s/^0 *\([^ ]*\) *$/\1/
9893 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9894 # Check for a 64-bit object if we didn't find anything.
9895 if test -z "$lt_cv_aix_libpath_"; then
9896 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9899 rm -f core conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
9901 if test -z "$lt_cv_aix_libpath_"; then
9902 lt_cv_aix_libpath_="/usr/lib:/lib"
9907 aix_libpath=$lt_cv_aix_libpath_
9910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9911 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"
9913 if test "$host_cpu" = ia64; then
9914 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9915 allow_undefined_flag="-z nodefs"
9916 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"
9918 # Determine the default libpath from the value encoded in an
9920 if test "${lt_cv_aix_libpath+set}" = set; then
9921 aix_libpath=$lt_cv_aix_libpath
9923 if ${lt_cv_aix_libpath_+:} false; then :
9924 $as_echo_n "(cached) " >&6
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9929 #ifdef FC_DUMMY_MAIN
9930 #ifndef FC_DUMMY_MAIN_EQ_F77
9934 int FC_DUMMY_MAIN() { return 1; }
9945 if ac_fn_c_try_link "$LINENO"; then :
9947 lt_aix_libpath_sed='
9948 /Import File Strings/,/^$/ {
9950 s/^0 *\([^ ]*\) *$/\1/
9954 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9955 # Check for a 64-bit object if we didn't find anything.
9956 if test -z "$lt_cv_aix_libpath_"; then
9957 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9960 rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 if test -z "$lt_cv_aix_libpath_"; then
9963 lt_cv_aix_libpath_="/usr/lib:/lib"
9968 aix_libpath=$lt_cv_aix_libpath_
9971 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9972 # Warning - without using the other run time loading flags,
9973 # -berok will link without error, but may produce a broken library.
9974 no_undefined_flag=' ${wl}-bernotok'
9975 allow_undefined_flag=' ${wl}-berok'
9976 if test "$with_gnu_ld" = yes; then
9977 # We only use this code for GNU lds that support --whole-archive.
9978 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9980 # Exported symbols can be pulled into shared objects from archives
9981 whole_archive_flag_spec='$convenience'
9983 archive_cmds_need_lc=yes
9984 # This is similar to how AIX traditionally builds its shared libraries.
9985 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'
9993 # see comment about AmigaOS4 .so support
9994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9995 archive_expsym_cmds=''
9998 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)'
9999 hardcode_libdir_flag_spec='-L$libdir'
10000 hardcode_minus_L=yes
10006 export_dynamic_flag_spec=-rdynamic
10009 cygwin* | mingw* | pw32* | cegcc*)
10010 # When not using gcc, we currently assume that we are using
10011 # Microsoft Visual C++.
10012 # hardcode_libdir_flag_spec is actually meaningless, as there is
10013 # no search path for DLLs.
10014 case $cc_basename in
10017 hardcode_libdir_flag_spec=' '
10018 allow_undefined_flag=unsupported
10019 always_export_symbols=yes
10021 # Tell ltmain to make .lib files, not .a files.
10023 # Tell ltmain to make .dll files, not .so files.
10025 # FIXME: Setting linknames here is a bad hack.
10026 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10027 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10028 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10030 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10032 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10034 # The linker will not automatically build a static lib if we build a DLL.
10035 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10036 enable_shared_with_static_runtimes=yes
10037 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10038 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10040 old_postinstall_cmds='chmod 644 $oldlib'
10041 postlink_cmds='lt_outputfile="@OUTPUT@"~
10042 lt_tool_outputfile="@TOOL_OUTPUT@"~
10043 case $lt_outputfile in
10046 lt_outputfile="$lt_outputfile.exe"
10047 lt_tool_outputfile="$lt_tool_outputfile.exe"
10050 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10051 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10052 $RM "$lt_outputfile.manifest";
10056 # Assume MSVC wrapper
10057 hardcode_libdir_flag_spec=' '
10058 allow_undefined_flag=unsupported
10059 # Tell ltmain to make .lib files, not .a files.
10061 # Tell ltmain to make .dll files, not .so files.
10063 # FIXME: Setting linknames here is a bad hack.
10064 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10065 # The linker will automatically build a .lib file if we build a DLL.
10066 old_archive_from_new_cmds='true'
10067 # FIXME: Should let the user specify the lib program.
10068 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10069 enable_shared_with_static_runtimes=yes
10074 darwin* | rhapsody*)
10077 archive_cmds_need_lc=no
10079 hardcode_automatic=yes
10080 hardcode_shlibpath_var=unsupported
10081 if test "$lt_cv_ld_force_load" = "yes"; then
10082 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\"`'
10085 whole_archive_flag_spec=''
10087 link_all_deplibs=yes
10088 allow_undefined_flag="$_lt_dar_allow_undefined"
10089 case $cc_basename in
10090 ifort*) _lt_dar_can_shared=yes ;;
10091 *) _lt_dar_can_shared=$GCC ;;
10093 if test "$_lt_dar_can_shared" = "yes"; then
10094 output_verbose_link_cmd=func_echo_all
10095 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10096 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10097 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}"
10098 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}"
10107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_libdir_flag_spec='-L$libdir'
10109 hardcode_shlibpath_var=no
10112 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10113 # support. Future versions do this automatically, but an explicit c++rt0.o
10114 # does not break anything, and helps significantly (at the cost of a little
10117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10118 hardcode_libdir_flag_spec='-R$libdir'
10119 hardcode_direct=yes
10120 hardcode_shlibpath_var=no
10123 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10126 hardcode_direct=yes
10127 hardcode_minus_L=yes
10128 hardcode_shlibpath_var=no
10131 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10132 freebsd* | dragonfly*)
10133 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10134 hardcode_libdir_flag_spec='-R$libdir'
10135 hardcode_direct=yes
10136 hardcode_shlibpath_var=no
10140 if test "$GCC" = yes; then
10141 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10143 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'
10145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10146 hardcode_libdir_separator=:
10147 hardcode_direct=yes
10149 # hardcode_minus_L: Not really in the search PATH,
10150 # but as the default location of the library.
10151 hardcode_minus_L=yes
10152 export_dynamic_flag_spec='${wl}-E'
10156 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10157 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10161 if test "$with_gnu_ld" = no; then
10162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10163 hardcode_libdir_separator=:
10164 hardcode_direct=yes
10165 hardcode_direct_absolute=yes
10166 export_dynamic_flag_spec='${wl}-E'
10167 # hardcode_minus_L: Not really in the search PATH,
10168 # but as the default location of the library.
10169 hardcode_minus_L=yes
10174 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10177 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10183 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10189 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10196 # Older versions of the 11.00 compiler do not understand -b yet
10197 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10199 $as_echo_n "checking if $CC understands -b... " >&6; }
10200 if ${lt_cv_prog_compiler__b+:} false; then :
10201 $as_echo_n "(cached) " >&6
10203 lt_cv_prog_compiler__b=no
10204 save_LDFLAGS="$LDFLAGS"
10205 LDFLAGS="$LDFLAGS -b"
10206 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10207 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10208 # The linker can only warn and ignore the option if not recognized
10209 # So say no if there are warnings
10210 if test -s conftest.err; then
10211 # Append any errors to the config.log.
10212 cat conftest.err 1>&5
10213 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10215 if diff conftest.exp conftest.er2 >/dev/null; then
10216 lt_cv_prog_compiler__b=yes
10219 lt_cv_prog_compiler__b=yes
10223 LDFLAGS="$save_LDFLAGS"
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10227 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10229 if test x"$lt_cv_prog_compiler__b" = xyes; then
10230 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10238 if test "$with_gnu_ld" = no; then
10239 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10240 hardcode_libdir_separator=:
10245 hardcode_shlibpath_var=no
10248 hardcode_direct=yes
10249 hardcode_direct_absolute=yes
10250 export_dynamic_flag_spec='${wl}-E'
10252 # hardcode_minus_L: Not really in the search PATH,
10253 # but as the default location of the library.
10254 hardcode_minus_L=yes
10260 irix5* | irix6* | nonstopux*)
10261 if test "$GCC" = yes; then
10262 archive_cmds='$CC -shared $pic_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'
10263 # Try to use the -exported_symbol ld option, if it does not
10264 # work, assume that -exports_file does not work either and
10265 # implicitly export all symbols.
10266 # This should be the same for all languages, so no per-tag cache variable.
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10268 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10269 if ${lt_cv_irix_exported_symbol+:} false; then :
10270 $as_echo_n "(cached) " >&6
10272 save_LDFLAGS="$LDFLAGS"
10273 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h. */
10276 int foo (void) { return 0; }
10278 if ac_fn_c_try_link "$LINENO"; then :
10279 lt_cv_irix_exported_symbol=yes
10281 lt_cv_irix_exported_symbol=no
10283 rm -f core conftest.err conftest.$ac_objext \
10284 conftest$ac_exeext conftest.$ac_ext
10285 LDFLAGS="$save_LDFLAGS"
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10288 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10289 if test "$lt_cv_irix_exported_symbol" = yes; then
10290 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10293 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'
10294 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'
10296 archive_cmds_need_lc='no'
10297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10298 hardcode_libdir_separator=:
10300 link_all_deplibs=yes
10304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10307 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10309 hardcode_libdir_flag_spec='-R$libdir'
10310 hardcode_direct=yes
10311 hardcode_shlibpath_var=no
10315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10316 hardcode_direct=yes
10317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10318 hardcode_libdir_separator=:
10319 hardcode_shlibpath_var=no
10326 if test -f /usr/libexec/ld.so; then
10327 hardcode_direct=yes
10328 hardcode_shlibpath_var=no
10329 hardcode_direct_absolute=yes
10330 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10332 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10334 export_dynamic_flag_spec='${wl}-E'
10337 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_libdir_flag_spec='-R$libdir'
10342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10353 hardcode_libdir_flag_spec='-L$libdir'
10354 hardcode_minus_L=yes
10355 allow_undefined_flag=unsupported
10356 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'
10357 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10361 if test "$GCC" = yes; then
10362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10363 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'
10365 allow_undefined_flag=' -expect_unresolved \*'
10366 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'
10368 archive_cmds_need_lc='no'
10369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10370 hardcode_libdir_separator=:
10373 osf4* | osf5*) # as osf3* with the addition of -msym flag
10374 if test "$GCC" = yes; then
10375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10376 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
10377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10379 allow_undefined_flag=' -expect_unresolved \*'
10380 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'
10381 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~
10382 $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'
10384 # Both c and cxx compiler support -rpath directly
10385 hardcode_libdir_flag_spec='-rpath $libdir'
10387 archive_cmds_need_lc='no'
10388 hardcode_libdir_separator=:
10392 no_undefined_flag=' -z defs'
10393 if test "$GCC" = yes; then
10395 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10397 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10399 case `$CC -V 2>&1` in
10402 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10408 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10410 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10414 hardcode_libdir_flag_spec='-R$libdir'
10415 hardcode_shlibpath_var=no
10417 solaris2.[0-5] | solaris2.[0-5].*) ;;
10419 # The compiler driver will combine and reorder linker options,
10420 # but understands `-z linker_flag'. GCC discards it without `$wl',
10421 # but is careful enough not to reorder.
10422 # Supported since Solaris 2.6 (maybe 2.5.1?)
10423 if test "$GCC" = yes; then
10424 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10426 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10430 link_all_deplibs=yes
10434 if test "x$host_vendor" = xsequent; then
10435 # Use $CC to link under sequent, because it throws in some extra .o
10436 # files that make .init and .fini sections work.
10437 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10439 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10441 hardcode_libdir_flag_spec='-L$libdir'
10442 hardcode_direct=yes
10443 hardcode_minus_L=yes
10444 hardcode_shlibpath_var=no
10448 case $host_vendor in
10450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10451 hardcode_direct=yes # is this really true???
10454 ## LD is ld it makes a PLAMLIB
10455 ## CC just makes a GrossModule.
10456 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10457 reload_cmds='$CC -r -o $output$reload_objs'
10461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10462 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10465 runpath_var='LD_RUN_PATH'
10466 hardcode_shlibpath_var=no
10470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10471 hardcode_shlibpath_var=no
10472 export_dynamic_flag_spec='-Bexport'
10476 if test -d /usr/nec; then
10477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478 hardcode_shlibpath_var=no
10479 runpath_var=LD_RUN_PATH
10480 hardcode_runpath_var=yes
10485 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10486 no_undefined_flag='${wl}-z,text'
10487 archive_cmds_need_lc=no
10488 hardcode_shlibpath_var=no
10489 runpath_var='LD_RUN_PATH'
10491 if test "$GCC" = yes; then
10492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500 sysv5* | sco3.2v5* | sco5v6*)
10501 # Note: We can NOT use -z defs as we might desire, because we do not
10502 # link with -lc, and that would cause any symbols used from libc to
10503 # always be unresolved, which means just about no library would
10504 # ever link correctly. If we're not using GNU ld we use -z text
10505 # though, which does catch some bad symbols but isn't as heavy-handed
10507 no_undefined_flag='${wl}-z,text'
10508 allow_undefined_flag='${wl}-z,nodefs'
10509 archive_cmds_need_lc=no
10510 hardcode_shlibpath_var=no
10511 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10512 hardcode_libdir_separator=':'
10513 link_all_deplibs=yes
10514 export_dynamic_flag_spec='${wl}-Bexport'
10515 runpath_var='LD_RUN_PATH'
10517 if test "$GCC" = yes; then
10518 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10519 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10521 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10522 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10528 hardcode_libdir_flag_spec='-L$libdir'
10529 hardcode_shlibpath_var=no
10537 if test x$host_vendor = xsni; then
10539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10540 export_dynamic_flag_spec='${wl}-Blargedynsym'
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10547 $as_echo "$ld_shlibs" >&6; }
10548 test "$ld_shlibs" = no && can_build_shared=no
10550 with_gnu_ld=$with_gnu_ld
10567 # Do we need to explicitly link libc?
10569 case "x$archive_cmds_need_lc" in
10571 # Assume -lc should be added
10572 archive_cmds_need_lc=yes
10574 if test "$enable_shared" = yes && test "$GCC" = yes; then
10575 case $archive_cmds in
10577 # FIXME: we may have to deal with multi-command sequences.
10580 # Test whether the compiler implicitly links with -lc since on some
10581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10582 # to ld, don't add -lc before -lgcc.
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10584 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10585 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10586 $as_echo_n "(cached) " >&6
10589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10592 (eval $ac_compile) 2>&5
10594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10595 test $ac_status = 0; } 2>conftest.err; then
10598 libobjs=conftest.$ac_objext
10600 wl=$lt_prog_compiler_wl
10601 pic_flag=$lt_prog_compiler_pic
10607 lt_save_allow_undefined_flag=$allow_undefined_flag
10608 allow_undefined_flag=
10609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10610 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10613 test $ac_status = 0; }
10615 lt_cv_archive_cmds_need_lc=no
10617 lt_cv_archive_cmds_need_lc=yes
10619 allow_undefined_flag=$lt_save_allow_undefined_flag
10621 cat conftest.err 1>&5
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10627 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10628 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10787 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10789 if test "$GCC" = yes; then
10791 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10792 *) lt_awk_arg="/^libraries:/" ;;
10795 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10796 *) lt_sed_strip_eq="s,=/,/,g" ;;
10798 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10799 case $lt_search_path_spec in
10801 # if the path contains ";" then we assume it to be the separator
10802 # otherwise default to the standard path separator (i.e. ":") - it is
10803 # assumed that no part of a normal pathname contains ";" but that should
10804 # okay in the real world where ";" in dirpaths is itself problematic.
10805 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10808 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10811 # Ok, now we have the path, separated by spaces, we can step through it
10812 # and add multilib dir if necessary.
10813 lt_tmp_lt_search_path_spec=
10814 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10815 for lt_sys_path in $lt_search_path_spec; do
10816 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10817 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10819 test -d "$lt_sys_path" && \
10820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10823 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10824 BEGIN {RS=" "; FS="/|\n";} {
10827 for (lt_i = NF; lt_i > 0; lt_i--) {
10828 if ($lt_i != "" && $lt_i != ".") {
10829 if ($lt_i == "..") {
10832 if (lt_count == 0) {
10833 lt_foo="/" $lt_i lt_foo;
10840 if (lt_foo != "") { lt_freq[lt_foo]++; }
10841 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10843 # AWK program above erroneously prepends '/' to C:/dos/paths
10846 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10847 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10849 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10853 library_names_spec=
10854 libname_spec='lib$name'
10858 postuninstall_cmds=
10862 shlibpath_overrides_runpath=unknown
10864 dynamic_linker="$host_os ld.so"
10865 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10866 need_lib_prefix=unknown
10867 hardcode_into_libs=no
10869 # when you set need_version to no, make sure it does not cause -set_version
10870 # flags to be left without arguments
10871 need_version=unknown
10875 version_type=linux # correct to gnu/linux during the next big refactor
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10877 shlibpath_var=LIBPATH
10879 # AIX 3 has no versioning support, so we append a major version to the name.
10880 soname_spec='${libname}${release}${shared_ext}$major'
10884 version_type=linux # correct to gnu/linux during the next big refactor
10887 hardcode_into_libs=yes
10888 if test "$host_cpu" = ia64; then
10889 # AIX 5 supports IA64
10890 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10891 shlibpath_var=LD_LIBRARY_PATH
10893 # With GCC up to 2.95.x, collect2 would create an import file
10894 # for dependence libraries. The import file would start with
10895 # the line `#! .'. This would cause the generated library to
10896 # depend on `.', always an invalid library. This was fixed in
10897 # development snapshots of GCC prior to 3.0.
10899 aix4 | aix4.[01] | aix4.[01].*)
10900 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10902 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10905 can_build_shared=no
10909 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10910 # soname into executable. Probably we can add versioning support to
10911 # collect2, so additional links can be useful in future.
10912 if test "$aix_use_runtimelinking" = yes; then
10913 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10914 # instead of lib<name>.a to let people know that these are not
10915 # typical AIX shared libraries.
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918 # We preserve .a as extension for shared libraries through AIX4.2
10919 # and later when we are not doing run time linking.
10920 library_names_spec='${libname}${release}.a $libname.a'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10923 shlibpath_var=LIBPATH
10930 # Since July 2007 AmigaOS4 officially supports .so libraries.
10931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935 library_names_spec='$libname.ixlibrary $libname.a'
10936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10937 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'
10943 library_names_spec='${libname}${shared_ext}'
10944 dynamic_linker="$host_os ld.so"
10945 shlibpath_var=LIBRARY_PATH
10949 version_type=linux # correct to gnu/linux during the next big refactor
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10957 # the default ld.so.conf also contains /usr/contrib/lib and
10958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10959 # libtool to hard-code these into programs
10962 cygwin* | mingw* | pw32* | cegcc*)
10963 version_type=windows
10968 case $GCC,$cc_basename in
10971 library_names_spec='$libname.dll.a'
10972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10973 postinstall_cmds='base_file=`basename \${file}`~
10974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10975 dldir=$destdir/`dirname \$dlpath`~
10976 test -d \$dldir || mkdir -p \$dldir~
10977 $install_prog $dir/$dlname \$dldir/$dlname~
10978 chmod a+x \$dldir/$dlname~
10979 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10980 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10983 dlpath=$dir/\$dldll~
10985 shlibpath_overrides_runpath=yes
10989 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10990 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10992 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10995 # MinGW DLLs use traditional 'lib' prefix
10996 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10999 # pw32 DLLs use 'pw' prefix rather than 'lib'
11000 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11003 dynamic_linker='Win32 ld.exe'
11008 libname_spec='$name'
11009 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11010 library_names_spec='${libname}.dll.lib'
11014 sys_lib_search_path_spec=
11017 for lt_path in $LIB
11020 # Let DOS variable expansion print the short 8.3 style file name.
11021 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11022 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11025 # Convert to MSYS style.
11026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11029 # Convert to unix form, then to dos form, then back to unix form
11030 # but this time dos style (no spaces!) so that the unix form looks
11031 # like /cygdrive/c/PROGRA~1:/cygdr...
11032 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11033 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11034 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11037 sys_lib_search_path_spec="$LIB"
11038 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11039 # It is most probably a Windows format PATH.
11040 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11044 # FIXME: find the short name or the path components, as spaces are
11045 # common. (e.g. "Program Files" -> "PROGRA~1")
11049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11050 postinstall_cmds='base_file=`basename \${file}`~
11051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11052 dldir=$destdir/`dirname \$dlpath`~
11053 test -d \$dldir || mkdir -p \$dldir~
11054 $install_prog $dir/$dlname \$dldir/$dlname'
11055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11056 dlpath=$dir/\$dldll~
11058 shlibpath_overrides_runpath=yes
11059 dynamic_linker='Win32 link.exe'
11063 # Assume MSVC wrapper
11064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11065 dynamic_linker='Win32 ld.exe'
11068 # FIXME: first we should search . and the directory the executable is in
11072 darwin* | rhapsody*)
11073 dynamic_linker="$host_os dyld"
11074 version_type=darwin
11077 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11078 soname_spec='${libname}${release}${major}$shared_ext'
11079 shlibpath_overrides_runpath=yes
11080 shlibpath_var=DYLD_LIBRARY_PATH
11081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11083 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11088 version_type=linux # correct to gnu/linux during the next big refactor
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11096 freebsd* | dragonfly*)
11097 # DragonFly does not have aout. When/if they implement a new
11098 # versioning mechanism, adjust this.
11099 if test -x /usr/bin/objformat; then
11100 objformat=`/usr/bin/objformat`
11103 freebsd[23].*) objformat=aout ;;
11104 *) objformat=elf ;;
11107 version_type=freebsd-$objformat
11108 case $version_type in
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11119 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11124 freebsd3.[01]* | freebsdelf3.[01]*)
11125 shlibpath_overrides_runpath=yes
11126 hardcode_into_libs=yes
11128 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11129 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11130 shlibpath_overrides_runpath=no
11131 hardcode_into_libs=yes
11133 *) # from 4.6 on, and DragonFly
11134 shlibpath_overrides_runpath=yes
11135 hardcode_into_libs=yes
11141 version_type=linux # correct to gnu/linux during the next big refactor
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=no
11148 hardcode_into_libs=yes
11152 version_type=linux # correct to gnu/linux during the next big refactor
11155 dynamic_linker="$host_os runtime_loader"
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 shlibpath_var=LIBRARY_PATH
11159 shlibpath_overrides_runpath=yes
11160 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11161 hardcode_into_libs=yes
11164 hpux9* | hpux10* | hpux11*)
11165 # Give a soname corresponding to the major version so that dld.sl refuses to
11166 # link against other versions.
11173 hardcode_into_libs=yes
11174 dynamic_linker="$host_os dld.so"
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 if test "X$HPUX_IA64_MODE" = X32; then
11180 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11188 hardcode_into_libs=yes
11189 dynamic_linker="$host_os dld.sl"
11190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11199 dynamic_linker="$host_os dld.sl"
11200 shlibpath_var=SHLIB_PATH
11201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203 soname_spec='${libname}${release}${shared_ext}$major'
11206 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11207 postinstall_cmds='chmod 555 $lib'
11208 # or fails outright, so override atomically:
11209 install_override_mode=555
11213 version_type=linux # correct to gnu/linux during the next big refactor
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=no
11221 hardcode_into_libs=yes
11224 irix5* | irix6* | nonstopux*)
11226 nonstopux*) version_type=nonstopux ;;
11228 if test "$lt_cv_prog_gnu_ld" = yes; then
11229 version_type=linux # correct to gnu/linux during the next big refactor
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11239 irix5* | nonstopux*)
11240 libsuff= shlibsuff=
11243 case $LD in # libtool.m4 will add one of these switches to LD
11244 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11245 libsuff= shlibsuff= libmagic=32-bit;;
11246 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11247 libsuff=32 shlibsuff=N32 libmagic=N32;;
11248 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11249 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11250 *) libsuff= shlibsuff= libmagic=never-match;;
11254 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11255 shlibpath_overrides_runpath=no
11256 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11257 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11258 hardcode_into_libs=yes
11261 # No shared lib support for Linux oldld, aout, or coff.
11262 linux*oldld* | linux*aout* | linux*coff*)
11266 # This must be glibc/ELF.
11267 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11268 version_type=linux # correct to gnu/linux during the next big refactor
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=no
11277 # Some binutils ld are patched to set DT_RUNPATH
11278 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11279 $as_echo_n "(cached) " >&6
11281 lt_cv_shlibpath_overrides_runpath=no
11282 save_LDFLAGS=$LDFLAGS
11283 save_libdir=$libdir
11284 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11285 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11289 #ifdef FC_DUMMY_MAIN
11290 #ifndef FC_DUMMY_MAIN_EQ_F77
11291 # ifdef __cplusplus
11294 int FC_DUMMY_MAIN() { return 1; }
11305 if ac_fn_c_try_link "$LINENO"; then :
11306 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11307 lt_cv_shlibpath_overrides_runpath=yes
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312 LDFLAGS=$save_LDFLAGS
11313 libdir=$save_libdir
11317 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11319 # This implies no fast_install, which is unacceptable.
11320 # Some rework will be needed to allow for fast_install
11321 # before this can be enabled.
11322 hardcode_into_libs=yes
11324 # Append ld.so.conf contents to the search path
11325 if test -f /etc/ld.so.conf; then
11326 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' ' '`
11327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11330 # We used to test for /lib/ld.so.1 and disable shared libraries on
11331 # powerpc, because MkLinux only supported shared libraries with the
11332 # GNU dynamic linker. Since this was broken with cross compilers,
11333 # most powerpc-linux boxes support dynamic linking these days and
11334 # people can always --disable-shared, the test was removed, and we
11335 # assume the GNU/Linux dynamic linker is in use.
11336 dynamic_linker='GNU/Linux ld.so'
11343 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11346 dynamic_linker='NetBSD (a.out) ld.so'
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 dynamic_linker='NetBSD ld.elf_so'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=yes
11354 hardcode_into_libs=yes
11358 version_type=linux # correct to gnu/linux during the next big refactor
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 shlibpath_overrides_runpath=yes
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369 soname_spec='${libname}${release}${shared_ext}$major'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 shlibpath_overrides_runpath=no
11372 hardcode_into_libs=yes
11373 dynamic_linker='ldqnx.so'
11378 sys_lib_dlsearch_path_spec="/usr/lib"
11380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11382 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11383 *) need_version=no ;;
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11387 shlibpath_var=LD_LIBRARY_PATH
11388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11390 openbsd2.[89] | openbsd2.[89].*)
11391 shlibpath_overrides_runpath=no
11394 shlibpath_overrides_runpath=yes
11398 shlibpath_overrides_runpath=yes
11403 libname_spec='$name'
11406 library_names_spec='$libname${shared_ext} $libname.a'
11407 dynamic_linker='OS/2 ld.exe'
11408 shlibpath_var=LIBPATH
11411 osf3* | osf4* | osf5*)
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417 shlibpath_var=LD_LIBRARY_PATH
11418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11427 version_type=linux # correct to gnu/linux during the next big refactor
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=yes
11434 hardcode_into_libs=yes
11435 # ldd complains unless libraries are executable
11436 postinstall_cmds='chmod +x $lib'
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11442 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 shlibpath_overrides_runpath=yes
11445 if test "$with_gnu_ld" = yes; then
11452 version_type=linux # correct to gnu/linux during the next big refactor
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 case $host_vendor in
11458 shlibpath_overrides_runpath=no
11460 runpath_var=LD_RUN_PATH
11468 shlibpath_overrides_runpath=no
11469 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11475 if test -d /usr/nec ;then
11476 version_type=linux # correct to gnu/linux during the next big refactor
11477 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11478 soname_spec='$libname${shared_ext}.$major'
11479 shlibpath_var=LD_LIBRARY_PATH
11483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11484 version_type=freebsd-elf
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 shlibpath_overrides_runpath=yes
11491 hardcode_into_libs=yes
11492 if test "$with_gnu_ld" = yes; then
11493 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11495 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11498 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11502 sys_lib_dlsearch_path_spec='/usr/lib'
11506 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11507 version_type=linux # correct to gnu/linux during the next big refactor
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 shlibpath_overrides_runpath=no
11513 hardcode_into_libs=yes
11517 version_type=linux # correct to gnu/linux during the next big refactor
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 shlibpath_var=LD_LIBRARY_PATH
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11528 $as_echo "$dynamic_linker" >&6; }
11529 test "$dynamic_linker" = no && can_build_shared=no
11531 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11532 if test "$GCC" = yes; then
11533 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11536 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11537 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11539 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11540 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11635 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11637 if test -n "$hardcode_libdir_flag_spec" ||
11638 test -n "$runpath_var" ||
11639 test "X$hardcode_automatic" = "Xyes" ; then
11641 # We can hardcode non-existent directories.
11642 if test "$hardcode_direct" != no &&
11643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11644 # have to relink, otherwise we might link with an installed library
11645 # when we should be linking with a yet-to-be-installed one
11646 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11647 test "$hardcode_minus_L" != no; then
11648 # Linking always hardcodes the temporary library directory.
11649 hardcode_action=relink
11651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11652 hardcode_action=immediate
11655 # We cannot hardcode anything, or else we can only hardcode existing
11657 hardcode_action=unsupported
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11660 $as_echo "$hardcode_action" >&6; }
11662 if test "$hardcode_action" = relink ||
11663 test "$inherit_rpath" = yes; then
11664 # Fast installation is not supported
11665 enable_fast_install=no
11666 elif test "$shlibpath_overrides_runpath" = yes ||
11667 test "$enable_shared" = no; then
11668 # Fast installation is not necessary
11669 enable_fast_install=needless
11677 if test "x$enable_dlopen" != xyes; then
11678 enable_dlopen=unknown
11679 enable_dlopen_self=unknown
11680 enable_dlopen_self_static=unknown
11687 lt_cv_dlopen="load_add_on"
11689 lt_cv_dlopen_self=yes
11692 mingw* | pw32* | cegcc*)
11693 lt_cv_dlopen="LoadLibrary"
11698 lt_cv_dlopen="dlopen"
11703 # if libdl is installed we need to link against it
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11705 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11706 if ${ac_cv_lib_dl_dlopen+:} false; then :
11707 $as_echo_n "(cached) " >&6
11709 ac_check_lib_save_LIBS=$LIBS
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11714 /* Override any GCC internal prototype to avoid an error.
11715 Use char because int might match the return type of a GCC
11716 builtin and then its argument prototype would still apply. */
11721 #ifdef FC_DUMMY_MAIN
11722 #ifndef FC_DUMMY_MAIN_EQ_F77
11723 # ifdef __cplusplus
11726 int FC_DUMMY_MAIN() { return 1; }
11737 if ac_fn_c_try_link "$LINENO"; then :
11738 ac_cv_lib_dl_dlopen=yes
11740 ac_cv_lib_dl_dlopen=no
11742 rm -f core conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11748 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11752 lt_cv_dlopen="dyld"
11754 lt_cv_dlopen_self=yes
11761 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11762 if test "x$ac_cv_func_shl_load" = xyes; then :
11763 lt_cv_dlopen="shl_load"
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11766 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11767 if ${ac_cv_lib_dld_shl_load+:} false; then :
11768 $as_echo_n "(cached) " >&6
11770 ac_check_lib_save_LIBS=$LIBS
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11775 /* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11782 #ifdef FC_DUMMY_MAIN
11783 #ifndef FC_DUMMY_MAIN_EQ_F77
11784 # ifdef __cplusplus
11787 int FC_DUMMY_MAIN() { return 1; }
11793 return shl_load ();
11798 if ac_fn_c_try_link "$LINENO"; then :
11799 ac_cv_lib_dld_shl_load=yes
11801 ac_cv_lib_dld_shl_load=no
11803 rm -f core conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11808 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11809 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11810 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11812 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11813 if test "x$ac_cv_func_dlopen" = xyes; then :
11814 lt_cv_dlopen="dlopen"
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11817 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11818 if ${ac_cv_lib_dl_dlopen+:} false; then :
11819 $as_echo_n "(cached) " >&6
11821 ac_check_lib_save_LIBS=$LIBS
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11833 #ifdef FC_DUMMY_MAIN
11834 #ifndef FC_DUMMY_MAIN_EQ_F77
11835 # ifdef __cplusplus
11838 int FC_DUMMY_MAIN() { return 1; }
11849 if ac_fn_c_try_link "$LINENO"; then :
11850 ac_cv_lib_dl_dlopen=yes
11852 ac_cv_lib_dl_dlopen=no
11854 rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856 LIBS=$ac_check_lib_save_LIBS
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11859 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11860 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11864 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11865 if ${ac_cv_lib_svld_dlopen+:} false; then :
11866 $as_echo_n "(cached) " >&6
11868 ac_check_lib_save_LIBS=$LIBS
11869 LIBS="-lsvld $LIBS"
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11873 /* Override any GCC internal prototype to avoid an error.
11874 Use char because int might match the return type of a GCC
11875 builtin and then its argument prototype would still apply. */
11880 #ifdef FC_DUMMY_MAIN
11881 #ifndef FC_DUMMY_MAIN_EQ_F77
11882 # ifdef __cplusplus
11885 int FC_DUMMY_MAIN() { return 1; }
11896 if ac_fn_c_try_link "$LINENO"; then :
11897 ac_cv_lib_svld_dlopen=yes
11899 ac_cv_lib_svld_dlopen=no
11901 rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11903 LIBS=$ac_check_lib_save_LIBS
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11906 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11907 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11911 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11912 if ${ac_cv_lib_dld_dld_link+:} false; then :
11913 $as_echo_n "(cached) " >&6
11915 ac_check_lib_save_LIBS=$LIBS
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11927 #ifdef FC_DUMMY_MAIN
11928 #ifndef FC_DUMMY_MAIN_EQ_F77
11929 # ifdef __cplusplus
11932 int FC_DUMMY_MAIN() { return 1; }
11938 return dld_link ();
11943 if ac_fn_c_try_link "$LINENO"; then :
11944 ac_cv_lib_dld_dld_link=yes
11946 ac_cv_lib_dld_dld_link=no
11948 rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11953 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11954 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11955 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11976 if test "x$lt_cv_dlopen" != xno; then
11982 case $lt_cv_dlopen in
11984 save_CPPFLAGS="$CPPFLAGS"
11985 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11987 save_LDFLAGS="$LDFLAGS"
11988 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11991 LIBS="$lt_cv_dlopen_libs $LIBS"
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11994 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11995 if ${lt_cv_dlopen_self+:} false; then :
11996 $as_echo_n "(cached) " >&6
11998 if test "$cross_compiling" = yes; then :
11999 lt_cv_dlopen_self=cross
12001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12002 lt_status=$lt_dlunknown
12003 cat > conftest.$ac_ext <<_LT_EOF
12004 #line $LINENO "configure"
12005 #include "confdefs.h"
12014 # define LT_DLGLOBAL RTLD_GLOBAL
12017 # define LT_DLGLOBAL DL_GLOBAL
12019 # define LT_DLGLOBAL 0
12023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12024 find out it does not work in some platform. */
12025 #ifndef LT_DLLAZY_OR_NOW
12027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12030 # define LT_DLLAZY_OR_NOW DL_LAZY
12033 # define LT_DLLAZY_OR_NOW RTLD_NOW
12036 # define LT_DLLAZY_OR_NOW DL_NOW
12038 # define LT_DLLAZY_OR_NOW 0
12045 /* When -fvisbility=hidden is used, assume the code has been annotated
12046 correspondingly for the symbols needed. */
12047 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12048 int fnord () __attribute__((visibility("default")));
12051 int fnord () { return 42; }
12054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12055 int status = $lt_dlunknown;
12059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12062 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12063 else puts (dlerror ());
12065 /* dlclose (self); */
12073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12074 (eval $ac_link) 2>&5
12076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12077 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12078 (./conftest; exit; ) >&5 2>/dev/null
12080 case x$lt_status in
12081 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12082 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12083 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12086 # compilation failed
12087 lt_cv_dlopen_self=no
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12095 $as_echo "$lt_cv_dlopen_self" >&6; }
12097 if test "x$lt_cv_dlopen_self" = xyes; then
12098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12100 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12101 if ${lt_cv_dlopen_self_static+:} false; then :
12102 $as_echo_n "(cached) " >&6
12104 if test "$cross_compiling" = yes; then :
12105 lt_cv_dlopen_self_static=cross
12107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12108 lt_status=$lt_dlunknown
12109 cat > conftest.$ac_ext <<_LT_EOF
12110 #line $LINENO "configure"
12111 #include "confdefs.h"
12120 # define LT_DLGLOBAL RTLD_GLOBAL
12123 # define LT_DLGLOBAL DL_GLOBAL
12125 # define LT_DLGLOBAL 0
12129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12130 find out it does not work in some platform. */
12131 #ifndef LT_DLLAZY_OR_NOW
12133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12136 # define LT_DLLAZY_OR_NOW DL_LAZY
12139 # define LT_DLLAZY_OR_NOW RTLD_NOW
12142 # define LT_DLLAZY_OR_NOW DL_NOW
12144 # define LT_DLLAZY_OR_NOW 0
12151 /* When -fvisbility=hidden is used, assume the code has been annotated
12152 correspondingly for the symbols needed. */
12153 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12154 int fnord () __attribute__((visibility("default")));
12157 int fnord () { return 42; }
12160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12161 int status = $lt_dlunknown;
12165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12169 else puts (dlerror ());
12171 /* dlclose (self); */
12179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12180 (eval $ac_link) 2>&5
12182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12184 (./conftest; exit; ) >&5 2>/dev/null
12186 case x$lt_status in
12187 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12188 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12189 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12192 # compilation failed
12193 lt_cv_dlopen_self_static=no
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12201 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12204 CPPFLAGS="$save_CPPFLAGS"
12205 LDFLAGS="$save_LDFLAGS"
12210 case $lt_cv_dlopen_self in
12211 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12212 *) enable_dlopen_self=unknown ;;
12215 case $lt_cv_dlopen_self_static in
12216 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12217 *) enable_dlopen_self_static=unknown ;;
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12240 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12241 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12242 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12243 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12245 $as_echo "yes" >&6; }
12247 # FIXME - insert some real tests, host_os isn't really good enough
12250 if test -n "$STRIP" ; then
12251 striplib="$STRIP -x"
12252 old_striplib="$STRIP -S"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12254 $as_echo "yes" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12278 # Report which library types will actually be built
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12280 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12282 $as_echo "$can_build_shared" >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12285 $as_echo_n "checking whether to build shared libraries... " >&6; }
12286 test "$can_build_shared" = "no" && enable_shared=no
12288 # On AIX, shared libraries and static libraries use the same namespace, and
12289 # are all built from PIC.
12292 test "$enable_shared" = yes && enable_static=no
12293 if test -n "$RANLIB"; then
12294 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12295 postinstall_cmds='$RANLIB $lib'
12300 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12301 test "$enable_shared" = yes && enable_static=no
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12306 $as_echo "$enable_shared" >&6; }
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12309 $as_echo_n "checking whether to build static libraries... " >&6; }
12310 # Make sure either enable_shared or enable_static is yes.
12311 test "$enable_shared" = yes || enable_static=yes
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12313 $as_echo "$enable_static" >&6; }
12320 ac_cpp='$CPP $CPPFLAGS'
12321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12331 ac_ext=${ac_fc_srcext-f}
12332 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12333 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12334 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12337 if test -z "$FC" || test "X$FC" = "Xno"; then
12341 archive_cmds_need_lc_FC=no
12342 allow_undefined_flag_FC=
12343 always_export_symbols_FC=no
12344 archive_expsym_cmds_FC=
12345 export_dynamic_flag_spec_FC=
12346 hardcode_direct_FC=no
12347 hardcode_direct_absolute_FC=no
12348 hardcode_libdir_flag_spec_FC=
12349 hardcode_libdir_separator_FC=
12350 hardcode_minus_L_FC=no
12351 hardcode_automatic_FC=no
12352 inherit_rpath_FC=no
12354 module_expsym_cmds_FC=
12355 link_all_deplibs_FC=unknown
12356 old_archive_cmds_FC=$old_archive_cmds
12357 reload_flag_FC=$reload_flag
12358 reload_cmds_FC=$reload_cmds
12359 no_undefined_flag_FC=
12360 whole_archive_flag_spec_FC=
12361 enable_shared_with_static_runtimes_FC=no
12363 # Source file extension for fc test sources.
12364 ac_ext=${ac_fc_srcext-f}
12366 # Object file extension for compiled fc test sources.
12370 # No sense in running all these tests if we already determined that
12371 # the FC compiler isn't working. Some variables (like enable_shared)
12372 # are currently assumed to apply to all compilers on this platform,
12373 # and will be corrupted by setting them based on a non-working compiler.
12374 if test "$_lt_disable_FC" != yes; then
12375 # Code to be used in simple compile tests
12376 lt_simple_compile_test_code="\
12382 # Code to be used in simple link tests
12383 lt_simple_link_test_code="\
12388 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12395 # If no C compiler was specified, use CC.
12398 # If no C compiler flags were specified, use CFLAGS.
12399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12401 # Allow CC to be a program name with arguments.
12405 # save warnings/boilerplate of simple test code
12406 ac_outfile=conftest.$ac_objext
12407 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12408 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12409 _lt_compiler_boilerplate=`cat conftest.err`
12412 ac_outfile=conftest.$ac_objext
12413 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12414 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12415 _lt_linker_boilerplate=`cat conftest.err`
12419 # Allow CC to be a program name with arguments.
12422 lt_save_CFLAGS=$CFLAGS
12426 GCC=$ac_cv_fc_compiler_gnu
12429 for cc_temp in $compiler""; do
12431 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12432 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12437 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12440 if test -n "$compiler"; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12442 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12444 $as_echo "$can_build_shared" >&6; }
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12447 $as_echo_n "checking whether to build shared libraries... " >&6; }
12448 test "$can_build_shared" = "no" && enable_shared=no
12450 # On AIX, shared libraries and static libraries use the same namespace, and
12451 # are all built from PIC.
12454 test "$enable_shared" = yes && enable_static=no
12455 if test -n "$RANLIB"; then
12456 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12457 postinstall_cmds='$RANLIB $lib'
12461 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12462 test "$enable_shared" = yes && enable_static=no
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12467 $as_echo "$enable_shared" >&6; }
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12470 $as_echo_n "checking whether to build static libraries... " >&6; }
12471 # Make sure either enable_shared or enable_static is yes.
12472 test "$enable_shared" = yes || enable_static=yes
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12474 $as_echo "$enable_static" >&6; }
12476 GCC_FC="$ac_cv_fc_compiler_gnu"
12480 ## There is no encapsulation within the following macros, do not change
12481 ## the running order or otherwise move them around unless you know exactly
12482 ## what you are doing...
12483 # Dependencies to place before and after the object being linked:
12485 postdep_objects_FC=
12488 compiler_lib_search_path_FC=
12490 cat > conftest.$ac_ext <<_LT_EOF
12500 _lt_libdeps_save_CFLAGS=$CFLAGS
12501 case "$CC $CFLAGS " in #(
12502 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
12503 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
12504 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
12507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12508 (eval $ac_compile) 2>&5
12510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12511 test $ac_status = 0; }; then
12512 # Parse the compiler output and extract the necessary
12513 # objects, libraries and library flags.
12515 # Sentinel used to keep track of whether or not we are before
12516 # the conftest object file.
12517 pre_test_object_deps_done=no
12519 for p in `eval "$output_verbose_link_cmd"`; do
12520 case ${prev}${p} in
12523 # Some compilers place space between "-{L,R}" and the path.
12524 # Remove the space.
12525 if test $p = "-L" ||
12526 test $p = "-R"; then
12531 # Expand the sysroot to ease extracting the directories later.
12532 if test -z "$prev"; then
12534 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
12535 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
12536 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
12540 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
12542 if test "$pre_test_object_deps_done" = no; then
12545 # Internal compiler library paths should come after those
12546 # provided the user. The postdeps already come after the
12547 # user supplied libs so there is no need to process them.
12548 if test -z "$compiler_lib_search_path_FC"; then
12549 compiler_lib_search_path_FC="${prev}${p}"
12551 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12554 # The "-l" case would never come before the object being
12555 # linked, so don't bother handling this case.
12558 if test -z "$postdeps_FC"; then
12559 postdeps_FC="${prev}${p}"
12561 postdeps_FC="${postdeps_FC} ${prev}${p}"
12567 *.lto.$objext) ;; # Ignore GCC LTO objects
12569 # This assumes that the test object file only shows up
12570 # once in the compiler output.
12571 if test "$p" = "conftest.$objext"; then
12572 pre_test_object_deps_done=yes
12576 if test "$pre_test_object_deps_done" = no; then
12577 if test -z "$predep_objects_FC"; then
12578 predep_objects_FC="$p"
12580 predep_objects_FC="$predep_objects_FC $p"
12583 if test -z "$postdep_objects_FC"; then
12584 postdep_objects_FC="$p"
12586 postdep_objects_FC="$postdep_objects_FC $p"
12591 *) ;; # Ignore the rest.
12599 echo "libtool.m4: error: problem compiling FC test program"
12602 $RM -f confest.$objext
12603 CFLAGS=$_lt_libdeps_save_CFLAGS
12605 # PORTME: override above test on systems where it is broken
12608 case " $postdeps_FC " in
12609 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12611 compiler_lib_search_dirs_FC=
12612 if test -n "${compiler_lib_search_path_FC}"; then
12613 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12646 lt_prog_compiler_wl_FC=
12647 lt_prog_compiler_pic_FC=
12648 lt_prog_compiler_static_FC=
12651 if test "$GCC" = yes; then
12652 lt_prog_compiler_wl_FC='-Wl,'
12653 lt_prog_compiler_static_FC='-static'
12657 # All AIX code is PIC.
12658 if test "$host_cpu" = ia64; then
12659 # AIX 5 now supports IA64 processor
12660 lt_prog_compiler_static_FC='-Bstatic'
12667 # see comment about AmigaOS4 .so support
12668 lt_prog_compiler_pic_FC='-fPIC'
12671 # FIXME: we need at least 68020 code to build shared libraries, but
12672 # adding the `-m68020' flag to GCC prevents building anything better,
12674 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12679 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12680 # PIC is the default for these OSes.
12683 mingw* | cygwin* | pw32* | os2* | cegcc*)
12684 # This hack is so that the source file can tell whether it is being
12685 # built for inclusion in a dll (and should export symbols for example).
12686 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12687 # (--disable-auto-import) libraries
12688 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12691 darwin* | rhapsody*)
12692 # PIC is the default on this platform
12693 # Common symbols not allowed in MH_DYLIB files
12694 lt_prog_compiler_pic_FC='-fno-common'
12698 # PIC is the default for Haiku.
12699 # The "-static" flag exists, but is broken.
12700 lt_prog_compiler_static_FC=
12704 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12705 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12706 # sets the default TLS model and affects inlining.
12712 lt_prog_compiler_pic_FC='-fPIC'
12718 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12719 # Instead, we relocate shared libraries at runtime.
12723 # Just because we use GCC doesn't mean we suddenly get shared libraries
12724 # on systems that don't support them.
12725 lt_prog_compiler_can_build_shared_FC=no
12730 # QNX uses GNU C++, but need to define -shared option too, otherwise
12731 # it will coredump.
12732 lt_prog_compiler_pic_FC='-fPIC -shared'
12736 if test -d /usr/nec; then
12737 lt_prog_compiler_pic_FC=-Kconform_pic
12742 lt_prog_compiler_pic_FC='-fPIC'
12746 case $cc_basename in
12747 nvcc*) # Cuda Compiler Driver 2.2
12748 lt_prog_compiler_wl_FC='-Xlinker '
12749 if test -n "$lt_prog_compiler_pic_FC"; then
12750 lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
12755 # PORTME Check for flag to pass linker flags through the system compiler.
12758 lt_prog_compiler_wl_FC='-Wl,'
12759 if test "$host_cpu" = ia64; then
12760 # AIX 5 now supports IA64 processor
12761 lt_prog_compiler_static_FC='-Bstatic'
12763 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12767 mingw* | cygwin* | pw32* | os2* | cegcc*)
12768 # This hack is so that the source file can tell whether it is being
12769 # built for inclusion in a dll (and should export symbols for example).
12770 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12773 hpux9* | hpux10* | hpux11*)
12774 lt_prog_compiler_wl_FC='-Wl,'
12775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12776 # not for PA HP-UX.
12782 lt_prog_compiler_pic_FC='+Z'
12785 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12786 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12789 irix5* | irix6* | nonstopux*)
12790 lt_prog_compiler_wl_FC='-Wl,'
12791 # PIC (with -KPIC) is the default.
12792 lt_prog_compiler_static_FC='-non_shared'
12795 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12796 case $cc_basename in
12797 # old Intel for x86_64 which still supported -KPIC.
12799 lt_prog_compiler_wl_FC='-Wl,'
12800 lt_prog_compiler_pic_FC='-KPIC'
12801 lt_prog_compiler_static_FC='-static'
12803 # icc used to be incompatible with GCC.
12804 # ICC 10 doesn't accept -KPIC any more.
12806 lt_prog_compiler_wl_FC='-Wl,'
12807 lt_prog_compiler_pic_FC='-fPIC'
12808 lt_prog_compiler_static_FC='-static'
12810 # Lahey Fortran 8.1.
12812 lt_prog_compiler_wl_FC='-Wl,'
12813 lt_prog_compiler_pic_FC='--shared'
12814 lt_prog_compiler_static_FC='--static'
12817 # NAG Fortran compiler
12818 lt_prog_compiler_wl_FC='-Wl,-Wl,,'
12819 lt_prog_compiler_pic_FC='-PIC'
12820 lt_prog_compiler_static_FC='-Bstatic'
12822 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12823 # Portland Group compilers (*not* the Pentium gcc compiler,
12824 # which looks to be a dead project)
12825 lt_prog_compiler_wl_FC='-Wl,'
12826 lt_prog_compiler_pic_FC='-fpic'
12827 lt_prog_compiler_static_FC='-Bstatic'
12830 lt_prog_compiler_wl_FC='-Wl,'
12831 # All Alpha code is PIC.
12832 lt_prog_compiler_static_FC='-non_shared'
12834 xl* | bgxl* | bgf* | mpixl*)
12835 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12836 lt_prog_compiler_wl_FC='-Wl,'
12837 lt_prog_compiler_pic_FC='-qpic'
12838 lt_prog_compiler_static_FC='-qstaticlink'
12841 case `$CC -V 2>&1 | sed 5q` in
12842 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12843 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12844 lt_prog_compiler_pic_FC='-KPIC'
12845 lt_prog_compiler_static_FC='-Bstatic'
12846 lt_prog_compiler_wl_FC=''
12848 *Sun\ F* | *Sun*Fortran*)
12849 lt_prog_compiler_pic_FC='-KPIC'
12850 lt_prog_compiler_static_FC='-Bstatic'
12851 lt_prog_compiler_wl_FC='-Qoption ld '
12855 lt_prog_compiler_pic_FC='-KPIC'
12856 lt_prog_compiler_static_FC='-Bstatic'
12857 lt_prog_compiler_wl_FC='-Wl,'
12859 *Intel*\ [CF]*Compiler*)
12860 lt_prog_compiler_wl_FC='-Wl,'
12861 lt_prog_compiler_pic_FC='-fPIC'
12862 lt_prog_compiler_static_FC='-static'
12865 lt_prog_compiler_wl_FC='-Wl,'
12866 lt_prog_compiler_pic_FC='-fpic'
12867 lt_prog_compiler_static_FC='-Bstatic'
12875 lt_prog_compiler_pic_FC='-KPIC'
12876 lt_prog_compiler_static_FC='-Bstatic'
12880 # QNX uses GNU C++, but need to define -shared option too, otherwise
12881 # it will coredump.
12882 lt_prog_compiler_pic_FC='-fPIC -shared'
12885 osf3* | osf4* | osf5*)
12886 lt_prog_compiler_wl_FC='-Wl,'
12887 # All OSF/1 code is PIC.
12888 lt_prog_compiler_static_FC='-non_shared'
12892 lt_prog_compiler_static_FC='-non_shared'
12896 lt_prog_compiler_pic_FC='-KPIC'
12897 lt_prog_compiler_static_FC='-Bstatic'
12898 case $cc_basename in
12899 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12900 lt_prog_compiler_wl_FC='-Qoption ld ';;
12902 lt_prog_compiler_wl_FC='-Wl,';;
12907 lt_prog_compiler_wl_FC='-Qoption ld '
12908 lt_prog_compiler_pic_FC='-PIC'
12909 lt_prog_compiler_static_FC='-Bstatic'
12912 sysv4 | sysv4.2uw2* | sysv4.3*)
12913 lt_prog_compiler_wl_FC='-Wl,'
12914 lt_prog_compiler_pic_FC='-KPIC'
12915 lt_prog_compiler_static_FC='-Bstatic'
12919 if test -d /usr/nec ;then
12920 lt_prog_compiler_pic_FC='-Kconform_pic'
12921 lt_prog_compiler_static_FC='-Bstatic'
12925 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12926 lt_prog_compiler_wl_FC='-Wl,'
12927 lt_prog_compiler_pic_FC='-KPIC'
12928 lt_prog_compiler_static_FC='-Bstatic'
12932 lt_prog_compiler_wl_FC='-Wl,'
12933 lt_prog_compiler_can_build_shared_FC=no
12937 lt_prog_compiler_pic_FC='-pic'
12938 lt_prog_compiler_static_FC='-Bstatic'
12942 lt_prog_compiler_can_build_shared_FC=no
12948 # For platforms which do not support PIC, -DPIC is meaningless:
12950 lt_prog_compiler_pic_FC=
12953 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12959 if ${lt_cv_prog_compiler_pic_FC+:} false; then :
12960 $as_echo_n "(cached) " >&6
12962 lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
12965 $as_echo "$lt_cv_prog_compiler_pic_FC" >&6; }
12966 lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
12969 # Check to make sure the PIC flag actually works.
12971 if test -n "$lt_prog_compiler_pic_FC"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12974 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12975 $as_echo_n "(cached) " >&6
12977 lt_cv_prog_compiler_pic_works_FC=no
12978 ac_outfile=conftest.$ac_objext
12979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12980 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12981 # Insert the option either (1) after the last *FLAGS variable, or
12982 # (2) before a word containing "conftest.", or (3) at the end.
12983 # Note that $ac_compile itself does not contain backslashes and begins
12984 # with a dollar sign (not a hyphen), so the echo should work correctly.
12985 # The option is referenced via a variable to avoid confusing sed.
12986 lt_compile=`echo "$ac_compile" | $SED \
12987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12989 -e 's:$: $lt_compiler_flag:'`
12990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12991 (eval "$lt_compile" 2>conftest.err)
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 if (exit $ac_status) && test -s "$ac_outfile"; then
12996 # The compiler can only warn and ignore the option if not recognized
12997 # So say no if there are warnings other than the usual output.
12998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13001 lt_cv_prog_compiler_pic_works_FC=yes
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13008 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13010 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13011 case $lt_prog_compiler_pic_FC in
13013 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13016 lt_prog_compiler_pic_FC=
13017 lt_prog_compiler_can_build_shared_FC=no
13027 # Check to make sure the static flag actually works.
13029 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13031 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13032 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
13033 $as_echo_n "(cached) " >&6
13035 lt_cv_prog_compiler_static_works_FC=no
13036 save_LDFLAGS="$LDFLAGS"
13037 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13038 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13040 # The linker can only warn and ignore the option if not recognized
13041 # So say no if there are warnings
13042 if test -s conftest.err; then
13043 # Append any errors to the config.log.
13044 cat conftest.err 1>&5
13045 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13047 if diff conftest.exp conftest.er2 >/dev/null; then
13048 lt_cv_prog_compiler_static_works_FC=yes
13051 lt_cv_prog_compiler_static_works_FC=yes
13055 LDFLAGS="$save_LDFLAGS"
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13059 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13061 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13064 lt_prog_compiler_static_FC=
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13072 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13073 $as_echo_n "(cached) " >&6
13075 lt_cv_prog_compiler_c_o_FC=no
13076 $RM -r conftest 2>/dev/null
13080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13082 lt_compiler_flag="-o out/conftest2.$ac_objext"
13083 # Insert the option either (1) after the last *FLAGS variable, or
13084 # (2) before a word containing "conftest.", or (3) at the end.
13085 # Note that $ac_compile itself does not contain backslashes and begins
13086 # with a dollar sign (not a hyphen), so the echo should work correctly.
13087 lt_compile=`echo "$ac_compile" | $SED \
13088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13090 -e 's:$: $lt_compiler_flag:'`
13091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13092 (eval "$lt_compile" 2>out/conftest.err)
13094 cat out/conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13098 # The compiler can only warn and ignore the option if not recognized
13099 # So say no if there are warnings
13100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13103 lt_cv_prog_compiler_c_o_FC=yes
13108 # SGI C++ compiler will create directory out/ii_files/ for
13109 # template instantiation
13110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13111 $RM out/* && rmdir out
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13118 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13123 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13124 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13125 $as_echo_n "(cached) " >&6
13127 lt_cv_prog_compiler_c_o_FC=no
13128 $RM -r conftest 2>/dev/null
13132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13134 lt_compiler_flag="-o out/conftest2.$ac_objext"
13135 # Insert the option either (1) after the last *FLAGS variable, or
13136 # (2) before a word containing "conftest.", or (3) at the end.
13137 # Note that $ac_compile itself does not contain backslashes and begins
13138 # with a dollar sign (not a hyphen), so the echo should work correctly.
13139 lt_compile=`echo "$ac_compile" | $SED \
13140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13142 -e 's:$: $lt_compiler_flag:'`
13143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13144 (eval "$lt_compile" 2>out/conftest.err)
13146 cat out/conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13150 # The compiler can only warn and ignore the option if not recognized
13151 # So say no if there are warnings
13152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13153 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13154 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13155 lt_cv_prog_compiler_c_o_FC=yes
13160 # SGI C++ compiler will create directory out/ii_files/ for
13161 # template instantiation
13162 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13163 $RM out/* && rmdir out
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13170 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13175 hard_links="nottested"
13176 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13177 # do not overwrite the value of need_locks provided by the user
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13179 $as_echo_n "checking if we can lock with hard links... " >&6; }
13182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13184 ln conftest.a conftest.b 2>&5 || hard_links=no
13185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13187 $as_echo "$hard_links" >&6; }
13188 if test "$hard_links" = no; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13190 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13200 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13203 allow_undefined_flag_FC=
13204 always_export_symbols_FC=no
13206 archive_expsym_cmds_FC=
13207 compiler_needs_object_FC=no
13208 enable_shared_with_static_runtimes_FC=no
13209 export_dynamic_flag_spec_FC=
13210 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13211 hardcode_automatic_FC=no
13212 hardcode_direct_FC=no
13213 hardcode_direct_absolute_FC=no
13214 hardcode_libdir_flag_spec_FC=
13215 hardcode_libdir_separator_FC=
13216 hardcode_minus_L_FC=no
13217 hardcode_shlibpath_var_FC=unsupported
13218 inherit_rpath_FC=no
13219 link_all_deplibs_FC=unknown
13221 module_expsym_cmds_FC=
13222 old_archive_from_new_cmds_FC=
13223 old_archive_from_expsyms_cmds_FC=
13224 thread_safe_flag_spec_FC=
13225 whole_archive_flag_spec_FC=
13226 # include_expsyms should be a list of space-separated symbols to be *always*
13227 # included in the symbol list
13228 include_expsyms_FC=
13229 # exclude_expsyms can be an extended regexp of symbols to exclude
13230 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13231 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13232 # as well as any symbol that contains `d'.
13233 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13234 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13235 # platforms (ab)use it in PIC code, but their linkers get confused if
13236 # the symbol is explicitly referenced. Since portable code cannot
13237 # rely on this symbol name, it's probably fine to never include it in
13238 # preloaded symbol tables.
13239 # Exclude shared library initialization/finalization symbols.
13240 extract_expsyms_cmds=
13243 cygwin* | mingw* | pw32* | cegcc*)
13244 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13245 # When not using gcc, we currently assume that we are using
13246 # Microsoft Visual C++.
13247 if test "$GCC" != yes; then
13252 # we just hope/assume this is gcc and not c89 (= MSVC++)
13262 # On some targets, GNU ld is compatible enough with the native linker
13263 # that we're better off using the native interface for both.
13264 lt_use_gnu_ld_interface=no
13265 if test "$with_gnu_ld" = yes; then
13268 # The AIX port of GNU ld has always aspired to compatibility
13269 # with the native linker. However, as the warning in the GNU ld
13270 # block says, versions before 2.19.5* couldn't really create working
13271 # shared libraries, regardless of the interface used.
13272 case `$LD -v 2>&1` in
13273 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13274 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13275 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13277 lt_use_gnu_ld_interface=yes
13282 lt_use_gnu_ld_interface=yes
13287 if test "$lt_use_gnu_ld_interface" = yes; then
13288 # If archive_cmds runs LD, not CC, wlarc should be empty
13291 # Set some defaults for GNU ld with shared library support. These
13292 # are reset later if shared libraries are not supported. Putting them
13293 # here allows them to be overridden if necessary.
13294 runpath_var=LD_RUN_PATH
13295 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13296 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13297 # ancient GNU ld didn't support --whole-archive et. al.
13298 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13299 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13301 whole_archive_flag_spec_FC=
13303 supports_anon_versioning=no
13304 case `$LD -v 2>&1` in
13305 *GNU\ gold*) supports_anon_versioning=yes ;;
13306 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13307 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13308 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13309 *\ 2.11.*) ;; # other 2.11 versions
13310 *) supports_anon_versioning=yes ;;
13313 # See if GNU ld supports shared libraries.
13316 # On AIX/PPC, the GNU linker is very broken
13317 if test "$host_cpu" != ia64; then
13321 *** Warning: the GNU linker, at least up to release 2.19, is reported
13322 *** to be unable to reliably create shared libraries on AIX.
13323 *** Therefore, libtool is disabling shared libraries support. If you
13324 *** really care for shared libraries, you may want to install binutils
13325 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13326 *** You will then need to restart the configuration process.
13335 # see comment about AmigaOS4 .so support
13336 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13337 archive_expsym_cmds_FC=''
13340 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)'
13341 hardcode_libdir_flag_spec_FC='-L$libdir'
13342 hardcode_minus_L_FC=yes
13348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13349 allow_undefined_flag_FC=unsupported
13350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13351 # support --undefined. This deserves some investigation. FIXME
13352 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13358 cygwin* | mingw* | pw32* | cegcc*)
13359 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13360 # as there is no search path for DLLs.
13361 hardcode_libdir_flag_spec_FC='-L$libdir'
13362 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13363 allow_undefined_flag_FC=unsupported
13364 always_export_symbols_FC=no
13365 enable_shared_with_static_runtimes_FC=yes
13366 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13367 exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13369 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13370 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13371 # If the export-symbols file already is a .def file (1st line
13372 # is EXPORTS), use it as is; otherwise, prepend...
13373 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13374 cp $export_symbols $output_objdir/$soname.def;
13376 echo EXPORTS > $output_objdir/$soname.def;
13377 cat $export_symbols >> $output_objdir/$soname.def;
13379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13386 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387 link_all_deplibs_FC=yes
13391 hardcode_direct_FC=no
13392 hardcode_shlibpath_var_FC=no
13393 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13394 export_dynamic_flag_spec_FC='${wl}-E'
13395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13396 # Instead, shared libraries are loaded at an image base (0x10000000 by
13397 # default) and relocated if they conflict, which is a slow very memory
13398 # consuming and fragmenting process. To avoid this, we pick a random,
13399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13400 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13401 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'
13402 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'
13405 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13407 if test "$host_os" = linux-dietlibc; then
13408 case $cc_basename in
13409 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13412 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13413 && test "$tmp_diet" = no
13415 tmp_addflag=' $pic_flag'
13416 tmp_sharedflag='-shared'
13417 case $cc_basename,$host_cpu in
13418 pgcc*) # Portland Group C compiler
13419 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'
13420 tmp_addflag=' $pic_flag'
13422 pgf77* | pgf90* | pgf95* | pgfortran*)
13423 # Portland Group f77 and f90 compilers
13424 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'
13425 tmp_addflag=' $pic_flag -Mnomain' ;;
13426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13427 tmp_addflag=' -i_dynamic' ;;
13428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13429 tmp_addflag=' -i_dynamic -nofor_main' ;;
13430 ifc* | ifort*) # Intel Fortran compiler
13431 tmp_addflag=' -nofor_main' ;;
13432 lf95*) # Lahey Fortran 8.1
13433 whole_archive_flag_spec_FC=
13434 tmp_sharedflag='--shared' ;;
13435 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13436 tmp_sharedflag='-qmkshrobj'
13438 nvcc*) # Cuda Compiler Driver 2.2
13439 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'
13440 compiler_needs_object_FC=yes
13443 case `$CC -V 2>&1 | sed 5q` in
13444 *Sun\ C*) # Sun C 5.9
13445 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'
13446 compiler_needs_object_FC=yes
13447 tmp_sharedflag='-G' ;;
13448 *Sun\ F*) # Sun Fortran 8.3
13449 tmp_sharedflag='-G' ;;
13451 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453 if test "x$supports_anon_versioning" = xyes; then
13454 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13456 echo "local: *; };" >> $output_objdir/$libname.ver~
13457 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13460 case $cc_basename in
13461 xlf* | bgf* | bgxlf* | mpixlf*)
13462 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13463 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13464 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13465 archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13466 if test "x$supports_anon_versioning" = xyes; then
13467 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13469 echo "local: *; };" >> $output_objdir/$libname.ver~
13470 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13481 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13484 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13485 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13490 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13495 *** create shared libraries on Solaris systems. Therefore, libtool
13496 *** is disabling shared libraries support. We urge you to upgrade GNU
13497 *** binutils to release 2.9.1 or newer. Another option is to modify
13498 *** your PATH or compiler configuration so that the native linker is
13499 *** used, and then restart.
13502 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13503 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13504 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13511 case `$LD -v 2>&1` in
13512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13516 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13517 *** reliably create shared libraries on SCO systems. Therefore, libtool
13518 *** is disabling shared libraries support. We urge you to upgrade GNU
13519 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13520 *** your PATH or compiler configuration so that the native linker is
13521 *** used, and then restart.
13526 # For security reasons, it is highly recommended that you always
13527 # use absolute paths for naming shared libraries, and exclude the
13528 # DT_RUNPATH tag from executables and libraries. But doing so
13529 # requires that you compile everything twice, which is a pain.
13530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13531 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13532 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13542 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13544 hardcode_direct_FC=yes
13545 hardcode_shlibpath_var_FC=no
13549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13550 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13551 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13558 if test "$ld_shlibs_FC" = no; then
13560 hardcode_libdir_flag_spec_FC=
13561 export_dynamic_flag_spec_FC=
13562 whole_archive_flag_spec_FC=
13565 # PORTME fill in a description of your system's linker (not GNU ld)
13568 allow_undefined_flag_FC=unsupported
13569 always_export_symbols_FC=yes
13570 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'
13571 # Note: this linker hardcodes the directories in LIBPATH if there
13572 # are no directories specified by -L.
13573 hardcode_minus_L_FC=yes
13574 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13575 # Neither direct hardcoding nor static linking is supported with a
13577 hardcode_direct_FC=unsupported
13582 if test "$host_cpu" = ia64; then
13583 # On IA64, the linker does run time linking by default, so we don't
13584 # have to do anything special.
13585 aix_use_runtimelinking=no
13586 exp_sym_flag='-Bexport'
13589 # If we're using GNU nm, then we don't want the "-C" option.
13590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13591 # Also, AIX nm treats weak defined symbols like other global
13592 # defined symbols, whereas GNU nm marks them as "W".
13593 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13594 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'
13596 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'
13598 aix_use_runtimelinking=no
13600 # Test if we are trying to use run time linking or normal
13601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13602 # need to do runtime linking.
13603 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13604 for ld_flag in $LDFLAGS; do
13605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13606 aix_use_runtimelinking=yes
13613 exp_sym_flag='-bexport'
13614 no_entry_flag='-bnoentry'
13617 # When large executables or shared objects are built, AIX ld can
13618 # have problems creating the table of contents. If linking a library
13619 # or program results in "error TOC overflow" add -mminimal-toc to
13620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13624 hardcode_direct_FC=yes
13625 hardcode_direct_absolute_FC=yes
13626 hardcode_libdir_separator_FC=':'
13627 link_all_deplibs_FC=yes
13628 file_list_spec_FC='${wl}-f,'
13630 if test "$GCC" = yes; then
13631 case $host_os in aix4.[012]|aix4.[012].*)
13632 # We only want to do this on AIX 4.2 and lower, the check
13633 # below for broken collect2 doesn't work under 4.3+
13634 collect2name=`${CC} -print-prog-name=collect2`
13635 if test -f "$collect2name" &&
13636 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13638 # We have reworked collect2
13641 # We have old collect2
13642 hardcode_direct_FC=unsupported
13643 # It fails to find uninstalled libraries when the uninstalled
13644 # path is not listed in the libpath. Setting hardcode_minus_L
13645 # to unsupported forces relinking
13646 hardcode_minus_L_FC=yes
13647 hardcode_libdir_flag_spec_FC='-L$libdir'
13648 hardcode_libdir_separator_FC=
13652 shared_flag='-shared'
13653 if test "$aix_use_runtimelinking" = yes; then
13654 shared_flag="$shared_flag "'${wl}-G'
13658 if test "$host_cpu" = ia64; then
13659 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13660 # chokes on -Wl,-G. The following line is correct:
13663 if test "$aix_use_runtimelinking" = yes; then
13664 shared_flag='${wl}-G'
13666 shared_flag='${wl}-bM:SRE'
13671 export_dynamic_flag_spec_FC='${wl}-bexpall'
13672 # It seems that -bexpall does not export symbols beginning with
13673 # underscore (_), so it is better to generate a list of symbols to export.
13674 always_export_symbols_FC=yes
13675 if test "$aix_use_runtimelinking" = yes; then
13676 # Warning - without using the other runtime loading flags (-brtl),
13677 # -berok will link without error, but may produce a broken library.
13678 allow_undefined_flag_FC='-berok'
13679 # Determine the default libpath from the value encoded in an
13680 # empty executable.
13681 if test "${lt_cv_aix_libpath+set}" = set; then
13682 aix_libpath=$lt_cv_aix_libpath
13684 if ${lt_cv_aix_libpath__FC+:} false; then :
13685 $as_echo_n "(cached) " >&6
13687 cat > conftest.$ac_ext <<_ACEOF
13692 if ac_fn_fc_try_link "$LINENO"; then :
13694 lt_aix_libpath_sed='
13695 /Import File Strings/,/^$/ {
13697 s/^0 *\([^ ]*\) *$/\1/
13701 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13702 # Check for a 64-bit object if we didn't find anything.
13703 if test -z "$lt_cv_aix_libpath__FC"; then
13704 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13707 rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 if test -z "$lt_cv_aix_libpath__FC"; then
13710 lt_cv_aix_libpath__FC="/usr/lib:/lib"
13715 aix_libpath=$lt_cv_aix_libpath__FC
13718 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13719 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"
13721 if test "$host_cpu" = ia64; then
13722 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13723 allow_undefined_flag_FC="-z nodefs"
13724 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"
13726 # Determine the default libpath from the value encoded in an
13727 # empty executable.
13728 if test "${lt_cv_aix_libpath+set}" = set; then
13729 aix_libpath=$lt_cv_aix_libpath
13731 if ${lt_cv_aix_libpath__FC+:} false; then :
13732 $as_echo_n "(cached) " >&6
13734 cat > conftest.$ac_ext <<_ACEOF
13739 if ac_fn_fc_try_link "$LINENO"; then :
13741 lt_aix_libpath_sed='
13742 /Import File Strings/,/^$/ {
13744 s/^0 *\([^ ]*\) *$/\1/
13748 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13749 # Check for a 64-bit object if we didn't find anything.
13750 if test -z "$lt_cv_aix_libpath__FC"; then
13751 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13754 rm -f core conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
13756 if test -z "$lt_cv_aix_libpath__FC"; then
13757 lt_cv_aix_libpath__FC="/usr/lib:/lib"
13762 aix_libpath=$lt_cv_aix_libpath__FC
13765 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13766 # Warning - without using the other run time loading flags,
13767 # -berok will link without error, but may produce a broken library.
13768 no_undefined_flag_FC=' ${wl}-bernotok'
13769 allow_undefined_flag_FC=' ${wl}-berok'
13770 if test "$with_gnu_ld" = yes; then
13771 # We only use this code for GNU lds that support --whole-archive.
13772 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13774 # Exported symbols can be pulled into shared objects from archives
13775 whole_archive_flag_spec_FC='$convenience'
13777 archive_cmds_need_lc_FC=yes
13778 # This is similar to how AIX traditionally builds its shared libraries.
13779 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'
13787 # see comment about AmigaOS4 .so support
13788 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13789 archive_expsym_cmds_FC=''
13792 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)'
13793 hardcode_libdir_flag_spec_FC='-L$libdir'
13794 hardcode_minus_L_FC=yes
13800 export_dynamic_flag_spec_FC=-rdynamic
13803 cygwin* | mingw* | pw32* | cegcc*)
13804 # When not using gcc, we currently assume that we are using
13805 # Microsoft Visual C++.
13806 # hardcode_libdir_flag_spec is actually meaningless, as there is
13807 # no search path for DLLs.
13808 case $cc_basename in
13811 hardcode_libdir_flag_spec_FC=' '
13812 allow_undefined_flag_FC=unsupported
13813 always_export_symbols_FC=yes
13814 file_list_spec_FC='@'
13815 # Tell ltmain to make .lib files, not .a files.
13817 # Tell ltmain to make .dll files, not .so files.
13819 # FIXME: Setting linknames here is a bad hack.
13820 archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13821 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13822 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13824 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13826 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13828 # The linker will not automatically build a static lib if we build a DLL.
13829 # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
13830 enable_shared_with_static_runtimes_FC=yes
13831 exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13832 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13834 old_postinstall_cmds_FC='chmod 644 $oldlib'
13835 postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
13836 lt_tool_outputfile="@TOOL_OUTPUT@"~
13837 case $lt_outputfile in
13840 lt_outputfile="$lt_outputfile.exe"
13841 lt_tool_outputfile="$lt_tool_outputfile.exe"
13844 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13845 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13846 $RM "$lt_outputfile.manifest";
13850 # Assume MSVC wrapper
13851 hardcode_libdir_flag_spec_FC=' '
13852 allow_undefined_flag_FC=unsupported
13853 # Tell ltmain to make .lib files, not .a files.
13855 # Tell ltmain to make .dll files, not .so files.
13857 # FIXME: Setting linknames here is a bad hack.
13858 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13859 # The linker will automatically build a .lib file if we build a DLL.
13860 old_archive_from_new_cmds_FC='true'
13861 # FIXME: Should let the user specify the lib program.
13862 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13863 enable_shared_with_static_runtimes_FC=yes
13868 darwin* | rhapsody*)
13871 archive_cmds_need_lc_FC=no
13872 hardcode_direct_FC=no
13873 hardcode_automatic_FC=yes
13874 hardcode_shlibpath_var_FC=unsupported
13875 if test "$lt_cv_ld_force_load" = "yes"; then
13876 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\"`'
13877 compiler_needs_object_FC=yes
13879 whole_archive_flag_spec_FC=''
13881 link_all_deplibs_FC=yes
13882 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13883 case $cc_basename in
13884 ifort*) _lt_dar_can_shared=yes ;;
13885 *) _lt_dar_can_shared=$GCC ;;
13887 if test "$_lt_dar_can_shared" = "yes"; then
13888 output_verbose_link_cmd=func_echo_all
13889 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}"
13890 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13891 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}"
13892 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}"
13901 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902 hardcode_libdir_flag_spec_FC='-L$libdir'
13903 hardcode_shlibpath_var_FC=no
13906 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13907 # support. Future versions do this automatically, but an explicit c++rt0.o
13908 # does not break anything, and helps significantly (at the cost of a little
13911 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13912 hardcode_libdir_flag_spec_FC='-R$libdir'
13913 hardcode_direct_FC=yes
13914 hardcode_shlibpath_var_FC=no
13917 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13919 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13920 hardcode_direct_FC=yes
13921 hardcode_minus_L_FC=yes
13922 hardcode_shlibpath_var_FC=no
13925 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13926 freebsd* | dragonfly*)
13927 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13928 hardcode_libdir_flag_spec_FC='-R$libdir'
13929 hardcode_direct_FC=yes
13930 hardcode_shlibpath_var_FC=no
13934 if test "$GCC" = yes; then
13935 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13937 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'
13939 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13940 hardcode_libdir_separator_FC=:
13941 hardcode_direct_FC=yes
13943 # hardcode_minus_L: Not really in the search PATH,
13944 # but as the default location of the library.
13945 hardcode_minus_L_FC=yes
13946 export_dynamic_flag_spec_FC='${wl}-E'
13950 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13951 archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13953 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13955 if test "$with_gnu_ld" = no; then
13956 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13957 hardcode_libdir_separator_FC=:
13958 hardcode_direct_FC=yes
13959 hardcode_direct_absolute_FC=yes
13960 export_dynamic_flag_spec_FC='${wl}-E'
13961 # hardcode_minus_L: Not really in the search PATH,
13962 # but as the default location of the library.
13963 hardcode_minus_L_FC=yes
13968 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13971 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13974 archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13977 archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13983 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13986 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13989 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13993 if test "$with_gnu_ld" = no; then
13994 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13995 hardcode_libdir_separator_FC=:
13999 hardcode_direct_FC=no
14000 hardcode_shlibpath_var_FC=no
14003 hardcode_direct_FC=yes
14004 hardcode_direct_absolute_FC=yes
14005 export_dynamic_flag_spec_FC='${wl}-E'
14007 # hardcode_minus_L: Not really in the search PATH,
14008 # but as the default location of the library.
14009 hardcode_minus_L_FC=yes
14015 irix5* | irix6* | nonstopux*)
14016 if test "$GCC" = yes; then
14017 archive_cmds_FC='$CC -shared $pic_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'
14018 # Try to use the -exported_symbol ld option, if it does not
14019 # work, assume that -exports_file does not work either and
14020 # implicitly export all symbols.
14021 # This should be the same for all languages, so no per-tag cache variable.
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14023 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14024 if ${lt_cv_irix_exported_symbol+:} false; then :
14025 $as_echo_n "(cached) " >&6
14027 save_LDFLAGS="$LDFLAGS"
14028 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14029 cat > conftest.$ac_ext <<_ACEOF
14034 if ac_fn_fc_try_link "$LINENO"; then :
14035 lt_cv_irix_exported_symbol=yes
14037 lt_cv_irix_exported_symbol=no
14039 rm -f core conftest.err conftest.$ac_objext \
14040 conftest$ac_exeext conftest.$ac_ext
14041 LDFLAGS="$save_LDFLAGS"
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14044 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14045 if test "$lt_cv_irix_exported_symbol" = yes; then
14046 archive_expsym_cmds_FC='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
14049 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'
14050 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'
14052 archive_cmds_need_lc_FC='no'
14053 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14054 hardcode_libdir_separator_FC=:
14055 inherit_rpath_FC=yes
14056 link_all_deplibs_FC=yes
14060 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14061 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14063 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14065 hardcode_libdir_flag_spec_FC='-R$libdir'
14066 hardcode_direct_FC=yes
14067 hardcode_shlibpath_var_FC=no
14071 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14072 hardcode_direct_FC=yes
14073 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14074 hardcode_libdir_separator_FC=:
14075 hardcode_shlibpath_var_FC=no
14082 if test -f /usr/libexec/ld.so; then
14083 hardcode_direct_FC=yes
14084 hardcode_shlibpath_var_FC=no
14085 hardcode_direct_absolute_FC=yes
14086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14087 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14088 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14089 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14090 export_dynamic_flag_spec_FC='${wl}-E'
14093 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14094 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14095 hardcode_libdir_flag_spec_FC='-R$libdir'
14098 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14099 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14109 hardcode_libdir_flag_spec_FC='-L$libdir'
14110 hardcode_minus_L_FC=yes
14111 allow_undefined_flag_FC=unsupported
14112 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'
14113 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14117 if test "$GCC" = yes; then
14118 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14119 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'
14121 allow_undefined_flag_FC=' -expect_unresolved \*'
14122 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'
14124 archive_cmds_need_lc_FC='no'
14125 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14126 hardcode_libdir_separator_FC=:
14129 osf4* | osf5*) # as osf3* with the addition of -msym flag
14130 if test "$GCC" = yes; then
14131 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14132 archive_cmds_FC='$CC -shared${allow_undefined_flag} $pic_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'
14133 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14135 allow_undefined_flag_FC=' -expect_unresolved \*'
14136 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'
14137 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~
14138 $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'
14140 # Both c and cxx compiler support -rpath directly
14141 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14143 archive_cmds_need_lc_FC='no'
14144 hardcode_libdir_separator_FC=:
14148 no_undefined_flag_FC=' -z defs'
14149 if test "$GCC" = yes; then
14151 archive_cmds_FC='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14152 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14153 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14155 case `$CC -V 2>&1` in
14158 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14160 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14164 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14165 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14166 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14170 hardcode_libdir_flag_spec_FC='-R$libdir'
14171 hardcode_shlibpath_var_FC=no
14173 solaris2.[0-5] | solaris2.[0-5].*) ;;
14175 # The compiler driver will combine and reorder linker options,
14176 # but understands `-z linker_flag'. GCC discards it without `$wl',
14177 # but is careful enough not to reorder.
14178 # Supported since Solaris 2.6 (maybe 2.5.1?)
14179 if test "$GCC" = yes; then
14180 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14182 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14186 link_all_deplibs_FC=yes
14190 if test "x$host_vendor" = xsequent; then
14191 # Use $CC to link under sequent, because it throws in some extra .o
14192 # files that make .init and .fini sections work.
14193 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14195 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14197 hardcode_libdir_flag_spec_FC='-L$libdir'
14198 hardcode_direct_FC=yes
14199 hardcode_minus_L_FC=yes
14200 hardcode_shlibpath_var_FC=no
14204 case $host_vendor in
14206 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14207 hardcode_direct_FC=yes # is this really true???
14210 ## LD is ld it makes a PLAMLIB
14211 ## CC just makes a GrossModule.
14212 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14213 reload_cmds_FC='$CC -r -o $output$reload_objs'
14214 hardcode_direct_FC=no
14217 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14218 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14221 runpath_var='LD_RUN_PATH'
14222 hardcode_shlibpath_var_FC=no
14226 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227 hardcode_shlibpath_var_FC=no
14228 export_dynamic_flag_spec_FC='-Bexport'
14232 if test -d /usr/nec; then
14233 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14234 hardcode_shlibpath_var_FC=no
14235 runpath_var=LD_RUN_PATH
14236 hardcode_runpath_var=yes
14241 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14242 no_undefined_flag_FC='${wl}-z,text'
14243 archive_cmds_need_lc_FC=no
14244 hardcode_shlibpath_var_FC=no
14245 runpath_var='LD_RUN_PATH'
14247 if test "$GCC" = yes; then
14248 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14249 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14251 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14252 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14256 sysv5* | sco3.2v5* | sco5v6*)
14257 # Note: We can NOT use -z defs as we might desire, because we do not
14258 # link with -lc, and that would cause any symbols used from libc to
14259 # always be unresolved, which means just about no library would
14260 # ever link correctly. If we're not using GNU ld we use -z text
14261 # though, which does catch some bad symbols but isn't as heavy-handed
14263 no_undefined_flag_FC='${wl}-z,text'
14264 allow_undefined_flag_FC='${wl}-z,nodefs'
14265 archive_cmds_need_lc_FC=no
14266 hardcode_shlibpath_var_FC=no
14267 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14268 hardcode_libdir_separator_FC=':'
14269 link_all_deplibs_FC=yes
14270 export_dynamic_flag_spec_FC='${wl}-Bexport'
14271 runpath_var='LD_RUN_PATH'
14273 if test "$GCC" = yes; then
14274 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14275 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14277 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14278 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14283 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284 hardcode_libdir_flag_spec_FC='-L$libdir'
14285 hardcode_shlibpath_var_FC=no
14293 if test x$host_vendor = xsni; then
14295 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14296 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14303 $as_echo "$ld_shlibs_FC" >&6; }
14304 test "$ld_shlibs_FC" = no && can_build_shared=no
14306 with_gnu_ld_FC=$with_gnu_ld
14314 # Do we need to explicitly link libc?
14316 case "x$archive_cmds_need_lc_FC" in
14318 # Assume -lc should be added
14319 archive_cmds_need_lc_FC=yes
14321 if test "$enable_shared" = yes && test "$GCC" = yes; then
14322 case $archive_cmds_FC in
14324 # FIXME: we may have to deal with multi-command sequences.
14327 # Test whether the compiler implicitly links with -lc since on some
14328 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14329 # to ld, don't add -lc before -lgcc.
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14331 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14332 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
14333 $as_echo_n "(cached) " >&6
14336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14339 (eval $ac_compile) 2>&5
14341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14342 test $ac_status = 0; } 2>conftest.err; then
14345 libobjs=conftest.$ac_objext
14347 wl=$lt_prog_compiler_wl_FC
14348 pic_flag=$lt_prog_compiler_pic_FC
14354 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14355 allow_undefined_flag_FC=
14356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14357 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360 test $ac_status = 0; }
14362 lt_cv_archive_cmds_need_lc_FC=no
14364 lt_cv_archive_cmds_need_lc_FC=yes
14366 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14368 cat conftest.err 1>&5
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14374 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14375 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14444 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14446 library_names_spec=
14447 libname_spec='lib$name'
14451 postuninstall_cmds=
14455 shlibpath_overrides_runpath=unknown
14457 dynamic_linker="$host_os ld.so"
14458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14459 need_lib_prefix=unknown
14460 hardcode_into_libs=no
14462 # when you set need_version to no, make sure it does not cause -set_version
14463 # flags to be left without arguments
14464 need_version=unknown
14468 version_type=linux # correct to gnu/linux during the next big refactor
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14470 shlibpath_var=LIBPATH
14472 # AIX 3 has no versioning support, so we append a major version to the name.
14473 soname_spec='${libname}${release}${shared_ext}$major'
14477 version_type=linux # correct to gnu/linux during the next big refactor
14480 hardcode_into_libs=yes
14481 if test "$host_cpu" = ia64; then
14482 # AIX 5 supports IA64
14483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14484 shlibpath_var=LD_LIBRARY_PATH
14486 # With GCC up to 2.95.x, collect2 would create an import file
14487 # for dependence libraries. The import file would start with
14488 # the line `#! .'. This would cause the generated library to
14489 # depend on `.', always an invalid library. This was fixed in
14490 # development snapshots of GCC prior to 3.0.
14492 aix4 | aix4.[01] | aix4.[01].*)
14493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14495 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14498 can_build_shared=no
14502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14503 # soname into executable. Probably we can add versioning support to
14504 # collect2, so additional links can be useful in future.
14505 if test "$aix_use_runtimelinking" = yes; then
14506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14507 # instead of lib<name>.a to let people know that these are not
14508 # typical AIX shared libraries.
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 # We preserve .a as extension for shared libraries through AIX4.2
14512 # and later when we are not doing run time linking.
14513 library_names_spec='${libname}${release}.a $libname.a'
14514 soname_spec='${libname}${release}${shared_ext}$major'
14516 shlibpath_var=LIBPATH
14523 # Since July 2007 AmigaOS4 officially supports .so libraries.
14524 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 library_names_spec='$libname.ixlibrary $libname.a'
14529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14530 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'
14536 library_names_spec='${libname}${shared_ext}'
14537 dynamic_linker="$host_os ld.so"
14538 shlibpath_var=LIBRARY_PATH
14542 version_type=linux # correct to gnu/linux during the next big refactor
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14550 # the default ld.so.conf also contains /usr/contrib/lib and
14551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14552 # libtool to hard-code these into programs
14555 cygwin* | mingw* | pw32* | cegcc*)
14556 version_type=windows
14561 case $GCC,$cc_basename in
14564 library_names_spec='$libname.dll.a'
14565 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14566 postinstall_cmds='base_file=`basename \${file}`~
14567 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14568 dldir=$destdir/`dirname \$dlpath`~
14569 test -d \$dldir || mkdir -p \$dldir~
14570 $install_prog $dir/$dlname \$dldir/$dlname~
14571 chmod a+x \$dldir/$dlname~
14572 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14573 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14576 dlpath=$dir/\$dldll~
14578 shlibpath_overrides_runpath=yes
14582 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14583 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14587 # MinGW DLLs use traditional 'lib' prefix
14588 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14591 # pw32 DLLs use 'pw' prefix rather than 'lib'
14592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14595 dynamic_linker='Win32 ld.exe'
14600 libname_spec='$name'
14601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14602 library_names_spec='${libname}.dll.lib'
14606 sys_lib_search_path_spec=
14609 for lt_path in $LIB
14612 # Let DOS variable expansion print the short 8.3 style file name.
14613 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14614 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14617 # Convert to MSYS style.
14618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14621 # Convert to unix form, then to dos form, then back to unix form
14622 # but this time dos style (no spaces!) so that the unix form looks
14623 # like /cygdrive/c/PROGRA~1:/cygdr...
14624 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14625 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14626 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14629 sys_lib_search_path_spec="$LIB"
14630 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14631 # It is most probably a Windows format PATH.
14632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14634 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14636 # FIXME: find the short name or the path components, as spaces are
14637 # common. (e.g. "Program Files" -> "PROGRA~1")
14641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14642 postinstall_cmds='base_file=`basename \${file}`~
14643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14644 dldir=$destdir/`dirname \$dlpath`~
14645 test -d \$dldir || mkdir -p \$dldir~
14646 $install_prog $dir/$dlname \$dldir/$dlname'
14647 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14648 dlpath=$dir/\$dldll~
14650 shlibpath_overrides_runpath=yes
14651 dynamic_linker='Win32 link.exe'
14655 # Assume MSVC wrapper
14656 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14657 dynamic_linker='Win32 ld.exe'
14660 # FIXME: first we should search . and the directory the executable is in
14664 darwin* | rhapsody*)
14665 dynamic_linker="$host_os dyld"
14666 version_type=darwin
14669 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14670 soname_spec='${libname}${release}${major}$shared_ext'
14671 shlibpath_overrides_runpath=yes
14672 shlibpath_var=DYLD_LIBRARY_PATH
14673 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14675 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14679 version_type=linux # correct to gnu/linux during the next big refactor
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14683 soname_spec='${libname}${release}${shared_ext}$major'
14684 shlibpath_var=LD_LIBRARY_PATH
14687 freebsd* | dragonfly*)
14688 # DragonFly does not have aout. When/if they implement a new
14689 # versioning mechanism, adjust this.
14690 if test -x /usr/bin/objformat; then
14691 objformat=`/usr/bin/objformat`
14694 freebsd[23].*) objformat=aout ;;
14695 *) objformat=elf ;;
14698 version_type=freebsd-$objformat
14699 case $version_type in
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14710 shlibpath_var=LD_LIBRARY_PATH
14713 shlibpath_overrides_runpath=yes
14715 freebsd3.[01]* | freebsdelf3.[01]*)
14716 shlibpath_overrides_runpath=yes
14717 hardcode_into_libs=yes
14719 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14720 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14721 shlibpath_overrides_runpath=no
14722 hardcode_into_libs=yes
14724 *) # from 4.6 on, and DragonFly
14725 shlibpath_overrides_runpath=yes
14726 hardcode_into_libs=yes
14732 version_type=linux # correct to gnu/linux during the next big refactor
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 shlibpath_overrides_runpath=no
14739 hardcode_into_libs=yes
14743 version_type=linux # correct to gnu/linux during the next big refactor
14746 dynamic_linker="$host_os runtime_loader"
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14748 soname_spec='${libname}${release}${shared_ext}$major'
14749 shlibpath_var=LIBRARY_PATH
14750 shlibpath_overrides_runpath=yes
14751 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14752 hardcode_into_libs=yes
14755 hpux9* | hpux10* | hpux11*)
14756 # Give a soname corresponding to the major version so that dld.sl refuses to
14757 # link against other versions.
14764 hardcode_into_libs=yes
14765 dynamic_linker="$host_os dld.so"
14766 shlibpath_var=LD_LIBRARY_PATH
14767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769 soname_spec='${libname}${release}${shared_ext}$major'
14770 if test "X$HPUX_IA64_MODE" = X32; then
14771 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14779 hardcode_into_libs=yes
14780 dynamic_linker="$host_os dld.sl"
14781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14790 dynamic_linker="$host_os dld.sl"
14791 shlibpath_var=SHLIB_PATH
14792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794 soname_spec='${libname}${release}${shared_ext}$major'
14797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14798 postinstall_cmds='chmod 555 $lib'
14799 # or fails outright, so override atomically:
14800 install_override_mode=555
14804 version_type=linux # correct to gnu/linux during the next big refactor
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14808 soname_spec='${libname}${release}${shared_ext}$major'
14809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=no
14812 hardcode_into_libs=yes
14815 irix5* | irix6* | nonstopux*)
14817 nonstopux*) version_type=nonstopux ;;
14819 if test "$lt_cv_prog_gnu_ld" = yes; then
14820 version_type=linux # correct to gnu/linux during the next big refactor
14827 soname_spec='${libname}${release}${shared_ext}$major'
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14830 irix5* | nonstopux*)
14831 libsuff= shlibsuff=
14834 case $LD in # libtool.m4 will add one of these switches to LD
14835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14836 libsuff= shlibsuff= libmagic=32-bit;;
14837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14838 libsuff=32 shlibsuff=N32 libmagic=N32;;
14839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14841 *) libsuff= shlibsuff= libmagic=never-match;;
14845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14846 shlibpath_overrides_runpath=no
14847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14849 hardcode_into_libs=yes
14852 # No shared lib support for Linux oldld, aout, or coff.
14853 linux*oldld* | linux*aout* | linux*coff*)
14857 # This must be glibc/ELF.
14858 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14859 version_type=linux # correct to gnu/linux during the next big refactor
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=no
14868 # Some binutils ld are patched to set DT_RUNPATH
14869 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14870 $as_echo_n "(cached) " >&6
14872 lt_cv_shlibpath_overrides_runpath=no
14873 save_LDFLAGS=$LDFLAGS
14874 save_libdir=$libdir
14875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14877 cat > conftest.$ac_ext <<_ACEOF
14882 if ac_fn_fc_try_link "$LINENO"; then :
14883 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14884 lt_cv_shlibpath_overrides_runpath=yes
14887 rm -f core conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14889 LDFLAGS=$save_LDFLAGS
14890 libdir=$save_libdir
14894 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14896 # This implies no fast_install, which is unacceptable.
14897 # Some rework will be needed to allow for fast_install
14898 # before this can be enabled.
14899 hardcode_into_libs=yes
14901 # Append ld.so.conf contents to the search path
14902 if test -f /etc/ld.so.conf; then
14903 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' ' '`
14904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14907 # We used to test for /lib/ld.so.1 and disable shared libraries on
14908 # powerpc, because MkLinux only supported shared libraries with the
14909 # GNU dynamic linker. Since this was broken with cross compilers,
14910 # most powerpc-linux boxes support dynamic linking these days and
14911 # people can always --disable-shared, the test was removed, and we
14912 # assume the GNU/Linux dynamic linker is in use.
14913 dynamic_linker='GNU/Linux ld.so'
14920 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14923 dynamic_linker='NetBSD (a.out) ld.so'
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14926 soname_spec='${libname}${release}${shared_ext}$major'
14927 dynamic_linker='NetBSD ld.elf_so'
14929 shlibpath_var=LD_LIBRARY_PATH
14930 shlibpath_overrides_runpath=yes
14931 hardcode_into_libs=yes
14935 version_type=linux # correct to gnu/linux during the next big refactor
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=yes
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 shlibpath_overrides_runpath=no
14949 hardcode_into_libs=yes
14950 dynamic_linker='ldqnx.so'
14955 sys_lib_dlsearch_path_spec="/usr/lib"
14957 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14959 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14960 *) need_version=no ;;
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14967 openbsd2.[89] | openbsd2.[89].*)
14968 shlibpath_overrides_runpath=no
14971 shlibpath_overrides_runpath=yes
14975 shlibpath_overrides_runpath=yes
14980 libname_spec='$name'
14983 library_names_spec='$libname${shared_ext} $libname.a'
14984 dynamic_linker='OS/2 ld.exe'
14985 shlibpath_var=LIBPATH
14988 osf3* | osf4* | osf5*)
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994 shlibpath_var=LD_LIBRARY_PATH
14995 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14996 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15004 version_type=linux # correct to gnu/linux during the next big refactor
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008 soname_spec='${libname}${release}${shared_ext}$major'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath=yes
15011 hardcode_into_libs=yes
15012 # ldd complains unless libraries are executable
15013 postinstall_cmds='chmod +x $lib'
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15019 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath=yes
15022 if test "$with_gnu_ld" = yes; then
15029 version_type=linux # correct to gnu/linux during the next big refactor
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 soname_spec='${libname}${release}${shared_ext}$major'
15032 shlibpath_var=LD_LIBRARY_PATH
15033 case $host_vendor in
15035 shlibpath_overrides_runpath=no
15037 runpath_var=LD_RUN_PATH
15045 shlibpath_overrides_runpath=no
15046 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15052 if test -d /usr/nec ;then
15053 version_type=linux # correct to gnu/linux during the next big refactor
15054 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15055 soname_spec='$libname${shared_ext}.$major'
15056 shlibpath_var=LD_LIBRARY_PATH
15060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15061 version_type=freebsd-elf
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15065 soname_spec='${libname}${release}${shared_ext}$major'
15066 shlibpath_var=LD_LIBRARY_PATH
15067 shlibpath_overrides_runpath=yes
15068 hardcode_into_libs=yes
15069 if test "$with_gnu_ld" = yes; then
15070 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15072 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15075 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15079 sys_lib_dlsearch_path_spec='/usr/lib'
15083 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15084 version_type=linux # correct to gnu/linux during the next big refactor
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088 shlibpath_var=LD_LIBRARY_PATH
15089 shlibpath_overrides_runpath=no
15090 hardcode_into_libs=yes
15094 version_type=linux # correct to gnu/linux during the next big refactor
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 shlibpath_var=LD_LIBRARY_PATH
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15105 $as_echo "$dynamic_linker" >&6; }
15106 test "$dynamic_linker" = no && can_build_shared=no
15108 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15109 if test "$GCC" = yes; then
15110 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15113 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15114 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15116 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15117 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15158 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15159 hardcode_action_FC=
15160 if test -n "$hardcode_libdir_flag_spec_FC" ||
15161 test -n "$runpath_var_FC" ||
15162 test "X$hardcode_automatic_FC" = "Xyes" ; then
15164 # We can hardcode non-existent directories.
15165 if test "$hardcode_direct_FC" != no &&
15166 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15167 # have to relink, otherwise we might link with an installed library
15168 # when we should be linking with a yet-to-be-installed one
15169 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15170 test "$hardcode_minus_L_FC" != no; then
15171 # Linking always hardcodes the temporary library directory.
15172 hardcode_action_FC=relink
15174 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15175 hardcode_action_FC=immediate
15178 # We cannot hardcode anything, or else we can only hardcode existing
15180 hardcode_action_FC=unsupported
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15183 $as_echo "$hardcode_action_FC" >&6; }
15185 if test "$hardcode_action_FC" = relink ||
15186 test "$inherit_rpath_FC" = yes; then
15187 # Fast installation is not supported
15188 enable_fast_install=no
15189 elif test "$shlibpath_overrides_runpath" = yes ||
15190 test "$enable_shared" = no; then
15191 # Fast installation is not necessary
15192 enable_fast_install=needless
15201 fi # test -n "$compiler"
15205 CFLAGS=$lt_save_CFLAGS
15206 fi # test "$_lt_disable_FC" != yes
15209 ac_cpp='$CPP $CPPFLAGS'
15210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15224 ac_config_commands="$ac_config_commands libtool"
15229 # Only expand once:
15237 ac_config_files="$ac_config_files Makefile"
15239 cat >confcache <<\_ACEOF
15240 # This file is a shell script that caches the results of configure
15241 # tests run on this system so they can be shared between configure
15242 # scripts and configure runs, see configure's option --config-cache.
15243 # It is not useful on other systems. If it contains results you don't
15244 # want to keep, you may remove or edit it.
15246 # config.status only pays attention to the cache file if you give it
15247 # the --recheck option to rerun configure.
15249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15251 # following values.
15255 # The following way of writing the cache mishandles newlines in values,
15256 # but we know of no workaround that is simple, portable, and efficient.
15257 # So, we kill variables containing newlines.
15258 # Ultrix sh set writes to stderr and can't be redirected directly,
15259 # and sets the high bit in the cache file unless we assign to the vars.
15261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15262 eval ac_val=\$$ac_var
15266 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15267 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15270 _ | IFS | as_nl) ;; #(
15271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15272 *) { eval $ac_var=; unset $ac_var;} ;;
15278 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15279 *${as_nl}ac_space=\ *)
15280 # `set' does not quote correctly, so add quotes: double-quote
15281 # substitution turns \\\\ into \\, and sed turns \\ into \.
15284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15287 # `set' quotes correctly as required by POSIX, so do not add quotes.
15288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15301 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15302 if test -w "$cache_file"; then
15303 if test "x$cache_file" != "x/dev/null"; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15305 $as_echo "$as_me: updating cache $cache_file" >&6;}
15306 if test ! -f "$cache_file" || test -h "$cache_file"; then
15307 cat confcache >"$cache_file"
15309 case $cache_file in #(
15311 mv -f confcache "$cache_file"$$ &&
15312 mv -f "$cache_file"$$ "$cache_file" ;; #(
15314 mv -f confcache "$cache_file" ;;
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15320 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15326 # Let make expand exec_prefix.
15327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15329 DEFS=-DHAVE_CONFIG_H
15334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15335 # 1. Remove the extension, and $U if already installed.
15336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15337 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15339 # will be set to the directory where LIBOBJS objects are built.
15340 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15341 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15343 LIBOBJS=$ac_libobjs
15345 LTLIBOBJS=$ac_ltlibobjs
15348 if test -n "$EXEEXT"; then
15350 am__EXEEXT_FALSE='#'
15352 am__EXEEXT_TRUE='#'
15356 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15357 as_fn_error $? "conditional \"AMDEP\" was never defined.
15358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15360 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15361 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15365 : "${CONFIG_STATUS=./config.status}"
15367 ac_clean_files_save=$ac_clean_files
15368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15374 # Generated by $as_me.
15375 # Run this file to recreate the current configuration.
15376 # Compiler output produced by configure, useful for debugging
15377 # configure, is in config.log if it exists.
15380 ac_cs_recheck=false
15383 SHELL=\${CONFIG_SHELL-$SHELL}
15386 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15387 ## -------------------- ##
15388 ## M4sh Initialization. ##
15389 ## -------------------- ##
15391 # Be more Bourne compatible
15392 DUALCASE=1; export DUALCASE # for MKS sh
15393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15397 # is contrary to our usage. Disable this feature.
15398 alias -g '${1+"$@"}'='"$@"'
15399 setopt NO_GLOB_SUBST
15401 case `(set -o) 2>/dev/null` in #(
15413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15417 # Prefer a ksh shell builtin over an external printf program on Solaris,
15418 # but without wasting forks for bash or zsh.
15419 if test -z "$BASH_VERSION$ZSH_VERSION" \
15420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15421 as_echo='print -r --'
15422 as_echo_n='print -rn --'
15423 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15424 as_echo='printf %s\n'
15425 as_echo_n='printf %s'
15427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15429 as_echo_n='/usr/ucb/echo -n'
15431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15432 as_echo_n_body='eval
15436 expr "X$arg" : "X\\(.*\\)$as_nl";
15437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15441 export as_echo_n_body
15442 as_echo_n='sh -c $as_echo_n_body as_echo'
15444 export as_echo_body
15445 as_echo='sh -c $as_echo_body as_echo'
15448 # The user is always right.
15449 if test "${PATH_SEPARATOR+set}" != set; then
15451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15459 # We need space, tab and new line, in precisely that order. Quoting is
15460 # there to prevent editors from complaining about space-tab.
15461 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15462 # splitting by setting IFS to empty value.)
15465 # Find who we are. Look in the path if we contain no directory separator.
15468 *[\\/]* ) as_myself=$0 ;;
15469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15470 for as_dir in $PATH
15473 test -z "$as_dir" && as_dir=.
15474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15480 # We did not find ourselves, most probably we were run as `sh COMMAND'
15481 # in which case we are not to be found in the path.
15482 if test "x$as_myself" = x; then
15485 if test ! -f "$as_myself"; then
15486 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15490 # Unset variables that we do not need and which cause bugs (e.g. in
15491 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15492 # suppresses any "Segmentation fault" message there. '((' could
15493 # trigger a bug in pdksh 5.2.14.
15494 for as_var in BASH_ENV ENV MAIL MAILPATH
15495 do eval test x\${$as_var+set} = xset \
15496 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15512 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15513 # ----------------------------------------
15514 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15515 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15516 # script with STATUS, using 1 if that was 0.
15519 as_status=$1; test $as_status -eq 0 && as_status=1
15521 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15522 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15524 $as_echo "$as_me: error: $2" >&2
15525 as_fn_exit $as_status
15529 # as_fn_set_status STATUS
15530 # -----------------------
15531 # Set $? to STATUS, without forking.
15532 as_fn_set_status ()
15535 } # as_fn_set_status
15537 # as_fn_exit STATUS
15538 # -----------------
15539 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15543 as_fn_set_status $1
15549 # Portably unset VAR.
15552 { eval $1=; unset $1;}
15554 as_unset=as_fn_unset
15555 # as_fn_append VAR VALUE
15556 # ----------------------
15557 # Append the text in VALUE to the end of the definition contained in VAR. Take
15558 # advantage of any shell optimizations that allow amortized linear growth over
15559 # repeated appends, instead of the typical quadratic growth present in naive
15561 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15562 eval 'as_fn_append ()
15573 # as_fn_arith ARG...
15574 # ------------------
15575 # Perform arithmetic evaluation on the ARGs, and store the result in the
15576 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15577 # must be portable across $(()) and expr.
15578 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15579 eval 'as_fn_arith ()
15586 as_val=`expr "$@" || test $? -eq 1`
15591 if expr a : '\(a\)' >/dev/null 2>&1 &&
15592 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15598 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15599 as_basename=basename
15604 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15610 as_me=`$as_basename -- "$0" ||
15611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15612 X"$0" : 'X\(//\)$' \| \
15613 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15615 sed '/^.*\/\([^/][^/]*\)\/*$/{
15629 # Avoid depending upon Character Ranges.
15630 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15631 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15632 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15633 as_cr_digits='0123456789'
15634 as_cr_alnum=$as_cr_Letters$as_cr_digits
15636 ECHO_C= ECHO_N= ECHO_T=
15637 case `echo -n x` in #(((((
15639 case `echo 'xy\c'` in
15640 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15642 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15649 rm -f conf$$ conf$$.exe conf$$.file
15650 if test -d conf$$.dir; then
15651 rm -f conf$$.dir/conf$$.file
15654 mkdir conf$$.dir 2>/dev/null
15656 if (echo >conf$$.file) 2>/dev/null; then
15657 if ln -s conf$$.file conf$$ 2>/dev/null; then
15659 # ... but there are two gotchas:
15660 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15661 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15662 # In both cases, we have to default to `cp -p'.
15663 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15665 elif ln conf$$.file conf$$ 2>/dev/null; then
15673 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15674 rmdir conf$$.dir 2>/dev/null
15679 # Create "$as_dir" as a directory, including parents if necessary.
15684 -*) as_dir=./$as_dir;;
15686 test -d "$as_dir" || eval $as_mkdir_p || {
15690 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15691 *) as_qdir=$as_dir;;
15693 as_dirs="'$as_qdir' $as_dirs"
15694 as_dir=`$as_dirname -- "$as_dir" ||
15695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15696 X"$as_dir" : 'X\(//\)[^/]' \| \
15697 X"$as_dir" : 'X\(//\)$' \| \
15698 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15699 $as_echo X"$as_dir" |
15700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15704 /^X\(\/\/\)[^/].*/{
15717 test -d "$as_dir" && break
15719 test -z "$as_dirs" || eval "mkdir $as_dirs"
15720 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15724 if mkdir -p . 2>/dev/null; then
15725 as_mkdir_p='mkdir -p "$as_dir"'
15727 test -d ./-p && rmdir ./-p
15731 if test -x / >/dev/null 2>&1; then
15732 as_test_x='test -x'
15734 if ls -dL / >/dev/null 2>&1; then
15741 if test -d "$1"; then
15747 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15748 ???[sx]*):;;*)false;;esac;fi
15752 as_executable_p=$as_test_x
15754 # Sed expression to map a string onto a valid CPP name.
15755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15757 # Sed expression to map a string onto a valid variable name.
15758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15762 ## ----------------------------------- ##
15763 ## Main body of $CONFIG_STATUS script. ##
15764 ## ----------------------------------- ##
15766 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15769 # Save the log message, to keep $0 and so on meaningful, and to
15770 # report actual input values of CONFIG_FILES etc. instead of their
15771 # values after options handling.
15773 This file was extended by fcdemo $as_me 1.0, which was
15774 generated by GNU Autoconf 2.68. Invocation command line was
15776 CONFIG_FILES = $CONFIG_FILES
15777 CONFIG_HEADERS = $CONFIG_HEADERS
15778 CONFIG_LINKS = $CONFIG_LINKS
15779 CONFIG_COMMANDS = $CONFIG_COMMANDS
15782 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15787 case $ac_config_files in *"
15788 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15791 case $ac_config_headers in *"
15792 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15797 # Files that config.status was made for.
15798 config_files="$ac_config_files"
15799 config_headers="$ac_config_headers"
15800 config_commands="$ac_config_commands"
15804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15806 \`$as_me' instantiates files and other configuration actions
15807 from templates according to the current configuration. Unless the files
15808 and actions are specified as TAGs, all are instantiated by default.
15810 Usage: $0 [OPTION]... [TAG]...
15812 -h, --help print this help, then exit
15813 -V, --version print version number and configuration settings, then exit
15814 --config print configuration, then exit
15815 -q, --quiet, --silent
15816 do not print progress messages
15817 -d, --debug don't remove temporary files
15818 --recheck update $as_me by reconfiguring in the same conditions
15819 --file=FILE[:TEMPLATE]
15820 instantiate the configuration file FILE
15821 --header=FILE[:TEMPLATE]
15822 instantiate the configuration header FILE
15824 Configuration files:
15827 Configuration headers:
15830 Configuration commands:
15833 Report bugs to <bug-libtool@gnu.org>."
15836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15837 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15839 fcdemo config.status 1.0
15840 configured by $0, generated by GNU Autoconf 2.68,
15841 with options \\"\$ac_cs_config\\"
15843 Copyright (C) 2010 Free Software Foundation, Inc.
15844 This config.status script is free software; the Free Software Foundation
15845 gives unlimited permission to copy, distribute and modify it."
15852 test -n "\$AWK" || AWK=awk
15855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15856 # The default lists apply if the user does not specify any file.
15862 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15863 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15867 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15879 # Handling of the options.
15880 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15882 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15883 $as_echo "$ac_cs_version"; exit ;;
15884 --config | --confi | --conf | --con | --co | --c )
15885 $as_echo "$ac_cs_config"; exit ;;
15886 --debug | --debu | --deb | --de | --d | -d )
15888 --file | --fil | --fi | --f )
15891 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15892 '') as_fn_error $? "missing file argument" ;;
15894 as_fn_append CONFIG_FILES " '$ac_optarg'"
15895 ac_need_defaults=false;;
15896 --header | --heade | --head | --hea )
15899 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15901 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15902 ac_need_defaults=false;;
15904 # Conflict between --help and --header
15905 as_fn_error $? "ambiguous option: \`$1'
15906 Try \`$0 --help' for more information.";;
15907 --help | --hel | -h )
15908 $as_echo "$ac_cs_usage"; exit ;;
15909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15910 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15913 # This is an error.
15914 -*) as_fn_error $? "unrecognized option: \`$1'
15915 Try \`$0 --help' for more information." ;;
15917 *) as_fn_append ac_config_targets " $1"
15918 ac_need_defaults=false ;;
15924 ac_configure_extra_args=
15926 if $ac_cs_silent; then
15928 ac_configure_extra_args="$ac_configure_extra_args --silent"
15932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15933 if \$ac_cs_recheck; then
15934 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15936 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15937 CONFIG_SHELL='$SHELL'
15938 export CONFIG_SHELL
15943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15948 ## Running $as_me. ##
15954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15958 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15961 # The HP-UX ksh and POSIX shell print the target directory to stdout
15962 # if CDPATH is set.
15963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15965 sed_quote_subst='$sed_quote_subst'
15966 double_quote_subst='$double_quote_subst'
15967 delay_variable_subst='$delay_variable_subst'
15968 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15969 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15970 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15971 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15972 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15973 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15974 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15975 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15976 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15977 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15978 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15979 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15980 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15981 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15982 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15983 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15984 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15985 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15986 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15987 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15988 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15989 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15990 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15991 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15992 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15993 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15994 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15995 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15996 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15997 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15998 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15999 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16000 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16001 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16002 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16003 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16004 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16005 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16006 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16007 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16008 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16009 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16010 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16011 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16012 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16013 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16014 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16015 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16016 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16017 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16018 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16019 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16020 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16021 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16022 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16023 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16024 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"`'
16025 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16026 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16027 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16028 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16029 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16030 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16031 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16032 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16033 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16034 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16035 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16036 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16037 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16038 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16039 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16040 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16041 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16042 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16043 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16044 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16045 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16046 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16047 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16048 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16049 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16050 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16051 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16052 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16053 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16054 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16055 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16056 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16057 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16058 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16059 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16060 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16061 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16062 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16063 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16064 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16065 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16066 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16067 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16068 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16069 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16070 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16071 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16072 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16073 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16074 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16075 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16076 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16077 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16078 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16079 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16080 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16081 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16082 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16083 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16084 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16085 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16086 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16087 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16088 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16089 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16090 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16091 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16092 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16093 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16094 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16095 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16096 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16097 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16098 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16099 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16100 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16101 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16102 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16103 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16104 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
16105 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
16106 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
16107 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
16108 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
16109 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
16110 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
16111 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
16112 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
16113 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
16114 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
16115 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
16116 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
16117 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
16118 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
16119 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
16120 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
16121 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
16122 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
16123 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
16124 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
16125 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
16126 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
16127 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
16128 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
16129 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
16130 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
16131 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
16132 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
16133 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
16134 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
16135 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
16136 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
16137 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
16138 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
16139 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
16140 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
16141 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
16142 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
16143 postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
16144 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
16145 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
16146 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
16147 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
16148 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
16149 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
16150 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
16151 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
16154 LTCFLAGS='$LTCFLAGS'
16155 compiler='$compiler_DEFAULT'
16157 # A function that is used when there is no print builtin or printf.
16158 func_fallback_echo ()
16160 eval 'cat <<_LTECHO_EOF
16165 # Quote evaled strings.
16180 deplibs_check_method \
16185 sharedlib_from_linklib_cmd \
16188 archiver_list_spec \
16194 lt_cv_sys_global_symbol_pipe \
16195 lt_cv_sys_global_symbol_to_cdecl \
16196 lt_cv_sys_global_symbol_to_c_name_address \
16197 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16198 nm_file_list_spec \
16199 lt_prog_compiler_no_builtin_flag \
16200 lt_prog_compiler_pic \
16201 lt_prog_compiler_wl \
16202 lt_prog_compiler_static \
16203 lt_cv_prog_compiler_c_o \
16212 export_dynamic_flag_spec \
16213 whole_archive_flag_spec \
16214 compiler_needs_object \
16216 allow_undefined_flag \
16217 no_undefined_flag \
16218 hardcode_libdir_flag_spec \
16219 hardcode_libdir_separator \
16223 variables_saved_for_relink \
16225 library_names_spec \
16227 install_override_mode \
16231 compiler_lib_search_dirs \
16236 compiler_lib_search_path \
16240 lt_prog_compiler_no_builtin_flag_FC \
16241 lt_prog_compiler_pic_FC \
16242 lt_prog_compiler_wl_FC \
16243 lt_prog_compiler_static_FC \
16244 lt_cv_prog_compiler_c_o_FC \
16245 export_dynamic_flag_spec_FC \
16246 whole_archive_flag_spec_FC \
16247 compiler_needs_object_FC \
16249 allow_undefined_flag_FC \
16250 no_undefined_flag_FC \
16251 hardcode_libdir_flag_spec_FC \
16252 hardcode_libdir_separator_FC \
16253 exclude_expsyms_FC \
16254 include_expsyms_FC \
16255 file_list_spec_FC \
16256 compiler_lib_search_dirs_FC \
16257 predep_objects_FC \
16258 postdep_objects_FC \
16261 compiler_lib_search_path_FC; do
16262 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16263 *[\\\\\\\`\\"\\\$]*)
16264 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16267 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16272 # Double-quote double-evaled strings.
16273 for var in reload_cmds \
16274 old_postinstall_cmds \
16275 old_postuninstall_cmds \
16277 extract_expsyms_cmds \
16278 old_archive_from_new_cmds \
16279 old_archive_from_expsyms_cmds \
16281 archive_expsym_cmds \
16283 module_expsym_cmds \
16284 export_symbols_cmds \
16288 postuninstall_cmds \
16290 sys_lib_search_path_spec \
16291 sys_lib_dlsearch_path_spec \
16293 old_archive_cmds_FC \
16294 old_archive_from_new_cmds_FC \
16295 old_archive_from_expsyms_cmds_FC \
16297 archive_expsym_cmds_FC \
16299 module_expsym_cmds_FC \
16300 export_symbols_cmds_FC \
16302 postlink_cmds_FC; do
16303 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16304 *[\\\\\\\`\\"\\\$]*)
16305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16313 ac_aux_dir='$ac_aux_dir'
16314 xsi_shell='$xsi_shell'
16315 lt_shell_append='$lt_shell_append'
16317 # See if we are running on zsh, and set the options which allow our
16318 # commands through without removal of \ escapes INIT.
16319 if test -n "\${ZSH_VERSION+set}" ; then
16320 setopt NO_GLOB_SUBST
16326 TIMESTAMP='$TIMESTAMP'
16337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16339 # Handling of arguments.
16340 for ac_config_target in $ac_config_targets
16342 case $ac_config_target in
16343 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
16344 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16345 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16346 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16348 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16353 # If the user did not use the arguments to specify the items to instantiate,
16354 # then the envvar interface is used. Set only those that are not.
16355 # We use the long form for the default assignment because of an extremely
16356 # bizarre bug on SunOS 4.1.3.
16357 if $ac_need_defaults; then
16358 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16359 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16360 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16363 # Have a temporary directory for convenience. Make it in the build tree
16364 # simply because there is no reason against having it here, and in addition,
16365 # creating and moving files from /tmp can sometimes cause problems.
16366 # Hook for its removal unless debugging.
16367 # Note that there is a small window in which the directory will not be cleaned:
16368 # after its creation but before its name has been assigned to `$tmp'.
16372 trap 'exit_status=$?
16373 : "${ac_tmp:=$tmp}"
16374 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16376 trap 'as_fn_exit 1' 1 2 13 15
16378 # Create a (secure) tmp directory for tmp files.
16381 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16385 tmp=./conf$$-$RANDOM
16386 (umask 077 && mkdir "$tmp")
16387 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16390 # Set up the scripts for CONFIG_FILES section.
16391 # No need to generate them if there are no CONFIG_FILES.
16392 # This happens for instance with `./config.status config.h'.
16393 if test -n "$CONFIG_FILES"; then
16396 ac_cr=`echo X | tr X '\015'`
16397 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16398 # But we know of no other shell where ac_cr would be empty at this
16399 # point, so we can use a bashism as a fallback.
16400 if test "x$ac_cr" = x; then
16401 eval ac_cr=\$\'\\r\'
16403 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16404 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16407 ac_cs_awk_cr=$ac_cr
16410 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16415 echo "cat >conf$$subs.awk <<_ACEOF" &&
16416 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16418 } >conf$$subs.sh ||
16419 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16420 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16422 for ac_last_try in false false false false false :; do
16423 . ./conf$$subs.sh ||
16424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16426 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16427 if test $ac_delim_n = $ac_delim_num; then
16429 elif $ac_last_try; then
16430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16435 rm -f conf$$subs.sh
16437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16438 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16442 s/^/S["/; s/!.*/"]=/
16452 s/\(.\{148\}\)..*/\1/
16454 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16459 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16466 s/\(.\{148\}\)..*/\1/
16468 s/["\\]/\\&/g; s/^/"/; s/$/"/
16472 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16477 ' <conf$$subs.awk | sed '
16482 ' >>$CONFIG_STATUS || ac_write_fail=1
16483 rm -f conf$$subs.awk
16484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16486 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16487 for (key in S) S_is_set[key] = 1
16493 nfields = split(line, field, "@")
16495 len = length(field[1])
16496 for (i = 2; i < nfields; i++) {
16498 keylen = length(key)
16499 if (S_is_set[key]) {
16501 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16502 len += length(value) + length(field[++i])
16513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16514 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16515 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16518 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16519 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16522 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16523 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16524 # trailing colons and then remove the whole line if VPATH becomes empty
16525 # (actually we leave an empty line to preserve line numbers).
16526 if test "x$srcdir" = x.; then
16527 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16546 fi # test -n "$CONFIG_FILES"
16548 # Set up the scripts for CONFIG_HEADERS section.
16549 # No need to generate them if there are no CONFIG_HEADERS.
16550 # This happens for instance with `./config.status Makefile'.
16551 if test -n "$CONFIG_HEADERS"; then
16552 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16556 # Transform confdefs.h into an awk script `defines.awk', embedded as
16557 # here-document in config.status, that substitutes the proper values into
16558 # config.h.in to produce config.h.
16560 # Create a delimiter string that does not exist in confdefs.h, to ease
16561 # handling of long lines.
16563 for ac_last_try in false false :; do
16564 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16565 if test -z "$ac_tt"; then
16567 elif $ac_last_try; then
16568 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16574 # For the awk script, D is an array of macro values keyed by name,
16575 # likewise P contains macro parameters if any. Preserve backslash
16576 # newline sequences.
16578 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16580 s/.\{148\}/&'"$ac_delim"'/g
16583 s/^[ ]*#[ ]*define[ ][ ]*/ /
16590 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16592 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16596 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16597 D["\1"]=" \3\\\\\\n"\\/p
16599 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16604 s/.\{148\}/&'"$ac_delim"'/g
16609 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16612 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16614 ' <confdefs.h | sed '
16615 s/'"$ac_delim"'/"\\\
16616 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16619 for (key in D) D_is_set[key] = 1
16622 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16624 split(line, arg, " ")
16625 if (arg[1] == "#") {
16629 defundef = substr(arg[1], 2)
16632 split(mac1, mac2, "(") #)
16634 prefix = substr(line, 1, index(line, defundef) - 1)
16635 if (D_is_set[macro]) {
16636 # Preserve the white space surrounding the "#".
16637 print prefix "define", macro P[macro] D[macro]
16640 # Replace #undef with comments. This is necessary, for example,
16641 # in the case of _POSIX_SOURCE, which is predefined and required
16642 # on some systems where configure will not decide to define it.
16643 if (defundef == "undef") {
16644 print "/*", prefix defundef, macro, "*/"
16652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16654 fi # test -n "$CONFIG_HEADERS"
16657 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16662 :[FHLC]) ac_mode=$ac_tag; continue;;
16664 case $ac_mode$ac_tag in
16666 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16667 :[FH]-) ac_tag=-:-;;
16668 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16685 -) ac_f="$ac_tmp/stdin";;
16686 *) # Look for the file first in the build tree, then in the source tree
16687 # (if the path is not absolute). The absolute path cannot be DOS-style,
16688 # because $ac_f cannot contain `:'.
16692 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16694 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16696 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16697 as_fn_append ac_file_inputs " '$ac_f'"
16700 # Let's still pretend it is `configure' which instantiates (i.e., don't
16701 # use $as_me), people would be surprised to read:
16702 # /* config.h. Generated by config.status. */
16703 configure_input='Generated from '`
16704 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16706 if test x"$ac_file" != x-; then
16707 configure_input="$ac_file. $configure_input"
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16709 $as_echo "$as_me: creating $ac_file" >&6;}
16711 # Neutralize special characters interpreted by sed in replacement strings.
16712 case $configure_input in #(
16713 *\&* | *\|* | *\\* )
16714 ac_sed_conf_input=`$as_echo "$configure_input" |
16715 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16716 *) ac_sed_conf_input=$configure_input;;
16720 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16726 ac_dir=`$as_dirname -- "$ac_file" ||
16727 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16728 X"$ac_file" : 'X\(//\)[^/]' \| \
16729 X"$ac_file" : 'X\(//\)$' \| \
16730 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16731 $as_echo X"$ac_file" |
16732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16736 /^X\(\/\/\)[^/].*/{
16749 as_dir="$ac_dir"; as_fn_mkdir_p
16753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16755 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16756 # A ".." for each directory in $ac_dir_suffix.
16757 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16758 case $ac_top_builddir_sub in
16759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16763 ac_abs_top_builddir=$ac_pwd
16764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16765 # for backward compatibility:
16766 ac_top_builddir=$ac_top_build_prefix
16769 .) # We are building in place.
16771 ac_top_srcdir=$ac_top_builddir_sub
16772 ac_abs_top_srcdir=$ac_pwd ;;
16773 [\\/]* | ?:[\\/]* ) # Absolute name.
16774 ac_srcdir=$srcdir$ac_dir_suffix;
16775 ac_top_srcdir=$srcdir
16776 ac_abs_top_srcdir=$srcdir ;;
16777 *) # Relative name.
16778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16779 ac_top_srcdir=$ac_top_build_prefix$srcdir
16780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16792 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16793 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16795 ac_MKDIR_P=$MKDIR_P
16797 [\\/$]* | ?:[\\/]* ) ;;
16798 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16803 # If the template does not know about datarootdir, expand it.
16804 # FIXME: This hack should be removed a few years after 2.60.
16805 ac_datarootdir_hack=; ac_datarootdir_seen=
16816 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16817 *datarootdir*) ac_datarootdir_seen=yes;;
16818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16820 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16823 ac_datarootdir_hack='
16824 s&@datadir@&$datadir&g
16825 s&@docdir@&$docdir&g
16826 s&@infodir@&$infodir&g
16827 s&@localedir@&$localedir&g
16828 s&@mandir@&$mandir&g
16829 s&\\\${datarootdir}&$datarootdir&g' ;;
16833 # Neutralize VPATH when `$srcdir' = `.'.
16834 # Shell code in configure.ac might set extrasub.
16835 # FIXME: do we really want to maintain this feature?
16836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16837 ac_sed_extra="$ac_vpsub
16840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16843 s|@configure_input@|$ac_sed_conf_input|;t t
16844 s&@top_builddir@&$ac_top_builddir_sub&;t t
16845 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16846 s&@srcdir@&$ac_srcdir&;t t
16847 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16848 s&@top_srcdir@&$ac_top_srcdir&;t t
16849 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16850 s&@builddir@&$ac_builddir&;t t
16851 s&@abs_builddir@&$ac_abs_builddir&;t t
16852 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16853 s&@INSTALL@&$ac_INSTALL&;t t
16854 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16855 $ac_datarootdir_hack
16857 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16858 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16860 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16861 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16862 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16863 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16865 which seems to be undefined. Please make sure it is defined" >&5
16866 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16867 which seems to be undefined. Please make sure it is defined" >&2;}
16869 rm -f "$ac_tmp/stdin"
16871 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16872 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16880 if test x"$ac_file" != x-; then
16882 $as_echo "/* $configure_input */" \
16883 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16884 } >"$ac_tmp/config.h" \
16885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16886 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16888 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16891 mv "$ac_tmp/config.h" "$ac_file" \
16892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16895 $as_echo "/* $configure_input */" \
16896 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16897 || as_fn_error $? "could not create -" "$LINENO" 5
16899 # Compute "$ac_file"'s index in $config_headers.
16902 for _am_header in $config_headers :; do
16903 case $_am_header in
16904 $_am_arg | $_am_arg:* )
16907 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16910 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16911 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16912 X"$_am_arg" : 'X\(//\)[^/]' \| \
16913 X"$_am_arg" : 'X\(//\)$' \| \
16914 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16915 $as_echo X"$_am_arg" |
16916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16920 /^X\(\/\/\)[^/].*/{
16932 s/.*/./; q'`/stamp-h$_am_stamp_count
16935 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16936 $as_echo "$as_me: executing $ac_file commands" >&6;}
16941 case $ac_file$ac_mode in
16942 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16943 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16944 # are listed without --file. Let's play safe and only enable the eval
16945 # if we detect the quoting.
16946 case $CONFIG_FILES in
16947 *\'*) eval set x "$CONFIG_FILES" ;;
16948 *) set x $CONFIG_FILES ;;
16953 # Strip MF so we end up with the name of the file.
16954 mf=`echo "$mf" | sed -e 's/:.*$//'`
16955 # Check whether this is an Automake generated Makefile or not.
16956 # We used to match only the files named `Makefile.in', but
16957 # some people rename them; so instead we look at the file content.
16958 # Grep'ing the first line is not enough: some people post-process
16959 # each Makefile.in and add a new line on top of each file to say so.
16960 # Grep'ing the whole file is not good either: AIX grep has a line
16961 # limit of 2048, but all sed's we know have understand at least 4000.
16962 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16963 dirpart=`$as_dirname -- "$mf" ||
16964 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16965 X"$mf" : 'X\(//\)[^/]' \| \
16966 X"$mf" : 'X\(//\)$' \| \
16967 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16973 /^X\(\/\/\)[^/].*/{
16989 # Extract the definition of DEPDIR, am__include, and am__quote
16990 # from the Makefile without running `make'.
16991 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16992 test -z "$DEPDIR" && continue
16993 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16994 test -z "am__include" && continue
16995 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16996 # When using ansi2knr, U may be empty or an underscore; expand it
16997 U=`sed -n 's/^U = //p' < "$mf"`
16998 # Find all dependency output files, they are included files with
16999 # $(DEPDIR) in their names. We invoke sed twice because it is the
17000 # simplest approach to changing $(DEPDIR) to its actual value in the
17002 for file in `sed -n "
17003 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17004 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17005 # Make sure the directory exists.
17006 test -f "$dirpart/$file" && continue
17007 fdir=`$as_dirname -- "$file" ||
17008 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17009 X"$file" : 'X\(//\)[^/]' \| \
17010 X"$file" : 'X\(//\)$' \| \
17011 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17012 $as_echo X"$file" |
17013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17017 /^X\(\/\/\)[^/].*/{
17030 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17031 # echo "creating $dirpart/$file"
17032 echo '# dummy' > "$dirpart/$file"
17039 # See if we are running on zsh, and set the options which allow our
17040 # commands through without removal of \ escapes.
17041 if test -n "${ZSH_VERSION+set}" ; then
17042 setopt NO_GLOB_SUBST
17045 cfgfile="${ofile}T"
17046 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17049 cat <<_LT_EOF >> "$cfgfile"
17052 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17053 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17055 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17057 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17058 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17060 # Written by Gordon Matzigkeit, 1996
17062 # This file is part of GNU Libtool.
17064 # GNU Libtool is free software; you can redistribute it and/or
17065 # modify it under the terms of the GNU General Public License as
17066 # published by the Free Software Foundation; either version 2 of
17067 # the License, or (at your option) any later version.
17069 # As a special exception to the GNU General Public License,
17070 # if you distribute this file as part of a program or library that
17071 # is built using GNU Libtool, you may include this file under the
17072 # same distribution terms that you use for the rest of that program.
17074 # GNU Libtool is distributed in the hope that it will be useful,
17075 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17076 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17077 # GNU General Public License for more details.
17079 # You should have received a copy of the GNU General Public License
17080 # along with GNU Libtool; see the file COPYING. If not, a copy
17081 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17082 # obtained by writing to the Free Software Foundation, Inc.,
17083 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17086 # The names of the tagged configurations supported by this script.
17087 available_tags="FC "
17089 # ### BEGIN LIBTOOL CONFIG
17091 # Which release of libtool.m4 was used?
17092 macro_version=$macro_version
17093 macro_revision=$macro_revision
17095 # Whether or not to build shared libraries.
17096 build_libtool_libs=$enable_shared
17098 # Whether or not to build static libraries.
17099 build_old_libs=$enable_static
17101 # What type of objects to build.
17104 # Whether or not to optimize for fast installation.
17105 fast_install=$enable_fast_install
17107 # Shell to use when invoking shell scripts.
17110 # An echo program that protects backslashes.
17113 # The PATH separator for the build system.
17114 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17117 host_alias=$host_alias
17121 # The build system.
17122 build_alias=$build_alias
17126 # A sed program that does not truncate output.
17129 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17130 Xsed="\$SED -e 1s/^X//"
17132 # A grep program that handles long lines.
17138 # A literal string matcher.
17141 # A BSD- or MS-compatible name lister.
17144 # Whether we need soft or hard links.
17147 # What is the maximum length of a command?
17148 max_cmd_len=$max_cmd_len
17150 # Object file suffix (normally "o").
17153 # Executable file suffix (normally "").
17156 # whether the shell understands "unset".
17159 # turn spaces into newlines.
17162 # turn newlines into spaces.
17165 # convert \$build file names to \$host format.
17166 to_host_file_cmd=$lt_cv_to_host_file_cmd
17168 # convert \$build files to toolchain format.
17169 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17171 # An object symbol dumper.
17172 OBJDUMP=$lt_OBJDUMP
17174 # Method to check whether dependent libraries are shared objects.
17175 deplibs_check_method=$lt_deplibs_check_method
17177 # Command to use when deplibs_check_method = "file_magic".
17178 file_magic_cmd=$lt_file_magic_cmd
17180 # How to find potential files when deplibs_check_method = "file_magic".
17181 file_magic_glob=$lt_file_magic_glob
17183 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17184 want_nocaseglob=$lt_want_nocaseglob
17186 # DLL creation program.
17187 DLLTOOL=$lt_DLLTOOL
17189 # Command to associate shared and link libraries.
17190 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17195 # Flags to create an archive.
17196 AR_FLAGS=$lt_AR_FLAGS
17198 # How to feed a file listing to the archiver.
17199 archiver_list_spec=$lt_archiver_list_spec
17201 # A symbol stripping program.
17204 # Commands used to install an old-style archive.
17206 old_postinstall_cmds=$lt_old_postinstall_cmds
17207 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17209 # Whether to use a lock for old archive extraction.
17210 lock_old_archive_extraction=$lock_old_archive_extraction
17215 # LTCC compiler flags.
17216 LTCFLAGS=$lt_CFLAGS
17218 # Take the output of nm and produce a listing of raw symbols and C names.
17219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17221 # Transform the output of nm in a proper C declaration.
17222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17224 # Transform the output of nm in a C name address pair.
17225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17227 # Transform the output of nm in a C name address pair when lib prefix is needed.
17228 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17230 # Specify filename containing input files for \$NM.
17231 nm_file_list_spec=$lt_nm_file_list_spec
17233 # The root where to search for dependent libraries,and in which our libraries should be installed.
17234 lt_sysroot=$lt_sysroot
17236 # The name of the directory that contains temporary libtool files.
17239 # Used to examine libraries when file_magic_cmd begins with "file".
17240 MAGIC_CMD=$MAGIC_CMD
17242 # Must we lock files when doing compilation?
17243 need_locks=$lt_need_locks
17246 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17248 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17249 DSYMUTIL=$lt_DSYMUTIL
17251 # Tool to change global to local symbols on Mac OS X.
17254 # Tool to manipulate fat objects and archives on Mac OS X.
17257 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17260 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17261 OTOOL64=$lt_OTOOL64
17263 # Old archive suffix (normally "a").
17266 # Shared library suffix (normally ".so").
17267 shrext_cmds=$lt_shrext_cmds
17269 # The commands to extract the exported symbol list from a shared archive.
17270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17272 # Variables whose values should be saved in libtool wrapper scripts and
17273 # restored at link time.
17274 variables_saved_for_relink=$lt_variables_saved_for_relink
17276 # Do we need the "lib" prefix for modules?
17277 need_lib_prefix=$need_lib_prefix
17279 # Do we need a version for libraries?
17280 need_version=$need_version
17282 # Library versioning type.
17283 version_type=$version_type
17285 # Shared library runtime path variable.
17286 runpath_var=$runpath_var
17288 # Shared library path variable.
17289 shlibpath_var=$shlibpath_var
17291 # Is shlibpath searched before the hard-coded library search path?
17292 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17294 # Format of library name prefix.
17295 libname_spec=$lt_libname_spec
17297 # List of archive names. First name is the real one, the rest are links.
17298 # The last name is the one that the linker finds with -lNAME
17299 library_names_spec=$lt_library_names_spec
17301 # The coded name of the library, if different from the real name.
17302 soname_spec=$lt_soname_spec
17304 # Permission mode override for installation of shared libraries.
17305 install_override_mode=$lt_install_override_mode
17307 # Command to use after installation of a shared archive.
17308 postinstall_cmds=$lt_postinstall_cmds
17310 # Command to use after uninstallation of a shared archive.
17311 postuninstall_cmds=$lt_postuninstall_cmds
17313 # Commands used to finish a libtool library installation in a directory.
17314 finish_cmds=$lt_finish_cmds
17316 # As "finish_cmds", except a single script fragment to be evaled but
17318 finish_eval=$lt_finish_eval
17320 # Whether we should hardcode library paths into libraries.
17321 hardcode_into_libs=$hardcode_into_libs
17323 # Compile-time system search path for libraries.
17324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17326 # Run-time system search path for libraries.
17327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17329 # Whether dlopen is supported.
17330 dlopen_support=$enable_dlopen
17332 # Whether dlopen of programs is supported.
17333 dlopen_self=$enable_dlopen_self
17335 # Whether dlopen of statically linked programs is supported.
17336 dlopen_self_static=$enable_dlopen_self_static
17338 # Commands to strip libraries.
17339 old_striplib=$lt_old_striplib
17340 striplib=$lt_striplib
17343 # The linker used to build libraries.
17346 # How to create reloadable object files.
17347 reload_flag=$lt_reload_flag
17348 reload_cmds=$lt_reload_cmds
17350 # Commands used to build an old-style archive.
17351 old_archive_cmds=$lt_old_archive_cmds
17353 # A language specific compiler.
17356 # Is the compiler the GNU compiler?
17359 # Compiler flag to turn off builtin functions.
17360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17362 # Additional compiler flags for building library objects.
17363 pic_flag=$lt_lt_prog_compiler_pic
17365 # How to pass a linker flag through the compiler.
17366 wl=$lt_lt_prog_compiler_wl
17368 # Compiler flag to prevent dynamic linking.
17369 link_static_flag=$lt_lt_prog_compiler_static
17371 # Does compiler simultaneously support -c and -o options?
17372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17374 # Whether or not to add -lc for building shared libraries.
17375 build_libtool_need_lc=$archive_cmds_need_lc
17377 # Whether or not to disallow shared libs when runtime libs are static.
17378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17380 # Compiler flag to allow reflexive dlopens.
17381 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17383 # Compiler flag to generate shared objects directly from archives.
17384 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17386 # Whether the compiler copes with passing no objects directly.
17387 compiler_needs_object=$lt_compiler_needs_object
17389 # Create an old-style archive from a shared archive.
17390 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17392 # Create a temporary old-style archive to link instead of a shared archive.
17393 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17395 # Commands used to build a shared archive.
17396 archive_cmds=$lt_archive_cmds
17397 archive_expsym_cmds=$lt_archive_expsym_cmds
17399 # Commands used to build a loadable module if different from building
17400 # a shared archive.
17401 module_cmds=$lt_module_cmds
17402 module_expsym_cmds=$lt_module_expsym_cmds
17404 # Whether we are building with GNU ld or not.
17405 with_gnu_ld=$lt_with_gnu_ld
17407 # Flag that allows shared libraries with undefined symbols to be built.
17408 allow_undefined_flag=$lt_allow_undefined_flag
17410 # Flag that enforces no undefined symbols.
17411 no_undefined_flag=$lt_no_undefined_flag
17413 # Flag to hardcode \$libdir into a binary during linking.
17414 # This must work even if \$libdir does not exist
17415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17417 # Whether we need a single "-rpath" flag with a separated argument.
17418 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17420 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17421 # DIR into the resulting binary.
17422 hardcode_direct=$hardcode_direct
17424 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17425 # DIR into the resulting binary and the resulting library dependency is
17426 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17427 # library is relocated.
17428 hardcode_direct_absolute=$hardcode_direct_absolute
17430 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17431 # into the resulting binary.
17432 hardcode_minus_L=$hardcode_minus_L
17434 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17435 # into the resulting binary.
17436 hardcode_shlibpath_var=$hardcode_shlibpath_var
17438 # Set to "yes" if building a shared library automatically hardcodes DIR
17439 # into the library and all subsequent libraries and executables linked
17441 hardcode_automatic=$hardcode_automatic
17443 # Set to yes if linker adds runtime paths of dependent libraries
17444 # to runtime path list.
17445 inherit_rpath=$inherit_rpath
17447 # Whether libtool must link a program against all its dependency libraries.
17448 link_all_deplibs=$link_all_deplibs
17450 # Set to "yes" if exported symbols are required.
17451 always_export_symbols=$always_export_symbols
17453 # The commands to list exported symbols.
17454 export_symbols_cmds=$lt_export_symbols_cmds
17456 # Symbols that should not be listed in the preloaded symbols.
17457 exclude_expsyms=$lt_exclude_expsyms
17459 # Symbols that must always be exported.
17460 include_expsyms=$lt_include_expsyms
17462 # Commands necessary for linking programs (against libraries) with templates.
17463 prelink_cmds=$lt_prelink_cmds
17465 # Commands necessary for finishing linking programs.
17466 postlink_cmds=$lt_postlink_cmds
17468 # Specify filename containing input files.
17469 file_list_spec=$lt_file_list_spec
17471 # How to hardcode a shared library path into an executable.
17472 hardcode_action=$hardcode_action
17474 # The directories searched by this compiler when creating a shared library.
17475 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17477 # Dependencies to place before and after the objects being linked to
17478 # create a shared library.
17479 predep_objects=$lt_predep_objects
17480 postdep_objects=$lt_postdep_objects
17481 predeps=$lt_predeps
17482 postdeps=$lt_postdeps
17484 # The library search path used internally by the compiler when linking
17485 # a shared library.
17486 compiler_lib_search_path=$lt_compiler_lib_search_path
17488 # ### END LIBTOOL CONFIG
17494 cat <<\_LT_EOF >> "$cfgfile"
17495 # AIX sometimes has problems with the GCC collect2 program. For some
17496 # reason, if we set the COLLECT_NAMES environment variable, the problems
17497 # vanish in a puff of smoke.
17498 if test "X${COLLECT_NAMES+set}" != Xset; then
17500 export COLLECT_NAMES
17507 ltmain="$ac_aux_dir/ltmain.sh"
17510 # We use sed instead of cat because bash on DJGPP gets confused if
17511 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17512 # text mode, it properly converts lines to CR/LF. This bash problem
17513 # is reportedly fixed, but why not run on old versions too?
17514 sed '$q' "$ltmain" >> "$cfgfile" \
17515 || (rm -f "$cfgfile"; exit 1)
17517 if test x"$xsi_shell" = xyes; then
17518 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17522 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17523 \ * ) func_dirname_result="${3}" ;;\
17525 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17526 && mv -f "$cfgfile.tmp" "$cfgfile" \
17527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17528 test 0 -eq $? || _lt_function_replace_fail=:
17531 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17534 \ func_basename_result="${1##*/}"\
17535 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17536 && mv -f "$cfgfile.tmp" "$cfgfile" \
17537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17538 test 0 -eq $? || _lt_function_replace_fail=:
17541 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17542 func_dirname_and_basename ()\
17545 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17546 \ * ) func_dirname_result="${3}" ;;\
17548 \ func_basename_result="${1##*/}"\
17549 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17550 && mv -f "$cfgfile.tmp" "$cfgfile" \
17551 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17552 test 0 -eq $? || _lt_function_replace_fail=:
17555 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17558 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17559 \ # positional parameters, so assign one to ordinary parameter first.\
17560 \ func_stripname_result=${3}\
17561 \ func_stripname_result=${func_stripname_result#"${1}"}\
17562 \ func_stripname_result=${func_stripname_result%"${2}"}\
17563 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17564 && mv -f "$cfgfile.tmp" "$cfgfile" \
17565 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17566 test 0 -eq $? || _lt_function_replace_fail=:
17569 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17570 func_split_long_opt ()\
17572 \ func_split_long_opt_name=${1%%=*}\
17573 \ func_split_long_opt_arg=${1#*=}\
17574 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17575 && mv -f "$cfgfile.tmp" "$cfgfile" \
17576 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17577 test 0 -eq $? || _lt_function_replace_fail=:
17580 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17581 func_split_short_opt ()\
17583 \ func_split_short_opt_arg=${1#??}\
17584 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17585 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17586 && mv -f "$cfgfile.tmp" "$cfgfile" \
17587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17588 test 0 -eq $? || _lt_function_replace_fail=:
17591 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17595 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17596 \ *) func_lo2o_result=${1} ;;\
17598 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17599 && mv -f "$cfgfile.tmp" "$cfgfile" \
17600 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17601 test 0 -eq $? || _lt_function_replace_fail=:
17604 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17607 func_xform_result=${1%.*}.lo\
17608 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17609 && mv -f "$cfgfile.tmp" "$cfgfile" \
17610 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17611 test 0 -eq $? || _lt_function_replace_fail=:
17614 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17617 func_arith_result=$(( $* ))\
17618 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17619 && mv -f "$cfgfile.tmp" "$cfgfile" \
17620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17621 test 0 -eq $? || _lt_function_replace_fail=:
17624 sed -e '/^func_len ()$/,/^} # func_len /c\
17627 func_len_result=${#1}\
17628 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17629 && mv -f "$cfgfile.tmp" "$cfgfile" \
17630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17631 test 0 -eq $? || _lt_function_replace_fail=:
17635 if test x"$lt_shell_append" = xyes; then
17636 sed -e '/^func_append ()$/,/^} # func_append /c\
17639 eval "${1}+=\\${2}"\
17640 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17641 && mv -f "$cfgfile.tmp" "$cfgfile" \
17642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17643 test 0 -eq $? || _lt_function_replace_fail=:
17646 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17647 func_append_quoted ()\
17649 \ func_quote_for_eval "${2}"\
17650 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17651 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17652 && mv -f "$cfgfile.tmp" "$cfgfile" \
17653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17654 test 0 -eq $? || _lt_function_replace_fail=:
17657 # Save a `func_append' function call where possible by direct use of '+='
17658 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17659 && mv -f "$cfgfile.tmp" "$cfgfile" \
17660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17661 test 0 -eq $? || _lt_function_replace_fail=:
17663 # Save a `func_append' function call even when '+=' is not available
17664 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17665 && mv -f "$cfgfile.tmp" "$cfgfile" \
17666 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17667 test 0 -eq $? || _lt_function_replace_fail=:
17670 if test x"$_lt_function_replace_fail" = x":"; then
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17672 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17676 mv -f "$cfgfile" "$ofile" ||
17677 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17681 cat <<_LT_EOF >> "$ofile"
17683 # ### BEGIN LIBTOOL TAG CONFIG: FC
17685 # The linker used to build libraries.
17688 # How to create reloadable object files.
17689 reload_flag=$lt_reload_flag_FC
17690 reload_cmds=$lt_reload_cmds_FC
17692 # Commands used to build an old-style archive.
17693 old_archive_cmds=$lt_old_archive_cmds_FC
17695 # A language specific compiler.
17698 # Is the compiler the GNU compiler?
17701 # Compiler flag to turn off builtin functions.
17702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
17704 # Additional compiler flags for building library objects.
17705 pic_flag=$lt_lt_prog_compiler_pic_FC
17707 # How to pass a linker flag through the compiler.
17708 wl=$lt_lt_prog_compiler_wl_FC
17710 # Compiler flag to prevent dynamic linking.
17711 link_static_flag=$lt_lt_prog_compiler_static_FC
17713 # Does compiler simultaneously support -c and -o options?
17714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
17716 # Whether or not to add -lc for building shared libraries.
17717 build_libtool_need_lc=$archive_cmds_need_lc_FC
17719 # Whether or not to disallow shared libs when runtime libs are static.
17720 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
17722 # Compiler flag to allow reflexive dlopens.
17723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
17725 # Compiler flag to generate shared objects directly from archives.
17726 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
17728 # Whether the compiler copes with passing no objects directly.
17729 compiler_needs_object=$lt_compiler_needs_object_FC
17731 # Create an old-style archive from a shared archive.
17732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
17734 # Create a temporary old-style archive to link instead of a shared archive.
17735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
17737 # Commands used to build a shared archive.
17738 archive_cmds=$lt_archive_cmds_FC
17739 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
17741 # Commands used to build a loadable module if different from building
17742 # a shared archive.
17743 module_cmds=$lt_module_cmds_FC
17744 module_expsym_cmds=$lt_module_expsym_cmds_FC
17746 # Whether we are building with GNU ld or not.
17747 with_gnu_ld=$lt_with_gnu_ld_FC
17749 # Flag that allows shared libraries with undefined symbols to be built.
17750 allow_undefined_flag=$lt_allow_undefined_flag_FC
17752 # Flag that enforces no undefined symbols.
17753 no_undefined_flag=$lt_no_undefined_flag_FC
17755 # Flag to hardcode \$libdir into a binary during linking.
17756 # This must work even if \$libdir does not exist
17757 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
17759 # Whether we need a single "-rpath" flag with a separated argument.
17760 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
17762 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17763 # DIR into the resulting binary.
17764 hardcode_direct=$hardcode_direct_FC
17766 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17767 # DIR into the resulting binary and the resulting library dependency is
17768 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17769 # library is relocated.
17770 hardcode_direct_absolute=$hardcode_direct_absolute_FC
17772 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17773 # into the resulting binary.
17774 hardcode_minus_L=$hardcode_minus_L_FC
17776 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17777 # into the resulting binary.
17778 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
17780 # Set to "yes" if building a shared library automatically hardcodes DIR
17781 # into the library and all subsequent libraries and executables linked
17783 hardcode_automatic=$hardcode_automatic_FC
17785 # Set to yes if linker adds runtime paths of dependent libraries
17786 # to runtime path list.
17787 inherit_rpath=$inherit_rpath_FC
17789 # Whether libtool must link a program against all its dependency libraries.
17790 link_all_deplibs=$link_all_deplibs_FC
17792 # Set to "yes" if exported symbols are required.
17793 always_export_symbols=$always_export_symbols_FC
17795 # The commands to list exported symbols.
17796 export_symbols_cmds=$lt_export_symbols_cmds_FC
17798 # Symbols that should not be listed in the preloaded symbols.
17799 exclude_expsyms=$lt_exclude_expsyms_FC
17801 # Symbols that must always be exported.
17802 include_expsyms=$lt_include_expsyms_FC
17804 # Commands necessary for linking programs (against libraries) with templates.
17805 prelink_cmds=$lt_prelink_cmds_FC
17807 # Commands necessary for finishing linking programs.
17808 postlink_cmds=$lt_postlink_cmds_FC
17810 # Specify filename containing input files.
17811 file_list_spec=$lt_file_list_spec_FC
17813 # How to hardcode a shared library path into an executable.
17814 hardcode_action=$hardcode_action_FC
17816 # The directories searched by this compiler when creating a shared library.
17817 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
17819 # Dependencies to place before and after the objects being linked to
17820 # create a shared library.
17821 predep_objects=$lt_predep_objects_FC
17822 postdep_objects=$lt_postdep_objects_FC
17823 predeps=$lt_predeps_FC
17824 postdeps=$lt_postdeps_FC
17826 # The library search path used internally by the compiler when linking
17827 # a shared library.
17828 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
17830 # ### END LIBTOOL TAG CONFIG: FC
17841 ac_clean_files=$ac_clean_files_save
17843 test $ac_write_fail = 0 ||
17844 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17847 # configure is writing to config.log, and then calls config.status.
17848 # config.status does its own redirection, appending to config.log.
17849 # Unfortunately, on DOS this fails, as config.log is still kept open
17850 # by configure, so config.status won't be able to write to it; its
17851 # output is simply discarded. So we exec the FD to /dev/null,
17852 # effectively closing config.log, so it can be properly (re)opened and
17853 # appended to by config.status. When coming back to configure, we
17854 # need to make the FD available again.
17855 if test "$no_create" != yes; then
17857 ac_config_status_args=
17858 test "$silent" = yes &&
17859 ac_config_status_args="$ac_config_status_args --quiet"
17861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17864 # would make configure fail if this is the last instruction.
17865 $ac_cs_success || as_fn_exit 1
17867 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17869 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}