2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for yaml 0.1.1.
5 # Report bugs to <http://pyyaml.org/newticket?component=libyaml>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
730 PACKAGE_TARNAME='yaml'
731 PACKAGE_VERSION='0.1.1'
732 PACKAGE_STRING='yaml 0.1.1'
733 PACKAGE_BUGREPORT='http://pyyaml.org/newticket?component=libyaml'
735 # Factoring default headers for most tests.
736 ac_includes_default="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
821 INSTALL_STRIP_PROGRAM
881 ac_precious_vars='build_alias
898 # Initialize some variables set by options.
900 ac_init_version=false
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
910 program_transform_name=s,x,x,
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1005 eval enable_$ac_feature=no ;;
1007 -docdir | --docdir | --docdi | --doc | --do)
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1017 -enable-* | --enable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=\$ac_optarg ;;
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 htmldir=$ac_optarg ;;
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1069 -libdir | --libdir | --libdi | --libd)
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1160 -psdir | --psdir | --psdi | --psd | --ps)
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 sbindir=$ac_optarg ;;
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 sharedstatedir=$ac_optarg ;;
1186 -site | --site | --sit)
1188 -site=* | --site=* | --sit=*)
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1215 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid package name: $ac_package" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221 eval with_$ac_package=\$ac_optarg ;;
1223 -without-* | --without-*)
1224 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=no ;;
1233 # Obsolete; use --with-x.
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) { echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1281 # Be sure to have absolute directory names.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293 { (exit 1); exit 1; }; }
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { echo "$as_me: error: Working directory cannot be determined" >&2
1324 { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { echo "$as_me: error: pwd does not report name of working directory" >&2
1327 { (exit 1); exit 1; }; }
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$0" ||
1335 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$0" : 'X\(//\)[^/]' \| \
1337 X"$0" : 'X\(//\)$' \| \
1338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367 { (exit 1); exit 1; }; }
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1372 { (exit 1); exit 1; }; }
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures yaml 0.1.1 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/yaml]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of yaml 0.1.1:";;
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --disable-dependency-tracking speeds up one-time build
1476 --enable-dependency-tracking do not reject slow dependency extractors
1477 --enable-shared[=PKGS] build shared libraries [default=yes]
1478 --enable-static[=PKGS] build static libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-pic try to use only PIC/non-PIC objects [default=use
1489 --with-tags[=TAGS] include additional configurations [automatic]
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
1503 F77 Fortran 77 compiler command
1504 FFLAGS Fortran 77 compiler flags
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1509 Report bugs to <http://pyyaml.org/newticket?component=libyaml>.
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1537 .) # We are building in place.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1570 yaml configure 0.1.1
1571 generated by GNU Autoconf 2.61
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1584 It was created by yaml $as_me 0.1.1, which was
1585 generated by GNU Autoconf 2.61. Invocation command line was
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1645 ac_must_keep_next=false
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674 -* ) ac_must_keep_next=true ;;
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1701 # The following way of writing the cache mishandles newlines in values,
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1738 for ac_var in $ac_subst_vars
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 echo "$ac_var='\''$ac_val'\''"
1748 if test -n "$ac_subst_files"; then
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1755 for ac_var in $ac_subst_files
1757 eval ac_val=\$$ac_var
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 echo "$ac_var='\''$ac_val'\''"
1766 if test -s confdefs.h; then
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1792 # Predefined preprocessor variables.
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1857 # Check that the precious variables saved in the cache have kept the same
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938 for ac_dir in config "$srcdir"/config; do
1939 if test -f "$ac_dir/install-sh"; then
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 elif test -f "$ac_dir/install.sh"; then
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 elif test -f "$ac_dir/shtool"; then
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 ac_config_headers="$ac_config_headers config.h"
1970 am__api_version="1.9"
1971 # Find a good install program. We prefer a C program (faster),
1972 # so one script is as good as another. But avoid the broken or
1973 # incompatible versions:
1974 # SysV /etc/install, /usr/sbin/install
1975 # SunOS /usr/etc/install
1976 # IRIX /sbin/install
1978 # AmigaOS /C/install, which installs bootblocks on floppy discs
1979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1982 # OS/2's system install, which has a completely different semantic
1983 # ./install, which can be erroneously created by make from ./install.sh.
1984 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1985 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1986 if test -z "$INSTALL"; then
1987 if test "${ac_cv_path_install+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 test -z "$as_dir" && as_dir=.
1995 # Account for people who put trailing slashes in PATH elements.
1997 ./ | .// | /cC/* | \
1998 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1999 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002 # OSF1 and SCO ODT 3.0 have their own names for install.
2003 # Don't use installbsd from OSF since it installs stuff as root
2005 for ac_prog in ginstall scoinst install; do
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2008 if test $ac_prog = install &&
2009 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2010 # AIX install. It has an incompatible calling convention.
2012 elif test $ac_prog = install &&
2013 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2014 # program-specific install script used by HP pwplus--don't use.
2017 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2030 if test "${ac_cv_path_install+set}" = set; then
2031 INSTALL=$ac_cv_path_install
2033 # As a last resort, use the slow shell script. Don't cache a
2034 # value for INSTALL within a source directory, because that will
2035 # break other packages using the cache if that directory is
2036 # removed, or if the value is a relative name.
2037 INSTALL=$ac_install_sh
2040 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2041 echo "${ECHO_T}$INSTALL" >&6; }
2043 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2044 # It thinks the first close brace ends the variable substitution.
2045 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2047 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2049 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2051 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2052 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2055 echo timestamp > conftest.file
2056 # Do `set' in a subshell so we don't clobber the current shell's
2057 # arguments. Must try -L first in case configure is actually a
2058 # symlink; some systems play weird games with the mod time of symlinks
2059 # (eg FreeBSD returns the mod time of the symlink's containing
2062 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2063 if test "$*" = "X"; then
2065 set X `ls -t $srcdir/configure conftest.file`
2068 if test "$*" != "X $srcdir/configure conftest.file" \
2069 && test "$*" != "X conftest.file $srcdir/configure"; then
2071 # If neither matched, then we have a broken ls. This can happen
2072 # if, for instance, CONFIG_SHELL is bash and it inherits a
2073 # broken ls alias from the environment. This has actually
2074 # happened. Such a system could not be considered "sane".
2075 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2076 alias in your environment" >&5
2077 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2078 alias in your environment" >&2;}
2079 { (exit 1); exit 1; }; }
2082 test "$2" = conftest.file
2088 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2089 Check your system clock" >&5
2090 echo "$as_me: error: newly created file is older than distributed files!
2091 Check your system clock" >&2;}
2092 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: result: yes" >&5
2095 echo "${ECHO_T}yes" >&6; }
2096 test "$program_prefix" != NONE &&
2097 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2098 # Use a double $ so make ignores it.
2099 test "$program_suffix" != NONE &&
2100 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2101 # Double any \ or $. echo might interpret backslashes.
2102 # By default was `s,x,x', remove it if useless.
2103 cat <<\_ACEOF >conftest.sed
2104 s/[\\$]/&&/g;s/;s,x,x,$//
2106 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2109 # expand $ac_aux_dir to an absolute path
2110 am_aux_dir=`cd $ac_aux_dir && pwd`
2112 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2113 # Use eval to expand $SHELL
2114 if eval "$MISSING --run true"; then
2115 am_missing_run="$MISSING --run "
2118 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2119 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2122 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2123 # We used to keeping the `.' as first argument, in order to
2124 # allow $(mkdir_p) to be used without argument. As in
2125 # $(mkdir_p) $(somedir)
2126 # where $(somedir) is conditionally defined. However this is wrong
2128 # 1. if the package is installed by a user who cannot write `.'
2129 # make install will fail,
2130 # 2. the above comment should most certainly read
2131 # $(mkdir_p) $(DESTDIR)$(somedir)
2132 # so it does not work when $(somedir) is undefined and
2133 # $(DESTDIR) is not.
2134 # To support the latter case, we have to write
2135 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2136 # so the `.' trick is pointless.
2137 mkdir_p='mkdir -p --'
2139 # On NextStep and OpenStep, the `mkdir' command does not
2140 # recognize any option. It will interpret all options as
2141 # directories to create, and then abort because `.' already
2143 for d in ./-p ./--version;
2145 test -d $d && rmdir $d
2147 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2148 if test -f "$ac_aux_dir/mkinstalldirs"; then
2149 mkdir_p='$(mkinstalldirs)'
2151 mkdir_p='$(install_sh) -d'
2155 for ac_prog in gawk mawk nawk awk
2157 # Extract the first word of "$ac_prog", so it can be a program name with args.
2158 set dummy $ac_prog; ac_word=$2
2159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161 if test "${ac_cv_prog_AWK+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 if test -n "$AWK"; then
2165 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174 ac_cv_prog_AWK="$ac_prog"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 if test -n "$AWK"; then
2186 { echo "$as_me:$LINENO: result: $AWK" >&5
2187 echo "${ECHO_T}$AWK" >&6; }
2189 { echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6; }
2194 test -n "$AWK" && break
2197 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2198 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2199 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2200 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 cat >conftest.make <<\_ACEOF
2206 @echo '@@@%%%=$(MAKE)=@@@%%%'
2208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2209 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2211 eval ac_cv_prog_make_${ac_make}_set=yes;;
2213 eval ac_cv_prog_make_${ac_make}_set=no;;
2217 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2218 { echo "$as_me:$LINENO: result: yes" >&5
2219 echo "${ECHO_T}yes" >&6; }
2222 { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224 SET_MAKE="MAKE=${MAKE-make}"
2227 rm -rf .tst 2>/dev/null
2228 mkdir .tst 2>/dev/null
2229 if test -d .tst; then
2234 rmdir .tst 2>/dev/null
2236 # test to see if srcdir already configured
2237 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2238 test -f $srcdir/config.status; then
2239 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2240 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2241 { (exit 1); exit 1; }; }
2244 # test whether we have cygpath
2245 if test -z "$CYGPATH_W"; then
2246 if (cygpath --version) >/dev/null 2>/dev/null; then
2247 CYGPATH_W='cygpath -w'
2254 # Define the identity of the package.
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE "$PACKAGE"
2264 cat >>confdefs.h <<_ACEOF
2265 #define VERSION "$VERSION"
2268 # Some tools Automake needs.
2270 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2273 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2276 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2279 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2282 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2284 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2286 # Installed binaries are usually stripped using `strip' when the user
2287 # run `make install-strip'. However `strip' might not be the right
2288 # tool to use in cross-compilation environments, therefore Automake
2289 # will honor the `STRIP' environment variable to overrule this program.
2290 if test "$cross_compiling" != no; then
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}strip; ac_word=$2
2294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2296 if test "${ac_cv_prog_STRIP+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 if test -n "$STRIP"; then
2300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 STRIP=$ac_cv_prog_STRIP
2320 if test -n "$STRIP"; then
2321 { echo "$as_me:$LINENO: result: $STRIP" >&5
2322 echo "${ECHO_T}$STRIP" >&6; }
2324 { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2330 if test -z "$ac_cv_prog_STRIP"; then
2332 # Extract the first word of "strip", so it can be a program name with args.
2333 set dummy strip; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$ac_ct_STRIP"; then
2340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_ac_ct_STRIP="strip"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2360 if test -n "$ac_ct_STRIP"; then
2361 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2362 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2368 if test "x$ac_ct_STRIP" = x; then
2371 case $cross_compiling:$ac_tool_warned in
2373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2374 whose name does not start with the host triplet. If you think this
2375 configuration is useful to you, please write to autoconf@gnu.org." >&5
2376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2377 whose name does not start with the host triplet. If you think this
2378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2379 ac_tool_warned=yes ;;
2384 STRIP="$ac_cv_prog_STRIP"
2388 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2390 # We need awk for the "check" target. The system "awk" is bad on
2392 # Always define AMTAR for backward compatibility.
2394 AMTAR=${AMTAR-"${am_missing_run}tar"}
2396 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2403 # Define macro variables for the package version numbers.
2405 cat >>confdefs.h <<\_ACEOF
2406 #define YAML_VERSION_MAJOR 0
2410 cat >>confdefs.h <<\_ACEOF
2411 #define YAML_VERSION_MINOR 1
2415 cat >>confdefs.h <<\_ACEOF
2416 #define YAML_VERSION_PATCH 1
2420 cat >>confdefs.h <<\_ACEOF
2421 #define YAML_VERSION_STRING "0.1.1"
2425 # Define substitutions for the libtool version numbers.
2435 # Note: in order to update checks, run `autoscan` and look through "configure.scan".
2437 # Checks for programs.
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443 if test -n "$ac_tool_prefix"; then
2444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 if test -n "$CC"; then
2473 { echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6; }
2476 { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2482 if test -z "$ac_cv_prog_CC"; then
2484 # Extract the first word of "gcc", so it can be a program name with args.
2485 set dummy gcc; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$ac_ct_CC"; then
2492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 ac_cv_prog_ac_ct_CC="gcc"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2512 if test -n "$ac_ct_CC"; then
2513 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2514 echo "${ECHO_T}$ac_ct_CC" >&6; }
2516 { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2520 if test "x$ac_ct_CC" = x; then
2523 case $cross_compiling:$ac_tool_warned in
2525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2526 whose name does not start with the host triplet. If you think this
2527 configuration is useful to you, please write to autoconf@gnu.org." >&5
2528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2529 whose name does not start with the host triplet. If you think this
2530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2531 ac_tool_warned=yes ;;
2539 if test -z "$CC"; then
2540 if test -n "$ac_tool_prefix"; then
2541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2542 set dummy ${ac_tool_prefix}cc; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_CC="${ac_tool_prefix}cc"
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 if test -n "$CC"; then
2570 { echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6; }
2573 { echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6; }
2580 if test -z "$CC"; then
2581 # Extract the first word of "cc", so it can be a program name with args.
2582 set dummy cc; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2600 ac_prog_rejected=yes
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 if test $ac_prog_rejected = yes; then
2612 # We found a bogon in the path, so make sure we never use it.
2613 set dummy $ac_cv_prog_CC
2615 if test $# != 0; then
2616 # We chose a different compiler from the bogus one.
2617 # However, it has the same basename, so the bogon will be chosen
2618 # first if we set CC to just the basename; use the full file name.
2620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2626 if test -n "$CC"; then
2627 { echo "$as_me:$LINENO: result: $CC" >&5
2628 echo "${ECHO_T}$CC" >&6; }
2630 { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2636 if test -z "$CC"; then
2637 if test -n "$ac_tool_prefix"; then
2638 for ac_prog in cl.exe
2640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_CC+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 if test -n "$CC"; then
2669 { echo "$as_me:$LINENO: result: $CC" >&5
2670 echo "${ECHO_T}$CC" >&6; }
2672 { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2677 test -n "$CC" && break
2680 if test -z "$CC"; then
2682 for ac_prog in cl.exe
2684 # Extract the first word of "$ac_prog", so it can be a program name with args.
2685 set dummy $ac_prog; ac_word=$2
2686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_ac_ct_CC="$ac_prog"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712 if test -n "$ac_ct_CC"; then
2713 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2714 echo "${ECHO_T}$ac_ct_CC" >&6; }
2716 { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2721 test -n "$ac_ct_CC" && break
2724 if test "x$ac_ct_CC" = x; then
2727 case $cross_compiling:$ac_tool_warned in
2729 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2730 whose name does not start with the host triplet. If you think this
2731 configuration is useful to you, please write to autoconf@gnu.org." >&5
2732 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2733 whose name does not start with the host triplet. If you think this
2734 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2735 ac_tool_warned=yes ;;
2744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2745 See \`config.log' for more details." >&5
2746 echo "$as_me: error: no acceptable C compiler found in \$PATH
2747 See \`config.log' for more details." >&2;}
2748 { (exit 1); exit 1; }; }
2750 # Provide some information about the compiler.
2751 echo "$as_me:$LINENO: checking for C compiler version" >&5
2752 ac_compiler=`set X $ac_compile; echo $2`
2753 { (ac_try="$ac_compiler --version >&5"
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compiler --version >&5") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }
2763 { (ac_try="$ac_compiler -v >&5"
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_compiler -v >&5") 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773 { (ac_try="$ac_compiler -V >&5"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compiler -V >&5") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }
2784 cat >conftest.$ac_ext <<_ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2799 ac_clean_files_save=$ac_clean_files
2800 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2801 # Try to create an executable without -o first, disregard a.out.
2802 # It will help us diagnose broken compilers, and finding out an intuition
2804 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2805 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2806 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2808 # List of possible output files, starting from the most likely.
2809 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2810 # only as a last resort. b.out is created by i960 compilers.
2811 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2813 # The IRIX 6 linker writes into existing files which may not be
2814 # executable, retaining their permissions. Remove them first so a
2815 # subsequent execution test works.
2817 for ac_file in $ac_files
2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2821 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2826 if { (ac_try="$ac_link_default"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_link_default") 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; then
2836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2839 # so that the user can short-circuit this test for compilers unknown to
2841 for ac_file in $ac_files ''
2843 test -f "$ac_file" || continue
2845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2848 # We found the default executable, but exeext='' is most
2852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 # We set ac_cv_exeext here because the later test for it is not
2857 # safe: cross compilers may not add the suffix if given an `-o'
2858 # argument, so we may need to know it at that point already.
2859 # Even if this section looks crufty: it has the advantage of
2866 test "$ac_cv_exeext" = no && ac_cv_exeext=
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2874 if test -z "$ac_file"; then
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2878 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2879 See \`config.log' for more details." >&5
2880 echo "$as_me: error: C compiler cannot create executables
2881 See \`config.log' for more details." >&2;}
2882 { (exit 77); exit 77; }; }
2885 ac_exeext=$ac_cv_exeext
2887 # Check that the compiler produces executables we can run. If not, either
2888 # the compiler is broken, or we cross compile.
2889 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2890 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2891 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2892 # If not cross compiling, check that we can run a simple program.
2893 if test "$cross_compiling" != yes; then
2894 if { ac_try='./$ac_file'
2895 { (case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_try") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2906 if test "$cross_compiling" = maybe; then
2909 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details." >&5
2912 echo "$as_me: error: cannot run C compiled programs.
2913 If you meant to cross compile, use \`--host'.
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2919 { echo "$as_me:$LINENO: result: yes" >&5
2920 echo "${ECHO_T}yes" >&6; }
2922 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2923 ac_clean_files=$ac_clean_files_save
2924 # Check that the compiler produces executables we can run. If not, either
2925 # the compiler is broken, or we cross compile.
2926 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2927 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2928 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2929 echo "${ECHO_T}$cross_compiling" >&6; }
2931 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2932 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2933 if { (ac_try="$ac_link"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_link") 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2944 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2945 # work properly (i.e., refer to `conftest.exe'), while it won't with
2947 for ac_file in conftest.exe conftest conftest.*; do
2948 test -f "$ac_file" || continue
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2957 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2964 rm -f conftest$ac_cv_exeext
2965 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2966 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2968 rm -f conftest.$ac_ext
2969 EXEEXT=$ac_cv_exeext
2971 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2972 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2973 if test "${ac_cv_objext+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 cat >conftest.$ac_ext <<_ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2991 rm -f conftest.o conftest.obj
2992 if { (ac_try="$ac_compile"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compile") 2>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; then
3002 for ac_file in conftest.o conftest.obj conftest.*; do
3003 test -f "$ac_file" || continue;
3005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3006 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3014 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3015 See \`config.log' for more details." >&5
3016 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3017 See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }
3021 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3023 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3024 echo "${ECHO_T}$ac_cv_objext" >&6; }
3025 OBJEXT=$ac_cv_objext
3027 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3028 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3029 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3050 rm -f conftest.$ac_objext
3051 if { (ac_try="$ac_compile"
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compile") 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } && {
3064 test -z "$ac_c_werror_flag" ||
3065 test ! -s conftest.err
3066 } && test -s conftest.$ac_objext; then
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3079 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3080 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3081 GCC=`test $ac_compiler_gnu = yes && echo yes`
3082 ac_test_CFLAGS=${CFLAGS+set}
3083 ac_save_CFLAGS=$CFLAGS
3084 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3085 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_cc_g+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 ac_save_c_werror_flag=$ac_c_werror_flag
3090 ac_c_werror_flag=yes
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } && {
3122 test -z "$ac_c_werror_flag" ||
3123 test ! -s conftest.err
3124 } && test -s conftest.$ac_objext; then
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3131 cat >conftest.$ac_ext <<_ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.$ac_objext; then
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 ac_c_werror_flag=$ac_save_c_werror_flag
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } && {
3199 test -z "$ac_c_werror_flag" ||
3200 test ! -s conftest.err
3201 } && test -s conftest.$ac_objext; then
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3219 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3220 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3221 if test "$ac_test_CFLAGS" = set; then
3222 CFLAGS=$ac_save_CFLAGS
3223 elif test $ac_cv_prog_cc_g = yes; then
3224 if test "$GCC" = yes; then
3230 if test "$GCC" = yes; then
3236 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3237 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3238 if test "${ac_cv_prog_cc_c89+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 ac_cv_prog_cc_c89=no
3243 cat >conftest.$ac_ext <<_ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3251 #include <sys/types.h>
3252 #include <sys/stat.h>
3253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3254 struct buf { int x; };
3255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3256 static char *e (p, i)
3262 static char *f (char * (*g) (char **, int), char **p, ...)
3267 s = g (p, va_arg (v,int));
3272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3273 function prototypes and stuff, but not '\xHH' hex character constants.
3274 These don't provoke an error unfortunately, instead are silently treated
3275 as 'x'. The following induces an error, until -std is added to get
3276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3277 array size at least. It's necessary to write '\x00'==0 to get something
3278 that's true only with -std. */
3279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3281 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3282 inside strings and character constants. */
3284 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3286 int test (int i, double x);
3287 struct s1 {int (*f) (int a);};
3288 struct s2 {int (*f) (double a);};
3289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3300 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3303 CC="$ac_save_CC $ac_arg"
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } && {
3318 test -z "$ac_c_werror_flag" ||
3319 test ! -s conftest.err
3320 } && test -s conftest.$ac_objext; then
3321 ac_cv_prog_cc_c89=$ac_arg
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3329 rm -f core conftest.err conftest.$ac_objext
3330 test "x$ac_cv_prog_cc_c89" != "xno" && break
3332 rm -f conftest.$ac_ext
3337 case "x$ac_cv_prog_cc_c89" in
3339 { echo "$as_me:$LINENO: result: none needed" >&5
3340 echo "${ECHO_T}none needed" >&6; } ;;
3342 { echo "$as_me:$LINENO: result: unsupported" >&5
3343 echo "${ECHO_T}unsupported" >&6; } ;;
3345 CC="$CC $ac_cv_prog_cc_c89"
3346 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 DEPDIR="${am__leading_dot}deps"
3358 ac_config_commands="$ac_config_commands depfiles"
3361 am_make=${MAKE-make}
3362 cat > confinc << 'END'
3367 # If we don't find an include directive, just comment out the code.
3368 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3369 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3373 # First try GNU make style include.
3374 echo "include confinc" > confmf
3375 # We grep out `Entering directory' and `Leaving directory'
3376 # messages which can occur if `w' ends up in MAKEFLAGS.
3377 # In particular we don't look at `^make:' because GNU make might
3378 # be invoked under some other name (usually "gmake"), in which
3379 # case it prints its new name instead of `make'.
3380 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3385 # Now try BSD make style include.
3386 if test "$am__include" = "#"; then
3387 echo '.include "confinc"' > confmf
3388 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3389 am__include=.include
3396 { echo "$as_me:$LINENO: result: $_am_result" >&5
3397 echo "${ECHO_T}$_am_result" >&6; }
3398 rm -f confinc confmf
3400 # Check whether --enable-dependency-tracking was given.
3401 if test "${enable_dependency_tracking+set}" = set; then
3402 enableval=$enable_dependency_tracking;
3405 if test "x$enable_dependency_tracking" != xno; then
3406 am_depcomp="$ac_aux_dir/depcomp"
3411 if test "x$enable_dependency_tracking" != xno; then
3422 depcc="$CC" am_compiler_list=
3424 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3426 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3430 # We make a subdir and do the tests there. Otherwise we can end up
3431 # making bogus files that we don't know about and never remove. For
3432 # instance it was reported that on HP-UX the gcc test will end up
3433 # making a dummy file named `D' -- because `-MD' means `put the output
3436 # Copy depcomp to subdir because otherwise we won't find it if we're
3437 # using a relative directory.
3438 cp "$am_depcomp" conftest.dir
3440 # We will build objects and dependencies in a subdirectory because
3441 # it helps to detect inapplicable dependency modes. For instance
3442 # both Tru64's cc and ICC support -MD to output dependencies as a
3443 # side effect of compilation, but ICC will put the dependencies in
3444 # the current directory while Tru64 will put them in the object
3448 am_cv_CC_dependencies_compiler_type=none
3449 if test "$am_compiler_list" = ""; then
3450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3452 for depmode in $am_compiler_list; do
3453 # Setup a source with many dependencies, because some compilers
3454 # like to wrap large dependency lists on column 80 (with \), and
3455 # we should not choose a depcomp mode which is confused by this.
3457 # We need to recreate these files for each test, as the compiler may
3458 # overwrite some of them when testing with obscure command lines.
3459 # This happens at least with the AIX C compiler.
3461 for i in 1 2 3 4 5 6; do
3462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3463 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3464 # Solaris 8's {/usr,}/bin/sh.
3465 touch sub/conftst$i.h
3467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3471 # after this tag, mechanisms are not by side-effect, so they'll
3472 # only be used when explicitly requested
3473 if test "x$enable_dependency_tracking" = xyes; then
3481 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3482 # mode. It turns out that the SunPro C++ compiler does not properly
3483 # handle `-M -o', and we need to detect this.
3484 if depmode=$depmode \
3485 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3487 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3488 >/dev/null 2>conftest.err &&
3489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3490 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3492 # icc doesn't choke on unknown options, it will just issue warnings
3493 # or remarks (even with -Werror). So we grep stderr for any message
3494 # that says an option was ignored or not supported.
3495 # When given -MP, icc 7.0 and 7.1 complain thusly:
3496 # icc: Command line warning: ignoring option '-M'; no argument required
3497 # The diagnosis changed in icc 8.0:
3498 # icc: Command line remark: option '-MP' not supported
3499 if (grep 'ignoring option' conftest.err ||
3500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3501 am_cv_CC_dependencies_compiler_type=$depmode
3510 am_cv_CC_dependencies_compiler_type=none
3514 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3515 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3516 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3521 test "x$enable_dependency_tracking" != xno \
3522 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3524 am__fastdepCC_FALSE='#'
3526 am__fastdepCC_TRUE='#'
3527 am__fastdepCC_FALSE=
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3537 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3538 # On Suns, sometimes $CPP names a directory.
3539 if test -n "$CPP" && test -d "$CPP"; then
3542 if test -z "$CPP"; then
3543 if test "${ac_cv_prog_CPP+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 # Double quotes because CPP needs to be expanded
3547 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3550 for ac_c_preproc_warn_flag in '' yes
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3565 # include <limits.h>
3567 # include <assert.h>
3571 if { (ac_try="$ac_cpp conftest.$ac_ext"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3579 grep -v '^ *+' conftest.er1 >conftest.err
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev/null && {
3584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 # Broken: fails on valid input.
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether nonexistent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3608 if { (ac_try="$ac_cpp conftest.$ac_ext"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } >/dev/null && {
3621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3624 # Broken: success on invalid input.
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 # Passes both tests.
3635 rm -f conftest.err conftest.$ac_ext
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then
3652 { echo "$as_me:$LINENO: result: $CPP" >&5
3653 echo "${ECHO_T}$CPP" >&6; }
3655 for ac_c_preproc_warn_flag in '' yes
3657 # Use a header file that comes with gcc, so configuring glibc
3658 # with a fresh cross-compiler works.
3659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3660 # <limits.h> exists even on freestanding compilers.
3661 # On the NeXT, cc -E runs the code through the compiler's parser,
3662 # not just through cpp. "Syntax error" is here to catch this case.
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3670 # include <limits.h>
3672 # include <assert.h>
3676 if { (ac_try="$ac_cpp conftest.$ac_ext"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3684 grep -v '^ *+' conftest.er1 >conftest.err
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } >/dev/null && {
3689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 # Broken: fails on valid input.
3701 rm -f conftest.err conftest.$ac_ext
3703 # OK, works on sane cases. Now check whether nonexistent headers
3704 # can be detected and how.
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3711 #include <ac_nonexistent.h>
3713 if { (ac_try="$ac_cpp conftest.$ac_ext"
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3721 grep -v '^ *+' conftest.er1 >conftest.err
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } >/dev/null && {
3726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3729 # Broken: success on invalid input.
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 # Passes both tests.
3740 rm -f conftest.err conftest.$ac_ext
3743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3744 rm -f conftest.err conftest.$ac_ext
3745 if $ac_preproc_ok; then
3748 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details." >&5
3750 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3751 See \`config.log' for more details." >&2;}
3752 { (exit 1); exit 1; }; }
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 # Find a good install program. We prefer a C program (faster),
3762 # so one script is as good as another. But avoid the broken or
3763 # incompatible versions:
3764 # SysV /etc/install, /usr/sbin/install
3765 # SunOS /usr/etc/install
3766 # IRIX /sbin/install
3768 # AmigaOS /C/install, which installs bootblocks on floppy discs
3769 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3770 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3771 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3772 # OS/2's system install, which has a completely different semantic
3773 # ./install, which can be erroneously created by make from ./install.sh.
3774 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3775 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3776 if test -z "$INSTALL"; then
3777 if test "${ac_cv_path_install+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir=.
3785 # Account for people who put trailing slashes in PATH elements.
3787 ./ | .// | /cC/* | \
3788 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3789 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3792 # OSF1 and SCO ODT 3.0 have their own names for install.
3793 # Don't use installbsd from OSF since it installs stuff as root
3795 for ac_prog in ginstall scoinst install; do
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3798 if test $ac_prog = install &&
3799 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3800 # AIX install. It has an incompatible calling convention.
3802 elif test $ac_prog = install &&
3803 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3804 # program-specific install script used by HP pwplus--don't use.
3807 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3820 if test "${ac_cv_path_install+set}" = set; then
3821 INSTALL=$ac_cv_path_install
3823 # As a last resort, use the slow shell script. Don't cache a
3824 # value for INSTALL within a source directory, because that will
3825 # break other packages using the cache if that directory is
3826 # removed, or if the value is a relative name.
3827 INSTALL=$ac_install_sh
3830 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3831 echo "${ECHO_T}$INSTALL" >&6; }
3833 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3834 # It thinks the first close brace ends the variable substitution.
3835 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3837 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3839 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3841 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3842 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3844 if test "$LN_S" = "ln -s"; then
3845 { echo "$as_me:$LINENO: result: yes" >&5
3846 echo "${ECHO_T}yes" >&6; }
3848 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3849 echo "${ECHO_T}no, using $LN_S" >&6; }
3852 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3853 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3854 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3855 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 cat >conftest.make <<\_ACEOF
3861 @echo '@@@%%%=$(MAKE)=@@@%%%'
3863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3866 eval ac_cv_prog_make_${ac_make}_set=yes;;
3868 eval ac_cv_prog_make_${ac_make}_set=no;;
3872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3873 { echo "$as_me:$LINENO: result: yes" >&5
3874 echo "${ECHO_T}yes" >&6; }
3877 { echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6; }
3879 SET_MAKE="MAKE=${MAKE-make}"
3882 # Check whether --enable-shared was given.
3883 if test "${enable_shared+set}" = set; then
3884 enableval=$enable_shared; p=${PACKAGE-default}
3886 yes) enable_shared=yes ;;
3887 no) enable_shared=no ;;
3890 # Look at the argument we got. We use all the common list separators.
3891 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3892 for pkg in $enableval; do
3894 if test "X$pkg" = "X$p"; then
3906 # Check whether --enable-static was given.
3907 if test "${enable_static+set}" = set; then
3908 enableval=$enable_static; p=${PACKAGE-default}
3910 yes) enable_static=yes ;;
3911 no) enable_static=no ;;
3914 # Look at the argument we got. We use all the common list separators.
3915 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3916 for pkg in $enableval; do
3918 if test "X$pkg" = "X$p"; then
3930 # Check whether --enable-fast-install was given.
3931 if test "${enable_fast_install+set}" = set; then
3932 enableval=$enable_fast_install; p=${PACKAGE-default}
3934 yes) enable_fast_install=yes ;;
3935 no) enable_fast_install=no ;;
3937 enable_fast_install=no
3938 # Look at the argument we got. We use all the common list separators.
3939 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3940 for pkg in $enableval; do
3942 if test "X$pkg" = "X$p"; then
3943 enable_fast_install=yes
3950 enable_fast_install=yes
3954 # Make sure we can run config.sub.
3955 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3956 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3957 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3958 { (exit 1); exit 1; }; }
3960 { echo "$as_me:$LINENO: checking build system type" >&5
3961 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3962 if test "${ac_cv_build+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 ac_build_alias=$build_alias
3966 test "x$ac_build_alias" = x &&
3967 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3968 test "x$ac_build_alias" = x &&
3969 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3970 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3971 { (exit 1); exit 1; }; }
3972 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3973 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3974 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3975 { (exit 1); exit 1; }; }
3978 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3979 echo "${ECHO_T}$ac_cv_build" >&6; }
3980 case $ac_cv_build in
3982 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3983 echo "$as_me: error: invalid value of canonical build" >&2;}
3984 { (exit 1); exit 1; }; };;
3987 ac_save_IFS=$IFS; IFS='-'
3993 # Remember, the first character of IFS is used to create $*,
3994 # except with old shells:
3997 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4000 { echo "$as_me:$LINENO: checking host system type" >&5
4001 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4002 if test "${ac_cv_host+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 if test "x$host_alias" = x; then
4006 ac_cv_host=$ac_cv_build
4008 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4009 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4010 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4011 { (exit 1); exit 1; }; }
4015 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4016 echo "${ECHO_T}$ac_cv_host" >&6; }
4019 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4020 echo "$as_me: error: invalid value of canonical host" >&2;}
4021 { (exit 1); exit 1; }; };;
4024 ac_save_IFS=$IFS; IFS='-'
4030 # Remember, the first character of IFS is used to create $*,
4031 # except with old shells:
4034 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4037 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4038 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4039 if test "${lt_cv_path_SED+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 # Loop through the user's path and test for sed and gsed.
4043 # Then use that list of sed's as ones to test for truncation.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 test -z "$as_dir" && as_dir=.
4049 for lt_ac_prog in sed gsed; do
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4052 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4059 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4060 # along with /bin/sed that truncates output.
4061 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4062 test ! -f $lt_ac_sed && continue
4063 cat /dev/null > conftest.in
4065 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4066 # Check for GNU sed and select it if it is found.
4067 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4068 lt_cv_path_SED=$lt_ac_sed
4072 cat conftest.in conftest.in >conftest.tmp
4073 mv conftest.tmp conftest.in
4074 cp conftest.in conftest.nl
4076 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4077 cmp -s conftest.out conftest.nl || break
4078 # 10000 chars as input seems more than enough
4079 test $lt_ac_count -gt 10 && break
4080 lt_ac_count=`expr $lt_ac_count + 1`
4081 if test $lt_ac_count -gt $lt_ac_max; then
4082 lt_ac_max=$lt_ac_count
4083 lt_cv_path_SED=$lt_ac_sed
4091 { echo "$as_me:$LINENO: result: $SED" >&5
4092 echo "${ECHO_T}$SED" >&6; }
4094 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4095 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4096 if test "${ac_cv_path_GREP+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 # Extract the first word of "grep ggrep" to use in msg output
4100 if test -z "$GREP"; then
4101 set dummy grep ggrep; ac_prog_name=$2
4102 if test "${ac_cv_path_GREP+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 ac_path_GREP_found=false
4106 # Loop through the user's path and test for each of PROGNAME-LIST
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4111 test -z "$as_dir" && as_dir=.
4112 for ac_prog in grep ggrep; do
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4115 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4116 # Check for GNU ac_path_GREP and select it if it is found.
4117 # Check for GNU $ac_path_GREP
4118 case `"$ac_path_GREP" --version 2>&1` in
4120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4123 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4126 cat "conftest.in" "conftest.in" >"conftest.tmp"
4127 mv "conftest.tmp" "conftest.in"
4128 cp "conftest.in" "conftest.nl"
4129 echo 'GREP' >> "conftest.nl"
4130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4132 ac_count=`expr $ac_count + 1`
4133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4134 # Best one so far, save it but keep looking for a better one
4135 ac_cv_path_GREP="$ac_path_GREP"
4136 ac_path_GREP_max=$ac_count
4138 # 10*(2^10) chars as input seems more than enough
4139 test $ac_count -gt 10 && break
4141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145 $ac_path_GREP_found && break 3
4155 GREP="$ac_cv_path_GREP"
4156 if test -z "$GREP"; then
4157 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4158 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4159 { (exit 1); exit 1; }; }
4163 ac_cv_path_GREP=$GREP
4168 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4169 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4170 GREP="$ac_cv_path_GREP"
4173 { echo "$as_me:$LINENO: checking for egrep" >&5
4174 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4175 if test "${ac_cv_path_EGREP+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179 then ac_cv_path_EGREP="$GREP -E"
4181 # Extract the first word of "egrep" to use in msg output
4182 if test -z "$EGREP"; then
4183 set dummy egrep; ac_prog_name=$2
4184 if test "${ac_cv_path_EGREP+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ac_path_EGREP_found=false
4188 # Loop through the user's path and test for each of PROGNAME-LIST
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4193 test -z "$as_dir" && as_dir=.
4194 for ac_prog in egrep; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4197 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4198 # Check for GNU ac_path_EGREP and select it if it is found.
4199 # Check for GNU $ac_path_EGREP
4200 case `"$ac_path_EGREP" --version 2>&1` in
4202 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4205 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4208 cat "conftest.in" "conftest.in" >"conftest.tmp"
4209 mv "conftest.tmp" "conftest.in"
4210 cp "conftest.in" "conftest.nl"
4211 echo 'EGREP' >> "conftest.nl"
4212 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214 ac_count=`expr $ac_count + 1`
4215 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4216 # Best one so far, save it but keep looking for a better one
4217 ac_cv_path_EGREP="$ac_path_EGREP"
4218 ac_path_EGREP_max=$ac_count
4220 # 10*(2^10) chars as input seems more than enough
4221 test $ac_count -gt 10 && break
4223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227 $ac_path_EGREP_found && break 3
4237 EGREP="$ac_cv_path_EGREP"
4238 if test -z "$EGREP"; then
4239 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4240 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4241 { (exit 1); exit 1; }; }
4245 ac_cv_path_EGREP=$EGREP
4251 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4252 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4253 EGREP="$ac_cv_path_EGREP"
4257 # Check whether --with-gnu-ld was given.
4258 if test "${with_gnu_ld+set}" = set; then
4259 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4265 if test "$GCC" = yes; then
4266 # Check if gcc -print-prog-name=ld gives a path.
4267 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4268 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4271 # gcc leaves a trailing carriage return which upsets mingw
4272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4277 # Accept absolute paths.
4279 re_direlt='/[^/][^/]*/\.\./'
4280 # Canonicalize the pathname of ld
4281 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4282 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4283 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4285 test -z "$LD" && LD="$ac_prog"
4288 # If it fails, then pretend we aren't using GCC.
4292 # If it is relative, then search for the first ld in PATH.
4296 elif test "$with_gnu_ld" = yes; then
4297 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4298 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4300 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4301 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4303 if test "${lt_cv_path_LD+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -z "$LD"; then
4307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4308 for ac_dir in $PATH; do
4310 test -z "$ac_dir" && ac_dir=.
4311 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4312 lt_cv_path_LD="$ac_dir/$ac_prog"
4313 # Check to see if the program is GNU ld. I'd rather use --version,
4314 # but apparently some variants of GNU ld only accept -v.
4315 # Break only if it was the GNU/non-GNU ld that we prefer.
4316 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4317 *GNU* | *'with BFD'*)
4318 test "$with_gnu_ld" != no && break
4321 test "$with_gnu_ld" != yes && break
4328 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4333 if test -n "$LD"; then
4334 { echo "$as_me:$LINENO: result: $LD" >&5
4335 echo "${ECHO_T}$LD" >&6; }
4337 { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4340 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4341 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4342 { (exit 1); exit 1; }; }
4343 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4344 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4345 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4349 case `$LD -v 2>&1 </dev/null` in
4350 *GNU* | *'with BFD'*)
4351 lt_cv_prog_gnu_ld=yes
4354 lt_cv_prog_gnu_ld=no
4358 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4359 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4360 with_gnu_ld=$lt_cv_prog_gnu_ld
4363 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4364 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4365 if test "${lt_cv_ld_reload_flag+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 lt_cv_ld_reload_flag='-r'
4370 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4371 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4372 reload_flag=$lt_cv_ld_reload_flag
4373 case $reload_flag in
4375 *) reload_flag=" $reload_flag" ;;
4377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4380 if test "$GCC" = yes; then
4381 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4383 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4388 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4389 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4390 if test "${lt_cv_path_NM+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if test -n "$NM"; then
4394 # Let the user override the test.
4397 lt_nm_to_check="${ac_tool_prefix}nm"
4398 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4399 lt_nm_to_check="$lt_nm_to_check nm"
4401 for lt_tmp_nm in $lt_nm_to_check; do
4402 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4403 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4405 test -z "$ac_dir" && ac_dir=.
4406 tmp_nm="$ac_dir/$lt_tmp_nm"
4407 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4408 # Check to see if the nm accepts a BSD-compat flag.
4409 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4410 # nm: unknown option "B" ignored
4411 # Tru64's nm complains that /dev/null is an invalid object file
4412 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4413 */dev/null* | *'Invalid file or object type'*)
4414 lt_cv_path_NM="$tmp_nm -B"
4418 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4420 lt_cv_path_NM="$tmp_nm -p"
4424 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4425 continue # so that we can try to find one that supports BSD flags
4434 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4437 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4438 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4441 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4442 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4443 if test "${lt_cv_deplibs_check_method+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 lt_cv_file_magic_cmd='$MAGIC_CMD'
4447 lt_cv_file_magic_test_file=
4448 lt_cv_deplibs_check_method='unknown'
4449 # Need to set the preceding variable on all platforms that support
4450 # interlibrary dependencies.
4451 # 'none' -- dependencies not supported.
4452 # `unknown' -- same as none, but documents that we really don't know.
4453 # 'pass_all' -- all dependencies passed with no checks.
4454 # 'test_compile' -- check by making test program.
4455 # 'file_magic [[regex]]' -- check by looking for files in library path
4456 # which responds to the $file_magic_cmd with a given extended regex.
4457 # If you have `file' or equivalent on your system and you're not sure
4458 # whether `pass_all' will *always* work, you probably want this one.
4462 lt_cv_deplibs_check_method=pass_all
4466 lt_cv_deplibs_check_method=pass_all
4470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4471 lt_cv_file_magic_cmd='/usr/bin/file -L'
4472 lt_cv_file_magic_test_file=/shlib/libc.so
4476 # func_win32_libid is a shell function defined in ltmain.sh
4477 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4478 lt_cv_file_magic_cmd='func_win32_libid'
4482 # Base MSYS/MinGW do not provide the 'file' command needed by
4483 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4484 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4485 lt_cv_file_magic_cmd='$OBJDUMP -f'
4488 darwin* | rhapsody*)
4489 lt_cv_deplibs_check_method=pass_all
4492 freebsd* | dragonfly*)
4493 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4496 # Not sure whether the presence of OpenBSD here was a mistake.
4497 # Let's accept both of them until this is cleared up.
4498 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4499 lt_cv_file_magic_cmd=/usr/bin/file
4500 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4504 lt_cv_deplibs_check_method=pass_all
4509 lt_cv_deplibs_check_method=pass_all
4512 hpux10.20* | hpux11*)
4513 lt_cv_file_magic_cmd=/usr/bin/file
4516 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4517 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4520 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4521 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4525 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4531 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4535 irix5* | irix6* | nonstopux*)
4537 *-32|*"-32 ") libmagic=32-bit;;
4538 *-n32|*"-n32 ") libmagic=N32;;
4539 *-64|*"-64 ") libmagic=64-bit;;
4540 *) libmagic=never-match;;
4542 lt_cv_deplibs_check_method=pass_all
4545 # This must be Linux ELF.
4546 linux* | k*bsd*-gnu)
4547 lt_cv_deplibs_check_method=pass_all
4550 netbsd* | netbsdelf*-gnu)
4551 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4560 lt_cv_file_magic_cmd=/usr/bin/file
4561 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4565 lt_cv_deplibs_check_method=unknown
4569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4576 osf3* | osf4* | osf5*)
4577 lt_cv_deplibs_check_method=pass_all
4581 lt_cv_deplibs_check_method=pass_all
4585 case $host_vendor in
4587 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]'
4588 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4591 lt_cv_deplibs_check_method=pass_all
4594 lt_cv_file_magic_cmd='/bin/file'
4595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4598 lt_cv_file_magic_cmd='/bin/file'
4599 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4600 lt_cv_file_magic_test_file=/lib/libc.so
4603 lt_cv_deplibs_check_method=pass_all
4606 lt_cv_deplibs_check_method=pass_all
4611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4612 lt_cv_deplibs_check_method=pass_all
4617 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4618 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4619 file_magic_cmd=$lt_cv_file_magic_cmd
4620 deplibs_check_method=$lt_cv_deplibs_check_method
4621 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4626 # If no C compiler was specified, use CC.
4629 # If no C compiler flags were specified, use CFLAGS.
4630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4632 # Allow CC to be a program name with arguments.
4636 # Check whether --enable-libtool-lock was given.
4637 if test "${enable_libtool_lock+set}" = set; then
4638 enableval=$enable_libtool_lock;
4641 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4643 # Some flags need to be propagated to the compiler or linker for good
4647 # Find out which ABI we are using.
4648 echo 'int i;' > conftest.$ac_ext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650 (eval $ac_compile) 2>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; then
4654 case `/usr/bin/file conftest.$ac_objext` in
4666 # Find out which ABI we are using.
4667 echo '#line 4667 "configure"' > conftest.$ac_ext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669 (eval $ac_compile) 2>&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; then
4673 if test "$lt_cv_prog_gnu_ld" = yes; then
4674 case `/usr/bin/file conftest.$ac_objext` in
4676 LD="${LD-ld} -melf32bsmip"
4679 LD="${LD-ld} -melf32bmipn32"
4682 LD="${LD-ld} -melf64bmip"
4686 case `/usr/bin/file conftest.$ac_objext` in
4702 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4703 # Find out which ABI we are using.
4704 echo 'int i;' > conftest.$ac_ext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 2>&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; then
4710 case `/usr/bin/file conftest.o` in
4714 LD="${LD-ld} -m elf_i386"
4716 ppc64-*linux*|powerpc64-*linux*)
4717 LD="${LD-ld} -m elf32ppclinux"
4720 LD="${LD-ld} -m elf_s390"
4723 LD="${LD-ld} -m elf32_sparc"
4730 LD="${LD-ld} -m elf_x86_64"
4732 ppc*-*linux*|powerpc*-*linux*)
4733 LD="${LD-ld} -m elf64ppc"
4736 LD="${LD-ld} -m elf64_s390"
4739 LD="${LD-ld} -m elf64_sparc"
4749 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4750 SAVE_CFLAGS="$CFLAGS"
4751 CFLAGS="$CFLAGS -belf"
4752 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4753 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4754 if test "${lt_cv_cc_needs_belf+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4778 rm -f conftest.$ac_objext conftest$ac_exeext
4779 if { (ac_try="$ac_link"
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785 (eval "$ac_link") 2>conftest.er1
4787 grep -v '^ *+' conftest.er1 >conftest.err
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } && {
4792 test -z "$ac_c_werror_flag" ||
4793 test ! -s conftest.err
4794 } && test -s conftest$ac_exeext &&
4795 $as_test_x conftest$ac_exeext; then
4796 lt_cv_cc_needs_belf=yes
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4801 lt_cv_cc_needs_belf=no
4804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4805 conftest$ac_exeext conftest.$ac_ext
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4814 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4815 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4816 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4817 CFLAGS="$SAVE_CFLAGS"
4821 # Find out which ABI we are using.
4822 echo 'int i;' > conftest.$ac_ext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; then
4828 case `/usr/bin/file conftest.o` in
4830 case $lt_cv_prog_gnu_ld in
4831 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4832 *) LD="${LD-ld} -64" ;;
4843 need_locks="$enable_libtool_lock"
4847 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4849 if test "${ac_cv_header_stdc+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 cat >conftest.$ac_ext <<_ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_compile") 2>conftest.er1
4880 grep -v '^ *+' conftest.er1 >conftest.err
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } && {
4885 test -z "$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 } && test -s conftest.$ac_objext; then
4888 ac_cv_header_stdc=yes
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 ac_cv_header_stdc=no
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 if test $ac_cv_header_stdc = yes; then
4899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910 $EGREP "memchr" >/dev/null 2>&1; then
4913 ac_cv_header_stdc=no
4919 if test $ac_cv_header_stdc = yes; then
4920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4921 cat >conftest.$ac_ext <<_ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931 $EGREP "free" >/dev/null 2>&1; then
4934 ac_cv_header_stdc=no
4940 if test $ac_cv_header_stdc = yes; then
4941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4942 if test "$cross_compiling" = yes; then
4945 cat >conftest.$ac_ext <<_ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4953 #if ((' ' & 0x0FF) == 0x020)
4954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4957 # define ISLOWER(c) \
4958 (('a' <= (c) && (c) <= 'i') \
4959 || ('j' <= (c) && (c) <= 'r') \
4960 || ('s' <= (c) && (c) <= 'z'))
4961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4969 for (i = 0; i < 256; i++)
4970 if (XOR (islower (i), ISLOWER (i))
4971 || toupper (i) != TOUPPER (i))
4976 rm -f conftest$ac_exeext
4977 if { (ac_try="$ac_link"
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_link") 2>&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4987 { (case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_try") 2>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4998 echo "$as_me: program exited with status $ac_status" >&5
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_cv_header_stdc=no
5005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5011 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5012 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5013 if test $ac_cv_header_stdc = yes; then
5015 cat >>confdefs.h <<\_ACEOF
5016 #define STDC_HEADERS 1
5021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5032 inttypes.h stdint.h unistd.h
5034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 cat >conftest.$ac_ext <<_ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 $ac_includes_default
5048 #include <$ac_header>
5050 rm -f conftest.$ac_objext
5051 if { (ac_try="$ac_compile"
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_compile") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest.$ac_objext; then
5067 eval "$as_ac_Header=yes"
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 eval "$as_ac_Header=no"
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 ac_res=`eval echo '${'$as_ac_Header'}'`
5078 { echo "$as_me:$LINENO: result: $ac_res" >&5
5079 echo "${ECHO_T}$ac_res" >&6; }
5080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5081 cat >>confdefs.h <<_ACEOF
5082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5091 for ac_header in dlfcn.h
5093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 ac_res=`eval echo '${'$as_ac_Header'}'`
5101 { echo "$as_me:$LINENO: result: $ac_res" >&5
5102 echo "${ECHO_T}$ac_res" >&6; }
5104 # Is the header compilable?
5105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 $ac_includes_default
5114 #include <$ac_header>
5116 rm -f conftest.$ac_objext
5117 if { (ac_try="$ac_compile"
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_compile") 2>conftest.er1
5125 grep -v '^ *+' conftest.er1 >conftest.err
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && {
5130 test -z "$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 } && test -s conftest.$ac_objext; then
5133 ac_header_compiler=yes
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 ac_header_compiler=no
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5143 echo "${ECHO_T}$ac_header_compiler" >&6; }
5145 # Is the header present?
5146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5148 cat >conftest.$ac_ext <<_ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 #include <$ac_header>
5156 if { (ac_try="$ac_cpp conftest.$ac_ext"
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5164 grep -v '^ *+' conftest.er1 >conftest.err
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } >/dev/null && {
5169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5170 test ! -s conftest.err
5172 ac_header_preproc=yes
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5177 ac_header_preproc=no
5180 rm -f conftest.err conftest.$ac_ext
5181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5182 echo "${ECHO_T}$ac_header_preproc" >&6; }
5184 # So? What about this header?
5185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5191 ac_header_preproc=yes
5194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5207 ## ------------------------------------------------------------ ##
5208 ## Report this to http://pyyaml.org/newticket?component=libyaml ##
5209 ## ------------------------------------------------------------ ##
5211 ) | sed "s/^/$as_me: WARNING: /" >&2
5214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 eval "$as_ac_Header=\$ac_header_preproc"
5221 ac_res=`eval echo '${'$as_ac_Header'}'`
5222 { echo "$as_me:$LINENO: result: $ac_res" >&5
5223 echo "${ECHO_T}$ac_res" >&6; }
5226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5227 cat >>confdefs.h <<_ACEOF
5228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 ac_cpp='$CXXCPP $CPPFLAGS'
5237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5240 if test -z "$CXX"; then
5241 if test -n "$CCC"; then
5244 if test -n "$ac_tool_prefix"; then
5245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5251 if test "${ac_cv_prog_CXX+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 if test -n "$CXX"; then
5255 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 if test -n "$CXX"; then
5276 { echo "$as_me:$LINENO: result: $CXX" >&5
5277 echo "${ECHO_T}$CXX" >&6; }
5279 { echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6; }
5284 test -n "$CXX" && break
5287 if test -z "$CXX"; then
5289 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5291 # Extract the first word of "$ac_prog", so it can be a program name with args.
5292 set dummy $ac_prog; ac_word=$2
5293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5295 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 if test -n "$ac_ct_CXX"; then
5299 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_ac_ct_CXX="$ac_prog"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5319 if test -n "$ac_ct_CXX"; then
5320 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5321 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5323 { echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6; }
5328 test -n "$ac_ct_CXX" && break
5331 if test "x$ac_ct_CXX" = x; then
5334 case $cross_compiling:$ac_tool_warned in
5336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5337 whose name does not start with the host triplet. If you think this
5338 configuration is useful to you, please write to autoconf@gnu.org." >&5
5339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5340 whose name does not start with the host triplet. If you think this
5341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5342 ac_tool_warned=yes ;;
5350 # Provide some information about the compiler.
5351 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5352 ac_compiler=`set X $ac_compile; echo $2`
5353 { (ac_try="$ac_compiler --version >&5"
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_compiler --version >&5") 2>&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }
5363 { (ac_try="$ac_compiler -v >&5"
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_compiler -v >&5") 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }
5373 { (ac_try="$ac_compiler -V >&5"
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_compiler -V >&5") 2>&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }
5384 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5385 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5386 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 cat >conftest.$ac_ext <<_ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_compile") 2>conftest.er1
5416 grep -v '^ *+' conftest.er1 >conftest.err
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } && {
5421 test -z "$ac_cxx_werror_flag" ||
5422 test ! -s conftest.err
5423 } && test -s conftest.$ac_objext; then
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5436 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5437 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5438 GXX=`test $ac_compiler_gnu = yes && echo yes`
5439 ac_test_CXXFLAGS=${CXXFLAGS+set}
5440 ac_save_CXXFLAGS=$CXXFLAGS
5441 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5442 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5443 if test "${ac_cv_prog_cxx_g+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5447 ac_cxx_werror_flag=yes
5450 cat >conftest.$ac_ext <<_ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5474 grep -v '^ *+' conftest.er1 >conftest.err
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_cxx_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 ac_cv_prog_cxx_g=yes
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5488 cat >conftest.$ac_ext <<_ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5503 rm -f conftest.$ac_objext
5504 if { (ac_try="$ac_compile"
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_compile") 2>conftest.er1
5512 grep -v '^ *+' conftest.er1 >conftest.err
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } && {
5517 test -z "$ac_cxx_werror_flag" ||
5518 test ! -s conftest.err
5519 } && test -s conftest.$ac_objext; then
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5525 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5527 cat >conftest.$ac_ext <<_ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5551 grep -v '^ *+' conftest.er1 >conftest.err
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_cxx_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 ac_cv_prog_cxx_g=yes
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5576 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5577 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5578 if test "$ac_test_CXXFLAGS" = set; then
5579 CXXFLAGS=$ac_save_CXXFLAGS
5580 elif test $ac_cv_prog_cxx_g = yes; then
5581 if test "$GXX" = yes; then
5587 if test "$GXX" = yes; then
5594 ac_cpp='$CXXCPP $CPPFLAGS'
5595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5599 depcc="$CXX" am_compiler_list=
5601 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5602 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5603 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5607 # We make a subdir and do the tests there. Otherwise we can end up
5608 # making bogus files that we don't know about and never remove. For
5609 # instance it was reported that on HP-UX the gcc test will end up
5610 # making a dummy file named `D' -- because `-MD' means `put the output
5613 # Copy depcomp to subdir because otherwise we won't find it if we're
5614 # using a relative directory.
5615 cp "$am_depcomp" conftest.dir
5617 # We will build objects and dependencies in a subdirectory because
5618 # it helps to detect inapplicable dependency modes. For instance
5619 # both Tru64's cc and ICC support -MD to output dependencies as a
5620 # side effect of compilation, but ICC will put the dependencies in
5621 # the current directory while Tru64 will put them in the object
5625 am_cv_CXX_dependencies_compiler_type=none
5626 if test "$am_compiler_list" = ""; then
5627 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5629 for depmode in $am_compiler_list; do
5630 # Setup a source with many dependencies, because some compilers
5631 # like to wrap large dependency lists on column 80 (with \), and
5632 # we should not choose a depcomp mode which is confused by this.
5634 # We need to recreate these files for each test, as the compiler may
5635 # overwrite some of them when testing with obscure command lines.
5636 # This happens at least with the AIX C compiler.
5638 for i in 1 2 3 4 5 6; do
5639 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5640 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5641 # Solaris 8's {/usr,}/bin/sh.
5642 touch sub/conftst$i.h
5644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5648 # after this tag, mechanisms are not by side-effect, so they'll
5649 # only be used when explicitly requested
5650 if test "x$enable_dependency_tracking" = xyes; then
5658 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5659 # mode. It turns out that the SunPro C++ compiler does not properly
5660 # handle `-M -o', and we need to detect this.
5661 if depmode=$depmode \
5662 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5663 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5664 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5665 >/dev/null 2>conftest.err &&
5666 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5667 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5669 # icc doesn't choke on unknown options, it will just issue warnings
5670 # or remarks (even with -Werror). So we grep stderr for any message
5671 # that says an option was ignored or not supported.
5672 # When given -MP, icc 7.0 and 7.1 complain thusly:
5673 # icc: Command line warning: ignoring option '-M'; no argument required
5674 # The diagnosis changed in icc 8.0:
5675 # icc: Command line remark: option '-MP' not supported
5676 if (grep 'ignoring option' conftest.err ||
5677 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5678 am_cv_CXX_dependencies_compiler_type=$depmode
5687 am_cv_CXX_dependencies_compiler_type=none
5691 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5692 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5693 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5698 test "x$enable_dependency_tracking" != xno \
5699 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5700 am__fastdepCXX_TRUE=
5701 am__fastdepCXX_FALSE='#'
5703 am__fastdepCXX_TRUE='#'
5704 am__fastdepCXX_FALSE=
5710 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5711 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5712 (test "X$CXX" != "Xg++"))) ; then
5714 ac_cpp='$CXXCPP $CPPFLAGS'
5715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5718 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5719 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5720 if test -z "$CXXCPP"; then
5721 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 # Double quotes because CXXCPP needs to be expanded
5725 for CXXCPP in "$CXX -E" "/lib/cpp"
5728 for ac_cxx_preproc_warn_flag in '' yes
5730 # Use a header file that comes with gcc, so configuring glibc
5731 # with a fresh cross-compiler works.
5732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5733 # <limits.h> exists even on freestanding compilers.
5734 # On the NeXT, cc -E runs the code through the compiler's parser,
5735 # not just through cpp. "Syntax error" is here to catch this case.
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5743 # include <limits.h>
5745 # include <assert.h>
5749 if { (ac_try="$ac_cpp conftest.$ac_ext"
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } >/dev/null && {
5762 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5763 test ! -s conftest.err
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 # Broken: fails on valid input.
5774 rm -f conftest.err conftest.$ac_ext
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 #include <ac_nonexistent.h>
5786 if { (ac_try="$ac_cpp conftest.$ac_ext"
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5794 grep -v '^ *+' conftest.er1 >conftest.err
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } >/dev/null && {
5799 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5800 test ! -s conftest.err
5802 # Broken: success on invalid input.
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 # Passes both tests.
5813 rm -f conftest.err conftest.$ac_ext
5816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5817 rm -f conftest.err conftest.$ac_ext
5818 if $ac_preproc_ok; then
5823 ac_cv_prog_CXXCPP=$CXXCPP
5826 CXXCPP=$ac_cv_prog_CXXCPP
5828 ac_cv_prog_CXXCPP=$CXXCPP
5830 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5831 echo "${ECHO_T}$CXXCPP" >&6; }
5833 for ac_cxx_preproc_warn_flag in '' yes
5835 # Use a header file that comes with gcc, so configuring glibc
5836 # with a fresh cross-compiler works.
5837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5838 # <limits.h> exists even on freestanding compilers.
5839 # On the NeXT, cc -E runs the code through the compiler's parser,
5840 # not just through cpp. "Syntax error" is here to catch this case.
5841 cat >conftest.$ac_ext <<_ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5848 # include <limits.h>
5850 # include <assert.h>
5854 if { (ac_try="$ac_cpp conftest.$ac_ext"
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } >/dev/null && {
5867 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5868 test ! -s conftest.err
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 # Broken: fails on valid input.
5879 rm -f conftest.err conftest.$ac_ext
5881 # OK, works on sane cases. Now check whether nonexistent headers
5882 # can be detected and how.
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 #include <ac_nonexistent.h>
5891 if { (ac_try="$ac_cpp conftest.$ac_ext"
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } >/dev/null && {
5904 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5905 test ! -s conftest.err
5907 # Broken: success on invalid input.
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 # Passes both tests.
5918 rm -f conftest.err conftest.$ac_ext
5921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5922 rm -f conftest.err conftest.$ac_ext
5923 if $ac_preproc_ok; then
5926 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5927 See \`config.log' for more details." >&5
5928 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5929 See \`config.log' for more details." >&2;}
5930 { (exit 1); exit 1; }; }
5934 ac_cpp='$CXXCPP $CPPFLAGS'
5935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5943 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5944 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5946 if test -n "$ac_tool_prefix"; then
5947 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953 if test "${ac_cv_prog_F77+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 if test -n "$F77"; then
5957 ac_cv_prog_F77="$F77" # Let the user override the test.
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 if test -n "$F77"; then
5978 { echo "$as_me:$LINENO: result: $F77" >&5
5979 echo "${ECHO_T}$F77" >&6; }
5981 { echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6; }
5986 test -n "$F77" && break
5989 if test -z "$F77"; then
5991 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5993 # Extract the first word of "$ac_prog", so it can be a program name with args.
5994 set dummy $ac_prog; ac_word=$2
5995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 if test -n "$ac_ct_F77"; then
6001 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_prog_ac_ct_F77="$ac_prog"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6021 if test -n "$ac_ct_F77"; then
6022 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6023 echo "${ECHO_T}$ac_ct_F77" >&6; }
6025 { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6030 test -n "$ac_ct_F77" && break
6033 if test "x$ac_ct_F77" = x; then
6036 case $cross_compiling:$ac_tool_warned in
6038 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6039 whose name does not start with the host triplet. If you think this
6040 configuration is useful to you, please write to autoconf@gnu.org." >&5
6041 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6042 whose name does not start with the host triplet. If you think this
6043 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6044 ac_tool_warned=yes ;;
6051 # Provide some information about the compiler.
6052 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6053 ac_compiler=`set X $ac_compile; echo $2`
6054 { (ac_try="$ac_compiler --version >&5"
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compiler --version >&5") 2>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }
6064 { (ac_try="$ac_compiler -v >&5"
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compiler -v >&5") 2>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }
6074 { (ac_try="$ac_compiler -V >&5"
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_compiler -V >&5") 2>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }
6086 # If we don't use `.F' as extension, the preprocessor is not run on the
6087 # input file. (Note that this only needs to work for GNU compilers.)
6090 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6091 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6092 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 cat >conftest.$ac_ext <<_ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6112 grep -v '^ *+' conftest.er1 >conftest.err
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_f77_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6132 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6133 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6135 ac_test_FFLAGS=${FFLAGS+set}
6136 ac_save_FFLAGS=$FFLAGS
6138 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6139 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6140 if test "${ac_cv_prog_f77_g+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 cat >conftest.$ac_ext <<_ACEOF
6149 rm -f conftest.$ac_objext
6150 if { (ac_try="$ac_compile"
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_f77_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_objext; then
6166 ac_cv_prog_f77_g=yes
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6178 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6179 if test "$ac_test_FFLAGS" = set; then
6180 FFLAGS=$ac_save_FFLAGS
6181 elif test $ac_cv_prog_f77_g = yes; then
6182 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6188 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6195 G77=`test $ac_compiler_gnu = yes && echo yes`
6197 ac_cpp='$CPP $CPPFLAGS'
6198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6206 # find the maximum length of command line arguments
6207 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6208 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6209 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 # On DJGPP, this test can blow up pretty badly due to problems in libc
6218 # (any single argument exceeding 2000 bytes causes a buffer overrun
6219 # during glob expansion). Even if it were fixed, the result of this
6220 # check would be larger than it should be.
6221 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6225 # Under GNU Hurd, this test is not required because there is
6226 # no limit to the length of command line arguments.
6227 # Libtool will interpret -1 as no limit whatsoever
6228 lt_cv_sys_max_cmd_len=-1;
6232 # On Win9x/ME, this test blows up -- it succeeds, but takes
6233 # about 5 minutes as the teststring grows exponentially.
6234 # Worse, since 9x/ME are not pre-emptively multitasking,
6235 # you end up with a "frozen" computer, even though with patience
6236 # the test eventually succeeds (with a max line length of 256k).
6237 # Instead, let's just punt: use the minimum linelength reported by
6238 # all of the supported platforms: 8192 (on NT/2K/XP).
6239 lt_cv_sys_max_cmd_len=8192;
6243 # On AmigaOS with pdksh, this test takes hours, literally.
6244 # So we just punt and use a minimum line length of 8192.
6245 lt_cv_sys_max_cmd_len=8192;
6248 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6249 # This has been around since 386BSD, at least. Likely further.
6250 if test -x /sbin/sysctl; then
6251 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6252 elif test -x /usr/sbin/sysctl; then
6253 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6255 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6257 # And add a safety zone
6258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6263 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6264 lt_cv_sys_max_cmd_len=196608
6268 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6269 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6270 # nice to cause kernel panics so lets avoid the loop below.
6271 # First set a reasonable default.
6272 lt_cv_sys_max_cmd_len=16384
6274 if test -x /sbin/sysconfig; then
6275 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6276 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6281 lt_cv_sys_max_cmd_len=102400
6283 sysv5* | sco5v6* | sysv4.2uw2*)
6284 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6285 if test -n "$kargmax"; then
6286 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6288 lt_cv_sys_max_cmd_len=32768
6292 # If test is not a shell built-in, we'll probably end up computing a
6293 # maximum length that is only half of the actual maximum length, but
6295 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6296 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6297 = "XX$teststring") >/dev/null 2>&1 &&
6298 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6299 lt_cv_sys_max_cmd_len=$new_result &&
6300 test $i != 17 # 1/2 MB should be enough
6303 teststring=$teststring$teststring
6306 # Add a significant safety factor because C++ compilers can tack on massive
6307 # amounts of additional arguments before passing them to the linker.
6308 # It appears as though 1/2 is a usable value.
6309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6315 if test -n $lt_cv_sys_max_cmd_len ; then
6316 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6317 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6319 { echo "$as_me:$LINENO: result: none" >&5
6320 echo "${ECHO_T}none" >&6; }
6326 # Check for command to grab the raw symbol name followed by C symbol from nm.
6327 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6328 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6329 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 # These are sane defaults that work on at least a few old systems.
6334 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6336 # Character class describing NM global symbol codes.
6337 symcode='[BCDEGRST]'
6339 # Regexp to match symbols that can be accessed directly from C.
6340 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6342 # Transform an extracted symbol line into a proper C declaration
6343 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6345 # Transform an extracted symbol line into symbol name and symbol address
6346 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6348 # Define system-specific variables.
6353 cygwin* | mingw* | pw32*)
6354 symcode='[ABCDGISTW]'
6356 hpux*) # Its linker distinguishes data from code symbols
6357 if test "$host_cpu" = ia64; then
6358 symcode='[ABCDEGRST]'
6360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6361 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6363 linux* | k*bsd*-gnu)
6364 if test "$host_cpu" = ia64; then
6365 symcode='[ABCDGIRSTW]'
6366 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6367 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6371 symcode='[BCDEGRST]'
6374 symcode='[BCDEGQRST]'
6385 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6393 # Handle CRLF in mingw tool chain
6397 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6401 # If we're using GNU nm, then use its standard symbol codes.
6402 case `$NM -V 2>&1` in
6403 *GNU* | *'with BFD'*)
6404 symcode='[ABCDGIRSTW]' ;;
6407 # Try without a prefix undercore, then with it.
6408 for ac_symprfx in "" "_"; do
6410 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6411 symxfrm="\\1 $ac_symprfx\\2 \\2"
6413 # Write the raw and C identifiers.
6414 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6416 # Check to see that the pipe works correctly.
6420 cat > conftest.$ac_ext <<EOF
6425 void nm_test_func(){}
6429 int main(){nm_test_var='a';nm_test_func();return(0);}
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433 (eval $ac_compile) 2>&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; then
6437 # Now try to grab the symbols.
6439 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6440 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } && test -s "$nlist"; then
6444 # Try sorting and uniquifying the output.
6445 if sort "$nlist" | uniq > "$nlist"T; then
6446 mv -f "$nlist"T "$nlist"
6451 # Make sure that we snagged all the symbols we need.
6452 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6453 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6454 cat <<EOF > conftest.$ac_ext
6460 # Now generate the symbol file.
6461 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6463 cat <<EOF >> conftest.$ac_ext
6464 #if defined (__STDC__) && __STDC__
6465 # define lt_ptr_t void *
6467 # define lt_ptr_t char *
6471 /* The mapping between symbol names and symbols. */
6476 lt_preloaded_symbols[] =
6479 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6480 cat <<\EOF >> conftest.$ac_ext
6488 # Now try linking the two files.
6489 mv conftest.$ac_objext conftstm.$ac_objext
6490 lt_save_LIBS="$LIBS"
6491 lt_save_CFLAGS="$CFLAGS"
6492 LIBS="conftstm.$ac_objext"
6493 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6495 (eval $ac_link) 2>&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6501 LIBS="$lt_save_LIBS"
6502 CFLAGS="$lt_save_CFLAGS"
6504 echo "cannot find nm_test_func in $nlist" >&5
6507 echo "cannot find nm_test_var in $nlist" >&5
6510 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6513 echo "$progname: failed program was:" >&5
6514 cat conftest.$ac_ext >&5
6516 rm -f conftest* conftst*
6518 # Do not use the global_symbol_pipe unless it works.
6519 if test "$pipe_works" = yes; then
6522 lt_cv_sys_global_symbol_pipe=
6528 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6529 lt_cv_sys_global_symbol_to_cdecl=
6531 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6532 { echo "$as_me:$LINENO: result: failed" >&5
6533 echo "${ECHO_T}failed" >&6; }
6535 { echo "$as_me:$LINENO: result: ok" >&5
6536 echo "${ECHO_T}ok" >&6; }
6539 { echo "$as_me:$LINENO: checking for objdir" >&5
6540 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6541 if test "${lt_cv_objdir+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 rm -f .libs 2>/dev/null
6545 mkdir .libs 2>/dev/null
6546 if test -d .libs; then
6549 # MS-DOS does not allow filenames that begin with a dot.
6552 rmdir .libs 2>/dev/null
6554 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6555 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6556 objdir=$lt_cv_objdir
6564 # AIX sometimes has problems with the GCC collect2 program. For some
6565 # reason, if we set the COLLECT_NAMES environment variable, the problems
6566 # vanish in a puff of smoke.
6567 if test "X${COLLECT_NAMES+set}" != Xset; then
6569 export COLLECT_NAMES
6574 # Sed substitution that helps us do robust quoting. It backslashifies
6575 # metacharacters that are still active within double-quoted strings.
6576 Xsed='sed -e 1s/^X//'
6577 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6579 # Same as above, but do not quote variable references.
6580 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6582 # Sed substitution to delay expansion of an escaped shell variable in a
6583 # double_quote_subst'ed string.
6584 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6586 # Sed substitution to avoid accidental globbing in evaled expressions
6587 no_glob_subst='s/\*/\\\*/g'
6593 default_ofile=libtool
6594 can_build_shared=yes
6596 # All known linkers require a `.a' archive for static linking (except MSVC,
6597 # which needs '.lib').
6599 ltmain="$ac_aux_dir/ltmain.sh"
6600 ofile="$default_ofile"
6601 with_gnu_ld="$lt_cv_prog_gnu_ld"
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}ar; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_AR+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 if test -n "$AR"; then
6612 ac_cv_prog_AR="$AR" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_AR="${ac_tool_prefix}ar"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 if test -n "$AR"; then
6633 { echo "$as_me:$LINENO: result: $AR" >&5
6634 echo "${ECHO_T}$AR" >&6; }
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6642 if test -z "$ac_cv_prog_AR"; then
6644 # Extract the first word of "ar", so it can be a program name with args.
6645 set dummy ar; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 if test -n "$ac_ct_AR"; then
6652 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_AR="ar"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6672 if test -n "$ac_ct_AR"; then
6673 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6674 echo "${ECHO_T}$ac_ct_AR" >&6; }
6676 { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6680 if test "x$ac_ct_AR" = x; then
6683 case $cross_compiling:$ac_tool_warned in
6685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6686 whose name does not start with the host triplet. If you think this
6687 configuration is useful to you, please write to autoconf@gnu.org." >&5
6688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6689 whose name does not start with the host triplet. If you think this
6690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6691 ac_tool_warned=yes ;;
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_prog_RANLIB+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 if test -n "$RANLIB"; then
6708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 RANLIB=$ac_cv_prog_RANLIB
6728 if test -n "$RANLIB"; then
6729 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6730 echo "${ECHO_T}$RANLIB" >&6; }
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6738 if test -z "$ac_cv_prog_RANLIB"; then
6739 ac_ct_RANLIB=$RANLIB
6740 # Extract the first word of "ranlib", so it can be a program name with args.
6741 set dummy ranlib; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 if test -n "$ac_ct_RANLIB"; then
6748 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_ac_ct_RANLIB="ranlib"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6768 if test -n "$ac_ct_RANLIB"; then
6769 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6770 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6776 if test "x$ac_ct_RANLIB" = x; then
6779 case $cross_compiling:$ac_tool_warned in
6781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6782 whose name does not start with the host triplet. If you think this
6783 configuration is useful to you, please write to autoconf@gnu.org." >&5
6784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6785 whose name does not start with the host triplet. If you think this
6786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6787 ac_tool_warned=yes ;;
6789 RANLIB=$ac_ct_RANLIB
6792 RANLIB="$ac_cv_prog_RANLIB"
6795 if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}strip; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_prog_STRIP+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 if test -n "$STRIP"; then
6804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 STRIP=$ac_cv_prog_STRIP
6824 if test -n "$STRIP"; then
6825 { echo "$as_me:$LINENO: result: $STRIP" >&5
6826 echo "${ECHO_T}$STRIP" >&6; }
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6834 if test -z "$ac_cv_prog_STRIP"; then
6836 # Extract the first word of "strip", so it can be a program name with args.
6837 set dummy strip; ac_word=$2
6838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 if test -n "$ac_ct_STRIP"; then
6844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_ac_ct_STRIP="strip"
6854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6864 if test -n "$ac_ct_STRIP"; then
6865 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6866 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6868 { echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6; }
6872 if test "x$ac_ct_STRIP" = x; then
6875 case $cross_compiling:$ac_tool_warned in
6877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6878 whose name does not start with the host triplet. If you think this
6879 configuration is useful to you, please write to autoconf@gnu.org." >&5
6880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6881 whose name does not start with the host triplet. If you think this
6882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6883 ac_tool_warned=yes ;;
6888 STRIP="$ac_cv_prog_STRIP"
6893 old_CFLAGS="$CFLAGS"
6895 # Set sane defaults for various variables
6896 test -z "$AR" && AR=ar
6897 test -z "$AR_FLAGS" && AR_FLAGS=cru
6898 test -z "$AS" && AS=as
6899 test -z "$CC" && CC=cc
6900 test -z "$LTCC" && LTCC=$CC
6901 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6902 test -z "$DLLTOOL" && DLLTOOL=dlltool
6903 test -z "$LD" && LD=ld
6904 test -z "$LN_S" && LN_S="ln -s"
6905 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6906 test -z "$NM" && NM=nm
6907 test -z "$SED" && SED=sed
6908 test -z "$OBJDUMP" && OBJDUMP=objdump
6909 test -z "$RANLIB" && RANLIB=:
6910 test -z "$STRIP" && STRIP=:
6911 test -z "$ac_objext" && ac_objext=o
6913 # Determine commands to create old-style static archives.
6914 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6915 old_postinstall_cmds='chmod 644 $oldlib'
6916 old_postuninstall_cmds=
6918 if test -n "$RANLIB"; then
6921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6924 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6927 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6930 for cc_temp in $compiler""; do
6932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6938 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6941 # Only perform the check for file, if the check method requires it
6942 case $deplibs_check_method in
6944 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6945 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6946 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6947 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6955 lt_save_MAGIC_CMD="$MAGIC_CMD"
6956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6958 for ac_dir in $ac_dummy; do
6960 test -z "$ac_dir" && ac_dir=.
6961 if test -f $ac_dir/${ac_tool_prefix}file; then
6962 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6963 if test -n "$file_magic_test_file"; then
6964 case $deplibs_check_method in
6966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6969 $EGREP "$file_magic_regex" > /dev/null; then
6974 *** Warning: the command libtool uses to detect shared libraries,
6975 *** $file_magic_cmd, produces output that libtool cannot recognize.
6976 *** The result is that libtool may fail to recognize shared libraries
6977 *** as such. This will affect the creation of libtool libraries that
6978 *** depend on shared libraries, but programs linked with such libtool
6979 *** libraries will work regardless of this problem. Nevertheless, you
6980 *** may want to report the problem to your system manager and/or to
6981 *** bug-libtool@gnu.org
6991 MAGIC_CMD="$lt_save_MAGIC_CMD"
6996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6997 if test -n "$MAGIC_CMD"; then
6998 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6999 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7001 { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7005 if test -z "$lt_cv_path_MAGIC_CMD"; then
7006 if test -n "$ac_tool_prefix"; then
7007 { echo "$as_me:$LINENO: checking for file" >&5
7008 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7009 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7017 lt_save_MAGIC_CMD="$MAGIC_CMD"
7018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7020 for ac_dir in $ac_dummy; do
7022 test -z "$ac_dir" && ac_dir=.
7023 if test -f $ac_dir/file; then
7024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7025 if test -n "$file_magic_test_file"; then
7026 case $deplibs_check_method in
7028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7031 $EGREP "$file_magic_regex" > /dev/null; then
7036 *** Warning: the command libtool uses to detect shared libraries,
7037 *** $file_magic_cmd, produces output that libtool cannot recognize.
7038 *** The result is that libtool may fail to recognize shared libraries
7039 *** as such. This will affect the creation of libtool libraries that
7040 *** depend on shared libraries, but programs linked with such libtool
7041 *** libraries will work regardless of this problem. Nevertheless, you
7042 *** may want to report the problem to your system manager and/or to
7043 *** bug-libtool@gnu.org
7053 MAGIC_CMD="$lt_save_MAGIC_CMD"
7058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7059 if test -n "$MAGIC_CMD"; then
7060 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7061 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7063 { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7079 # Check whether --enable-libtool-lock was given.
7080 if test "${enable_libtool_lock+set}" = set; then
7081 enableval=$enable_libtool_lock;
7084 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7087 # Check whether --with-pic was given.
7088 if test "${with_pic+set}" = set; then
7089 withval=$with_pic; pic_mode="$withval"
7094 test -z "$pic_mode" && pic_mode=default
7096 # Use C for the default configuration in the libtool script
7100 ac_cpp='$CPP $CPPFLAGS'
7101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7106 # Source file extension for C test sources.
7109 # Object file extension for compiled C test sources.
7113 # Code to be used in simple compile tests
7114 lt_simple_compile_test_code="int some_variable = 0;\n"
7116 # Code to be used in simple link tests
7117 lt_simple_link_test_code='int main(){return(0);}\n'
7120 # If no C compiler was specified, use CC.
7123 # If no C compiler flags were specified, use CFLAGS.
7124 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7126 # Allow CC to be a program name with arguments.
7130 # save warnings/boilerplate of simple test code
7131 ac_outfile=conftest.$ac_objext
7132 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7133 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7134 _lt_compiler_boilerplate=`cat conftest.err`
7137 ac_outfile=conftest.$ac_objext
7138 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7139 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7140 _lt_linker_boilerplate=`cat conftest.err`
7145 lt_prog_compiler_no_builtin_flag=
7147 if test "$GCC" = yes; then
7148 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7151 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7152 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7153 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 lt_cv_prog_compiler_rtti_exceptions=no
7157 ac_outfile=conftest.$ac_objext
7158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7159 lt_compiler_flag="-fno-rtti -fno-exceptions"
7160 # Insert the option either (1) after the last *FLAGS variable, or
7161 # (2) before a word containing "conftest.", or (3) at the end.
7162 # Note that $ac_compile itself does not contain backslashes and begins
7163 # with a dollar sign (not a hyphen), so the echo should work correctly.
7164 # The option is referenced via a variable to avoid confusing sed.
7165 lt_compile=`echo "$ac_compile" | $SED \
7166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7168 -e 's:$: $lt_compiler_flag:'`
7169 (eval echo "\"\$as_me:7169: $lt_compile\"" >&5)
7170 (eval "$lt_compile" 2>conftest.err)
7172 cat conftest.err >&5
7173 echo "$as_me:7173: \$? = $ac_status" >&5
7174 if (exit $ac_status) && test -s "$ac_outfile"; then
7175 # The compiler can only warn and ignore the option if not recognized
7176 # So say no if there are warnings other than the usual output.
7177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7180 lt_cv_prog_compiler_rtti_exceptions=yes
7186 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7187 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7189 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7190 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7197 lt_prog_compiler_wl=
7198 lt_prog_compiler_pic=
7199 lt_prog_compiler_static=
7201 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7202 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7204 if test "$GCC" = yes; then
7205 lt_prog_compiler_wl='-Wl,'
7206 lt_prog_compiler_static='-static'
7210 # All AIX code is PIC.
7211 if test "$host_cpu" = ia64; then
7212 # AIX 5 now supports IA64 processor
7213 lt_prog_compiler_static='-Bstatic'
7218 # FIXME: we need at least 68020 code to build shared libraries, but
7219 # adding the `-m68020' flag to GCC prevents building anything better,
7221 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7224 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7225 # PIC is the default for these OSes.
7228 mingw* | pw32* | os2*)
7229 # This hack is so that the source file can tell whether it is being
7230 # built for inclusion in a dll (and should export symbols for example).
7231 lt_prog_compiler_pic='-DDLL_EXPORT'
7234 darwin* | rhapsody*)
7235 # PIC is the default on this platform
7236 # Common symbols not allowed in MH_DYLIB files
7237 lt_prog_compiler_pic='-fno-common'
7241 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7242 # Instead, we relocate shared libraries at runtime.
7246 # Just because we use GCC doesn't mean we suddenly get shared libraries
7247 # on systems that don't support them.
7248 lt_prog_compiler_can_build_shared=no
7253 if test -d /usr/nec; then
7254 lt_prog_compiler_pic=-Kconform_pic
7259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7266 lt_prog_compiler_pic='-fPIC'
7272 lt_prog_compiler_pic='-fPIC'
7276 # PORTME Check for flag to pass linker flags through the system compiler.
7279 lt_prog_compiler_wl='-Wl,'
7280 if test "$host_cpu" = ia64; then
7281 # AIX 5 now supports IA64 processor
7282 lt_prog_compiler_static='-Bstatic'
7284 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7288 # PIC is the default on this platform
7289 # Common symbols not allowed in MH_DYLIB files
7290 case $cc_basename in
7292 lt_prog_compiler_pic='-qnocommon'
7293 lt_prog_compiler_wl='-Wl,'
7298 mingw* | pw32* | os2*)
7299 # This hack is so that the source file can tell whether it is being
7300 # built for inclusion in a dll (and should export symbols for example).
7301 lt_prog_compiler_pic='-DDLL_EXPORT'
7304 hpux9* | hpux10* | hpux11*)
7305 lt_prog_compiler_wl='-Wl,'
7306 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7313 lt_prog_compiler_pic='+Z'
7316 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7317 lt_prog_compiler_static='${wl}-a ${wl}archive'
7320 irix5* | irix6* | nonstopux*)
7321 lt_prog_compiler_wl='-Wl,'
7322 # PIC (with -KPIC) is the default.
7323 lt_prog_compiler_static='-non_shared'
7327 lt_prog_compiler_pic='-KPIC'
7328 lt_prog_compiler_static='-Bstatic'
7331 linux* | k*bsd*-gnu)
7332 case $cc_basename in
7334 lt_prog_compiler_wl='-Wl,'
7335 lt_prog_compiler_pic='-KPIC'
7336 lt_prog_compiler_static='-static'
7338 pgcc* | pgf77* | pgf90* | pgf95*)
7339 # Portland Group compilers (*not* the Pentium gcc compiler,
7340 # which looks to be a dead project)
7341 lt_prog_compiler_wl='-Wl,'
7342 lt_prog_compiler_pic='-fpic'
7343 lt_prog_compiler_static='-Bstatic'
7346 lt_prog_compiler_wl='-Wl,'
7347 # All Alpha code is PIC.
7348 lt_prog_compiler_static='-non_shared'
7353 osf3* | osf4* | osf5*)
7354 lt_prog_compiler_wl='-Wl,'
7355 # All OSF/1 code is PIC.
7356 lt_prog_compiler_static='-non_shared'
7360 lt_prog_compiler_pic='-KPIC'
7361 lt_prog_compiler_static='-Bstatic'
7362 case $cc_basename in
7364 lt_prog_compiler_wl='-Qoption ld ';;
7366 lt_prog_compiler_wl='-Wl,';;
7371 lt_prog_compiler_wl='-Qoption ld '
7372 lt_prog_compiler_pic='-PIC'
7373 lt_prog_compiler_static='-Bstatic'
7376 sysv4 | sysv4.2uw2* | sysv4.3*)
7377 lt_prog_compiler_wl='-Wl,'
7378 lt_prog_compiler_pic='-KPIC'
7379 lt_prog_compiler_static='-Bstatic'
7383 if test -d /usr/nec ;then
7384 lt_prog_compiler_pic='-Kconform_pic'
7385 lt_prog_compiler_static='-Bstatic'
7389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7390 lt_prog_compiler_wl='-Wl,'
7391 lt_prog_compiler_pic='-KPIC'
7392 lt_prog_compiler_static='-Bstatic'
7396 lt_prog_compiler_wl='-Wl,'
7397 lt_prog_compiler_can_build_shared=no
7401 lt_prog_compiler_pic='-pic'
7402 lt_prog_compiler_static='-Bstatic'
7406 lt_prog_compiler_can_build_shared=no
7411 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7412 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7415 # Check to make sure the PIC flag actually works.
7417 if test -n "$lt_prog_compiler_pic"; then
7419 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7420 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7421 if test "${lt_prog_compiler_pic_works+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 lt_prog_compiler_pic_works=no
7425 ac_outfile=conftest.$ac_objext
7426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7427 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7428 # Insert the option either (1) after the last *FLAGS variable, or
7429 # (2) before a word containing "conftest.", or (3) at the end.
7430 # Note that $ac_compile itself does not contain backslashes and begins
7431 # with a dollar sign (not a hyphen), so the echo should work correctly.
7432 # The option is referenced via a variable to avoid confusing sed.
7433 lt_compile=`echo "$ac_compile" | $SED \
7434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7436 -e 's:$: $lt_compiler_flag:'`
7437 (eval echo "\"\$as_me:7437: $lt_compile\"" >&5)
7438 (eval "$lt_compile" 2>conftest.err)
7440 cat conftest.err >&5
7441 echo "$as_me:7441: \$? = $ac_status" >&5
7442 if (exit $ac_status) && test -s "$ac_outfile"; then
7443 # The compiler can only warn and ignore the option if not recognized
7444 # So say no if there are warnings other than the usual output.
7445 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7448 lt_prog_compiler_pic_works=yes
7454 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7455 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7457 if test x"$lt_prog_compiler_pic_works" = xyes; then
7458 case $lt_prog_compiler_pic in
7460 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7463 lt_prog_compiler_pic=
7464 lt_prog_compiler_can_build_shared=no
7469 # For platforms which do not support PIC, -DPIC is meaningless:
7471 lt_prog_compiler_pic=
7474 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7479 # Check to make sure the static flag actually works.
7481 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7482 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7483 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7484 if test "${lt_prog_compiler_static_works+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 lt_prog_compiler_static_works=no
7488 save_LDFLAGS="$LDFLAGS"
7489 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7490 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7492 # The linker can only warn and ignore the option if not recognized
7493 # So say no if there are warnings
7494 if test -s conftest.err; then
7495 # Append any errors to the config.log.
7496 cat conftest.err 1>&5
7497 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7499 if diff conftest.exp conftest.er2 >/dev/null; then
7500 lt_prog_compiler_static_works=yes
7503 lt_prog_compiler_static_works=yes
7507 LDFLAGS="$save_LDFLAGS"
7510 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7511 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7513 if test x"$lt_prog_compiler_static_works" = xyes; then
7516 lt_prog_compiler_static=
7520 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7521 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7522 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 lt_cv_prog_compiler_c_o=no
7526 $rm -r conftest 2>/dev/null
7530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7532 lt_compiler_flag="-o out/conftest2.$ac_objext"
7533 # Insert the option either (1) after the last *FLAGS variable, or
7534 # (2) before a word containing "conftest.", or (3) at the end.
7535 # Note that $ac_compile itself does not contain backslashes and begins
7536 # with a dollar sign (not a hyphen), so the echo should work correctly.
7537 lt_compile=`echo "$ac_compile" | $SED \
7538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7540 -e 's:$: $lt_compiler_flag:'`
7541 (eval echo "\"\$as_me:7541: $lt_compile\"" >&5)
7542 (eval "$lt_compile" 2>out/conftest.err)
7544 cat out/conftest.err >&5
7545 echo "$as_me:7545: \$? = $ac_status" >&5
7546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7548 # The compiler can only warn and ignore the option if not recognized
7549 # So say no if there are warnings
7550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7553 lt_cv_prog_compiler_c_o=yes
7558 # SGI C++ compiler will create directory out/ii_files/ for
7559 # template instantiation
7560 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7561 $rm out/* && rmdir out
7567 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7568 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7571 hard_links="nottested"
7572 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7573 # do not overwrite the value of need_locks provided by the user
7574 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7575 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7580 ln conftest.a conftest.b 2>&5 || hard_links=no
7581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7582 { echo "$as_me:$LINENO: result: $hard_links" >&5
7583 echo "${ECHO_T}$hard_links" >&6; }
7584 if test "$hard_links" = no; then
7585 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7586 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7593 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7597 allow_undefined_flag=
7598 enable_shared_with_static_runtimes=no
7600 archive_expsym_cmds=
7601 old_archive_From_new_cmds=
7602 old_archive_from_expsyms_cmds=
7603 export_dynamic_flag_spec=
7604 whole_archive_flag_spec=
7605 thread_safe_flag_spec=
7606 hardcode_libdir_flag_spec=
7607 hardcode_libdir_flag_spec_ld=
7608 hardcode_libdir_separator=
7611 hardcode_shlibpath_var=unsupported
7612 link_all_deplibs=unknown
7613 hardcode_automatic=no
7616 always_export_symbols=no
7617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7618 # include_expsyms should be a list of space-separated symbols to be *always*
7619 # included in the symbol list
7621 # exclude_expsyms can be an extended regexp of symbols to exclude
7622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7624 # as well as any symbol that contains `d'.
7625 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7627 # platforms (ab)use it in PIC code, but their linkers get confused if
7628 # the symbol is explicitly referenced. Since portable code cannot
7629 # rely on this symbol name, it's probably fine to never include it in
7630 # preloaded symbol tables.
7631 extract_expsyms_cmds=
7632 # Just being paranoid about ensuring that cc_basename is set.
7633 for cc_temp in $compiler""; do
7635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7644 cygwin* | mingw* | pw32*)
7645 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7646 # When not using gcc, we currently assume that we are using
7647 # Microsoft Visual C++.
7648 if test "$GCC" != yes; then
7653 # we just hope/assume this is gcc and not c89 (= MSVC++)
7662 if test "$with_gnu_ld" = yes; then
7663 # If archive_cmds runs LD, not CC, wlarc should be empty
7666 # Set some defaults for GNU ld with shared library support. These
7667 # are reset later if shared libraries are not supported. Putting them
7668 # here allows them to be overridden if necessary.
7669 runpath_var=LD_RUN_PATH
7670 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7671 export_dynamic_flag_spec='${wl}--export-dynamic'
7672 # ancient GNU ld didn't support --whole-archive et. al.
7673 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7674 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7676 whole_archive_flag_spec=
7678 supports_anon_versioning=no
7679 case `$LD -v 2>/dev/null` in
7680 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7681 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7682 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7683 *\ 2.11.*) ;; # other 2.11 versions
7684 *) supports_anon_versioning=yes ;;
7687 # See if GNU ld supports shared libraries.
7689 aix3* | aix4* | aix5*)
7690 # On AIX/PPC, the GNU linker is very broken
7691 if test "$host_cpu" != ia64; then
7695 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7696 *** to be unable to reliably create shared libraries on AIX.
7697 *** Therefore, libtool is disabling shared libraries support. If you
7698 *** really care for shared libraries, you may want to modify your PATH
7699 *** so that a non-GNU linker is found, and then restart.
7706 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)'
7707 hardcode_libdir_flag_spec='-L$libdir'
7708 hardcode_minus_L=yes
7710 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7711 # that the semantics of dynamic libraries on AmigaOS, at least up
7712 # to version 4, is to share data among multiple programs linked
7713 # with the same dynamic library. Since this doesn't match the
7714 # behavior of shared libraries on other platforms, we can't use
7720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7721 allow_undefined_flag=unsupported
7722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7723 # support --undefined. This deserves some investigation. FIXME
7724 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7730 cygwin* | mingw* | pw32*)
7731 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7732 # as there is no search path for DLLs.
7733 hardcode_libdir_flag_spec='-L$libdir'
7734 allow_undefined_flag=unsupported
7735 always_export_symbols=no
7736 enable_shared_with_static_runtimes=yes
7737 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7739 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7741 # If the export-symbols file already is a .def file (1st line
7742 # is EXPORTS), use it as is; otherwise, prepend...
7743 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7744 cp $export_symbols $output_objdir/$soname.def;
7746 echo EXPORTS > $output_objdir/$soname.def;
7747 cat $export_symbols >> $output_objdir/$soname.def;
7749 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7757 hardcode_shlibpath_var=no
7758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7759 export_dynamic_flag_spec='${wl}-E'
7760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7761 # Instead, shared libraries are loaded at an image base (0x10000000 by
7762 # default) and relocated if they conflict, which is a slow very memory
7763 # consuming and fragmenting process. To avoid this, we pick a random,
7764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7765 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7767 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'
7770 linux* | k*bsd*-gnu)
7771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7773 case $cc_basename,$host_cpu in
7774 pgcc*) # Portland Group C compiler
7775 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7776 tmp_addflag=' $pic_flag'
7778 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7779 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7780 tmp_addflag=' $pic_flag -Mnomain' ;;
7781 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7782 tmp_addflag=' -i_dynamic' ;;
7783 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7784 tmp_addflag=' -i_dynamic -nofor_main' ;;
7785 ifc* | ifort*) # Intel Fortran compiler
7786 tmp_addflag=' -nofor_main' ;;
7788 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7790 if test $supports_anon_versioning = yes; then
7791 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7793 $echo "local: *; };" >> $output_objdir/$libname.ver~
7794 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7802 netbsd* | netbsdelf*-gnu)
7803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7804 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7813 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7817 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7818 *** create shared libraries on Solaris systems. Therefore, libtool
7819 *** is disabling shared libraries support. We urge you to upgrade GNU
7820 *** binutils to release 2.9.1 or newer. Another option is to modify
7821 *** your PATH or compiler configuration so that the native linker is
7822 *** used, and then restart.
7825 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7834 case `$LD -v 2>&1` in
7835 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7839 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7840 *** reliably create shared libraries on SCO systems. Therefore, libtool
7841 *** is disabling shared libraries support. We urge you to upgrade GNU
7842 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7843 *** your PATH or compiler configuration so that the native linker is
7844 *** used, and then restart.
7849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7850 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7861 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7864 hardcode_shlibpath_var=no
7868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7877 if test "$ld_shlibs" = no; then
7879 hardcode_libdir_flag_spec=
7880 export_dynamic_flag_spec=
7881 whole_archive_flag_spec=
7884 # PORTME fill in a description of your system's linker (not GNU ld)
7887 allow_undefined_flag=unsupported
7888 always_export_symbols=yes
7889 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'
7890 # Note: this linker hardcodes the directories in LIBPATH if there
7891 # are no directories specified by -L.
7892 hardcode_minus_L=yes
7893 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7894 # Neither direct hardcoding nor static linking is supported with a
7896 hardcode_direct=unsupported
7901 if test "$host_cpu" = ia64; then
7902 # On IA64, the linker does run time linking by default, so we don't
7903 # have to do anything special.
7904 aix_use_runtimelinking=no
7905 exp_sym_flag='-Bexport'
7908 # If we're using GNU nm, then we don't want the "-C" option.
7909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7910 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7911 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7913 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'
7915 aix_use_runtimelinking=no
7917 # Test if we are trying to use run time linking or normal
7918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7919 # need to do runtime linking.
7920 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7921 for ld_flag in $LDFLAGS; do
7922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7923 aix_use_runtimelinking=yes
7930 exp_sym_flag='-bexport'
7931 no_entry_flag='-bnoentry'
7934 # When large executables or shared objects are built, AIX ld can
7935 # have problems creating the table of contents. If linking a library
7936 # or program results in "error TOC overflow" add -mminimal-toc to
7937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7942 hardcode_libdir_separator=':'
7943 link_all_deplibs=yes
7945 if test "$GCC" = yes; then
7946 case $host_os in aix4.[012]|aix4.[012].*)
7947 # We only want to do this on AIX 4.2 and lower, the check
7948 # below for broken collect2 doesn't work under 4.3+
7949 collect2name=`${CC} -print-prog-name=collect2`
7950 if test -f "$collect2name" && \
7951 strings "$collect2name" | grep resolve_lib_name >/dev/null
7953 # We have reworked collect2
7956 # We have old collect2
7957 hardcode_direct=unsupported
7958 # It fails to find uninstalled libraries when the uninstalled
7959 # path is not listed in the libpath. Setting hardcode_minus_L
7960 # to unsupported forces relinking
7961 hardcode_minus_L=yes
7962 hardcode_libdir_flag_spec='-L$libdir'
7963 hardcode_libdir_separator=
7967 shared_flag='-shared'
7968 if test "$aix_use_runtimelinking" = yes; then
7969 shared_flag="$shared_flag "'${wl}-G'
7973 if test "$host_cpu" = ia64; then
7974 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7975 # chokes on -Wl,-G. The following line is correct:
7978 if test "$aix_use_runtimelinking" = yes; then
7979 shared_flag='${wl}-G'
7981 shared_flag='${wl}-bM:SRE'
7986 # It seems that -bexpall does not export symbols beginning with
7987 # underscore (_), so it is better to generate a list of symbols to export.
7988 always_export_symbols=yes
7989 if test "$aix_use_runtimelinking" = yes; then
7990 # Warning - without using the other runtime loading flags (-brtl),
7991 # -berok will link without error, but may produce a broken library.
7992 allow_undefined_flag='-berok'
7993 # Determine the default libpath from the value encoded in an empty executable.
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (ac_try="$ac_link"
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_link") 2>conftest.er1
8018 grep -v '^ *+' conftest.er1 >conftest.err
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest$ac_exeext &&
8026 $as_test_x conftest$ac_exeext; then
8028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8030 # Check for a 64-bit object if we didn't find anything.
8031 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8041 conftest$ac_exeext conftest.$ac_ext
8042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8044 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8045 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8047 if test "$host_cpu" = ia64; then
8048 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8049 allow_undefined_flag="-z nodefs"
8050 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"
8052 # Determine the default libpath from the value encoded in an empty executable.
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_link") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest$ac_exeext &&
8085 $as_test_x conftest$ac_exeext; then
8087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8089 # Check for a 64-bit object if we didn't find anything.
8090 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8100 conftest$ac_exeext conftest.$ac_ext
8101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8104 # Warning - without using the other run time loading flags,
8105 # -berok will link without error, but may produce a broken library.
8106 no_undefined_flag=' ${wl}-bernotok'
8107 allow_undefined_flag=' ${wl}-berok'
8108 # Exported symbols can be pulled into shared objects from archives
8109 whole_archive_flag_spec='$convenience'
8110 archive_cmds_need_lc=yes
8111 # This is similar to how AIX traditionally builds its shared libraries.
8112 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'
8118 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)'
8119 hardcode_libdir_flag_spec='-L$libdir'
8120 hardcode_minus_L=yes
8121 # see comment about different semantics on the GNU ld section
8126 export_dynamic_flag_spec=-rdynamic
8129 cygwin* | mingw* | pw32*)
8130 # When not using gcc, we currently assume that we are using
8131 # Microsoft Visual C++.
8132 # hardcode_libdir_flag_spec is actually meaningless, as there is
8133 # no search path for DLLs.
8134 hardcode_libdir_flag_spec=' '
8135 allow_undefined_flag=unsupported
8136 # Tell ltmain to make .lib files, not .a files.
8138 # Tell ltmain to make .dll files, not .so files.
8140 # FIXME: Setting linknames here is a bad hack.
8141 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8142 # The linker will automatically build a .lib file if we build a DLL.
8143 old_archive_From_new_cmds='true'
8144 # FIXME: Should let the user specify the lib program.
8145 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8146 fix_srcfile_path='`cygpath -w "$srcfile"`'
8147 enable_shared_with_static_runtimes=yes
8150 darwin* | rhapsody*)
8152 rhapsody* | darwin1.[012])
8153 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8156 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8157 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8159 case ${MACOSX_DEPLOYMENT_TARGET} in
8161 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8164 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8170 archive_cmds_need_lc=no
8172 hardcode_automatic=yes
8173 hardcode_shlibpath_var=unsupported
8174 whole_archive_flag_spec=''
8175 link_all_deplibs=yes
8176 if test "$GCC" = yes ; then
8177 output_verbose_link_cmd='echo'
8178 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8179 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8180 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8181 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8182 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8184 case $cc_basename in
8186 output_verbose_link_cmd='echo'
8187 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8188 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8189 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8190 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8191 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8202 hardcode_libdir_flag_spec='-L$libdir'
8203 hardcode_shlibpath_var=no
8210 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8211 # support. Future versions do this automatically, but an explicit c++rt0.o
8212 # does not break anything, and helps significantly (at the cost of a little
8215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8216 hardcode_libdir_flag_spec='-R$libdir'
8218 hardcode_shlibpath_var=no
8221 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_minus_L=yes
8226 hardcode_shlibpath_var=no
8229 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8230 freebsd* | dragonfly*)
8231 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8232 hardcode_libdir_flag_spec='-R$libdir'
8234 hardcode_shlibpath_var=no
8238 if test "$GCC" = yes; then
8239 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8241 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'
8243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8244 hardcode_libdir_separator=:
8247 # hardcode_minus_L: Not really in the search PATH,
8248 # but as the default location of the library.
8249 hardcode_minus_L=yes
8250 export_dynamic_flag_spec='${wl}-E'
8254 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8255 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8257 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8259 if test "$with_gnu_ld" = no; then
8260 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8261 hardcode_libdir_separator=:
8264 export_dynamic_flag_spec='${wl}-E'
8266 # hardcode_minus_L: Not really in the search PATH,
8267 # but as the default location of the library.
8268 hardcode_minus_L=yes
8273 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8276 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8279 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8282 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8288 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8291 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8294 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8298 if test "$with_gnu_ld" = no; then
8299 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8300 hardcode_libdir_separator=:
8304 hardcode_libdir_flag_spec_ld='+b $libdir'
8306 hardcode_shlibpath_var=no
8310 export_dynamic_flag_spec='${wl}-E'
8312 # hardcode_minus_L: Not really in the search PATH,
8313 # but as the default location of the library.
8314 hardcode_minus_L=yes
8320 irix5* | irix6* | nonstopux*)
8321 if test "$GCC" = yes; then
8322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8324 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8325 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8328 hardcode_libdir_separator=:
8329 link_all_deplibs=yes
8332 netbsd* | netbsdelf*-gnu)
8333 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8336 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8338 hardcode_libdir_flag_spec='-R$libdir'
8340 hardcode_shlibpath_var=no
8344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8347 hardcode_libdir_separator=:
8348 hardcode_shlibpath_var=no
8353 hardcode_shlibpath_var=no
8354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8356 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8357 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8358 export_dynamic_flag_spec='${wl}-E'
8361 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8363 hardcode_libdir_flag_spec='-R$libdir'
8366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8367 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8374 hardcode_libdir_flag_spec='-L$libdir'
8375 hardcode_minus_L=yes
8376 allow_undefined_flag=unsupported
8377 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'
8378 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8382 if test "$GCC" = yes; then
8383 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8384 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8386 allow_undefined_flag=' -expect_unresolved \*'
8387 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8390 hardcode_libdir_separator=:
8393 osf4* | osf5*) # as osf3* with the addition of -msym flag
8394 if test "$GCC" = yes; then
8395 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8396 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8399 allow_undefined_flag=' -expect_unresolved \*'
8400 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8401 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8402 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8404 # Both c and cxx compiler support -rpath directly
8405 hardcode_libdir_flag_spec='-rpath $libdir'
8407 hardcode_libdir_separator=:
8411 no_undefined_flag=' -z text'
8412 if test "$GCC" = yes; then
8414 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8415 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8416 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8419 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8421 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8423 hardcode_libdir_flag_spec='-R$libdir'
8424 hardcode_shlibpath_var=no
8426 solaris2.[0-5] | solaris2.[0-5].*) ;;
8428 # The compiler driver will combine linker options so we
8429 # cannot just pass the convience library names through
8430 # without $wl, iff we do not link with $LD.
8431 # Luckily, gcc supports the same syntax we need for Sun Studio.
8432 # Supported since Solaris 2.6 (maybe 2.5.1?)
8435 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8437 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8440 link_all_deplibs=yes
8444 if test "x$host_vendor" = xsequent; then
8445 # Use $CC to link under sequent, because it throws in some extra .o
8446 # files that make .init and .fini sections work.
8447 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8449 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8451 hardcode_libdir_flag_spec='-L$libdir'
8453 hardcode_minus_L=yes
8454 hardcode_shlibpath_var=no
8458 case $host_vendor in
8460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8461 hardcode_direct=yes # is this really true???
8464 ## LD is ld it makes a PLAMLIB
8465 ## CC just makes a GrossModule.
8466 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8467 reload_cmds='$CC -r -o $output$reload_objs'
8471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8472 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8475 runpath_var='LD_RUN_PATH'
8476 hardcode_shlibpath_var=no
8480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481 hardcode_shlibpath_var=no
8482 export_dynamic_flag_spec='-Bexport'
8486 if test -d /usr/nec; then
8487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8488 hardcode_shlibpath_var=no
8489 runpath_var=LD_RUN_PATH
8490 hardcode_runpath_var=yes
8495 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8496 no_undefined_flag='${wl}-z,text'
8497 archive_cmds_need_lc=no
8498 hardcode_shlibpath_var=no
8499 runpath_var='LD_RUN_PATH'
8501 if test "$GCC" = yes; then
8502 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8503 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8505 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8506 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 sysv5* | sco3.2v5* | sco5v6*)
8511 # Note: We can NOT use -z defs as we might desire, because we do not
8512 # link with -lc, and that would cause any symbols used from libc to
8513 # always be unresolved, which means just about no library would
8514 # ever link correctly. If we're not using GNU ld we use -z text
8515 # though, which does catch some bad symbols but isn't as heavy-handed
8517 no_undefined_flag='${wl}-z,text'
8518 allow_undefined_flag='${wl}-z,nodefs'
8519 archive_cmds_need_lc=no
8520 hardcode_shlibpath_var=no
8521 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8522 hardcode_libdir_separator=':'
8523 link_all_deplibs=yes
8524 export_dynamic_flag_spec='${wl}-Bexport'
8525 runpath_var='LD_RUN_PATH'
8527 if test "$GCC" = yes; then
8528 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8531 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8538 hardcode_libdir_flag_spec='-L$libdir'
8539 hardcode_shlibpath_var=no
8548 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8549 echo "${ECHO_T}$ld_shlibs" >&6; }
8550 test "$ld_shlibs" = no && can_build_shared=no
8553 # Do we need to explicitly link libc?
8555 case "x$archive_cmds_need_lc" in
8557 # Assume -lc should be added
8558 archive_cmds_need_lc=yes
8560 if test "$enable_shared" = yes && test "$GCC" = yes; then
8561 case $archive_cmds in
8563 # FIXME: we may have to deal with multi-command sequences.
8566 # Test whether the compiler implicitly links with -lc since on some
8567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8568 # to ld, don't add -lc before -lgcc.
8569 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8570 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8572 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575 (eval $ac_compile) 2>&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } 2>conftest.err; then
8581 libobjs=conftest.$ac_objext
8583 wl=$lt_prog_compiler_wl
8584 pic_flag=$lt_prog_compiler_pic
8590 lt_save_allow_undefined_flag=$allow_undefined_flag
8591 allow_undefined_flag=
8592 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8593 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }
8598 archive_cmds_need_lc=no
8600 archive_cmds_need_lc=yes
8602 allow_undefined_flag=$lt_save_allow_undefined_flag
8604 cat conftest.err 1>&5
8607 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8608 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8615 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8616 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8618 libname_spec='lib$name'
8626 shlibpath_overrides_runpath=unknown
8628 dynamic_linker="$host_os ld.so"
8629 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8630 if test "$GCC" = yes; then
8631 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8632 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8633 # if the path contains ";" then we assume it to be the separator
8634 # otherwise default to the standard path separator (i.e. ":") - it is
8635 # assumed that no part of a normal pathname contains ";" but that should
8636 # okay in the real world where ";" in dirpaths is itself problematic.
8637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8639 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8642 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8644 need_lib_prefix=unknown
8645 hardcode_into_libs=no
8647 # when you set need_version to no, make sure it does not cause -set_version
8648 # flags to be left without arguments
8649 need_version=unknown
8654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8655 shlibpath_var=LIBPATH
8657 # AIX 3 has no versioning support, so we append a major version to the name.
8658 soname_spec='${libname}${release}${shared_ext}$major'
8665 hardcode_into_libs=yes
8666 if test "$host_cpu" = ia64; then
8667 # AIX 5 supports IA64
8668 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8669 shlibpath_var=LD_LIBRARY_PATH
8671 # With GCC up to 2.95.x, collect2 would create an import file
8672 # for dependence libraries. The import file would start with
8673 # the line `#! .'. This would cause the generated library to
8674 # depend on `.', always an invalid library. This was fixed in
8675 # development snapshots of GCC prior to 3.0.
8677 aix4 | aix4.[01] | aix4.[01].*)
8678 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8680 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8687 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8688 # soname into executable. Probably we can add versioning support to
8689 # collect2, so additional links can be useful in future.
8690 if test "$aix_use_runtimelinking" = yes; then
8691 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8692 # instead of lib<name>.a to let people know that these are not
8693 # typical AIX shared libraries.
8694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8696 # We preserve .a as extension for shared libraries through AIX4.2
8697 # and later when we are not doing run time linking.
8698 library_names_spec='${libname}${release}.a $libname.a'
8699 soname_spec='${libname}${release}${shared_ext}$major'
8701 shlibpath_var=LIBPATH
8706 library_names_spec='$libname.ixlibrary $libname.a'
8707 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8708 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8712 library_names_spec='${libname}${shared_ext}'
8713 dynamic_linker="$host_os ld.so"
8714 shlibpath_var=LIBRARY_PATH
8720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8721 soname_spec='${libname}${release}${shared_ext}$major'
8722 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8723 shlibpath_var=LD_LIBRARY_PATH
8724 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8725 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8726 # the default ld.so.conf also contains /usr/contrib/lib and
8727 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8728 # libtool to hard-code these into programs
8731 cygwin* | mingw* | pw32*)
8732 version_type=windows
8737 case $GCC,$host_os in
8738 yes,cygwin* | yes,mingw* | yes,pw32*)
8739 library_names_spec='$libname.dll.a'
8740 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8741 postinstall_cmds='base_file=`basename \${file}`~
8742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8743 dldir=$destdir/`dirname \$dlpath`~
8744 test -d \$dldir || mkdir -p \$dldir~
8745 $install_prog $dir/$dlname \$dldir/$dlname~
8746 chmod a+x \$dldir/$dlname'
8747 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8748 dlpath=$dir/\$dldll~
8750 shlibpath_overrides_runpath=yes
8754 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8755 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8756 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8759 # MinGW DLLs use traditional 'lib' prefix
8760 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8762 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8763 # It is most probably a Windows format PATH printed by
8764 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8765 # path with ; separators, and with drive letters. We can handle the
8766 # drive letters (cygwin fileutils understands them), so leave them,
8767 # especially as we might pass files found there to a mingw objdump,
8768 # which wouldn't understand a cygwinified path. Ahh.
8769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8775 # pw32 DLLs use 'pw' prefix rather than 'lib'
8776 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8782 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8785 dynamic_linker='Win32 ld.exe'
8786 # FIXME: first we should search . and the directory the executable is in
8790 darwin* | rhapsody*)
8791 dynamic_linker="$host_os dyld"
8795 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8796 soname_spec='${libname}${release}${major}$shared_ext'
8797 shlibpath_overrides_runpath=yes
8798 shlibpath_var=DYLD_LIBRARY_PATH
8799 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8800 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8801 if test "$GCC" = yes; then
8802 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8804 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8806 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 shlibpath_var=LD_LIBRARY_PATH
8822 freebsd* | dragonfly*)
8823 # DragonFly does not have aout. When/if they implement a new
8824 # versioning mechanism, adjust this.
8825 if test -x /usr/bin/objformat; then
8826 objformat=`/usr/bin/objformat`
8829 freebsd[123]*) objformat=aout ;;
8833 version_type=freebsd-$objformat
8834 case $version_type in
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8845 shlibpath_var=LD_LIBRARY_PATH
8848 shlibpath_overrides_runpath=yes
8850 freebsd3.[01]* | freebsdelf3.[01]*)
8851 shlibpath_overrides_runpath=yes
8852 hardcode_into_libs=yes
8854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8856 shlibpath_overrides_runpath=no
8857 hardcode_into_libs=yes
8859 freebsd*) # from 4.6 on
8860 shlibpath_overrides_runpath=yes
8861 hardcode_into_libs=yes
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 hardcode_into_libs=yes
8876 hpux9* | hpux10* | hpux11*)
8877 # Give a soname corresponding to the major version so that dld.sl refuses to
8878 # link against other versions.
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.so"
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 if test "X$HPUX_IA64_MODE" = X32; then
8892 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8900 hardcode_into_libs=yes
8901 dynamic_linker="$host_os dld.sl"
8902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8911 dynamic_linker="$host_os dld.sl"
8912 shlibpath_var=SHLIB_PATH
8913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8918 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8919 postinstall_cmds='chmod 555 $lib'
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=no
8931 hardcode_into_libs=yes
8934 irix5* | irix6* | nonstopux*)
8936 nonstopux*) version_type=nonstopux ;;
8938 if test "$lt_cv_prog_gnu_ld" = yes; then
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8949 irix5* | nonstopux*)
8953 case $LD in # libtool.m4 will add one of these switches to LD
8954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8955 libsuff= shlibsuff= libmagic=32-bit;;
8956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8957 libsuff=32 shlibsuff=N32 libmagic=N32;;
8958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8960 *) libsuff= shlibsuff= libmagic=never-match;;
8964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8965 shlibpath_overrides_runpath=no
8966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8968 hardcode_into_libs=yes
8971 # No shared lib support for Linux oldld, aout, or coff.
8972 linux*oldld* | linux*aout* | linux*coff*)
8976 # This must be Linux ELF.
8977 linux* | k*bsd*-gnu)
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 # This implies no fast_install, which is unacceptable.
8987 # Some rework will be needed to allow for fast_install
8988 # before this can be enabled.
8989 hardcode_into_libs=yes
8991 # Append ld.so.conf contents to the search path
8992 if test -f /etc/ld.so.conf; then
8993 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8994 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8997 # We used to test for /lib/ld.so.1 and disable shared libraries on
8998 # powerpc, because MkLinux only supported shared libraries with the
8999 # GNU dynamic linker. Since this was broken with cross compilers,
9000 # most powerpc-linux boxes support dynamic linking these days and
9001 # people can always --disable-shared, the test was removed, and we
9002 # assume the GNU/Linux dynamic linker is in use.
9003 dynamic_linker='GNU/Linux ld.so'
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=no
9014 hardcode_into_libs=yes
9015 dynamic_linker='NetBSD ld.elf_so'
9022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9025 dynamic_linker='NetBSD (a.out) ld.so'
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9028 soname_spec='${libname}${release}${shared_ext}$major'
9029 dynamic_linker='NetBSD ld.elf_so'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes
9033 hardcode_into_libs=yes
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 shlibpath_overrides_runpath=yes
9055 sys_lib_dlsearch_path_spec="/usr/lib"
9057 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9059 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9060 *) need_version=no ;;
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9067 openbsd2.[89] | openbsd2.[89].*)
9068 shlibpath_overrides_runpath=no
9071 shlibpath_overrides_runpath=yes
9075 shlibpath_overrides_runpath=yes
9080 libname_spec='$name'
9083 library_names_spec='$libname${shared_ext} $libname.a'
9084 dynamic_linker='OS/2 ld.exe'
9085 shlibpath_var=LIBPATH
9088 osf3* | osf4* | osf5*)
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 shlibpath_overrides_runpath=yes
9107 hardcode_into_libs=yes
9108 # ldd complains unless libraries are executable
9109 postinstall_cmds='chmod +x $lib'
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9115 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=yes
9118 if test "$with_gnu_ld" = yes; then
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 case $host_vendor in
9131 shlibpath_overrides_runpath=no
9133 export_dynamic_flag_spec='${wl}-Blargedynsym'
9134 runpath_var=LD_RUN_PATH
9142 shlibpath_overrides_runpath=no
9143 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9149 if test -d /usr/nec ;then
9151 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9152 soname_spec='$libname${shared_ext}.$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9158 version_type=freebsd-elf
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 hardcode_into_libs=yes
9165 if test "$with_gnu_ld" = yes; then
9166 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9167 shlibpath_overrides_runpath=no
9169 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9170 shlibpath_overrides_runpath=yes
9173 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9177 sys_lib_dlsearch_path_spec='/usr/lib'
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9191 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9192 echo "${ECHO_T}$dynamic_linker" >&6; }
9193 test "$dynamic_linker" = no && can_build_shared=no
9195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9196 if test "$GCC" = yes; then
9197 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9200 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9201 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9203 if test -n "$hardcode_libdir_flag_spec" || \
9204 test -n "$runpath_var" || \
9205 test "X$hardcode_automatic" = "Xyes" ; then
9207 # We can hardcode non-existant directories.
9208 if test "$hardcode_direct" != no &&
9209 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9210 # have to relink, otherwise we might link with an installed library
9211 # when we should be linking with a yet-to-be-installed one
9212 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9213 test "$hardcode_minus_L" != no; then
9214 # Linking always hardcodes the temporary library directory.
9215 hardcode_action=relink
9217 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9218 hardcode_action=immediate
9221 # We cannot hardcode anything, or else we can only hardcode existing
9223 hardcode_action=unsupported
9225 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9226 echo "${ECHO_T}$hardcode_action" >&6; }
9228 if test "$hardcode_action" = relink; then
9229 # Fast installation is not supported
9230 enable_fast_install=no
9231 elif test "$shlibpath_overrides_runpath" = yes ||
9232 test "$enable_shared" = no; then
9233 # Fast installation is not necessary
9234 enable_fast_install=needless
9239 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9240 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9241 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9242 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9243 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9244 { echo "$as_me:$LINENO: result: yes" >&5
9245 echo "${ECHO_T}yes" >&6; }
9247 # FIXME - insert some real tests, host_os isn't really good enough
9250 if test -n "$STRIP" ; then
9251 striplib="$STRIP -x"
9252 { echo "$as_me:$LINENO: result: yes" >&5
9253 echo "${ECHO_T}yes" >&6; }
9255 { echo "$as_me:$LINENO: result: no" >&5
9256 echo "${ECHO_T}no" >&6; }
9260 { echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6; }
9266 if test "x$enable_dlopen" != xyes; then
9267 enable_dlopen=unknown
9268 enable_dlopen_self=unknown
9269 enable_dlopen_self_static=unknown
9276 lt_cv_dlopen="load_add_on"
9278 lt_cv_dlopen_self=yes
9282 lt_cv_dlopen="LoadLibrary"
9287 lt_cv_dlopen="dlopen"
9292 # if libdl is installed we need to link against it
9293 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9294 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9295 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 ac_check_lib_save_LIBS=$LIBS
9300 cat >conftest.$ac_ext <<_ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9307 /* Override any GCC internal prototype to avoid an error.
9308 Use char because int might match the return type of a GCC
9309 builtin and then its argument prototype would still apply. */
9322 rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (ac_try="$ac_link"
9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_link") 2>conftest.er1
9331 grep -v '^ *+' conftest.er1 >conftest.err
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } && {
9336 test -z "$ac_c_werror_flag" ||
9337 test ! -s conftest.err
9338 } && test -s conftest$ac_exeext &&
9339 $as_test_x conftest$ac_exeext; then
9340 ac_cv_lib_dl_dlopen=yes
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 ac_cv_lib_dl_dlopen=no
9348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9349 conftest$ac_exeext conftest.$ac_ext
9350 LIBS=$ac_check_lib_save_LIBS
9352 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9353 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9354 if test $ac_cv_lib_dl_dlopen = yes; then
9355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9360 lt_cv_dlopen_self=yes
9367 { echo "$as_me:$LINENO: checking for shl_load" >&5
9368 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9369 if test "${ac_cv_func_shl_load+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 cat >conftest.$ac_ext <<_ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9380 #define shl_load innocuous_shl_load
9382 /* System header to define __stub macros and hopefully few prototypes,
9383 which can conflict with char shl_load (); below.
9384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9385 <limits.h> exists even on freestanding compilers. */
9388 # include <limits.h>
9390 # include <assert.h>
9395 /* Override any GCC internal prototype to avoid an error.
9396 Use char because int might match the return type of a GCC
9397 builtin and then its argument prototype would still apply. */
9402 /* The GNU C library defines this for functions which it implements
9403 to always fail with ENOSYS. Some functions are actually named
9404 something starting with __ and the normal name is an alias. */
9405 #if defined __stub_shl_load || defined __stub___shl_load
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (ac_try="$ac_link"
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_link") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest$ac_exeext &&
9434 $as_test_x conftest$ac_exeext; then
9435 ac_cv_func_shl_load=yes
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ac_cv_func_shl_load=no
9443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444 conftest$ac_exeext conftest.$ac_ext
9446 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9447 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9448 if test $ac_cv_func_shl_load = yes; then
9449 lt_cv_dlopen="shl_load"
9451 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9452 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9453 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 ac_check_lib_save_LIBS=$LIBS
9458 cat >conftest.$ac_ext <<_ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9480 rm -f conftest.$ac_objext conftest$ac_exeext
9481 if { (ac_try="$ac_link"
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487 (eval "$ac_link") 2>conftest.er1
9489 grep -v '^ *+' conftest.er1 >conftest.err
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } && {
9494 test -z "$ac_c_werror_flag" ||
9495 test ! -s conftest.err
9496 } && test -s conftest$ac_exeext &&
9497 $as_test_x conftest$ac_exeext; then
9498 ac_cv_lib_dld_shl_load=yes
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9503 ac_cv_lib_dld_shl_load=no
9506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9507 conftest$ac_exeext conftest.$ac_ext
9508 LIBS=$ac_check_lib_save_LIBS
9510 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9511 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9512 if test $ac_cv_lib_dld_shl_load = yes; then
9513 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9515 { echo "$as_me:$LINENO: checking for dlopen" >&5
9516 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9517 if test "${ac_cv_func_dlopen+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9528 #define dlopen innocuous_dlopen
9530 /* System header to define __stub macros and hopefully few prototypes,
9531 which can conflict with char dlopen (); below.
9532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9533 <limits.h> exists even on freestanding compilers. */
9536 # include <limits.h>
9538 # include <assert.h>
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9550 /* The GNU C library defines this for functions which it implements
9551 to always fail with ENOSYS. Some functions are actually named
9552 something starting with __ and the normal name is an alias. */
9553 #if defined __stub_dlopen || defined __stub___dlopen
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (ac_try="$ac_link"
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_link") 2>conftest.er1
9574 grep -v '^ *+' conftest.er1 >conftest.err
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest$ac_exeext &&
9582 $as_test_x conftest$ac_exeext; then
9583 ac_cv_func_dlopen=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_cv_func_dlopen=no
9591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592 conftest$ac_exeext conftest.$ac_ext
9594 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9595 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9596 if test $ac_cv_func_dlopen = yes; then
9597 lt_cv_dlopen="dlopen"
9599 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9600 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9601 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 ac_check_lib_save_LIBS=$LIBS
9606 cat >conftest.$ac_ext <<_ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9613 /* Override any GCC internal prototype to avoid an error.
9614 Use char because int might match the return type of a GCC
9615 builtin and then its argument prototype would still apply. */
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (ac_try="$ac_link"
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_link") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest$ac_exeext &&
9645 $as_test_x conftest$ac_exeext; then
9646 ac_cv_lib_dl_dlopen=yes
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ac_cv_lib_dl_dlopen=no
9654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9655 conftest$ac_exeext conftest.$ac_ext
9656 LIBS=$ac_check_lib_save_LIBS
9658 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9660 if test $ac_cv_lib_dl_dlopen = yes; then
9661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9663 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9664 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_check_lib_save_LIBS=$LIBS
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } && {
9706 test -z "$ac_c_werror_flag" ||
9707 test ! -s conftest.err
9708 } && test -s conftest$ac_exeext &&
9709 $as_test_x conftest$ac_exeext; then
9710 ac_cv_lib_svld_dlopen=yes
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 ac_cv_lib_svld_dlopen=no
9718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9719 conftest$ac_exeext conftest.$ac_ext
9720 LIBS=$ac_check_lib_save_LIBS
9722 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9723 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9724 if test $ac_cv_lib_svld_dlopen = yes; then
9725 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9727 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9728 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9729 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 ac_check_lib_save_LIBS=$LIBS
9734 cat >conftest.$ac_ext <<_ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9741 /* Override any GCC internal prototype to avoid an error.
9742 Use char because int might match the return type of a GCC
9743 builtin and then its argument prototype would still apply. */
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_link") 2>conftest.er1
9765 grep -v '^ *+' conftest.er1 >conftest.err
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } && {
9770 test -z "$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9772 } && test -s conftest$ac_exeext &&
9773 $as_test_x conftest$ac_exeext; then
9774 ac_cv_lib_dld_dld_link=yes
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_cv_lib_dld_dld_link=no
9782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9783 conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9786 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9787 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9788 if test $ac_cv_lib_dld_dld_link = yes; then
9789 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9810 if test "x$lt_cv_dlopen" != xno; then
9816 case $lt_cv_dlopen in
9818 save_CPPFLAGS="$CPPFLAGS"
9819 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9821 save_LDFLAGS="$LDFLAGS"
9822 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9825 LIBS="$lt_cv_dlopen_libs $LIBS"
9827 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9828 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9829 if test "${lt_cv_dlopen_self+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 if test "$cross_compiling" = yes; then :
9833 lt_cv_dlopen_self=cross
9835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9836 lt_status=$lt_dlunknown
9837 cat > conftest.$ac_ext <<EOF
9838 #line 9838 "configure"
9839 #include "confdefs.h"
9848 # define LT_DLGLOBAL RTLD_GLOBAL
9851 # define LT_DLGLOBAL DL_GLOBAL
9853 # define LT_DLGLOBAL 0
9857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9858 find out it does not work in some platform. */
9859 #ifndef LT_DLLAZY_OR_NOW
9861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9864 # define LT_DLLAZY_OR_NOW DL_LAZY
9867 # define LT_DLLAZY_OR_NOW RTLD_NOW
9870 # define LT_DLLAZY_OR_NOW DL_NOW
9872 # define LT_DLLAZY_OR_NOW 0
9880 extern "C" void exit (int);
9883 void fnord() { int i=42;}
9886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9887 int status = $lt_dlunknown;
9891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9892 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9893 /* dlclose (self); */
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9906 (./conftest; exit; ) >&5 2>/dev/null
9909 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9910 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9911 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9914 # compilation failed
9915 lt_cv_dlopen_self=no
9922 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9923 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9925 if test "x$lt_cv_dlopen_self" = xyes; then
9926 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9927 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9928 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9929 if test "${lt_cv_dlopen_self_static+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 if test "$cross_compiling" = yes; then :
9933 lt_cv_dlopen_self_static=cross
9935 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9936 lt_status=$lt_dlunknown
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9938 "configure"
9939 #include "confdefs.h"
9948 # define LT_DLGLOBAL RTLD_GLOBAL
9951 # define LT_DLGLOBAL DL_GLOBAL
9953 # define LT_DLGLOBAL 0
9957 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9958 find out it does not work in some platform. */
9959 #ifndef LT_DLLAZY_OR_NOW
9961 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9964 # define LT_DLLAZY_OR_NOW DL_LAZY
9967 # define LT_DLLAZY_OR_NOW RTLD_NOW
9970 # define LT_DLLAZY_OR_NOW DL_NOW
9972 # define LT_DLLAZY_OR_NOW 0
9980 extern "C" void exit (int);
9983 void fnord() { int i=42;}
9986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9987 int status = $lt_dlunknown;
9991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9992 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9993 /* dlclose (self); */
10001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10002 (eval $ac_link) 2>&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10006 (./conftest; exit; ) >&5 2>/dev/null
10008 case x$lt_status in
10009 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10010 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10011 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10014 # compilation failed
10015 lt_cv_dlopen_self_static=no
10022 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10023 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10026 CPPFLAGS="$save_CPPFLAGS"
10027 LDFLAGS="$save_LDFLAGS"
10032 case $lt_cv_dlopen_self in
10033 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10034 *) enable_dlopen_self=unknown ;;
10037 case $lt_cv_dlopen_self_static in
10038 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10039 *) enable_dlopen_self_static=unknown ;;
10044 # Report which library types will actually be built
10045 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10046 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10047 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10048 echo "${ECHO_T}$can_build_shared" >&6; }
10050 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10051 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10052 test "$can_build_shared" = "no" && enable_shared=no
10054 # On AIX, shared libraries and static libraries use the same namespace, and
10055 # are all built from PIC.
10058 test "$enable_shared" = yes && enable_static=no
10059 if test -n "$RANLIB"; then
10060 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10061 postinstall_cmds='$RANLIB $lib'
10066 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10067 test "$enable_shared" = yes && enable_static=no
10071 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10072 echo "${ECHO_T}$enable_shared" >&6; }
10074 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10075 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10076 # Make sure either enable_shared or enable_static is yes.
10077 test "$enable_shared" = yes || enable_static=yes
10078 { echo "$as_me:$LINENO: result: $enable_static" >&5
10079 echo "${ECHO_T}$enable_static" >&6; }
10081 # The else clause should only fire when bootstrapping the
10082 # libtool distribution, otherwise you forgot to ship ltmain.sh
10083 # with your package, and you will get complaints that there are
10084 # no rules to generate ltmain.sh.
10085 if test -f "$ltmain"; then
10086 # See if we are running on zsh, and set the options which allow our commands through
10087 # without removal of \ escapes.
10088 if test -n "${ZSH_VERSION+set}" ; then
10089 setopt NO_GLOB_SUBST
10091 # Now quote all the things that may contain metacharacters while being
10092 # careful not to overquote the AC_SUBSTed values. We take copies of the
10093 # variables and quote the copies for generation of the libtool script.
10094 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10096 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10097 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10098 deplibs_check_method reload_flag reload_cmds need_locks \
10099 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10100 lt_cv_sys_global_symbol_to_c_name_address \
10101 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10102 old_postinstall_cmds old_postuninstall_cmds \
10106 lt_prog_compiler_wl \
10107 lt_prog_compiler_pic \
10108 lt_prog_compiler_static \
10109 lt_prog_compiler_no_builtin_flag \
10110 export_dynamic_flag_spec \
10111 thread_safe_flag_spec \
10112 whole_archive_flag_spec \
10113 enable_shared_with_static_runtimes \
10115 old_archive_from_new_cmds \
10120 compiler_lib_search_path \
10122 archive_expsym_cmds \
10124 postuninstall_cmds \
10125 old_archive_from_expsyms_cmds \
10126 allow_undefined_flag \
10127 no_undefined_flag \
10128 export_symbols_cmds \
10129 hardcode_libdir_flag_spec \
10130 hardcode_libdir_flag_spec_ld \
10131 hardcode_libdir_separator \
10132 hardcode_automatic \
10134 module_expsym_cmds \
10135 lt_cv_prog_compiler_c_o \
10137 include_expsyms; do
10140 old_archive_cmds | \
10141 old_archive_from_new_cmds | \
10143 archive_expsym_cmds | \
10145 module_expsym_cmds | \
10146 old_archive_from_expsyms_cmds | \
10147 export_symbols_cmds | \
10148 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10149 postinstall_cmds | postuninstall_cmds | \
10150 old_postinstall_cmds | old_postuninstall_cmds | \
10151 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10152 # Double-quote double-evaled strings.
10153 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10156 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10162 *'\$0 --fallback-echo"')
10163 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10167 cfgfile="${ofile}T"
10168 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10170 { echo "$as_me:$LINENO: creating $ofile" >&5
10171 echo "$as_me: creating $ofile" >&6;}
10173 cat <<__EOF__ >> "$cfgfile"
10176 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10177 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10180 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10181 # Free Software Foundation, Inc.
10183 # This file is part of GNU Libtool:
10184 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10186 # This program is free software; you can redistribute it and/or modify
10187 # it under the terms of the GNU General Public License as published by
10188 # the Free Software Foundation; either version 2 of the License, or
10189 # (at your option) any later version.
10191 # This program is distributed in the hope that it will be useful, but
10192 # WITHOUT ANY WARRANTY; without even the implied warranty of
10193 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10194 # General Public License for more details.
10196 # You should have received a copy of the GNU General Public License
10197 # along with this program; if not, write to the Free Software
10198 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10200 # As a special exception to the GNU General Public License, if you
10201 # distribute this file as part of a program that contains a
10202 # configuration script generated by Autoconf, you may include it under
10203 # the same distribution terms that you use for the rest of that program.
10205 # A sed program that does not truncate output.
10208 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10209 Xsed="$SED -e 1s/^X//"
10211 # The HP-UX ksh and POSIX shell print the target directory to stdout
10212 # if CDPATH is set.
10213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10215 # The names of the tagged configurations supported by this script.
10218 # ### BEGIN LIBTOOL CONFIG
10220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10222 # Shell to use when invoking shell scripts.
10225 # Whether or not to build shared libraries.
10226 build_libtool_libs=$enable_shared
10228 # Whether or not to build static libraries.
10229 build_old_libs=$enable_static
10231 # Whether or not to add -lc for building shared libraries.
10232 build_libtool_need_lc=$archive_cmds_need_lc
10234 # Whether or not to disallow shared libs when runtime libs are static
10235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10237 # Whether or not to optimize for fast installation.
10238 fast_install=$enable_fast_install
10241 host_alias=$host_alias
10245 # The build system.
10246 build_alias=$build_alias
10250 # An echo program that does not interpret backslashes.
10255 AR_FLAGS=$lt_AR_FLAGS
10260 # LTCC compiler flags.
10261 LTCFLAGS=$lt_LTCFLAGS
10263 # A language-specific compiler.
10266 # Is the compiler the GNU C compiler?
10272 # The linker used to build libraries.
10275 # Whether we need hard or soft links.
10278 # A BSD-compatible nm program.
10281 # A symbol stripping program
10284 # Used to examine libraries when file_magic_cmd begins "file"
10285 MAGIC_CMD=$MAGIC_CMD
10287 # Used on cygwin: DLL creation program.
10290 # Used on cygwin: object dumper.
10293 # Used on cygwin: assembler.
10296 # The name of the directory that contains temporary libtool files.
10299 # How to create reloadable object files.
10300 reload_flag=$lt_reload_flag
10301 reload_cmds=$lt_reload_cmds
10303 # How to pass a linker flag through the compiler.
10304 wl=$lt_lt_prog_compiler_wl
10306 # Object file suffix (normally "o").
10307 objext="$ac_objext"
10309 # Old archive suffix (normally "a").
10312 # Shared library suffix (normally ".so").
10313 shrext_cmds='$shrext_cmds'
10315 # Executable file suffix (normally "").
10318 # Additional compiler flags for building library objects.
10319 pic_flag=$lt_lt_prog_compiler_pic
10322 # What is the maximum length of a command?
10323 max_cmd_len=$lt_cv_sys_max_cmd_len
10325 # Does compiler simultaneously support -c and -o options?
10326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10328 # Must we lock files when doing compilation?
10329 need_locks=$lt_need_locks
10331 # Do we need the lib prefix for modules?
10332 need_lib_prefix=$need_lib_prefix
10334 # Do we need a version for libraries?
10335 need_version=$need_version
10337 # Whether dlopen is supported.
10338 dlopen_support=$enable_dlopen
10340 # Whether dlopen of programs is supported.
10341 dlopen_self=$enable_dlopen_self
10343 # Whether dlopen of statically linked programs is supported.
10344 dlopen_self_static=$enable_dlopen_self_static
10346 # Compiler flag to prevent dynamic linking.
10347 link_static_flag=$lt_lt_prog_compiler_static
10349 # Compiler flag to turn off builtin functions.
10350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10352 # Compiler flag to allow reflexive dlopens.
10353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10355 # Compiler flag to generate shared objects directly from archives.
10356 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10358 # Compiler flag to generate thread-safe objects.
10359 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10361 # Library versioning type.
10362 version_type=$version_type
10364 # Format of library name prefix.
10365 libname_spec=$lt_libname_spec
10367 # List of archive names. First name is the real one, the rest are links.
10368 # The last name is the one that the linker finds with -lNAME.
10369 library_names_spec=$lt_library_names_spec
10371 # The coded name of the library, if different from the real name.
10372 soname_spec=$lt_soname_spec
10374 # Commands used to build and install an old-style archive.
10376 old_archive_cmds=$lt_old_archive_cmds
10377 old_postinstall_cmds=$lt_old_postinstall_cmds
10378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10380 # Create an old-style archive from a shared archive.
10381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10383 # Create a temporary old-style archive to link instead of a shared archive.
10384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10386 # Commands used to build and install a shared archive.
10387 archive_cmds=$lt_archive_cmds
10388 archive_expsym_cmds=$lt_archive_expsym_cmds
10389 postinstall_cmds=$lt_postinstall_cmds
10390 postuninstall_cmds=$lt_postuninstall_cmds
10392 # Commands used to build a loadable module (assumed same as above if empty)
10393 module_cmds=$lt_module_cmds
10394 module_expsym_cmds=$lt_module_expsym_cmds
10396 # Commands to strip libraries.
10397 old_striplib=$lt_old_striplib
10398 striplib=$lt_striplib
10400 # Dependencies to place before the objects being linked to create a
10402 predep_objects=$lt_predep_objects
10404 # Dependencies to place after the objects being linked to create a
10406 postdep_objects=$lt_postdep_objects
10408 # Dependencies to place before the objects being linked to create a
10410 predeps=$lt_predeps
10412 # Dependencies to place after the objects being linked to create a
10414 postdeps=$lt_postdeps
10416 # The library search path used internally by the compiler when linking
10417 # a shared library.
10418 compiler_lib_search_path=$lt_compiler_lib_search_path
10420 # Method to check whether dependent libraries are shared objects.
10421 deplibs_check_method=$lt_deplibs_check_method
10423 # Command to use when deplibs_check_method == file_magic.
10424 file_magic_cmd=$lt_file_magic_cmd
10426 # Flag that allows shared libraries with undefined symbols to be built.
10427 allow_undefined_flag=$lt_allow_undefined_flag
10429 # Flag that forces no undefined symbols.
10430 no_undefined_flag=$lt_no_undefined_flag
10432 # Commands used to finish a libtool library installation in a directory.
10433 finish_cmds=$lt_finish_cmds
10435 # Same as above, but a single script fragment to be evaled but not shown.
10436 finish_eval=$lt_finish_eval
10438 # Take the output of nm and produce a listing of raw symbols and C names.
10439 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10441 # Transform the output of nm in a proper C declaration
10442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10444 # Transform the output of nm in a C name address pair
10445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10447 # This is the shared library runtime path variable.
10448 runpath_var=$runpath_var
10450 # This is the shared library path variable.
10451 shlibpath_var=$shlibpath_var
10453 # Is shlibpath searched before the hard-coded library search path?
10454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10456 # How to hardcode a shared library path into an executable.
10457 hardcode_action=$hardcode_action
10459 # Whether we should hardcode library paths into libraries.
10460 hardcode_into_libs=$hardcode_into_libs
10462 # Flag to hardcode \$libdir into a binary during linking.
10463 # This must work even if \$libdir does not exist.
10464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10466 # If ld is used when linking, flag to hardcode \$libdir into
10467 # a binary during linking. This must work even if \$libdir does
10469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10471 # Whether we need a single -rpath flag with a separated argument.
10472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10474 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10475 # resulting binary.
10476 hardcode_direct=$hardcode_direct
10478 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10479 # resulting binary.
10480 hardcode_minus_L=$hardcode_minus_L
10482 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10483 # the resulting binary.
10484 hardcode_shlibpath_var=$hardcode_shlibpath_var
10486 # Set to yes if building a shared library automatically hardcodes DIR into the library
10487 # and all subsequent libraries and executables linked against it.
10488 hardcode_automatic=$hardcode_automatic
10490 # Variables whose values should be saved in libtool wrapper scripts and
10491 # restored at relink time.
10492 variables_saved_for_relink="$variables_saved_for_relink"
10494 # Whether libtool must link a program against all its dependency libraries.
10495 link_all_deplibs=$link_all_deplibs
10497 # Compile-time system search path for libraries
10498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10500 # Run-time system search path for libraries
10501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10503 # Fix the shell variable \$srcfile for the compiler.
10504 fix_srcfile_path="$fix_srcfile_path"
10506 # Set to yes if exported symbols are required.
10507 always_export_symbols=$always_export_symbols
10509 # The commands to list exported symbols.
10510 export_symbols_cmds=$lt_export_symbols_cmds
10512 # The commands to extract the exported symbol list from a shared archive.
10513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10515 # Symbols that should not be listed in the preloaded symbols.
10516 exclude_expsyms=$lt_exclude_expsyms
10518 # Symbols that must always be exported.
10519 include_expsyms=$lt_include_expsyms
10521 # ### END LIBTOOL CONFIG
10528 cat <<\EOF >> "$cfgfile"
10530 # AIX sometimes has problems with the GCC collect2 program. For some
10531 # reason, if we set the COLLECT_NAMES environment variable, the problems
10532 # vanish in a puff of smoke.
10533 if test "X${COLLECT_NAMES+set}" != Xset; then
10535 export COLLECT_NAMES
10541 # We use sed instead of cat because bash on DJGPP gets confused if
10542 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10543 # text mode, it properly converts lines to CR/LF. This bash problem
10544 # is reportedly fixed, but why not run on old versions too?
10545 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10547 mv -f "$cfgfile" "$ofile" || \
10548 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10552 # If there is no Makefile yet, we rely on a make rule to execute
10553 # `config.status --recheck' to rerun these tests and create the
10554 # libtool script then.
10555 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10556 if test -f "$ltmain_in"; then
10557 test -f Makefile && make "$ltmain"
10563 ac_cpp='$CPP $CPPFLAGS'
10564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10571 # Check whether --with-tags was given.
10572 if test "${with_tags+set}" = set; then
10573 withval=$with_tags; tagnames="$withval"
10577 if test -f "$ltmain" && test -n "$tagnames"; then
10578 if test ! -f "${ofile}"; then
10579 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10580 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10583 if test -z "$LTCC"; then
10584 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10585 if test -z "$LTCC"; then
10586 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10587 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10589 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10590 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10593 if test -z "$LTCFLAGS"; then
10594 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10597 # Extract list of available tagged configurations in $ofile.
10598 # Note that this assumes the entire list is on one line.
10599 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10602 for tagname in $tagnames; do
10604 # Check whether tagname contains only valid characters
10605 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10607 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10608 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10609 { (exit 1); exit 1; }; }
10613 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10615 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10616 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10617 { (exit 1); exit 1; }; }
10620 # Update the list of available tags.
10621 if test -n "$tagname"; then
10622 echo appending configuration tag \"$tagname\" to $ofile
10626 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10627 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10628 (test "X$CXX" != "Xg++"))) ; then
10630 ac_cpp='$CXXCPP $CPPFLAGS'
10631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10638 archive_cmds_need_lc_CXX=no
10639 allow_undefined_flag_CXX=
10640 always_export_symbols_CXX=no
10641 archive_expsym_cmds_CXX=
10642 export_dynamic_flag_spec_CXX=
10643 hardcode_direct_CXX=no
10644 hardcode_libdir_flag_spec_CXX=
10645 hardcode_libdir_flag_spec_ld_CXX=
10646 hardcode_libdir_separator_CXX=
10647 hardcode_minus_L_CXX=no
10648 hardcode_shlibpath_var_CXX=unsupported
10649 hardcode_automatic_CXX=no
10651 module_expsym_cmds_CXX=
10652 link_all_deplibs_CXX=unknown
10653 old_archive_cmds_CXX=$old_archive_cmds
10654 no_undefined_flag_CXX=
10655 whole_archive_flag_spec_CXX=
10656 enable_shared_with_static_runtimes_CXX=no
10658 # Dependencies to place before and after the object being linked:
10659 predep_objects_CXX=
10660 postdep_objects_CXX=
10663 compiler_lib_search_path_CXX=
10665 # Source file extension for C++ test sources.
10668 # Object file extension for compiled C++ test sources.
10672 # Code to be used in simple compile tests
10673 lt_simple_compile_test_code="int some_variable = 0;\n"
10675 # Code to be used in simple link tests
10676 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10678 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10680 # If no C compiler was specified, use CC.
10683 # If no C compiler flags were specified, use CFLAGS.
10684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10686 # Allow CC to be a program name with arguments.
10690 # save warnings/boilerplate of simple test code
10691 ac_outfile=conftest.$ac_objext
10692 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10694 _lt_compiler_boilerplate=`cat conftest.err`
10697 ac_outfile=conftest.$ac_objext
10698 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10700 _lt_linker_boilerplate=`cat conftest.err`
10704 # Allow CC to be a program name with arguments.
10709 lt_save_with_gnu_ld=$with_gnu_ld
10710 lt_save_path_LD=$lt_cv_path_LD
10711 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10712 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10714 $as_unset lt_cv_prog_gnu_ld
10716 if test -n "${lt_cv_path_LDCXX+set}"; then
10717 lt_cv_path_LD=$lt_cv_path_LDCXX
10719 $as_unset lt_cv_path_LD
10721 test -z "${LDCXX+set}" || LD=$LDCXX
10725 for cc_temp in $compiler""; do
10727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10733 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10736 # We don't want -fno-exception wen compiling C++ code, so set the
10737 # no_builtin_flag separately
10738 if test "$GXX" = yes; then
10739 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10741 lt_prog_compiler_no_builtin_flag_CXX=
10744 if test "$GXX" = yes; then
10745 # Set up default GNU C++ configuration
10748 # Check whether --with-gnu-ld was given.
10749 if test "${with_gnu_ld+set}" = set; then
10750 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10756 if test "$GCC" = yes; then
10757 # Check if gcc -print-prog-name=ld gives a path.
10758 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10759 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10762 # gcc leaves a trailing carriage return which upsets mingw
10763 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10765 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10768 # Accept absolute paths.
10770 re_direlt='/[^/][^/]*/\.\./'
10771 # Canonicalize the pathname of ld
10772 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10773 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10774 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10776 test -z "$LD" && LD="$ac_prog"
10779 # If it fails, then pretend we aren't using GCC.
10783 # If it is relative, then search for the first ld in PATH.
10784 with_gnu_ld=unknown
10787 elif test "$with_gnu_ld" = yes; then
10788 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10789 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10791 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10792 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10794 if test "${lt_cv_path_LD+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 if test -z "$LD"; then
10798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10799 for ac_dir in $PATH; do
10801 test -z "$ac_dir" && ac_dir=.
10802 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10803 lt_cv_path_LD="$ac_dir/$ac_prog"
10804 # Check to see if the program is GNU ld. I'd rather use --version,
10805 # but apparently some variants of GNU ld only accept -v.
10806 # Break only if it was the GNU/non-GNU ld that we prefer.
10807 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10808 *GNU* | *'with BFD'*)
10809 test "$with_gnu_ld" != no && break
10812 test "$with_gnu_ld" != yes && break
10819 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10823 LD="$lt_cv_path_LD"
10824 if test -n "$LD"; then
10825 { echo "$as_me:$LINENO: result: $LD" >&5
10826 echo "${ECHO_T}$LD" >&6; }
10828 { echo "$as_me:$LINENO: result: no" >&5
10829 echo "${ECHO_T}no" >&6; }
10831 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10832 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10833 { (exit 1); exit 1; }; }
10834 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10835 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10836 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10840 case `$LD -v 2>&1 </dev/null` in
10841 *GNU* | *'with BFD'*)
10842 lt_cv_prog_gnu_ld=yes
10845 lt_cv_prog_gnu_ld=no
10849 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10850 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10851 with_gnu_ld=$lt_cv_prog_gnu_ld
10855 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10856 # archiving commands below assume that GNU ld is being used.
10857 if test "$with_gnu_ld" = yes; then
10858 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10859 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10861 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10862 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10864 # If archive_cmds runs LD, not CC, wlarc should be empty
10865 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10866 # investigate it a little bit more. (MM)
10869 # ancient GNU ld didn't support --whole-archive et. al.
10870 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10871 grep 'no-whole-archive' > /dev/null; then
10872 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10874 whole_archive_flag_spec_CXX=
10880 # A generic and very simple default shared library creation
10881 # command for GNU C++ for the case where it uses the native
10882 # linker, instead of GNU ld. If possible, this setting should
10883 # overridden to take advantage of the native linker features on
10884 # the platform it is being used on.
10885 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10888 # Commands to make compiler produce verbose output that lists
10889 # what "hidden" libraries, object files and flags are used when
10890 # linking a shared library.
10891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10899 # PORTME: fill in a description of your system's C++ link characteristics
10900 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10901 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10905 # FIXME: insert proper C++ library support
10909 if test "$host_cpu" = ia64; then
10910 # On IA64, the linker does run time linking by default, so we don't
10911 # have to do anything special.
10912 aix_use_runtimelinking=no
10913 exp_sym_flag='-Bexport'
10916 aix_use_runtimelinking=no
10918 # Test if we are trying to use run time linking or normal
10919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10920 # need to do runtime linking.
10921 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10922 for ld_flag in $LDFLAGS; do
10925 aix_use_runtimelinking=yes
10933 exp_sym_flag='-bexport'
10934 no_entry_flag='-bnoentry'
10937 # When large executables or shared objects are built, AIX ld can
10938 # have problems creating the table of contents. If linking a library
10939 # or program results in "error TOC overflow" add -mminimal-toc to
10940 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10941 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10943 archive_cmds_CXX=''
10944 hardcode_direct_CXX=yes
10945 hardcode_libdir_separator_CXX=':'
10946 link_all_deplibs_CXX=yes
10948 if test "$GXX" = yes; then
10949 case $host_os in aix4.[012]|aix4.[012].*)
10950 # We only want to do this on AIX 4.2 and lower, the check
10951 # below for broken collect2 doesn't work under 4.3+
10952 collect2name=`${CC} -print-prog-name=collect2`
10953 if test -f "$collect2name" && \
10954 strings "$collect2name" | grep resolve_lib_name >/dev/null
10956 # We have reworked collect2
10957 hardcode_direct_CXX=yes
10959 # We have old collect2
10960 hardcode_direct_CXX=unsupported
10961 # It fails to find uninstalled libraries when the uninstalled
10962 # path is not listed in the libpath. Setting hardcode_minus_L
10963 # to unsupported forces relinking
10964 hardcode_minus_L_CXX=yes
10965 hardcode_libdir_flag_spec_CXX='-L$libdir'
10966 hardcode_libdir_separator_CXX=
10970 shared_flag='-shared'
10971 if test "$aix_use_runtimelinking" = yes; then
10972 shared_flag="$shared_flag "'${wl}-G'
10976 if test "$host_cpu" = ia64; then
10977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10978 # chokes on -Wl,-G. The following line is correct:
10981 if test "$aix_use_runtimelinking" = yes; then
10982 shared_flag='${wl}-G'
10984 shared_flag='${wl}-bM:SRE'
10989 # It seems that -bexpall does not export symbols beginning with
10990 # underscore (_), so it is better to generate a list of symbols to export.
10991 always_export_symbols_CXX=yes
10992 if test "$aix_use_runtimelinking" = yes; then
10993 # Warning - without using the other runtime loading flags (-brtl),
10994 # -berok will link without error, but may produce a broken library.
10995 allow_undefined_flag_CXX='-berok'
10996 # Determine the default libpath from the value encoded in an empty executable.
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (ac_try="$ac_link"
11014 case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_link") 2>conftest.er1
11021 grep -v '^ *+' conftest.er1 >conftest.err
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } && {
11026 test -z "$ac_cxx_werror_flag" ||
11027 test ! -s conftest.err
11028 } && test -s conftest$ac_exeext &&
11029 $as_test_x conftest$ac_exeext; then
11031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11033 # Check for a 64-bit object if we didn't find anything.
11034 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11044 conftest$ac_exeext conftest.$ac_ext
11045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11047 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11049 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11051 if test "$host_cpu" = ia64; then
11052 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11053 allow_undefined_flag_CXX="-z nodefs"
11054 archive_expsym_cmds_CXX="\$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"
11056 # Determine the default libpath from the value encoded in an empty executable.
11057 cat >conftest.$ac_ext <<_ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (ac_try="$ac_link"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_link") 2>conftest.er1
11081 grep -v '^ *+' conftest.er1 >conftest.err
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } && {
11086 test -z "$ac_cxx_werror_flag" ||
11087 test ! -s conftest.err
11088 } && test -s conftest$ac_exeext &&
11089 $as_test_x conftest$ac_exeext; then
11091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11093 # Check for a 64-bit object if we didn't find anything.
11094 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104 conftest$ac_exeext conftest.$ac_ext
11105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11107 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11108 # Warning - without using the other run time loading flags,
11109 # -berok will link without error, but may produce a broken library.
11110 no_undefined_flag_CXX=' ${wl}-bernotok'
11111 allow_undefined_flag_CXX=' ${wl}-berok'
11112 # Exported symbols can be pulled into shared objects from archives
11113 whole_archive_flag_spec_CXX='$convenience'
11114 archive_cmds_need_lc_CXX=yes
11115 # This is similar to how AIX traditionally builds its shared libraries.
11116 archive_expsym_cmds_CXX="\$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'
11122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11123 allow_undefined_flag_CXX=unsupported
11124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11125 # support --undefined. This deserves some investigation. FIXME
11126 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11133 case $cc_basename in
11135 # FIXME: insert proper C++ library support
11141 cygwin* | mingw* | pw32*)
11142 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11143 # as there is no search path for DLLs.
11144 hardcode_libdir_flag_spec_CXX='-L$libdir'
11145 allow_undefined_flag_CXX=unsupported
11146 always_export_symbols_CXX=no
11147 enable_shared_with_static_runtimes_CXX=yes
11149 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11150 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11151 # If the export-symbols file already is a .def file (1st line
11152 # is EXPORTS), use it as is; otherwise, prepend...
11153 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11154 cp $export_symbols $output_objdir/$soname.def;
11156 echo EXPORTS > $output_objdir/$soname.def;
11157 cat $export_symbols >> $output_objdir/$soname.def;
11159 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11164 darwin* | rhapsody*)
11166 rhapsody* | darwin1.[012])
11167 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11170 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11171 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11173 case ${MACOSX_DEPLOYMENT_TARGET} in
11175 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11178 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11184 archive_cmds_need_lc_CXX=no
11185 hardcode_direct_CXX=no
11186 hardcode_automatic_CXX=yes
11187 hardcode_shlibpath_var_CXX=unsupported
11188 whole_archive_flag_spec_CXX=''
11189 link_all_deplibs_CXX=yes
11191 if test "$GXX" = yes ; then
11192 lt_int_apple_cc_single_mod=no
11193 output_verbose_link_cmd='echo'
11194 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11195 lt_int_apple_cc_single_mod=yes
11197 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11198 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11200 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11202 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11203 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11204 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11205 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11207 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11209 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11211 case $cc_basename in
11213 output_verbose_link_cmd='echo'
11214 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11215 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11216 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11217 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11218 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11228 case $cc_basename in
11230 # FIXME: insert proper C++ library support
11234 # Green Hills C++ Compiler
11235 # FIXME: insert proper C++ library support
11239 # FIXME: insert proper C++ library support
11245 # C++ shared libraries reported to be fairly broken before switch to ELF
11249 archive_cmds_need_lc_CXX=no
11251 freebsd* | dragonfly*)
11252 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11259 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11260 hardcode_libdir_separator_CXX=:
11261 export_dynamic_flag_spec_CXX='${wl}-E'
11262 hardcode_direct_CXX=yes
11263 hardcode_minus_L_CXX=yes # Not in the search PATH,
11264 # but as the default
11265 # location of the library.
11267 case $cc_basename in
11269 # FIXME: insert proper C++ library support
11273 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11274 # Commands to make compiler produce verbose output that lists
11275 # what "hidden" libraries, object files and flags are used when
11276 # linking a shared library.
11278 # There doesn't appear to be a way to prevent this compiler from
11279 # explicitly linking system object files so we need to strip them
11280 # from the output so that they don't get included in the library
11282 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11285 if test "$GXX" = yes; then
11286 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11288 # FIXME: insert proper C++ library support
11295 if test $with_gnu_ld = no; then
11296 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11297 hardcode_libdir_separator_CXX=:
11301 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11304 export_dynamic_flag_spec_CXX='${wl}-E'
11310 hardcode_direct_CXX=no
11311 hardcode_shlibpath_var_CXX=no
11314 hardcode_direct_CXX=yes
11315 hardcode_minus_L_CXX=yes # Not in the search PATH,
11316 # but as the default
11317 # location of the library.
11321 case $cc_basename in
11323 # FIXME: insert proper C++ library support
11329 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11332 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11335 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11338 # Commands to make compiler produce verbose output that lists
11339 # what "hidden" libraries, object files and flags are used when
11340 # linking a shared library.
11342 # There doesn't appear to be a way to prevent this compiler from
11343 # explicitly linking system object files so we need to strip them
11344 # from the output so that they don't get included in the library
11346 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11349 if test "$GXX" = yes; then
11350 if test $with_gnu_ld = no; then
11353 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11356 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11359 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11364 # FIXME: insert proper C++ library support
11371 hardcode_direct_CXX=no
11372 hardcode_shlibpath_var_CXX=no
11373 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11374 export_dynamic_flag_spec_CXX='${wl}-E'
11375 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11376 # Instead, shared libraries are loaded at an image base (0x10000000 by
11377 # default) and relocated if they conflict, which is a slow very memory
11378 # consuming and fragmenting process. To avoid this, we pick a random,
11379 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11380 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11381 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11382 archive_expsym_cmds_CXX='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'
11385 case $cc_basename in
11388 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11390 # Archives containing C++ object files must be created using
11391 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11392 # necessary to make sure instantiated templates are included
11394 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11397 if test "$GXX" = yes; then
11398 if test "$with_gnu_ld" = no; then
11399 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11401 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11404 link_all_deplibs_CXX=yes
11407 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11408 hardcode_libdir_separator_CXX=:
11410 linux* | k*bsd*-gnu)
11411 case $cc_basename in
11413 # Kuck and Associates, Inc. (KAI) C++ Compiler
11415 # KCC will only create a shared library if the output file
11416 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11417 # to its proper name (with version) after linking.
11418 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11419 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11420 # Commands to make compiler produce verbose output that lists
11421 # what "hidden" libraries, object files and flags are used when
11422 # linking a shared library.
11424 # There doesn't appear to be a way to prevent this compiler from
11425 # explicitly linking system object files so we need to strip them
11426 # from the output so that they don't get included in the library
11428 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11430 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11431 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11433 # Archives containing C++ object files must be created using
11434 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11435 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11440 # version 8.0 and above of icpc choke on multiply defined symbols
11441 # if we add $predep_objects and $postdep_objects, however 7.1 and
11442 # earlier do not add the objects themselves.
11443 case `$CC -V 2>&1` in
11445 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11446 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11448 *) # Version 8.0 or newer
11451 ia64*) tmp_idyn=' -i_dynamic';;
11453 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11454 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11457 archive_cmds_need_lc_CXX=no
11458 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11459 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11460 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11463 # Portland Group C++ compiler
11464 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11465 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11467 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11469 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11473 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11474 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11476 runpath_var=LD_RUN_PATH
11477 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11478 hardcode_libdir_separator_CXX=:
11480 # Commands to make compiler produce verbose output that lists
11481 # what "hidden" libraries, object files and flags are used when
11482 # linking a shared library.
11484 # There doesn't appear to be a way to prevent this compiler from
11485 # explicitly linking system object files so we need to strip them
11486 # from the output so that they don't get included in the library
11488 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11493 # FIXME: insert proper C++ library support
11497 # FIXME: insert proper C++ library support
11501 case $cc_basename in
11503 # FIXME: insert proper C++ library support
11507 # FIXME: insert proper C++ library support
11512 netbsd* | netbsdelf*-gnu)
11513 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11514 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11516 hardcode_libdir_flag_spec_CXX='-R$libdir'
11517 hardcode_direct_CXX=yes
11518 hardcode_shlibpath_var_CXX=no
11520 # Workaround some broken pre-1.5 toolchains
11521 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11524 # C++ shared libraries are fairly broken
11528 hardcode_direct_CXX=yes
11529 hardcode_shlibpath_var_CXX=no
11530 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11533 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11534 export_dynamic_flag_spec_CXX='${wl}-E'
11535 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11537 output_verbose_link_cmd='echo'
11540 case $cc_basename in
11542 # Kuck and Associates, Inc. (KAI) C++ Compiler
11544 # KCC will only create a shared library if the output file
11545 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11546 # to its proper name (with version) after linking.
11547 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11549 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11550 hardcode_libdir_separator_CXX=:
11552 # Archives containing C++ object files must be created using
11553 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11554 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11558 # Rational C++ 2.4.1
11559 # FIXME: insert proper C++ library support
11563 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11564 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11566 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11567 hardcode_libdir_separator_CXX=:
11569 # Commands to make compiler produce verbose output that lists
11570 # what "hidden" libraries, object files and flags are used when
11571 # linking a shared library.
11573 # There doesn't appear to be a way to prevent this compiler from
11574 # explicitly linking system object files so we need to strip them
11575 # from the output so that they don't get included in the library
11577 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11580 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11581 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11582 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11584 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11585 hardcode_libdir_separator_CXX=:
11587 # Commands to make compiler produce verbose output that lists
11588 # what "hidden" libraries, object files and flags are used when
11589 # linking a shared library.
11590 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11593 # FIXME: insert proper C++ library support
11600 case $cc_basename in
11602 # Kuck and Associates, Inc. (KAI) C++ Compiler
11604 # KCC will only create a shared library if the output file
11605 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11606 # to its proper name (with version) after linking.
11607 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11609 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11610 hardcode_libdir_separator_CXX=:
11612 # Archives containing C++ object files must be created using
11613 # the KAI C++ compiler.
11614 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11617 # Rational C++ 2.4.1
11618 # FIXME: insert proper C++ library support
11622 allow_undefined_flag_CXX=' -expect_unresolved \*'
11623 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11624 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11625 echo "-hidden">> $lib.exp~
11626 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11629 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11630 hardcode_libdir_separator_CXX=:
11632 # Commands to make compiler produce verbose output that lists
11633 # what "hidden" libraries, object files and flags are used when
11634 # linking a shared library.
11636 # There doesn't appear to be a way to prevent this compiler from
11637 # explicitly linking system object files so we need to strip them
11638 # from the output so that they don't get included in the library
11640 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11643 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11644 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11645 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11647 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11648 hardcode_libdir_separator_CXX=:
11650 # Commands to make compiler produce verbose output that lists
11651 # what "hidden" libraries, object files and flags are used when
11652 # linking a shared library.
11653 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11656 # FIXME: insert proper C++ library support
11663 # FIXME: insert proper C++ library support
11667 case $cc_basename in
11670 # FIXME: insert proper C++ library support
11675 # FIXME: insert proper C++ library support
11679 # FIXME: insert proper C++ library support
11685 case $cc_basename in
11687 # Sun C++ 4.2, 5.x and Centerline C++
11688 archive_cmds_need_lc_CXX=yes
11689 no_undefined_flag_CXX=' -zdefs'
11690 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11691 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11692 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11694 hardcode_libdir_flag_spec_CXX='-R$libdir'
11695 hardcode_shlibpath_var_CXX=no
11697 solaris2.[0-5] | solaris2.[0-5].*) ;;
11699 # The C++ compiler is used as linker so we must use $wl
11700 # flag to pass the commands to the underlying system
11701 # linker. We must also pass each convience library through
11702 # to the system linker between allextract/defaultextract.
11703 # The C++ compiler will combine linker options so we
11704 # cannot just pass the convience library names through
11706 # Supported since Solaris 2.6 (maybe 2.5.1?)
11707 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11710 link_all_deplibs_CXX=yes
11712 output_verbose_link_cmd='echo'
11714 # Archives containing C++ object files must be created using
11715 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11716 # necessary to make sure instantiated templates are included
11718 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11721 # Green Hills C++ Compiler
11722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11724 # The C++ compiler must be used to create the archive.
11725 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11728 # GNU C++ compiler with Solaris linker
11729 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11730 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11731 if $CC --version | grep -v '^2\.7' > /dev/null; then
11732 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11733 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11734 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11736 # Commands to make compiler produce verbose output that lists
11737 # what "hidden" libraries, object files and flags are used when
11738 # linking a shared library.
11739 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11741 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11743 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11744 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11745 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11747 # Commands to make compiler produce verbose output that lists
11748 # what "hidden" libraries, object files and flags are used when
11749 # linking a shared library.
11750 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11753 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11758 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11759 no_undefined_flag_CXX='${wl}-z,text'
11760 archive_cmds_need_lc_CXX=no
11761 hardcode_shlibpath_var_CXX=no
11762 runpath_var='LD_RUN_PATH'
11764 case $cc_basename in
11766 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11767 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11770 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11771 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11775 sysv5* | sco3.2v5* | sco5v6*)
11776 # Note: We can NOT use -z defs as we might desire, because we do not
11777 # link with -lc, and that would cause any symbols used from libc to
11778 # always be unresolved, which means just about no library would
11779 # ever link correctly. If we're not using GNU ld we use -z text
11780 # though, which does catch some bad symbols but isn't as heavy-handed
11782 # For security reasons, it is highly recommended that you always
11783 # use absolute paths for naming shared libraries, and exclude the
11784 # DT_RUNPATH tag from executables and libraries. But doing so
11785 # requires that you compile everything twice, which is a pain.
11786 # So that behaviour is only enabled if SCOABSPATH is set to a
11787 # non-empty value in the environment. Most likely only useful for
11788 # creating official distributions of packages.
11789 # This is a hack until libtool officially supports absolute path
11790 # names for shared libraries.
11791 no_undefined_flag_CXX='${wl}-z,text'
11792 allow_undefined_flag_CXX='${wl}-z,nodefs'
11793 archive_cmds_need_lc_CXX=no
11794 hardcode_shlibpath_var_CXX=no
11795 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11796 hardcode_libdir_separator_CXX=':'
11797 link_all_deplibs_CXX=yes
11798 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11799 runpath_var='LD_RUN_PATH'
11801 case $cc_basename in
11803 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11807 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11808 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11813 case $cc_basename in
11815 # NonStop-UX NCC 3.20
11816 # FIXME: insert proper C++ library support
11820 # FIXME: insert proper C++ library support
11826 # FIXME: insert proper C++ library support
11830 # FIXME: insert proper C++ library support
11834 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11835 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11836 test "$ld_shlibs_CXX" = no && can_build_shared=no
11842 cat > conftest.$ac_ext <<EOF
11846 Foo (void) { a = 0; }
11852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11853 (eval $ac_compile) 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; then
11857 # Parse the compiler output and extract the necessary
11858 # objects, libraries and library flags.
11860 # Sentinel used to keep track of whether or not we are before
11861 # the conftest object file.
11862 pre_test_object_deps_done=no
11864 # The `*' in the case matches for architectures that use `case' in
11865 # $output_verbose_cmd can trigger glob expansion during the loop
11866 # eval without this substitution.
11867 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11869 for p in `eval $output_verbose_link_cmd`; do
11873 # Some compilers place space between "-{L,R}" and the path.
11874 # Remove the space.
11875 if test $p = "-L" \
11876 || test $p = "-R"; then
11883 if test "$pre_test_object_deps_done" = no; then
11886 # Internal compiler library paths should come after those
11887 # provided the user. The postdeps already come after the
11888 # user supplied libs so there is no need to process them.
11889 if test -z "$compiler_lib_search_path_CXX"; then
11890 compiler_lib_search_path_CXX="${prev}${p}"
11892 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11895 # The "-l" case would never come before the object being
11896 # linked, so don't bother handling this case.
11899 if test -z "$postdeps_CXX"; then
11900 postdeps_CXX="${prev}${p}"
11902 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11908 # This assumes that the test object file only shows up
11909 # once in the compiler output.
11910 if test "$p" = "conftest.$objext"; then
11911 pre_test_object_deps_done=yes
11915 if test "$pre_test_object_deps_done" = no; then
11916 if test -z "$predep_objects_CXX"; then
11917 predep_objects_CXX="$p"
11919 predep_objects_CXX="$predep_objects_CXX $p"
11922 if test -z "$postdep_objects_CXX"; then
11923 postdep_objects_CXX="$p"
11925 postdep_objects_CXX="$postdep_objects_CXX $p"
11930 *) ;; # Ignore the rest.
11938 echo "libtool.m4: error: problem compiling CXX test program"
11941 $rm -f confest.$objext
11943 # PORTME: override above test on systems where it is broken
11946 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11947 # hack all around it, let's just trust "g++" to DTRT.
11948 predep_objects_CXX=
11949 postdep_objects_CXX=
11954 case $cc_basename in
11956 # Adding this requires a known-good setup of shared libraries for
11957 # Sun compiler versions before 5.6, else PIC objects from an old
11958 # archive will be linked into the output, leading to subtle bugs.
11959 postdeps_CXX='-lCstd -lCrun'
11966 case " $postdeps_CXX " in
11967 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11970 lt_prog_compiler_wl_CXX=
11971 lt_prog_compiler_pic_CXX=
11972 lt_prog_compiler_static_CXX=
11974 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11975 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11977 # C++ specific cases for pic, static, wl, etc.
11978 if test "$GXX" = yes; then
11979 lt_prog_compiler_wl_CXX='-Wl,'
11980 lt_prog_compiler_static_CXX='-static'
11984 # All AIX code is PIC.
11985 if test "$host_cpu" = ia64; then
11986 # AIX 5 now supports IA64 processor
11987 lt_prog_compiler_static_CXX='-Bstatic'
11991 # FIXME: we need at least 68020 code to build shared libraries, but
11992 # adding the `-m68020' flag to GCC prevents building anything better,
11994 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11996 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11997 # PIC is the default for these OSes.
11999 mingw* | os2* | pw32*)
12000 # This hack is so that the source file can tell whether it is being
12001 # built for inclusion in a dll (and should export symbols for example).
12002 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12004 darwin* | rhapsody*)
12005 # PIC is the default on this platform
12006 # Common symbols not allowed in MH_DYLIB files
12007 lt_prog_compiler_pic_CXX='-fno-common'
12010 # DJGPP does not support shared libraries at all
12011 lt_prog_compiler_pic_CXX=
12014 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12015 # Instead, we relocate shared libraries at runtime.
12018 if test -d /usr/nec; then
12019 lt_prog_compiler_pic_CXX=-Kconform_pic
12023 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12024 # not for PA HP-UX.
12029 lt_prog_compiler_pic_CXX='-fPIC'
12034 lt_prog_compiler_pic_CXX='-fPIC'
12040 # All AIX code is PIC.
12041 if test "$host_cpu" = ia64; then
12042 # AIX 5 now supports IA64 processor
12043 lt_prog_compiler_static_CXX='-Bstatic'
12045 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12049 case $cc_basename in
12051 # Green Hills C++ Compiler
12052 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12057 # PIC is the default on this platform
12058 # Common symbols not allowed in MH_DYLIB files
12059 case $cc_basename in
12061 lt_prog_compiler_pic_CXX='-qnocommon'
12062 lt_prog_compiler_wl_CXX='-Wl,'
12067 case $cc_basename in
12069 lt_prog_compiler_pic_CXX='-KPIC'
12072 # Green Hills C++ Compiler
12073 lt_prog_compiler_pic_CXX='-pic'
12079 freebsd* | dragonfly*)
12080 # FreeBSD uses GNU C++
12082 hpux9* | hpux10* | hpux11*)
12083 case $cc_basename in
12085 lt_prog_compiler_wl_CXX='-Wl,'
12086 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12087 if test "$host_cpu" != ia64; then
12088 lt_prog_compiler_pic_CXX='+Z'
12092 lt_prog_compiler_wl_CXX='-Wl,'
12093 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12099 lt_prog_compiler_pic_CXX='+Z'
12108 # This is c89, which is MS Visual C++ (no shared libs)
12109 # Anyone wants to do a port?
12111 irix5* | irix6* | nonstopux*)
12112 case $cc_basename in
12114 lt_prog_compiler_wl_CXX='-Wl,'
12115 lt_prog_compiler_static_CXX='-non_shared'
12116 # CC pic flag -KPIC is the default.
12122 linux* | k*bsd*-gnu)
12123 case $cc_basename in
12126 lt_prog_compiler_wl_CXX='--backend -Wl,'
12127 lt_prog_compiler_pic_CXX='-fPIC'
12131 lt_prog_compiler_wl_CXX='-Wl,'
12132 lt_prog_compiler_pic_CXX='-KPIC'
12133 lt_prog_compiler_static_CXX='-static'
12136 # Portland Group C++ compiler.
12137 lt_prog_compiler_wl_CXX='-Wl,'
12138 lt_prog_compiler_pic_CXX='-fpic'
12139 lt_prog_compiler_static_CXX='-Bstatic'
12143 # Make sure the PIC flag is empty. It appears that all Alpha
12144 # Linux and Compaq Tru64 Unix objects are PIC.
12145 lt_prog_compiler_pic_CXX=
12146 lt_prog_compiler_static_CXX='-non_shared'
12157 case $cc_basename in
12159 lt_prog_compiler_pic_CXX='-W c,exportall'
12165 netbsd* | netbsdelf*-gnu)
12167 osf3* | osf4* | osf5*)
12168 case $cc_basename in
12170 lt_prog_compiler_wl_CXX='--backend -Wl,'
12173 # Rational C++ 2.4.1
12174 lt_prog_compiler_pic_CXX='-pic'
12177 # Digital/Compaq C++
12178 lt_prog_compiler_wl_CXX='-Wl,'
12179 # Make sure the PIC flag is empty. It appears that all Alpha
12180 # Linux and Compaq Tru64 Unix objects are PIC.
12181 lt_prog_compiler_pic_CXX=
12182 lt_prog_compiler_static_CXX='-non_shared'
12191 case $cc_basename in
12193 # Sun C++ 4.2, 5.x and Centerline C++
12194 lt_prog_compiler_pic_CXX='-KPIC'
12195 lt_prog_compiler_static_CXX='-Bstatic'
12196 lt_prog_compiler_wl_CXX='-Qoption ld '
12199 # Green Hills C++ Compiler
12200 lt_prog_compiler_pic_CXX='-PIC'
12207 case $cc_basename in
12210 lt_prog_compiler_pic_CXX='-pic'
12211 lt_prog_compiler_static_CXX='-Bstatic'
12215 lt_prog_compiler_pic_CXX='-pic'
12222 case $cc_basename in
12224 # NonStop-UX NCC 3.20
12225 lt_prog_compiler_pic_CXX='-KPIC'
12231 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12232 case $cc_basename in
12234 lt_prog_compiler_wl_CXX='-Wl,'
12235 lt_prog_compiler_pic_CXX='-KPIC'
12236 lt_prog_compiler_static_CXX='-Bstatic'
12243 lt_prog_compiler_can_build_shared_CXX=no
12248 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12249 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12252 # Check to make sure the PIC flag actually works.
12254 if test -n "$lt_prog_compiler_pic_CXX"; then
12256 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12257 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12258 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 lt_prog_compiler_pic_works_CXX=no
12262 ac_outfile=conftest.$ac_objext
12263 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12264 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12265 # Insert the option either (1) after the last *FLAGS variable, or
12266 # (2) before a word containing "conftest.", or (3) at the end.
12267 # Note that $ac_compile itself does not contain backslashes and begins
12268 # with a dollar sign (not a hyphen), so the echo should work correctly.
12269 # The option is referenced via a variable to avoid confusing sed.
12270 lt_compile=`echo "$ac_compile" | $SED \
12271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12273 -e 's:$: $lt_compiler_flag:'`
12274 (eval echo "\"\$as_me:12274: $lt_compile\"" >&5)
12275 (eval "$lt_compile" 2>conftest.err)
12277 cat conftest.err >&5
12278 echo "$as_me:12278: \$? = $ac_status" >&5
12279 if (exit $ac_status) && test -s "$ac_outfile"; then
12280 # The compiler can only warn and ignore the option if not recognized
12281 # So say no if there are warnings other than the usual output.
12282 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12285 lt_prog_compiler_pic_works_CXX=yes
12291 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12292 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12294 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12295 case $lt_prog_compiler_pic_CXX in
12297 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12300 lt_prog_compiler_pic_CXX=
12301 lt_prog_compiler_can_build_shared_CXX=no
12306 # For platforms which do not support PIC, -DPIC is meaningless:
12308 lt_prog_compiler_pic_CXX=
12311 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12316 # Check to make sure the static flag actually works.
12318 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12319 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12320 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12321 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 lt_prog_compiler_static_works_CXX=no
12325 save_LDFLAGS="$LDFLAGS"
12326 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12327 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12328 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12329 # The linker can only warn and ignore the option if not recognized
12330 # So say no if there are warnings
12331 if test -s conftest.err; then
12332 # Append any errors to the config.log.
12333 cat conftest.err 1>&5
12334 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12336 if diff conftest.exp conftest.er2 >/dev/null; then
12337 lt_prog_compiler_static_works_CXX=yes
12340 lt_prog_compiler_static_works_CXX=yes
12344 LDFLAGS="$save_LDFLAGS"
12347 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12348 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12350 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12353 lt_prog_compiler_static_CXX=
12357 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12358 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12359 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 lt_cv_prog_compiler_c_o_CXX=no
12363 $rm -r conftest 2>/dev/null
12367 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12369 lt_compiler_flag="-o out/conftest2.$ac_objext"
12370 # Insert the option either (1) after the last *FLAGS variable, or
12371 # (2) before a word containing "conftest.", or (3) at the end.
12372 # Note that $ac_compile itself does not contain backslashes and begins
12373 # with a dollar sign (not a hyphen), so the echo should work correctly.
12374 lt_compile=`echo "$ac_compile" | $SED \
12375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12377 -e 's:$: $lt_compiler_flag:'`
12378 (eval echo "\"\$as_me:12378: $lt_compile\"" >&5)
12379 (eval "$lt_compile" 2>out/conftest.err)
12381 cat out/conftest.err >&5
12382 echo "$as_me:12382: \$? = $ac_status" >&5
12383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12385 # The compiler can only warn and ignore the option if not recognized
12386 # So say no if there are warnings
12387 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12390 lt_cv_prog_compiler_c_o_CXX=yes
12395 # SGI C++ compiler will create directory out/ii_files/ for
12396 # template instantiation
12397 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12398 $rm out/* && rmdir out
12404 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12405 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12408 hard_links="nottested"
12409 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12410 # do not overwrite the value of need_locks provided by the user
12411 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12412 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12417 ln conftest.a conftest.b 2>&5 || hard_links=no
12418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12419 { echo "$as_me:$LINENO: result: $hard_links" >&5
12420 echo "${ECHO_T}$hard_links" >&6; }
12421 if test "$hard_links" = no; then
12422 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12423 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12430 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12431 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12433 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12436 # If we're using GNU nm, then we don't want the "-C" option.
12437 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12438 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12439 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12441 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12445 export_symbols_cmds_CXX="$ltdll_cmds"
12448 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12450 linux* | k*bsd*-gnu)
12451 link_all_deplibs_CXX=no
12454 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12458 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12459 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12460 test "$ld_shlibs_CXX" = no && can_build_shared=no
12463 # Do we need to explicitly link libc?
12465 case "x$archive_cmds_need_lc_CXX" in
12467 # Assume -lc should be added
12468 archive_cmds_need_lc_CXX=yes
12470 if test "$enable_shared" = yes && test "$GCC" = yes; then
12471 case $archive_cmds_CXX in
12473 # FIXME: we may have to deal with multi-command sequences.
12476 # Test whether the compiler implicitly links with -lc since on some
12477 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12478 # to ld, don't add -lc before -lgcc.
12479 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12480 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } 2>conftest.err; then
12491 libobjs=conftest.$ac_objext
12493 wl=$lt_prog_compiler_wl_CXX
12494 pic_flag=$lt_prog_compiler_pic_CXX
12500 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12501 allow_undefined_flag_CXX=
12502 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12503 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }
12508 archive_cmds_need_lc_CXX=no
12510 archive_cmds_need_lc_CXX=yes
12512 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12514 cat conftest.err 1>&5
12517 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12518 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12525 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12526 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12527 library_names_spec=
12528 libname_spec='lib$name'
12532 postuninstall_cmds=
12536 shlibpath_overrides_runpath=unknown
12538 dynamic_linker="$host_os ld.so"
12539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12540 if test "$GCC" = yes; then
12541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12542 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12543 # if the path contains ";" then we assume it to be the separator
12544 # otherwise default to the standard path separator (i.e. ":") - it is
12545 # assumed that no part of a normal pathname contains ";" but that should
12546 # okay in the real world where ";" in dirpaths is itself problematic.
12547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12554 need_lib_prefix=unknown
12555 hardcode_into_libs=no
12557 # when you set need_version to no, make sure it does not cause -set_version
12558 # flags to be left without arguments
12559 need_version=unknown
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12565 shlibpath_var=LIBPATH
12567 # AIX 3 has no versioning support, so we append a major version to the name.
12568 soname_spec='${libname}${release}${shared_ext}$major'
12575 hardcode_into_libs=yes
12576 if test "$host_cpu" = ia64; then
12577 # AIX 5 supports IA64
12578 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12579 shlibpath_var=LD_LIBRARY_PATH
12581 # With GCC up to 2.95.x, collect2 would create an import file
12582 # for dependence libraries. The import file would start with
12583 # the line `#! .'. This would cause the generated library to
12584 # depend on `.', always an invalid library. This was fixed in
12585 # development snapshots of GCC prior to 3.0.
12587 aix4 | aix4.[01] | aix4.[01].*)
12588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12590 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12593 can_build_shared=no
12597 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12598 # soname into executable. Probably we can add versioning support to
12599 # collect2, so additional links can be useful in future.
12600 if test "$aix_use_runtimelinking" = yes; then
12601 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12602 # instead of lib<name>.a to let people know that these are not
12603 # typical AIX shared libraries.
12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606 # We preserve .a as extension for shared libraries through AIX4.2
12607 # and later when we are not doing run time linking.
12608 library_names_spec='${libname}${release}.a $libname.a'
12609 soname_spec='${libname}${release}${shared_ext}$major'
12611 shlibpath_var=LIBPATH
12616 library_names_spec='$libname.ixlibrary $libname.a'
12617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12618 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12622 library_names_spec='${libname}${shared_ext}'
12623 dynamic_linker="$host_os ld.so"
12624 shlibpath_var=LIBRARY_PATH
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631 soname_spec='${libname}${release}${shared_ext}$major'
12632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12633 shlibpath_var=LD_LIBRARY_PATH
12634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12636 # the default ld.so.conf also contains /usr/contrib/lib and
12637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12638 # libtool to hard-code these into programs
12641 cygwin* | mingw* | pw32*)
12642 version_type=windows
12647 case $GCC,$host_os in
12648 yes,cygwin* | yes,mingw* | yes,pw32*)
12649 library_names_spec='$libname.dll.a'
12650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12651 postinstall_cmds='base_file=`basename \${file}`~
12652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12653 dldir=$destdir/`dirname \$dlpath`~
12654 test -d \$dldir || mkdir -p \$dldir~
12655 $install_prog $dir/$dlname \$dldir/$dlname~
12656 chmod a+x \$dldir/$dlname'
12657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12658 dlpath=$dir/\$dldll~
12660 shlibpath_overrides_runpath=yes
12664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12665 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12666 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12669 # MinGW DLLs use traditional 'lib' prefix
12670 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12672 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12673 # It is most probably a Windows format PATH printed by
12674 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12675 # path with ; separators, and with drive letters. We can handle the
12676 # drive letters (cygwin fileutils understands them), so leave them,
12677 # especially as we might pass files found there to a mingw objdump,
12678 # which wouldn't understand a cygwinified path. Ahh.
12679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12685 # pw32 DLLs use 'pw' prefix rather than 'lib'
12686 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12692 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12695 dynamic_linker='Win32 ld.exe'
12696 # FIXME: first we should search . and the directory the executable is in
12700 darwin* | rhapsody*)
12701 dynamic_linker="$host_os dyld"
12702 version_type=darwin
12705 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12706 soname_spec='${libname}${release}${major}$shared_ext'
12707 shlibpath_overrides_runpath=yes
12708 shlibpath_var=DYLD_LIBRARY_PATH
12709 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12710 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12711 if test "$GCC" = yes; then
12712 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12714 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12724 soname_spec='${libname}${release}${shared_ext}$major'
12725 shlibpath_var=LD_LIBRARY_PATH
12732 freebsd* | dragonfly*)
12733 # DragonFly does not have aout. When/if they implement a new
12734 # versioning mechanism, adjust this.
12735 if test -x /usr/bin/objformat; then
12736 objformat=`/usr/bin/objformat`
12739 freebsd[123]*) objformat=aout ;;
12740 *) objformat=elf ;;
12743 version_type=freebsd-$objformat
12744 case $version_type in
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12755 shlibpath_var=LD_LIBRARY_PATH
12758 shlibpath_overrides_runpath=yes
12760 freebsd3.[01]* | freebsdelf3.[01]*)
12761 shlibpath_overrides_runpath=yes
12762 hardcode_into_libs=yes
12764 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12765 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12766 shlibpath_overrides_runpath=no
12767 hardcode_into_libs=yes
12769 freebsd*) # from 4.6 on
12770 shlibpath_overrides_runpath=yes
12771 hardcode_into_libs=yes
12780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12781 soname_spec='${libname}${release}${shared_ext}$major'
12782 shlibpath_var=LD_LIBRARY_PATH
12783 hardcode_into_libs=yes
12786 hpux9* | hpux10* | hpux11*)
12787 # Give a soname corresponding to the major version so that dld.sl refuses to
12788 # link against other versions.
12795 hardcode_into_libs=yes
12796 dynamic_linker="$host_os dld.so"
12797 shlibpath_var=LD_LIBRARY_PATH
12798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800 soname_spec='${libname}${release}${shared_ext}$major'
12801 if test "X$HPUX_IA64_MODE" = X32; then
12802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12810 hardcode_into_libs=yes
12811 dynamic_linker="$host_os dld.sl"
12812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815 soname_spec='${libname}${release}${shared_ext}$major'
12816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12821 dynamic_linker="$host_os dld.sl"
12822 shlibpath_var=SHLIB_PATH
12823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12825 soname_spec='${libname}${release}${shared_ext}$major'
12828 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12829 postinstall_cmds='chmod 555 $lib'
12836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12837 soname_spec='${libname}${release}${shared_ext}$major'
12838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12839 shlibpath_var=LD_LIBRARY_PATH
12840 shlibpath_overrides_runpath=no
12841 hardcode_into_libs=yes
12844 irix5* | irix6* | nonstopux*)
12846 nonstopux*) version_type=nonstopux ;;
12848 if test "$lt_cv_prog_gnu_ld" = yes; then
12856 soname_spec='${libname}${release}${shared_ext}$major'
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12859 irix5* | nonstopux*)
12860 libsuff= shlibsuff=
12863 case $LD in # libtool.m4 will add one of these switches to LD
12864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12865 libsuff= shlibsuff= libmagic=32-bit;;
12866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12867 libsuff=32 shlibsuff=N32 libmagic=N32;;
12868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12870 *) libsuff= shlibsuff= libmagic=never-match;;
12874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12875 shlibpath_overrides_runpath=no
12876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12878 hardcode_into_libs=yes
12881 # No shared lib support for Linux oldld, aout, or coff.
12882 linux*oldld* | linux*aout* | linux*coff*)
12886 # This must be Linux ELF.
12887 linux* | k*bsd*-gnu)
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12894 shlibpath_var=LD_LIBRARY_PATH
12895 shlibpath_overrides_runpath=no
12896 # This implies no fast_install, which is unacceptable.
12897 # Some rework will be needed to allow for fast_install
12898 # before this can be enabled.
12899 hardcode_into_libs=yes
12901 # Append ld.so.conf contents to the search path
12902 if test -f /etc/ld.so.conf; then
12903 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12907 # We used to test for /lib/ld.so.1 and disable shared libraries on
12908 # powerpc, because MkLinux only supported shared libraries with the
12909 # GNU dynamic linker. Since this was broken with cross compilers,
12910 # most powerpc-linux boxes support dynamic linking these days and
12911 # people can always --disable-shared, the test was removed, and we
12912 # assume the GNU/Linux dynamic linker is in use.
12913 dynamic_linker='GNU/Linux ld.so'
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12921 soname_spec='${libname}${release}${shared_ext}$major'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 shlibpath_overrides_runpath=no
12924 hardcode_into_libs=yes
12925 dynamic_linker='NetBSD ld.elf_so'
12932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12935 dynamic_linker='NetBSD (a.out) ld.so'
12937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12938 soname_spec='${libname}${release}${shared_ext}$major'
12939 dynamic_linker='NetBSD ld.elf_so'
12941 shlibpath_var=LD_LIBRARY_PATH
12942 shlibpath_overrides_runpath=yes
12943 hardcode_into_libs=yes
12948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12949 shlibpath_var=LD_LIBRARY_PATH
12950 shlibpath_overrides_runpath=yes
12957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12958 soname_spec='${libname}${release}${shared_ext}$major'
12959 shlibpath_var=LD_LIBRARY_PATH
12960 shlibpath_overrides_runpath=yes
12965 sys_lib_dlsearch_path_spec="/usr/lib"
12967 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12969 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12970 *) need_version=no ;;
12972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12974 shlibpath_var=LD_LIBRARY_PATH
12975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12977 openbsd2.[89] | openbsd2.[89].*)
12978 shlibpath_overrides_runpath=no
12981 shlibpath_overrides_runpath=yes
12985 shlibpath_overrides_runpath=yes
12990 libname_spec='$name'
12993 library_names_spec='$libname${shared_ext} $libname.a'
12994 dynamic_linker='OS/2 ld.exe'
12995 shlibpath_var=LIBPATH
12998 osf3* | osf4* | osf5*)
13002 soname_spec='${libname}${release}${shared_ext}$major'
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13006 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 soname_spec='${libname}${release}${shared_ext}$major'
13015 shlibpath_var=LD_LIBRARY_PATH
13016 shlibpath_overrides_runpath=yes
13017 hardcode_into_libs=yes
13018 # ldd complains unless libraries are executable
13019 postinstall_cmds='chmod +x $lib'
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 shlibpath_overrides_runpath=yes
13028 if test "$with_gnu_ld" = yes; then
13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13037 soname_spec='${libname}${release}${shared_ext}$major'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 case $host_vendor in
13041 shlibpath_overrides_runpath=no
13043 export_dynamic_flag_spec='${wl}-Blargedynsym'
13044 runpath_var=LD_RUN_PATH
13052 shlibpath_overrides_runpath=no
13053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13059 if test -d /usr/nec ;then
13061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13062 soname_spec='$libname${shared_ext}.$major'
13063 shlibpath_var=LD_LIBRARY_PATH
13067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13068 version_type=freebsd-elf
13071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13072 soname_spec='${libname}${release}${shared_ext}$major'
13073 shlibpath_var=LD_LIBRARY_PATH
13074 hardcode_into_libs=yes
13075 if test "$with_gnu_ld" = yes; then
13076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13077 shlibpath_overrides_runpath=no
13079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13080 shlibpath_overrides_runpath=yes
13083 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13087 sys_lib_dlsearch_path_spec='/usr/lib'
13092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13093 soname_spec='${libname}${release}${shared_ext}$major'
13094 shlibpath_var=LD_LIBRARY_PATH
13101 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13102 echo "${ECHO_T}$dynamic_linker" >&6; }
13103 test "$dynamic_linker" = no && can_build_shared=no
13105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13106 if test "$GCC" = yes; then
13107 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13110 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13111 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13112 hardcode_action_CXX=
13113 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13114 test -n "$runpath_var_CXX" || \
13115 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13117 # We can hardcode non-existant directories.
13118 if test "$hardcode_direct_CXX" != no &&
13119 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13120 # have to relink, otherwise we might link with an installed library
13121 # when we should be linking with a yet-to-be-installed one
13122 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13123 test "$hardcode_minus_L_CXX" != no; then
13124 # Linking always hardcodes the temporary library directory.
13125 hardcode_action_CXX=relink
13127 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13128 hardcode_action_CXX=immediate
13131 # We cannot hardcode anything, or else we can only hardcode existing
13133 hardcode_action_CXX=unsupported
13135 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13136 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13138 if test "$hardcode_action_CXX" = relink; then
13139 # Fast installation is not supported
13140 enable_fast_install=no
13141 elif test "$shlibpath_overrides_runpath" = yes ||
13142 test "$enable_shared" = no; then
13143 # Fast installation is not necessary
13144 enable_fast_install=needless
13148 # The else clause should only fire when bootstrapping the
13149 # libtool distribution, otherwise you forgot to ship ltmain.sh
13150 # with your package, and you will get complaints that there are
13151 # no rules to generate ltmain.sh.
13152 if test -f "$ltmain"; then
13153 # See if we are running on zsh, and set the options which allow our commands through
13154 # without removal of \ escapes.
13155 if test -n "${ZSH_VERSION+set}" ; then
13156 setopt NO_GLOB_SUBST
13158 # Now quote all the things that may contain metacharacters while being
13159 # careful not to overquote the AC_SUBSTed values. We take copies of the
13160 # variables and quote the copies for generation of the libtool script.
13161 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13163 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13164 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13165 deplibs_check_method reload_flag reload_cmds need_locks \
13166 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13167 lt_cv_sys_global_symbol_to_c_name_address \
13168 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13169 old_postinstall_cmds old_postuninstall_cmds \
13173 lt_prog_compiler_wl_CXX \
13174 lt_prog_compiler_pic_CXX \
13175 lt_prog_compiler_static_CXX \
13176 lt_prog_compiler_no_builtin_flag_CXX \
13177 export_dynamic_flag_spec_CXX \
13178 thread_safe_flag_spec_CXX \
13179 whole_archive_flag_spec_CXX \
13180 enable_shared_with_static_runtimes_CXX \
13181 old_archive_cmds_CXX \
13182 old_archive_from_new_cmds_CXX \
13183 predep_objects_CXX \
13184 postdep_objects_CXX \
13187 compiler_lib_search_path_CXX \
13189 archive_expsym_cmds_CXX \
13190 postinstall_cmds_CXX \
13191 postuninstall_cmds_CXX \
13192 old_archive_from_expsyms_cmds_CXX \
13193 allow_undefined_flag_CXX \
13194 no_undefined_flag_CXX \
13195 export_symbols_cmds_CXX \
13196 hardcode_libdir_flag_spec_CXX \
13197 hardcode_libdir_flag_spec_ld_CXX \
13198 hardcode_libdir_separator_CXX \
13199 hardcode_automatic_CXX \
13201 module_expsym_cmds_CXX \
13202 lt_cv_prog_compiler_c_o_CXX \
13203 exclude_expsyms_CXX \
13204 include_expsyms_CXX; do
13207 old_archive_cmds_CXX | \
13208 old_archive_from_new_cmds_CXX | \
13209 archive_cmds_CXX | \
13210 archive_expsym_cmds_CXX | \
13211 module_cmds_CXX | \
13212 module_expsym_cmds_CXX | \
13213 old_archive_from_expsyms_cmds_CXX | \
13214 export_symbols_cmds_CXX | \
13215 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13216 postinstall_cmds | postuninstall_cmds | \
13217 old_postinstall_cmds | old_postuninstall_cmds | \
13218 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13219 # Double-quote double-evaled strings.
13220 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13223 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13229 *'\$0 --fallback-echo"')
13230 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13236 cat <<__EOF__ >> "$cfgfile"
13237 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13239 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13241 # Shell to use when invoking shell scripts.
13244 # Whether or not to build shared libraries.
13245 build_libtool_libs=$enable_shared
13247 # Whether or not to build static libraries.
13248 build_old_libs=$enable_static
13250 # Whether or not to add -lc for building shared libraries.
13251 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13253 # Whether or not to disallow shared libs when runtime libs are static
13254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13256 # Whether or not to optimize for fast installation.
13257 fast_install=$enable_fast_install
13260 host_alias=$host_alias
13264 # The build system.
13265 build_alias=$build_alias
13269 # An echo program that does not interpret backslashes.
13274 AR_FLAGS=$lt_AR_FLAGS
13279 # LTCC compiler flags.
13280 LTCFLAGS=$lt_LTCFLAGS
13282 # A language-specific compiler.
13283 CC=$lt_compiler_CXX
13285 # Is the compiler the GNU C compiler?
13291 # The linker used to build libraries.
13294 # Whether we need hard or soft links.
13297 # A BSD-compatible nm program.
13300 # A symbol stripping program
13303 # Used to examine libraries when file_magic_cmd begins "file"
13304 MAGIC_CMD=$MAGIC_CMD
13306 # Used on cygwin: DLL creation program.
13309 # Used on cygwin: object dumper.
13312 # Used on cygwin: assembler.
13315 # The name of the directory that contains temporary libtool files.
13318 # How to create reloadable object files.
13319 reload_flag=$lt_reload_flag
13320 reload_cmds=$lt_reload_cmds
13322 # How to pass a linker flag through the compiler.
13323 wl=$lt_lt_prog_compiler_wl_CXX
13325 # Object file suffix (normally "o").
13326 objext="$ac_objext"
13328 # Old archive suffix (normally "a").
13331 # Shared library suffix (normally ".so").
13332 shrext_cmds='$shrext_cmds'
13334 # Executable file suffix (normally "").
13337 # Additional compiler flags for building library objects.
13338 pic_flag=$lt_lt_prog_compiler_pic_CXX
13341 # What is the maximum length of a command?
13342 max_cmd_len=$lt_cv_sys_max_cmd_len
13344 # Does compiler simultaneously support -c and -o options?
13345 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13347 # Must we lock files when doing compilation?
13348 need_locks=$lt_need_locks
13350 # Do we need the lib prefix for modules?
13351 need_lib_prefix=$need_lib_prefix
13353 # Do we need a version for libraries?
13354 need_version=$need_version
13356 # Whether dlopen is supported.
13357 dlopen_support=$enable_dlopen
13359 # Whether dlopen of programs is supported.
13360 dlopen_self=$enable_dlopen_self
13362 # Whether dlopen of statically linked programs is supported.
13363 dlopen_self_static=$enable_dlopen_self_static
13365 # Compiler flag to prevent dynamic linking.
13366 link_static_flag=$lt_lt_prog_compiler_static_CXX
13368 # Compiler flag to turn off builtin functions.
13369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13371 # Compiler flag to allow reflexive dlopens.
13372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13374 # Compiler flag to generate shared objects directly from archives.
13375 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13377 # Compiler flag to generate thread-safe objects.
13378 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13380 # Library versioning type.
13381 version_type=$version_type
13383 # Format of library name prefix.
13384 libname_spec=$lt_libname_spec
13386 # List of archive names. First name is the real one, the rest are links.
13387 # The last name is the one that the linker finds with -lNAME.
13388 library_names_spec=$lt_library_names_spec
13390 # The coded name of the library, if different from the real name.
13391 soname_spec=$lt_soname_spec
13393 # Commands used to build and install an old-style archive.
13395 old_archive_cmds=$lt_old_archive_cmds_CXX
13396 old_postinstall_cmds=$lt_old_postinstall_cmds
13397 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13399 # Create an old-style archive from a shared archive.
13400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13402 # Create a temporary old-style archive to link instead of a shared archive.
13403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13405 # Commands used to build and install a shared archive.
13406 archive_cmds=$lt_archive_cmds_CXX
13407 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13408 postinstall_cmds=$lt_postinstall_cmds
13409 postuninstall_cmds=$lt_postuninstall_cmds
13411 # Commands used to build a loadable module (assumed same as above if empty)
13412 module_cmds=$lt_module_cmds_CXX
13413 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13415 # Commands to strip libraries.
13416 old_striplib=$lt_old_striplib
13417 striplib=$lt_striplib
13419 # Dependencies to place before the objects being linked to create a
13421 predep_objects=$lt_predep_objects_CXX
13423 # Dependencies to place after the objects being linked to create a
13425 postdep_objects=$lt_postdep_objects_CXX
13427 # Dependencies to place before the objects being linked to create a
13429 predeps=$lt_predeps_CXX
13431 # Dependencies to place after the objects being linked to create a
13433 postdeps=$lt_postdeps_CXX
13435 # The library search path used internally by the compiler when linking
13436 # a shared library.
13437 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13439 # Method to check whether dependent libraries are shared objects.
13440 deplibs_check_method=$lt_deplibs_check_method
13442 # Command to use when deplibs_check_method == file_magic.
13443 file_magic_cmd=$lt_file_magic_cmd
13445 # Flag that allows shared libraries with undefined symbols to be built.
13446 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13448 # Flag that forces no undefined symbols.
13449 no_undefined_flag=$lt_no_undefined_flag_CXX
13451 # Commands used to finish a libtool library installation in a directory.
13452 finish_cmds=$lt_finish_cmds
13454 # Same as above, but a single script fragment to be evaled but not shown.
13455 finish_eval=$lt_finish_eval
13457 # Take the output of nm and produce a listing of raw symbols and C names.
13458 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13460 # Transform the output of nm in a proper C declaration
13461 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13463 # Transform the output of nm in a C name address pair
13464 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13466 # This is the shared library runtime path variable.
13467 runpath_var=$runpath_var
13469 # This is the shared library path variable.
13470 shlibpath_var=$shlibpath_var
13472 # Is shlibpath searched before the hard-coded library search path?
13473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13475 # How to hardcode a shared library path into an executable.
13476 hardcode_action=$hardcode_action_CXX
13478 # Whether we should hardcode library paths into libraries.
13479 hardcode_into_libs=$hardcode_into_libs
13481 # Flag to hardcode \$libdir into a binary during linking.
13482 # This must work even if \$libdir does not exist.
13483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13485 # If ld is used when linking, flag to hardcode \$libdir into
13486 # a binary during linking. This must work even if \$libdir does
13488 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13490 # Whether we need a single -rpath flag with a separated argument.
13491 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13493 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13494 # resulting binary.
13495 hardcode_direct=$hardcode_direct_CXX
13497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13498 # resulting binary.
13499 hardcode_minus_L=$hardcode_minus_L_CXX
13501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13502 # the resulting binary.
13503 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13505 # Set to yes if building a shared library automatically hardcodes DIR into the library
13506 # and all subsequent libraries and executables linked against it.
13507 hardcode_automatic=$hardcode_automatic_CXX
13509 # Variables whose values should be saved in libtool wrapper scripts and
13510 # restored at relink time.
13511 variables_saved_for_relink="$variables_saved_for_relink"
13513 # Whether libtool must link a program against all its dependency libraries.
13514 link_all_deplibs=$link_all_deplibs_CXX
13516 # Compile-time system search path for libraries
13517 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13519 # Run-time system search path for libraries
13520 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13522 # Fix the shell variable \$srcfile for the compiler.
13523 fix_srcfile_path="$fix_srcfile_path_CXX"
13525 # Set to yes if exported symbols are required.
13526 always_export_symbols=$always_export_symbols_CXX
13528 # The commands to list exported symbols.
13529 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13531 # The commands to extract the exported symbol list from a shared archive.
13532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13534 # Symbols that should not be listed in the preloaded symbols.
13535 exclude_expsyms=$lt_exclude_expsyms_CXX
13537 # Symbols that must always be exported.
13538 include_expsyms=$lt_include_expsyms_CXX
13540 # ### END LIBTOOL TAG CONFIG: $tagname
13546 # If there is no Makefile yet, we rely on a make rule to execute
13547 # `config.status --recheck' to rerun these tests and create the
13548 # libtool script then.
13549 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13550 if test -f "$ltmain_in"; then
13551 test -f Makefile && make "$ltmain"
13557 ac_cpp='$CPP $CPPFLAGS'
13558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13566 with_gnu_ldcxx=$with_gnu_ld
13567 with_gnu_ld=$lt_save_with_gnu_ld
13568 lt_cv_path_LDCXX=$lt_cv_path_LD
13569 lt_cv_path_LD=$lt_save_path_LD
13570 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13571 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13579 if test -n "$F77" && test "X$F77" != "Xno"; then
13582 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13583 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13584 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13587 archive_cmds_need_lc_F77=no
13588 allow_undefined_flag_F77=
13589 always_export_symbols_F77=no
13590 archive_expsym_cmds_F77=
13591 export_dynamic_flag_spec_F77=
13592 hardcode_direct_F77=no
13593 hardcode_libdir_flag_spec_F77=
13594 hardcode_libdir_flag_spec_ld_F77=
13595 hardcode_libdir_separator_F77=
13596 hardcode_minus_L_F77=no
13597 hardcode_automatic_F77=no
13599 module_expsym_cmds_F77=
13600 link_all_deplibs_F77=unknown
13601 old_archive_cmds_F77=$old_archive_cmds
13602 no_undefined_flag_F77=
13603 whole_archive_flag_spec_F77=
13604 enable_shared_with_static_runtimes_F77=no
13606 # Source file extension for f77 test sources.
13609 # Object file extension for compiled f77 test sources.
13613 # Code to be used in simple compile tests
13614 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13616 # Code to be used in simple link tests
13617 lt_simple_link_test_code=" program t\n end\n"
13619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13621 # If no C compiler was specified, use CC.
13624 # If no C compiler flags were specified, use CFLAGS.
13625 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13627 # Allow CC to be a program name with arguments.
13631 # save warnings/boilerplate of simple test code
13632 ac_outfile=conftest.$ac_objext
13633 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13635 _lt_compiler_boilerplate=`cat conftest.err`
13638 ac_outfile=conftest.$ac_objext
13639 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13641 _lt_linker_boilerplate=`cat conftest.err`
13645 # Allow CC to be a program name with arguments.
13650 for cc_temp in $compiler""; do
13652 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13653 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13658 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13661 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13662 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13663 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13664 echo "${ECHO_T}$can_build_shared" >&6; }
13666 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13667 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13668 test "$can_build_shared" = "no" && enable_shared=no
13670 # On AIX, shared libraries and static libraries use the same namespace, and
13671 # are all built from PIC.
13674 test "$enable_shared" = yes && enable_static=no
13675 if test -n "$RANLIB"; then
13676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13677 postinstall_cmds='$RANLIB $lib'
13681 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13682 test "$enable_shared" = yes && enable_static=no
13686 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13687 echo "${ECHO_T}$enable_shared" >&6; }
13689 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13690 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13691 # Make sure either enable_shared or enable_static is yes.
13692 test "$enable_shared" = yes || enable_static=yes
13693 { echo "$as_me:$LINENO: result: $enable_static" >&5
13694 echo "${ECHO_T}$enable_static" >&6; }
13699 lt_prog_compiler_wl_F77=
13700 lt_prog_compiler_pic_F77=
13701 lt_prog_compiler_static_F77=
13703 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13706 if test "$GCC" = yes; then
13707 lt_prog_compiler_wl_F77='-Wl,'
13708 lt_prog_compiler_static_F77='-static'
13712 # All AIX code is PIC.
13713 if test "$host_cpu" = ia64; then
13714 # AIX 5 now supports IA64 processor
13715 lt_prog_compiler_static_F77='-Bstatic'
13720 # FIXME: we need at least 68020 code to build shared libraries, but
13721 # adding the `-m68020' flag to GCC prevents building anything better,
13723 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13726 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13727 # PIC is the default for these OSes.
13730 mingw* | pw32* | os2*)
13731 # This hack is so that the source file can tell whether it is being
13732 # built for inclusion in a dll (and should export symbols for example).
13733 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13736 darwin* | rhapsody*)
13737 # PIC is the default on this platform
13738 # Common symbols not allowed in MH_DYLIB files
13739 lt_prog_compiler_pic_F77='-fno-common'
13743 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13744 # Instead, we relocate shared libraries at runtime.
13748 # Just because we use GCC doesn't mean we suddenly get shared libraries
13749 # on systems that don't support them.
13750 lt_prog_compiler_can_build_shared_F77=no
13755 if test -d /usr/nec; then
13756 lt_prog_compiler_pic_F77=-Kconform_pic
13761 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13762 # not for PA HP-UX.
13768 lt_prog_compiler_pic_F77='-fPIC'
13774 lt_prog_compiler_pic_F77='-fPIC'
13778 # PORTME Check for flag to pass linker flags through the system compiler.
13781 lt_prog_compiler_wl_F77='-Wl,'
13782 if test "$host_cpu" = ia64; then
13783 # AIX 5 now supports IA64 processor
13784 lt_prog_compiler_static_F77='-Bstatic'
13786 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13790 # PIC is the default on this platform
13791 # Common symbols not allowed in MH_DYLIB files
13792 case $cc_basename in
13794 lt_prog_compiler_pic_F77='-qnocommon'
13795 lt_prog_compiler_wl_F77='-Wl,'
13800 mingw* | pw32* | os2*)
13801 # This hack is so that the source file can tell whether it is being
13802 # built for inclusion in a dll (and should export symbols for example).
13803 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13806 hpux9* | hpux10* | hpux11*)
13807 lt_prog_compiler_wl_F77='-Wl,'
13808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13809 # not for PA HP-UX.
13815 lt_prog_compiler_pic_F77='+Z'
13818 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13819 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13822 irix5* | irix6* | nonstopux*)
13823 lt_prog_compiler_wl_F77='-Wl,'
13824 # PIC (with -KPIC) is the default.
13825 lt_prog_compiler_static_F77='-non_shared'
13829 lt_prog_compiler_pic_F77='-KPIC'
13830 lt_prog_compiler_static_F77='-Bstatic'
13833 linux* | k*bsd*-gnu)
13834 case $cc_basename in
13836 lt_prog_compiler_wl_F77='-Wl,'
13837 lt_prog_compiler_pic_F77='-KPIC'
13838 lt_prog_compiler_static_F77='-static'
13840 pgcc* | pgf77* | pgf90* | pgf95*)
13841 # Portland Group compilers (*not* the Pentium gcc compiler,
13842 # which looks to be a dead project)
13843 lt_prog_compiler_wl_F77='-Wl,'
13844 lt_prog_compiler_pic_F77='-fpic'
13845 lt_prog_compiler_static_F77='-Bstatic'
13848 lt_prog_compiler_wl_F77='-Wl,'
13849 # All Alpha code is PIC.
13850 lt_prog_compiler_static_F77='-non_shared'
13855 osf3* | osf4* | osf5*)
13856 lt_prog_compiler_wl_F77='-Wl,'
13857 # All OSF/1 code is PIC.
13858 lt_prog_compiler_static_F77='-non_shared'
13862 lt_prog_compiler_pic_F77='-KPIC'
13863 lt_prog_compiler_static_F77='-Bstatic'
13864 case $cc_basename in
13865 f77* | f90* | f95*)
13866 lt_prog_compiler_wl_F77='-Qoption ld ';;
13868 lt_prog_compiler_wl_F77='-Wl,';;
13873 lt_prog_compiler_wl_F77='-Qoption ld '
13874 lt_prog_compiler_pic_F77='-PIC'
13875 lt_prog_compiler_static_F77='-Bstatic'
13878 sysv4 | sysv4.2uw2* | sysv4.3*)
13879 lt_prog_compiler_wl_F77='-Wl,'
13880 lt_prog_compiler_pic_F77='-KPIC'
13881 lt_prog_compiler_static_F77='-Bstatic'
13885 if test -d /usr/nec ;then
13886 lt_prog_compiler_pic_F77='-Kconform_pic'
13887 lt_prog_compiler_static_F77='-Bstatic'
13891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13892 lt_prog_compiler_wl_F77='-Wl,'
13893 lt_prog_compiler_pic_F77='-KPIC'
13894 lt_prog_compiler_static_F77='-Bstatic'
13898 lt_prog_compiler_wl_F77='-Wl,'
13899 lt_prog_compiler_can_build_shared_F77=no
13903 lt_prog_compiler_pic_F77='-pic'
13904 lt_prog_compiler_static_F77='-Bstatic'
13908 lt_prog_compiler_can_build_shared_F77=no
13913 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13914 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13917 # Check to make sure the PIC flag actually works.
13919 if test -n "$lt_prog_compiler_pic_F77"; then
13921 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13922 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13923 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 lt_prog_compiler_pic_works_F77=no
13927 ac_outfile=conftest.$ac_objext
13928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13929 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13930 # Insert the option either (1) after the last *FLAGS variable, or
13931 # (2) before a word containing "conftest.", or (3) at the end.
13932 # Note that $ac_compile itself does not contain backslashes and begins
13933 # with a dollar sign (not a hyphen), so the echo should work correctly.
13934 # The option is referenced via a variable to avoid confusing sed.
13935 lt_compile=`echo "$ac_compile" | $SED \
13936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13938 -e 's:$: $lt_compiler_flag:'`
13939 (eval echo "\"\$as_me:13939: $lt_compile\"" >&5)
13940 (eval "$lt_compile" 2>conftest.err)
13942 cat conftest.err >&5
13943 echo "$as_me:13943: \$? = $ac_status" >&5
13944 if (exit $ac_status) && test -s "$ac_outfile"; then
13945 # The compiler can only warn and ignore the option if not recognized
13946 # So say no if there are warnings other than the usual output.
13947 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13949 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13950 lt_prog_compiler_pic_works_F77=yes
13956 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13957 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13959 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13960 case $lt_prog_compiler_pic_F77 in
13962 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13965 lt_prog_compiler_pic_F77=
13966 lt_prog_compiler_can_build_shared_F77=no
13971 # For platforms which do not support PIC, -DPIC is meaningless:
13973 lt_prog_compiler_pic_F77=
13976 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13981 # Check to make sure the static flag actually works.
13983 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13984 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13985 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13986 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 lt_prog_compiler_static_works_F77=no
13990 save_LDFLAGS="$LDFLAGS"
13991 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13992 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13993 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13994 # The linker can only warn and ignore the option if not recognized
13995 # So say no if there are warnings
13996 if test -s conftest.err; then
13997 # Append any errors to the config.log.
13998 cat conftest.err 1>&5
13999 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14001 if diff conftest.exp conftest.er2 >/dev/null; then
14002 lt_prog_compiler_static_works_F77=yes
14005 lt_prog_compiler_static_works_F77=yes
14009 LDFLAGS="$save_LDFLAGS"
14012 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14013 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14015 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14018 lt_prog_compiler_static_F77=
14022 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14023 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14024 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 lt_cv_prog_compiler_c_o_F77=no
14028 $rm -r conftest 2>/dev/null
14032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14034 lt_compiler_flag="-o out/conftest2.$ac_objext"
14035 # Insert the option either (1) after the last *FLAGS variable, or
14036 # (2) before a word containing "conftest.", or (3) at the end.
14037 # Note that $ac_compile itself does not contain backslashes and begins
14038 # with a dollar sign (not a hyphen), so the echo should work correctly.
14039 lt_compile=`echo "$ac_compile" | $SED \
14040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14042 -e 's:$: $lt_compiler_flag:'`
14043 (eval echo "\"\$as_me:14043: $lt_compile\"" >&5)
14044 (eval "$lt_compile" 2>out/conftest.err)
14046 cat out/conftest.err >&5
14047 echo "$as_me:14047: \$? = $ac_status" >&5
14048 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14050 # The compiler can only warn and ignore the option if not recognized
14051 # So say no if there are warnings
14052 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14053 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14054 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14055 lt_cv_prog_compiler_c_o_F77=yes
14060 # SGI C++ compiler will create directory out/ii_files/ for
14061 # template instantiation
14062 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14063 $rm out/* && rmdir out
14069 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14070 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14073 hard_links="nottested"
14074 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14075 # do not overwrite the value of need_locks provided by the user
14076 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14077 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14082 ln conftest.a conftest.b 2>&5 || hard_links=no
14083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14084 { echo "$as_me:$LINENO: result: $hard_links" >&5
14085 echo "${ECHO_T}$hard_links" >&6; }
14086 if test "$hard_links" = no; then
14087 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14088 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14095 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14096 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14099 allow_undefined_flag_F77=
14100 enable_shared_with_static_runtimes_F77=no
14102 archive_expsym_cmds_F77=
14103 old_archive_From_new_cmds_F77=
14104 old_archive_from_expsyms_cmds_F77=
14105 export_dynamic_flag_spec_F77=
14106 whole_archive_flag_spec_F77=
14107 thread_safe_flag_spec_F77=
14108 hardcode_libdir_flag_spec_F77=
14109 hardcode_libdir_flag_spec_ld_F77=
14110 hardcode_libdir_separator_F77=
14111 hardcode_direct_F77=no
14112 hardcode_minus_L_F77=no
14113 hardcode_shlibpath_var_F77=unsupported
14114 link_all_deplibs_F77=unknown
14115 hardcode_automatic_F77=no
14117 module_expsym_cmds_F77=
14118 always_export_symbols_F77=no
14119 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14120 # include_expsyms should be a list of space-separated symbols to be *always*
14121 # included in the symbol list
14122 include_expsyms_F77=
14123 # exclude_expsyms can be an extended regexp of symbols to exclude
14124 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14125 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14126 # as well as any symbol that contains `d'.
14127 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14128 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14129 # platforms (ab)use it in PIC code, but their linkers get confused if
14130 # the symbol is explicitly referenced. Since portable code cannot
14131 # rely on this symbol name, it's probably fine to never include it in
14132 # preloaded symbol tables.
14133 extract_expsyms_cmds=
14134 # Just being paranoid about ensuring that cc_basename is set.
14135 for cc_temp in $compiler""; do
14137 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14138 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14143 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14146 cygwin* | mingw* | pw32*)
14147 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14148 # When not using gcc, we currently assume that we are using
14149 # Microsoft Visual C++.
14150 if test "$GCC" != yes; then
14155 # we just hope/assume this is gcc and not c89 (= MSVC++)
14164 if test "$with_gnu_ld" = yes; then
14165 # If archive_cmds runs LD, not CC, wlarc should be empty
14168 # Set some defaults for GNU ld with shared library support. These
14169 # are reset later if shared libraries are not supported. Putting them
14170 # here allows them to be overridden if necessary.
14171 runpath_var=LD_RUN_PATH
14172 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14173 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14174 # ancient GNU ld didn't support --whole-archive et. al.
14175 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14176 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14178 whole_archive_flag_spec_F77=
14180 supports_anon_versioning=no
14181 case `$LD -v 2>/dev/null` in
14182 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14183 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14184 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14185 *\ 2.11.*) ;; # other 2.11 versions
14186 *) supports_anon_versioning=yes ;;
14189 # See if GNU ld supports shared libraries.
14191 aix3* | aix4* | aix5*)
14192 # On AIX/PPC, the GNU linker is very broken
14193 if test "$host_cpu" != ia64; then
14197 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14198 *** to be unable to reliably create shared libraries on AIX.
14199 *** Therefore, libtool is disabling shared libraries support. If you
14200 *** really care for shared libraries, you may want to modify your PATH
14201 *** so that a non-GNU linker is found, and then restart.
14208 archive_cmds_F77='$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)'
14209 hardcode_libdir_flag_spec_F77='-L$libdir'
14210 hardcode_minus_L_F77=yes
14212 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14213 # that the semantics of dynamic libraries on AmigaOS, at least up
14214 # to version 4, is to share data among multiple programs linked
14215 # with the same dynamic library. Since this doesn't match the
14216 # behavior of shared libraries on other platforms, we can't use
14222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14223 allow_undefined_flag_F77=unsupported
14224 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14225 # support --undefined. This deserves some investigation. FIXME
14226 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14232 cygwin* | mingw* | pw32*)
14233 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14234 # as there is no search path for DLLs.
14235 hardcode_libdir_flag_spec_F77='-L$libdir'
14236 allow_undefined_flag_F77=unsupported
14237 always_export_symbols_F77=no
14238 enable_shared_with_static_runtimes_F77=yes
14239 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14241 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14242 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14243 # If the export-symbols file already is a .def file (1st line
14244 # is EXPORTS), use it as is; otherwise, prepend...
14245 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14246 cp $export_symbols $output_objdir/$soname.def;
14248 echo EXPORTS > $output_objdir/$soname.def;
14249 cat $export_symbols >> $output_objdir/$soname.def;
14251 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14258 hardcode_direct_F77=no
14259 hardcode_shlibpath_var_F77=no
14260 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14261 export_dynamic_flag_spec_F77='${wl}-E'
14262 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14263 # Instead, shared libraries are loaded at an image base (0x10000000 by
14264 # default) and relocated if they conflict, which is a slow very memory
14265 # consuming and fragmenting process. To avoid this, we pick a random,
14266 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14267 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14268 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14269 archive_expsym_cmds_F77='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'
14272 linux* | k*bsd*-gnu)
14273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14275 case $cc_basename,$host_cpu in
14276 pgcc*) # Portland Group C compiler
14277 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14278 tmp_addflag=' $pic_flag'
14280 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14281 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14282 tmp_addflag=' $pic_flag -Mnomain' ;;
14283 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14284 tmp_addflag=' -i_dynamic' ;;
14285 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14286 tmp_addflag=' -i_dynamic -nofor_main' ;;
14287 ifc* | ifort*) # Intel Fortran compiler
14288 tmp_addflag=' -nofor_main' ;;
14290 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14292 if test $supports_anon_versioning = yes; then
14293 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14295 $echo "local: *; };" >> $output_objdir/$libname.ver~
14296 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14298 link_all_deplibs_F77=no
14304 netbsd* | netbsdelf*-gnu)
14305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14306 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14309 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14310 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14315 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14319 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14320 *** create shared libraries on Solaris systems. Therefore, libtool
14321 *** is disabling shared libraries support. We urge you to upgrade GNU
14322 *** binutils to release 2.9.1 or newer. Another option is to modify
14323 *** your PATH or compiler configuration so that the native linker is
14324 *** used, and then restart.
14327 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14328 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14329 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14336 case `$LD -v 2>&1` in
14337 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14341 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14342 *** reliably create shared libraries on SCO systems. Therefore, libtool
14343 *** is disabling shared libraries support. We urge you to upgrade GNU
14344 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14345 *** your PATH or compiler configuration so that the native linker is
14346 *** used, and then restart.
14351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14352 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14353 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14354 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14363 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14365 hardcode_direct_F77=yes
14366 hardcode_shlibpath_var_F77=no
14370 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14371 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14372 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14379 if test "$ld_shlibs_F77" = no; then
14381 hardcode_libdir_flag_spec_F77=
14382 export_dynamic_flag_spec_F77=
14383 whole_archive_flag_spec_F77=
14386 # PORTME fill in a description of your system's linker (not GNU ld)
14389 allow_undefined_flag_F77=unsupported
14390 always_export_symbols_F77=yes
14391 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14392 # Note: this linker hardcodes the directories in LIBPATH if there
14393 # are no directories specified by -L.
14394 hardcode_minus_L_F77=yes
14395 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14396 # Neither direct hardcoding nor static linking is supported with a
14398 hardcode_direct_F77=unsupported
14403 if test "$host_cpu" = ia64; then
14404 # On IA64, the linker does run time linking by default, so we don't
14405 # have to do anything special.
14406 aix_use_runtimelinking=no
14407 exp_sym_flag='-Bexport'
14410 # If we're using GNU nm, then we don't want the "-C" option.
14411 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14412 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14413 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14415 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14417 aix_use_runtimelinking=no
14419 # Test if we are trying to use run time linking or normal
14420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14421 # need to do runtime linking.
14422 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14423 for ld_flag in $LDFLAGS; do
14424 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14425 aix_use_runtimelinking=yes
14432 exp_sym_flag='-bexport'
14433 no_entry_flag='-bnoentry'
14436 # When large executables or shared objects are built, AIX ld can
14437 # have problems creating the table of contents. If linking a library
14438 # or program results in "error TOC overflow" add -mminimal-toc to
14439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14442 archive_cmds_F77=''
14443 hardcode_direct_F77=yes
14444 hardcode_libdir_separator_F77=':'
14445 link_all_deplibs_F77=yes
14447 if test "$GCC" = yes; then
14448 case $host_os in aix4.[012]|aix4.[012].*)
14449 # We only want to do this on AIX 4.2 and lower, the check
14450 # below for broken collect2 doesn't work under 4.3+
14451 collect2name=`${CC} -print-prog-name=collect2`
14452 if test -f "$collect2name" && \
14453 strings "$collect2name" | grep resolve_lib_name >/dev/null
14455 # We have reworked collect2
14456 hardcode_direct_F77=yes
14458 # We have old collect2
14459 hardcode_direct_F77=unsupported
14460 # It fails to find uninstalled libraries when the uninstalled
14461 # path is not listed in the libpath. Setting hardcode_minus_L
14462 # to unsupported forces relinking
14463 hardcode_minus_L_F77=yes
14464 hardcode_libdir_flag_spec_F77='-L$libdir'
14465 hardcode_libdir_separator_F77=
14469 shared_flag='-shared'
14470 if test "$aix_use_runtimelinking" = yes; then
14471 shared_flag="$shared_flag "'${wl}-G'
14475 if test "$host_cpu" = ia64; then
14476 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14477 # chokes on -Wl,-G. The following line is correct:
14480 if test "$aix_use_runtimelinking" = yes; then
14481 shared_flag='${wl}-G'
14483 shared_flag='${wl}-bM:SRE'
14488 # It seems that -bexpall does not export symbols beginning with
14489 # underscore (_), so it is better to generate a list of symbols to export.
14490 always_export_symbols_F77=yes
14491 if test "$aix_use_runtimelinking" = yes; then
14492 # Warning - without using the other runtime loading flags (-brtl),
14493 # -berok will link without error, but may produce a broken library.
14494 allow_undefined_flag_F77='-berok'
14495 # Determine the default libpath from the value encoded in an empty executable.
14496 cat >conftest.$ac_ext <<_ACEOF
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (ac_try="$ac_link"
14503 case "(($ac_try" in
14504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505 *) ac_try_echo=$ac_try;;
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508 (eval "$ac_link") 2>conftest.er1
14510 grep -v '^ *+' conftest.er1 >conftest.err
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } && {
14515 test -z "$ac_f77_werror_flag" ||
14516 test ! -s conftest.err
14517 } && test -s conftest$ac_exeext &&
14518 $as_test_x conftest$ac_exeext; then
14520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14522 # Check for a 64-bit object if we didn't find anything.
14523 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14533 conftest$ac_exeext conftest.$ac_ext
14534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14536 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14537 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14539 if test "$host_cpu" = ia64; then
14540 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14541 allow_undefined_flag_F77="-z nodefs"
14542 archive_expsym_cmds_F77="\$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"
14544 # Determine the default libpath from the value encoded in an empty executable.
14545 cat >conftest.$ac_ext <<_ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (ac_try="$ac_link"
14552 case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_link") 2>conftest.er1
14559 grep -v '^ *+' conftest.er1 >conftest.err
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && {
14564 test -z "$ac_f77_werror_flag" ||
14565 test ! -s conftest.err
14566 } && test -s conftest$ac_exeext &&
14567 $as_test_x conftest$ac_exeext; then
14569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14571 # Check for a 64-bit object if we didn't find anything.
14572 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14582 conftest$ac_exeext conftest.$ac_ext
14583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14585 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14586 # Warning - without using the other run time loading flags,
14587 # -berok will link without error, but may produce a broken library.
14588 no_undefined_flag_F77=' ${wl}-bernotok'
14589 allow_undefined_flag_F77=' ${wl}-berok'
14590 # Exported symbols can be pulled into shared objects from archives
14591 whole_archive_flag_spec_F77='$convenience'
14592 archive_cmds_need_lc_F77=yes
14593 # This is similar to how AIX traditionally builds its shared libraries.
14594 archive_expsym_cmds_F77="\$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'
14600 archive_cmds_F77='$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)'
14601 hardcode_libdir_flag_spec_F77='-L$libdir'
14602 hardcode_minus_L_F77=yes
14603 # see comment about different semantics on the GNU ld section
14608 export_dynamic_flag_spec_F77=-rdynamic
14611 cygwin* | mingw* | pw32*)
14612 # When not using gcc, we currently assume that we are using
14613 # Microsoft Visual C++.
14614 # hardcode_libdir_flag_spec is actually meaningless, as there is
14615 # no search path for DLLs.
14616 hardcode_libdir_flag_spec_F77=' '
14617 allow_undefined_flag_F77=unsupported
14618 # Tell ltmain to make .lib files, not .a files.
14620 # Tell ltmain to make .dll files, not .so files.
14622 # FIXME: Setting linknames here is a bad hack.
14623 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14624 # The linker will automatically build a .lib file if we build a DLL.
14625 old_archive_From_new_cmds_F77='true'
14626 # FIXME: Should let the user specify the lib program.
14627 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14628 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14629 enable_shared_with_static_runtimes_F77=yes
14632 darwin* | rhapsody*)
14634 rhapsody* | darwin1.[012])
14635 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14638 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14639 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14641 case ${MACOSX_DEPLOYMENT_TARGET} in
14643 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14646 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14652 archive_cmds_need_lc_F77=no
14653 hardcode_direct_F77=no
14654 hardcode_automatic_F77=yes
14655 hardcode_shlibpath_var_F77=unsupported
14656 whole_archive_flag_spec_F77=''
14657 link_all_deplibs_F77=yes
14658 if test "$GCC" = yes ; then
14659 output_verbose_link_cmd='echo'
14660 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14661 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14662 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14663 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14664 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14666 case $cc_basename in
14668 output_verbose_link_cmd='echo'
14669 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14670 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14671 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14672 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14673 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14683 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14684 hardcode_libdir_flag_spec_F77='-L$libdir'
14685 hardcode_shlibpath_var_F77=no
14692 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14693 # support. Future versions do this automatically, but an explicit c++rt0.o
14694 # does not break anything, and helps significantly (at the cost of a little
14697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14698 hardcode_libdir_flag_spec_F77='-R$libdir'
14699 hardcode_direct_F77=yes
14700 hardcode_shlibpath_var_F77=no
14703 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14705 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14706 hardcode_direct_F77=yes
14707 hardcode_minus_L_F77=yes
14708 hardcode_shlibpath_var_F77=no
14711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14712 freebsd* | dragonfly*)
14713 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14714 hardcode_libdir_flag_spec_F77='-R$libdir'
14715 hardcode_direct_F77=yes
14716 hardcode_shlibpath_var_F77=no
14720 if test "$GCC" = yes; then
14721 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14723 archive_cmds_F77='$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'
14725 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14726 hardcode_libdir_separator_F77=:
14727 hardcode_direct_F77=yes
14729 # hardcode_minus_L: Not really in the search PATH,
14730 # but as the default location of the library.
14731 hardcode_minus_L_F77=yes
14732 export_dynamic_flag_spec_F77='${wl}-E'
14736 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14737 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14739 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14741 if test "$with_gnu_ld" = no; then
14742 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14743 hardcode_libdir_separator_F77=:
14745 hardcode_direct_F77=yes
14746 export_dynamic_flag_spec_F77='${wl}-E'
14748 # hardcode_minus_L: Not really in the search PATH,
14749 # but as the default location of the library.
14750 hardcode_minus_L_F77=yes
14755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14758 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14761 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14764 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14770 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14773 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14776 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14780 if test "$with_gnu_ld" = no; then
14781 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14782 hardcode_libdir_separator_F77=:
14786 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14787 hardcode_direct_F77=no
14788 hardcode_shlibpath_var_F77=no
14791 hardcode_direct_F77=yes
14792 export_dynamic_flag_spec_F77='${wl}-E'
14794 # hardcode_minus_L: Not really in the search PATH,
14795 # but as the default location of the library.
14796 hardcode_minus_L_F77=yes
14802 irix5* | irix6* | nonstopux*)
14803 if test "$GCC" = yes; then
14804 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14806 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14807 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14809 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14810 hardcode_libdir_separator_F77=:
14811 link_all_deplibs_F77=yes
14814 netbsd* | netbsdelf*-gnu)
14815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14816 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14818 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14820 hardcode_libdir_flag_spec_F77='-R$libdir'
14821 hardcode_direct_F77=yes
14822 hardcode_shlibpath_var_F77=no
14826 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14827 hardcode_direct_F77=yes
14828 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14829 hardcode_libdir_separator_F77=:
14830 hardcode_shlibpath_var_F77=no
14834 hardcode_direct_F77=yes
14835 hardcode_shlibpath_var_F77=no
14836 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14837 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14838 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14839 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14840 export_dynamic_flag_spec_F77='${wl}-E'
14843 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14844 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14845 hardcode_libdir_flag_spec_F77='-R$libdir'
14848 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14849 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14856 hardcode_libdir_flag_spec_F77='-L$libdir'
14857 hardcode_minus_L_F77=yes
14858 allow_undefined_flag_F77=unsupported
14859 archive_cmds_F77='$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'
14860 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14864 if test "$GCC" = yes; then
14865 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14866 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14868 allow_undefined_flag_F77=' -expect_unresolved \*'
14869 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14871 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14872 hardcode_libdir_separator_F77=:
14875 osf4* | osf5*) # as osf3* with the addition of -msym flag
14876 if test "$GCC" = yes; then
14877 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14878 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14879 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14881 allow_undefined_flag_F77=' -expect_unresolved \*'
14882 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14883 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14884 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14886 # Both c and cxx compiler support -rpath directly
14887 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14889 hardcode_libdir_separator_F77=:
14893 no_undefined_flag_F77=' -z text'
14894 if test "$GCC" = yes; then
14896 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14897 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14898 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14901 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14902 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14903 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14905 hardcode_libdir_flag_spec_F77='-R$libdir'
14906 hardcode_shlibpath_var_F77=no
14908 solaris2.[0-5] | solaris2.[0-5].*) ;;
14910 # The compiler driver will combine linker options so we
14911 # cannot just pass the convience library names through
14912 # without $wl, iff we do not link with $LD.
14913 # Luckily, gcc supports the same syntax we need for Sun Studio.
14914 # Supported since Solaris 2.6 (maybe 2.5.1?)
14917 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14919 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14922 link_all_deplibs_F77=yes
14926 if test "x$host_vendor" = xsequent; then
14927 # Use $CC to link under sequent, because it throws in some extra .o
14928 # files that make .init and .fini sections work.
14929 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14931 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14933 hardcode_libdir_flag_spec_F77='-L$libdir'
14934 hardcode_direct_F77=yes
14935 hardcode_minus_L_F77=yes
14936 hardcode_shlibpath_var_F77=no
14940 case $host_vendor in
14942 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14943 hardcode_direct_F77=yes # is this really true???
14946 ## LD is ld it makes a PLAMLIB
14947 ## CC just makes a GrossModule.
14948 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14949 reload_cmds_F77='$CC -r -o $output$reload_objs'
14950 hardcode_direct_F77=no
14953 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14954 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14957 runpath_var='LD_RUN_PATH'
14958 hardcode_shlibpath_var_F77=no
14962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14963 hardcode_shlibpath_var_F77=no
14964 export_dynamic_flag_spec_F77='-Bexport'
14968 if test -d /usr/nec; then
14969 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14970 hardcode_shlibpath_var_F77=no
14971 runpath_var=LD_RUN_PATH
14972 hardcode_runpath_var=yes
14977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14978 no_undefined_flag_F77='${wl}-z,text'
14979 archive_cmds_need_lc_F77=no
14980 hardcode_shlibpath_var_F77=no
14981 runpath_var='LD_RUN_PATH'
14983 if test "$GCC" = yes; then
14984 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14985 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14987 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14988 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 sysv5* | sco3.2v5* | sco5v6*)
14993 # Note: We can NOT use -z defs as we might desire, because we do not
14994 # link with -lc, and that would cause any symbols used from libc to
14995 # always be unresolved, which means just about no library would
14996 # ever link correctly. If we're not using GNU ld we use -z text
14997 # though, which does catch some bad symbols but isn't as heavy-handed
14999 no_undefined_flag_F77='${wl}-z,text'
15000 allow_undefined_flag_F77='${wl}-z,nodefs'
15001 archive_cmds_need_lc_F77=no
15002 hardcode_shlibpath_var_F77=no
15003 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15004 hardcode_libdir_separator_F77=':'
15005 link_all_deplibs_F77=yes
15006 export_dynamic_flag_spec_F77='${wl}-Bexport'
15007 runpath_var='LD_RUN_PATH'
15009 if test "$GCC" = yes; then
15010 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15011 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15013 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15014 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020 hardcode_libdir_flag_spec_F77='-L$libdir'
15021 hardcode_shlibpath_var_F77=no
15030 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15031 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15032 test "$ld_shlibs_F77" = no && can_build_shared=no
15035 # Do we need to explicitly link libc?
15037 case "x$archive_cmds_need_lc_F77" in
15039 # Assume -lc should be added
15040 archive_cmds_need_lc_F77=yes
15042 if test "$enable_shared" = yes && test "$GCC" = yes; then
15043 case $archive_cmds_F77 in
15045 # FIXME: we may have to deal with multi-command sequences.
15048 # Test whether the compiler implicitly links with -lc since on some
15049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15050 # to ld, don't add -lc before -lgcc.
15051 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057 (eval $ac_compile) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } 2>conftest.err; then
15063 libobjs=conftest.$ac_objext
15065 wl=$lt_prog_compiler_wl_F77
15066 pic_flag=$lt_prog_compiler_pic_F77
15072 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15073 allow_undefined_flag_F77=
15074 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15075 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }
15080 archive_cmds_need_lc_F77=no
15082 archive_cmds_need_lc_F77=yes
15084 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15086 cat conftest.err 1>&5
15089 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15090 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15097 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15098 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15099 library_names_spec=
15100 libname_spec='lib$name'
15104 postuninstall_cmds=
15108 shlibpath_overrides_runpath=unknown
15110 dynamic_linker="$host_os ld.so"
15111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15112 if test "$GCC" = yes; then
15113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15114 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15115 # if the path contains ";" then we assume it to be the separator
15116 # otherwise default to the standard path separator (i.e. ":") - it is
15117 # assumed that no part of a normal pathname contains ";" but that should
15118 # okay in the real world where ";" in dirpaths is itself problematic.
15119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15126 need_lib_prefix=unknown
15127 hardcode_into_libs=no
15129 # when you set need_version to no, make sure it does not cause -set_version
15130 # flags to be left without arguments
15131 need_version=unknown
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15137 shlibpath_var=LIBPATH
15139 # AIX 3 has no versioning support, so we append a major version to the name.
15140 soname_spec='${libname}${release}${shared_ext}$major'
15147 hardcode_into_libs=yes
15148 if test "$host_cpu" = ia64; then
15149 # AIX 5 supports IA64
15150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15151 shlibpath_var=LD_LIBRARY_PATH
15153 # With GCC up to 2.95.x, collect2 would create an import file
15154 # for dependence libraries. The import file would start with
15155 # the line `#! .'. This would cause the generated library to
15156 # depend on `.', always an invalid library. This was fixed in
15157 # development snapshots of GCC prior to 3.0.
15159 aix4 | aix4.[01] | aix4.[01].*)
15160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15162 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15165 can_build_shared=no
15169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15170 # soname into executable. Probably we can add versioning support to
15171 # collect2, so additional links can be useful in future.
15172 if test "$aix_use_runtimelinking" = yes; then
15173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15174 # instead of lib<name>.a to let people know that these are not
15175 # typical AIX shared libraries.
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 # We preserve .a as extension for shared libraries through AIX4.2
15179 # and later when we are not doing run time linking.
15180 library_names_spec='${libname}${release}.a $libname.a'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15183 shlibpath_var=LIBPATH
15188 library_names_spec='$libname.ixlibrary $libname.a'
15189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15190 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15194 library_names_spec='${libname}${shared_ext}'
15195 dynamic_linker="$host_os ld.so"
15196 shlibpath_var=LIBRARY_PATH
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15208 # the default ld.so.conf also contains /usr/contrib/lib and
15209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15210 # libtool to hard-code these into programs
15213 cygwin* | mingw* | pw32*)
15214 version_type=windows
15219 case $GCC,$host_os in
15220 yes,cygwin* | yes,mingw* | yes,pw32*)
15221 library_names_spec='$libname.dll.a'
15222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15223 postinstall_cmds='base_file=`basename \${file}`~
15224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15225 dldir=$destdir/`dirname \$dlpath`~
15226 test -d \$dldir || mkdir -p \$dldir~
15227 $install_prog $dir/$dlname \$dldir/$dlname~
15228 chmod a+x \$dldir/$dlname'
15229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15230 dlpath=$dir/\$dldll~
15232 shlibpath_overrides_runpath=yes
15236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15238 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15241 # MinGW DLLs use traditional 'lib' prefix
15242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15243 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15244 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15245 # It is most probably a Windows format PATH printed by
15246 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15247 # path with ; separators, and with drive letters. We can handle the
15248 # drive letters (cygwin fileutils understands them), so leave them,
15249 # especially as we might pass files found there to a mingw objdump,
15250 # which wouldn't understand a cygwinified path. Ahh.
15251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15257 # pw32 DLLs use 'pw' prefix rather than 'lib'
15258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15267 dynamic_linker='Win32 ld.exe'
15268 # FIXME: first we should search . and the directory the executable is in
15272 darwin* | rhapsody*)
15273 dynamic_linker="$host_os dyld"
15274 version_type=darwin
15277 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15278 soname_spec='${libname}${release}${major}$shared_ext'
15279 shlibpath_overrides_runpath=yes
15280 shlibpath_var=DYLD_LIBRARY_PATH
15281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15282 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15283 if test "$GCC" = yes; then
15284 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15286 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15288 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 shlibpath_var=LD_LIBRARY_PATH
15304 freebsd* | dragonfly*)
15305 # DragonFly does not have aout. When/if they implement a new
15306 # versioning mechanism, adjust this.
15307 if test -x /usr/bin/objformat; then
15308 objformat=`/usr/bin/objformat`
15311 freebsd[123]*) objformat=aout ;;
15312 *) objformat=elf ;;
15315 version_type=freebsd-$objformat
15316 case $version_type in
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15327 shlibpath_var=LD_LIBRARY_PATH
15330 shlibpath_overrides_runpath=yes
15332 freebsd3.[01]* | freebsdelf3.[01]*)
15333 shlibpath_overrides_runpath=yes
15334 hardcode_into_libs=yes
15336 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15337 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15338 shlibpath_overrides_runpath=no
15339 hardcode_into_libs=yes
15341 freebsd*) # from 4.6 on
15342 shlibpath_overrides_runpath=yes
15343 hardcode_into_libs=yes
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 hardcode_into_libs=yes
15358 hpux9* | hpux10* | hpux11*)
15359 # Give a soname corresponding to the major version so that dld.sl refuses to
15360 # link against other versions.
15367 hardcode_into_libs=yes
15368 dynamic_linker="$host_os dld.so"
15369 shlibpath_var=LD_LIBRARY_PATH
15370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372 soname_spec='${libname}${release}${shared_ext}$major'
15373 if test "X$HPUX_IA64_MODE" = X32; then
15374 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15382 hardcode_into_libs=yes
15383 dynamic_linker="$host_os dld.sl"
15384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15387 soname_spec='${libname}${release}${shared_ext}$major'
15388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15393 dynamic_linker="$host_os dld.sl"
15394 shlibpath_var=SHLIB_PATH
15395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15400 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15401 postinstall_cmds='chmod 555 $lib'
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15411 shlibpath_var=LD_LIBRARY_PATH
15412 shlibpath_overrides_runpath=no
15413 hardcode_into_libs=yes
15416 irix5* | irix6* | nonstopux*)
15418 nonstopux*) version_type=nonstopux ;;
15420 if test "$lt_cv_prog_gnu_ld" = yes; then
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15431 irix5* | nonstopux*)
15432 libsuff= shlibsuff=
15435 case $LD in # libtool.m4 will add one of these switches to LD
15436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15437 libsuff= shlibsuff= libmagic=32-bit;;
15438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15439 libsuff=32 shlibsuff=N32 libmagic=N32;;
15440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15441 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15442 *) libsuff= shlibsuff= libmagic=never-match;;
15446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15447 shlibpath_overrides_runpath=no
15448 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15449 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15450 hardcode_into_libs=yes
15453 # No shared lib support for Linux oldld, aout, or coff.
15454 linux*oldld* | linux*aout* | linux*coff*)
15458 # This must be Linux ELF.
15459 linux* | k*bsd*-gnu)
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15466 shlibpath_var=LD_LIBRARY_PATH
15467 shlibpath_overrides_runpath=no
15468 # This implies no fast_install, which is unacceptable.
15469 # Some rework will be needed to allow for fast_install
15470 # before this can be enabled.
15471 hardcode_into_libs=yes
15473 # Append ld.so.conf contents to the search path
15474 if test -f /etc/ld.so.conf; then
15475 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15479 # We used to test for /lib/ld.so.1 and disable shared libraries on
15480 # powerpc, because MkLinux only supported shared libraries with the
15481 # GNU dynamic linker. Since this was broken with cross compilers,
15482 # most powerpc-linux boxes support dynamic linking these days and
15483 # people can always --disable-shared, the test was removed, and we
15484 # assume the GNU/Linux dynamic linker is in use.
15485 dynamic_linker='GNU/Linux ld.so'
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 shlibpath_var=LD_LIBRARY_PATH
15495 shlibpath_overrides_runpath=no
15496 hardcode_into_libs=yes
15497 dynamic_linker='NetBSD ld.elf_so'
15504 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15507 dynamic_linker='NetBSD (a.out) ld.so'
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 dynamic_linker='NetBSD ld.elf_so'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=yes
15515 hardcode_into_libs=yes
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 shlibpath_var=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath=yes
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530 soname_spec='${libname}${release}${shared_ext}$major'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 shlibpath_overrides_runpath=yes
15537 sys_lib_dlsearch_path_spec="/usr/lib"
15539 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15541 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15542 *) need_version=no ;;
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15549 openbsd2.[89] | openbsd2.[89].*)
15550 shlibpath_overrides_runpath=no
15553 shlibpath_overrides_runpath=yes
15557 shlibpath_overrides_runpath=yes
15562 libname_spec='$name'
15565 library_names_spec='$libname${shared_ext} $libname.a'
15566 dynamic_linker='OS/2 ld.exe'
15567 shlibpath_var=LIBPATH
15570 osf3* | osf4* | osf5*)
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15578 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=yes
15589 hardcode_into_libs=yes
15590 # ldd complains unless libraries are executable
15591 postinstall_cmds='chmod +x $lib'
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 shlibpath_overrides_runpath=yes
15600 if test "$with_gnu_ld" = yes; then
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 shlibpath_var=LD_LIBRARY_PATH
15611 case $host_vendor in
15613 shlibpath_overrides_runpath=no
15615 export_dynamic_flag_spec='${wl}-Blargedynsym'
15616 runpath_var=LD_RUN_PATH
15624 shlibpath_overrides_runpath=no
15625 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15631 if test -d /usr/nec ;then
15633 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15634 soname_spec='$libname${shared_ext}.$major'
15635 shlibpath_var=LD_LIBRARY_PATH
15639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15640 version_type=freebsd-elf
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 shlibpath_var=LD_LIBRARY_PATH
15646 hardcode_into_libs=yes
15647 if test "$with_gnu_ld" = yes; then
15648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15649 shlibpath_overrides_runpath=no
15651 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15652 shlibpath_overrides_runpath=yes
15655 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15659 sys_lib_dlsearch_path_spec='/usr/lib'
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 soname_spec='${libname}${release}${shared_ext}$major'
15666 shlibpath_var=LD_LIBRARY_PATH
15673 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15674 echo "${ECHO_T}$dynamic_linker" >&6; }
15675 test "$dynamic_linker" = no && can_build_shared=no
15677 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15678 if test "$GCC" = yes; then
15679 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15682 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15683 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15684 hardcode_action_F77=
15685 if test -n "$hardcode_libdir_flag_spec_F77" || \
15686 test -n "$runpath_var_F77" || \
15687 test "X$hardcode_automatic_F77" = "Xyes" ; then
15689 # We can hardcode non-existant directories.
15690 if test "$hardcode_direct_F77" != no &&
15691 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15692 # have to relink, otherwise we might link with an installed library
15693 # when we should be linking with a yet-to-be-installed one
15694 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15695 test "$hardcode_minus_L_F77" != no; then
15696 # Linking always hardcodes the temporary library directory.
15697 hardcode_action_F77=relink
15699 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15700 hardcode_action_F77=immediate
15703 # We cannot hardcode anything, or else we can only hardcode existing
15705 hardcode_action_F77=unsupported
15707 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15708 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15710 if test "$hardcode_action_F77" = relink; then
15711 # Fast installation is not supported
15712 enable_fast_install=no
15713 elif test "$shlibpath_overrides_runpath" = yes ||
15714 test "$enable_shared" = no; then
15715 # Fast installation is not necessary
15716 enable_fast_install=needless
15720 # The else clause should only fire when bootstrapping the
15721 # libtool distribution, otherwise you forgot to ship ltmain.sh
15722 # with your package, and you will get complaints that there are
15723 # no rules to generate ltmain.sh.
15724 if test -f "$ltmain"; then
15725 # See if we are running on zsh, and set the options which allow our commands through
15726 # without removal of \ escapes.
15727 if test -n "${ZSH_VERSION+set}" ; then
15728 setopt NO_GLOB_SUBST
15730 # Now quote all the things that may contain metacharacters while being
15731 # careful not to overquote the AC_SUBSTed values. We take copies of the
15732 # variables and quote the copies for generation of the libtool script.
15733 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15735 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15736 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15737 deplibs_check_method reload_flag reload_cmds need_locks \
15738 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15739 lt_cv_sys_global_symbol_to_c_name_address \
15740 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15741 old_postinstall_cmds old_postuninstall_cmds \
15745 lt_prog_compiler_wl_F77 \
15746 lt_prog_compiler_pic_F77 \
15747 lt_prog_compiler_static_F77 \
15748 lt_prog_compiler_no_builtin_flag_F77 \
15749 export_dynamic_flag_spec_F77 \
15750 thread_safe_flag_spec_F77 \
15751 whole_archive_flag_spec_F77 \
15752 enable_shared_with_static_runtimes_F77 \
15753 old_archive_cmds_F77 \
15754 old_archive_from_new_cmds_F77 \
15755 predep_objects_F77 \
15756 postdep_objects_F77 \
15759 compiler_lib_search_path_F77 \
15761 archive_expsym_cmds_F77 \
15762 postinstall_cmds_F77 \
15763 postuninstall_cmds_F77 \
15764 old_archive_from_expsyms_cmds_F77 \
15765 allow_undefined_flag_F77 \
15766 no_undefined_flag_F77 \
15767 export_symbols_cmds_F77 \
15768 hardcode_libdir_flag_spec_F77 \
15769 hardcode_libdir_flag_spec_ld_F77 \
15770 hardcode_libdir_separator_F77 \
15771 hardcode_automatic_F77 \
15773 module_expsym_cmds_F77 \
15774 lt_cv_prog_compiler_c_o_F77 \
15775 exclude_expsyms_F77 \
15776 include_expsyms_F77; do
15779 old_archive_cmds_F77 | \
15780 old_archive_from_new_cmds_F77 | \
15781 archive_cmds_F77 | \
15782 archive_expsym_cmds_F77 | \
15783 module_cmds_F77 | \
15784 module_expsym_cmds_F77 | \
15785 old_archive_from_expsyms_cmds_F77 | \
15786 export_symbols_cmds_F77 | \
15787 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15788 postinstall_cmds | postuninstall_cmds | \
15789 old_postinstall_cmds | old_postuninstall_cmds | \
15790 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15791 # Double-quote double-evaled strings.
15792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15801 *'\$0 --fallback-echo"')
15802 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15808 cat <<__EOF__ >> "$cfgfile"
15809 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15811 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15813 # Shell to use when invoking shell scripts.
15816 # Whether or not to build shared libraries.
15817 build_libtool_libs=$enable_shared
15819 # Whether or not to build static libraries.
15820 build_old_libs=$enable_static
15822 # Whether or not to add -lc for building shared libraries.
15823 build_libtool_need_lc=$archive_cmds_need_lc_F77
15825 # Whether or not to disallow shared libs when runtime libs are static
15826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15828 # Whether or not to optimize for fast installation.
15829 fast_install=$enable_fast_install
15832 host_alias=$host_alias
15836 # The build system.
15837 build_alias=$build_alias
15841 # An echo program that does not interpret backslashes.
15846 AR_FLAGS=$lt_AR_FLAGS
15851 # LTCC compiler flags.
15852 LTCFLAGS=$lt_LTCFLAGS
15854 # A language-specific compiler.
15855 CC=$lt_compiler_F77
15857 # Is the compiler the GNU C compiler?
15863 # The linker used to build libraries.
15866 # Whether we need hard or soft links.
15869 # A BSD-compatible nm program.
15872 # A symbol stripping program
15875 # Used to examine libraries when file_magic_cmd begins "file"
15876 MAGIC_CMD=$MAGIC_CMD
15878 # Used on cygwin: DLL creation program.
15881 # Used on cygwin: object dumper.
15884 # Used on cygwin: assembler.
15887 # The name of the directory that contains temporary libtool files.
15890 # How to create reloadable object files.
15891 reload_flag=$lt_reload_flag
15892 reload_cmds=$lt_reload_cmds
15894 # How to pass a linker flag through the compiler.
15895 wl=$lt_lt_prog_compiler_wl_F77
15897 # Object file suffix (normally "o").
15898 objext="$ac_objext"
15900 # Old archive suffix (normally "a").
15903 # Shared library suffix (normally ".so").
15904 shrext_cmds='$shrext_cmds'
15906 # Executable file suffix (normally "").
15909 # Additional compiler flags for building library objects.
15910 pic_flag=$lt_lt_prog_compiler_pic_F77
15913 # What is the maximum length of a command?
15914 max_cmd_len=$lt_cv_sys_max_cmd_len
15916 # Does compiler simultaneously support -c and -o options?
15917 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15919 # Must we lock files when doing compilation?
15920 need_locks=$lt_need_locks
15922 # Do we need the lib prefix for modules?
15923 need_lib_prefix=$need_lib_prefix
15925 # Do we need a version for libraries?
15926 need_version=$need_version
15928 # Whether dlopen is supported.
15929 dlopen_support=$enable_dlopen
15931 # Whether dlopen of programs is supported.
15932 dlopen_self=$enable_dlopen_self
15934 # Whether dlopen of statically linked programs is supported.
15935 dlopen_self_static=$enable_dlopen_self_static
15937 # Compiler flag to prevent dynamic linking.
15938 link_static_flag=$lt_lt_prog_compiler_static_F77
15940 # Compiler flag to turn off builtin functions.
15941 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15943 # Compiler flag to allow reflexive dlopens.
15944 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15946 # Compiler flag to generate shared objects directly from archives.
15947 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15949 # Compiler flag to generate thread-safe objects.
15950 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15952 # Library versioning type.
15953 version_type=$version_type
15955 # Format of library name prefix.
15956 libname_spec=$lt_libname_spec
15958 # List of archive names. First name is the real one, the rest are links.
15959 # The last name is the one that the linker finds with -lNAME.
15960 library_names_spec=$lt_library_names_spec
15962 # The coded name of the library, if different from the real name.
15963 soname_spec=$lt_soname_spec
15965 # Commands used to build and install an old-style archive.
15967 old_archive_cmds=$lt_old_archive_cmds_F77
15968 old_postinstall_cmds=$lt_old_postinstall_cmds
15969 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15971 # Create an old-style archive from a shared archive.
15972 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15974 # Create a temporary old-style archive to link instead of a shared archive.
15975 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15977 # Commands used to build and install a shared archive.
15978 archive_cmds=$lt_archive_cmds_F77
15979 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15980 postinstall_cmds=$lt_postinstall_cmds
15981 postuninstall_cmds=$lt_postuninstall_cmds
15983 # Commands used to build a loadable module (assumed same as above if empty)
15984 module_cmds=$lt_module_cmds_F77
15985 module_expsym_cmds=$lt_module_expsym_cmds_F77
15987 # Commands to strip libraries.
15988 old_striplib=$lt_old_striplib
15989 striplib=$lt_striplib
15991 # Dependencies to place before the objects being linked to create a
15993 predep_objects=$lt_predep_objects_F77
15995 # Dependencies to place after the objects being linked to create a
15997 postdep_objects=$lt_postdep_objects_F77
15999 # Dependencies to place before the objects being linked to create a
16001 predeps=$lt_predeps_F77
16003 # Dependencies to place after the objects being linked to create a
16005 postdeps=$lt_postdeps_F77
16007 # The library search path used internally by the compiler when linking
16008 # a shared library.
16009 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16011 # Method to check whether dependent libraries are shared objects.
16012 deplibs_check_method=$lt_deplibs_check_method
16014 # Command to use when deplibs_check_method == file_magic.
16015 file_magic_cmd=$lt_file_magic_cmd
16017 # Flag that allows shared libraries with undefined symbols to be built.
16018 allow_undefined_flag=$lt_allow_undefined_flag_F77
16020 # Flag that forces no undefined symbols.
16021 no_undefined_flag=$lt_no_undefined_flag_F77
16023 # Commands used to finish a libtool library installation in a directory.
16024 finish_cmds=$lt_finish_cmds
16026 # Same as above, but a single script fragment to be evaled but not shown.
16027 finish_eval=$lt_finish_eval
16029 # Take the output of nm and produce a listing of raw symbols and C names.
16030 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16032 # Transform the output of nm in a proper C declaration
16033 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16035 # Transform the output of nm in a C name address pair
16036 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16038 # This is the shared library runtime path variable.
16039 runpath_var=$runpath_var
16041 # This is the shared library path variable.
16042 shlibpath_var=$shlibpath_var
16044 # Is shlibpath searched before the hard-coded library search path?
16045 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16047 # How to hardcode a shared library path into an executable.
16048 hardcode_action=$hardcode_action_F77
16050 # Whether we should hardcode library paths into libraries.
16051 hardcode_into_libs=$hardcode_into_libs
16053 # Flag to hardcode \$libdir into a binary during linking.
16054 # This must work even if \$libdir does not exist.
16055 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16057 # If ld is used when linking, flag to hardcode \$libdir into
16058 # a binary during linking. This must work even if \$libdir does
16060 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16062 # Whether we need a single -rpath flag with a separated argument.
16063 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16065 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16066 # resulting binary.
16067 hardcode_direct=$hardcode_direct_F77
16069 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16070 # resulting binary.
16071 hardcode_minus_L=$hardcode_minus_L_F77
16073 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16074 # the resulting binary.
16075 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16077 # Set to yes if building a shared library automatically hardcodes DIR into the library
16078 # and all subsequent libraries and executables linked against it.
16079 hardcode_automatic=$hardcode_automatic_F77
16081 # Variables whose values should be saved in libtool wrapper scripts and
16082 # restored at relink time.
16083 variables_saved_for_relink="$variables_saved_for_relink"
16085 # Whether libtool must link a program against all its dependency libraries.
16086 link_all_deplibs=$link_all_deplibs_F77
16088 # Compile-time system search path for libraries
16089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16091 # Run-time system search path for libraries
16092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16094 # Fix the shell variable \$srcfile for the compiler.
16095 fix_srcfile_path="$fix_srcfile_path_F77"
16097 # Set to yes if exported symbols are required.
16098 always_export_symbols=$always_export_symbols_F77
16100 # The commands to list exported symbols.
16101 export_symbols_cmds=$lt_export_symbols_cmds_F77
16103 # The commands to extract the exported symbol list from a shared archive.
16104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16106 # Symbols that should not be listed in the preloaded symbols.
16107 exclude_expsyms=$lt_exclude_expsyms_F77
16109 # Symbols that must always be exported.
16110 include_expsyms=$lt_include_expsyms_F77
16112 # ### END LIBTOOL TAG CONFIG: $tagname
16118 # If there is no Makefile yet, we rely on a make rule to execute
16119 # `config.status --recheck' to rerun these tests and create the
16120 # libtool script then.
16121 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16122 if test -f "$ltmain_in"; then
16123 test -f Makefile && make "$ltmain"
16129 ac_cpp='$CPP $CPPFLAGS'
16130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16142 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16145 # Source file extension for Java test sources.
16148 # Object file extension for compiled Java test sources.
16152 # Code to be used in simple compile tests
16153 lt_simple_compile_test_code="class foo {}\n"
16155 # Code to be used in simple link tests
16156 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16158 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16160 # If no C compiler was specified, use CC.
16163 # If no C compiler flags were specified, use CFLAGS.
16164 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16166 # Allow CC to be a program name with arguments.
16170 # save warnings/boilerplate of simple test code
16171 ac_outfile=conftest.$ac_objext
16172 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16173 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16174 _lt_compiler_boilerplate=`cat conftest.err`
16177 ac_outfile=conftest.$ac_objext
16178 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16179 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16180 _lt_linker_boilerplate=`cat conftest.err`
16184 # Allow CC to be a program name with arguments.
16189 for cc_temp in $compiler""; do
16191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16197 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16200 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16201 archive_cmds_need_lc_GCJ=no
16203 old_archive_cmds_GCJ=$old_archive_cmds
16206 lt_prog_compiler_no_builtin_flag_GCJ=
16208 if test "$GCC" = yes; then
16209 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16212 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16213 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16214 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 lt_cv_prog_compiler_rtti_exceptions=no
16218 ac_outfile=conftest.$ac_objext
16219 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16220 lt_compiler_flag="-fno-rtti -fno-exceptions"
16221 # Insert the option either (1) after the last *FLAGS variable, or
16222 # (2) before a word containing "conftest.", or (3) at the end.
16223 # Note that $ac_compile itself does not contain backslashes and begins
16224 # with a dollar sign (not a hyphen), so the echo should work correctly.
16225 # The option is referenced via a variable to avoid confusing sed.
16226 lt_compile=`echo "$ac_compile" | $SED \
16227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16229 -e 's:$: $lt_compiler_flag:'`
16230 (eval echo "\"\$as_me:16230: $lt_compile\"" >&5)
16231 (eval "$lt_compile" 2>conftest.err)
16233 cat conftest.err >&5
16234 echo "$as_me:16234: \$? = $ac_status" >&5
16235 if (exit $ac_status) && test -s "$ac_outfile"; then
16236 # The compiler can only warn and ignore the option if not recognized
16237 # So say no if there are warnings other than the usual output.
16238 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16240 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16241 lt_cv_prog_compiler_rtti_exceptions=yes
16247 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16248 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16250 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16251 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16258 lt_prog_compiler_wl_GCJ=
16259 lt_prog_compiler_pic_GCJ=
16260 lt_prog_compiler_static_GCJ=
16262 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16263 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16265 if test "$GCC" = yes; then
16266 lt_prog_compiler_wl_GCJ='-Wl,'
16267 lt_prog_compiler_static_GCJ='-static'
16271 # All AIX code is PIC.
16272 if test "$host_cpu" = ia64; then
16273 # AIX 5 now supports IA64 processor
16274 lt_prog_compiler_static_GCJ='-Bstatic'
16279 # FIXME: we need at least 68020 code to build shared libraries, but
16280 # adding the `-m68020' flag to GCC prevents building anything better,
16282 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16285 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16286 # PIC is the default for these OSes.
16289 mingw* | pw32* | os2*)
16290 # This hack is so that the source file can tell whether it is being
16291 # built for inclusion in a dll (and should export symbols for example).
16292 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16295 darwin* | rhapsody*)
16296 # PIC is the default on this platform
16297 # Common symbols not allowed in MH_DYLIB files
16298 lt_prog_compiler_pic_GCJ='-fno-common'
16302 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16303 # Instead, we relocate shared libraries at runtime.
16307 # Just because we use GCC doesn't mean we suddenly get shared libraries
16308 # on systems that don't support them.
16309 lt_prog_compiler_can_build_shared_GCJ=no
16314 if test -d /usr/nec; then
16315 lt_prog_compiler_pic_GCJ=-Kconform_pic
16320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16321 # not for PA HP-UX.
16327 lt_prog_compiler_pic_GCJ='-fPIC'
16333 lt_prog_compiler_pic_GCJ='-fPIC'
16337 # PORTME Check for flag to pass linker flags through the system compiler.
16340 lt_prog_compiler_wl_GCJ='-Wl,'
16341 if test "$host_cpu" = ia64; then
16342 # AIX 5 now supports IA64 processor
16343 lt_prog_compiler_static_GCJ='-Bstatic'
16345 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16349 # PIC is the default on this platform
16350 # Common symbols not allowed in MH_DYLIB files
16351 case $cc_basename in
16353 lt_prog_compiler_pic_GCJ='-qnocommon'
16354 lt_prog_compiler_wl_GCJ='-Wl,'
16359 mingw* | pw32* | os2*)
16360 # This hack is so that the source file can tell whether it is being
16361 # built for inclusion in a dll (and should export symbols for example).
16362 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16365 hpux9* | hpux10* | hpux11*)
16366 lt_prog_compiler_wl_GCJ='-Wl,'
16367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16368 # not for PA HP-UX.
16374 lt_prog_compiler_pic_GCJ='+Z'
16377 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16378 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16381 irix5* | irix6* | nonstopux*)
16382 lt_prog_compiler_wl_GCJ='-Wl,'
16383 # PIC (with -KPIC) is the default.
16384 lt_prog_compiler_static_GCJ='-non_shared'
16388 lt_prog_compiler_pic_GCJ='-KPIC'
16389 lt_prog_compiler_static_GCJ='-Bstatic'
16392 linux* | k*bsd*-gnu)
16393 case $cc_basename in
16395 lt_prog_compiler_wl_GCJ='-Wl,'
16396 lt_prog_compiler_pic_GCJ='-KPIC'
16397 lt_prog_compiler_static_GCJ='-static'
16399 pgcc* | pgf77* | pgf90* | pgf95*)
16400 # Portland Group compilers (*not* the Pentium gcc compiler,
16401 # which looks to be a dead project)
16402 lt_prog_compiler_wl_GCJ='-Wl,'
16403 lt_prog_compiler_pic_GCJ='-fpic'
16404 lt_prog_compiler_static_GCJ='-Bstatic'
16407 lt_prog_compiler_wl_GCJ='-Wl,'
16408 # All Alpha code is PIC.
16409 lt_prog_compiler_static_GCJ='-non_shared'
16414 osf3* | osf4* | osf5*)
16415 lt_prog_compiler_wl_GCJ='-Wl,'
16416 # All OSF/1 code is PIC.
16417 lt_prog_compiler_static_GCJ='-non_shared'
16421 lt_prog_compiler_pic_GCJ='-KPIC'
16422 lt_prog_compiler_static_GCJ='-Bstatic'
16423 case $cc_basename in
16424 f77* | f90* | f95*)
16425 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16427 lt_prog_compiler_wl_GCJ='-Wl,';;
16432 lt_prog_compiler_wl_GCJ='-Qoption ld '
16433 lt_prog_compiler_pic_GCJ='-PIC'
16434 lt_prog_compiler_static_GCJ='-Bstatic'
16437 sysv4 | sysv4.2uw2* | sysv4.3*)
16438 lt_prog_compiler_wl_GCJ='-Wl,'
16439 lt_prog_compiler_pic_GCJ='-KPIC'
16440 lt_prog_compiler_static_GCJ='-Bstatic'
16444 if test -d /usr/nec ;then
16445 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16446 lt_prog_compiler_static_GCJ='-Bstatic'
16450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16451 lt_prog_compiler_wl_GCJ='-Wl,'
16452 lt_prog_compiler_pic_GCJ='-KPIC'
16453 lt_prog_compiler_static_GCJ='-Bstatic'
16457 lt_prog_compiler_wl_GCJ='-Wl,'
16458 lt_prog_compiler_can_build_shared_GCJ=no
16462 lt_prog_compiler_pic_GCJ='-pic'
16463 lt_prog_compiler_static_GCJ='-Bstatic'
16467 lt_prog_compiler_can_build_shared_GCJ=no
16472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16473 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16476 # Check to make sure the PIC flag actually works.
16478 if test -n "$lt_prog_compiler_pic_GCJ"; then
16480 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16481 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16482 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 lt_prog_compiler_pic_works_GCJ=no
16486 ac_outfile=conftest.$ac_objext
16487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16488 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16489 # Insert the option either (1) after the last *FLAGS variable, or
16490 # (2) before a word containing "conftest.", or (3) at the end.
16491 # Note that $ac_compile itself does not contain backslashes and begins
16492 # with a dollar sign (not a hyphen), so the echo should work correctly.
16493 # The option is referenced via a variable to avoid confusing sed.
16494 lt_compile=`echo "$ac_compile" | $SED \
16495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16497 -e 's:$: $lt_compiler_flag:'`
16498 (eval echo "\"\$as_me:16498: $lt_compile\"" >&5)
16499 (eval "$lt_compile" 2>conftest.err)
16501 cat conftest.err >&5
16502 echo "$as_me:16502: \$? = $ac_status" >&5
16503 if (exit $ac_status) && test -s "$ac_outfile"; then
16504 # The compiler can only warn and ignore the option if not recognized
16505 # So say no if there are warnings other than the usual output.
16506 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16509 lt_prog_compiler_pic_works_GCJ=yes
16515 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16516 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16518 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16519 case $lt_prog_compiler_pic_GCJ in
16521 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16524 lt_prog_compiler_pic_GCJ=
16525 lt_prog_compiler_can_build_shared_GCJ=no
16530 # For platforms which do not support PIC, -DPIC is meaningless:
16532 lt_prog_compiler_pic_GCJ=
16535 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16540 # Check to make sure the static flag actually works.
16542 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16543 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16544 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16545 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 lt_prog_compiler_static_works_GCJ=no
16549 save_LDFLAGS="$LDFLAGS"
16550 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16551 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16553 # The linker can only warn and ignore the option if not recognized
16554 # So say no if there are warnings
16555 if test -s conftest.err; then
16556 # Append any errors to the config.log.
16557 cat conftest.err 1>&5
16558 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16560 if diff conftest.exp conftest.er2 >/dev/null; then
16561 lt_prog_compiler_static_works_GCJ=yes
16564 lt_prog_compiler_static_works_GCJ=yes
16568 LDFLAGS="$save_LDFLAGS"
16571 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16572 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16574 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16577 lt_prog_compiler_static_GCJ=
16581 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16582 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16583 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 lt_cv_prog_compiler_c_o_GCJ=no
16587 $rm -r conftest 2>/dev/null
16591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16593 lt_compiler_flag="-o out/conftest2.$ac_objext"
16594 # Insert the option either (1) after the last *FLAGS variable, or
16595 # (2) before a word containing "conftest.", or (3) at the end.
16596 # Note that $ac_compile itself does not contain backslashes and begins
16597 # with a dollar sign (not a hyphen), so the echo should work correctly.
16598 lt_compile=`echo "$ac_compile" | $SED \
16599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16601 -e 's:$: $lt_compiler_flag:'`
16602 (eval echo "\"\$as_me:16602: $lt_compile\"" >&5)
16603 (eval "$lt_compile" 2>out/conftest.err)
16605 cat out/conftest.err >&5
16606 echo "$as_me:16606: \$? = $ac_status" >&5
16607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16609 # The compiler can only warn and ignore the option if not recognized
16610 # So say no if there are warnings
16611 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16614 lt_cv_prog_compiler_c_o_GCJ=yes
16619 # SGI C++ compiler will create directory out/ii_files/ for
16620 # template instantiation
16621 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16622 $rm out/* && rmdir out
16628 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16629 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16632 hard_links="nottested"
16633 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16634 # do not overwrite the value of need_locks provided by the user
16635 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16636 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16641 ln conftest.a conftest.b 2>&5 || hard_links=no
16642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16643 { echo "$as_me:$LINENO: result: $hard_links" >&5
16644 echo "${ECHO_T}$hard_links" >&6; }
16645 if test "$hard_links" = no; then
16646 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16647 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16654 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16655 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16658 allow_undefined_flag_GCJ=
16659 enable_shared_with_static_runtimes_GCJ=no
16661 archive_expsym_cmds_GCJ=
16662 old_archive_From_new_cmds_GCJ=
16663 old_archive_from_expsyms_cmds_GCJ=
16664 export_dynamic_flag_spec_GCJ=
16665 whole_archive_flag_spec_GCJ=
16666 thread_safe_flag_spec_GCJ=
16667 hardcode_libdir_flag_spec_GCJ=
16668 hardcode_libdir_flag_spec_ld_GCJ=
16669 hardcode_libdir_separator_GCJ=
16670 hardcode_direct_GCJ=no
16671 hardcode_minus_L_GCJ=no
16672 hardcode_shlibpath_var_GCJ=unsupported
16673 link_all_deplibs_GCJ=unknown
16674 hardcode_automatic_GCJ=no
16676 module_expsym_cmds_GCJ=
16677 always_export_symbols_GCJ=no
16678 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16679 # include_expsyms should be a list of space-separated symbols to be *always*
16680 # included in the symbol list
16681 include_expsyms_GCJ=
16682 # exclude_expsyms can be an extended regexp of symbols to exclude
16683 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16684 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16685 # as well as any symbol that contains `d'.
16686 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16688 # platforms (ab)use it in PIC code, but their linkers get confused if
16689 # the symbol is explicitly referenced. Since portable code cannot
16690 # rely on this symbol name, it's probably fine to never include it in
16691 # preloaded symbol tables.
16692 extract_expsyms_cmds=
16693 # Just being paranoid about ensuring that cc_basename is set.
16694 for cc_temp in $compiler""; do
16696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16705 cygwin* | mingw* | pw32*)
16706 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16707 # When not using gcc, we currently assume that we are using
16708 # Microsoft Visual C++.
16709 if test "$GCC" != yes; then
16714 # we just hope/assume this is gcc and not c89 (= MSVC++)
16723 if test "$with_gnu_ld" = yes; then
16724 # If archive_cmds runs LD, not CC, wlarc should be empty
16727 # Set some defaults for GNU ld with shared library support. These
16728 # are reset later if shared libraries are not supported. Putting them
16729 # here allows them to be overridden if necessary.
16730 runpath_var=LD_RUN_PATH
16731 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16732 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16733 # ancient GNU ld didn't support --whole-archive et. al.
16734 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16735 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16737 whole_archive_flag_spec_GCJ=
16739 supports_anon_versioning=no
16740 case `$LD -v 2>/dev/null` in
16741 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16742 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16743 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16744 *\ 2.11.*) ;; # other 2.11 versions
16745 *) supports_anon_versioning=yes ;;
16748 # See if GNU ld supports shared libraries.
16750 aix3* | aix4* | aix5*)
16751 # On AIX/PPC, the GNU linker is very broken
16752 if test "$host_cpu" != ia64; then
16756 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16757 *** to be unable to reliably create shared libraries on AIX.
16758 *** Therefore, libtool is disabling shared libraries support. If you
16759 *** really care for shared libraries, you may want to modify your PATH
16760 *** so that a non-GNU linker is found, and then restart.
16767 archive_cmds_GCJ='$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)'
16768 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16769 hardcode_minus_L_GCJ=yes
16771 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16772 # that the semantics of dynamic libraries on AmigaOS, at least up
16773 # to version 4, is to share data among multiple programs linked
16774 # with the same dynamic library. Since this doesn't match the
16775 # behavior of shared libraries on other platforms, we can't use
16781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16782 allow_undefined_flag_GCJ=unsupported
16783 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16784 # support --undefined. This deserves some investigation. FIXME
16785 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16791 cygwin* | mingw* | pw32*)
16792 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16793 # as there is no search path for DLLs.
16794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16795 allow_undefined_flag_GCJ=unsupported
16796 always_export_symbols_GCJ=no
16797 enable_shared_with_static_runtimes_GCJ=yes
16798 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16800 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16801 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16802 # If the export-symbols file already is a .def file (1st line
16803 # is EXPORTS), use it as is; otherwise, prepend...
16804 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16805 cp $export_symbols $output_objdir/$soname.def;
16807 echo EXPORTS > $output_objdir/$soname.def;
16808 cat $export_symbols >> $output_objdir/$soname.def;
16810 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16817 hardcode_direct_GCJ=no
16818 hardcode_shlibpath_var_GCJ=no
16819 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16820 export_dynamic_flag_spec_GCJ='${wl}-E'
16821 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16822 # Instead, shared libraries are loaded at an image base (0x10000000 by
16823 # default) and relocated if they conflict, which is a slow very memory
16824 # consuming and fragmenting process. To avoid this, we pick a random,
16825 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16826 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16827 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16828 archive_expsym_cmds_GCJ='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'
16831 linux* | k*bsd*-gnu)
16832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16834 case $cc_basename,$host_cpu in
16835 pgcc*) # Portland Group C compiler
16836 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16837 tmp_addflag=' $pic_flag'
16839 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16840 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16841 tmp_addflag=' $pic_flag -Mnomain' ;;
16842 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16843 tmp_addflag=' -i_dynamic' ;;
16844 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16845 tmp_addflag=' -i_dynamic -nofor_main' ;;
16846 ifc* | ifort*) # Intel Fortran compiler
16847 tmp_addflag=' -nofor_main' ;;
16849 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16851 if test $supports_anon_versioning = yes; then
16852 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16854 $echo "local: *; };" >> $output_objdir/$libname.ver~
16855 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16857 link_all_deplibs_GCJ=no
16863 netbsd* | netbsdelf*-gnu)
16864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16865 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16868 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16869 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16874 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16878 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16879 *** create shared libraries on Solaris systems. Therefore, libtool
16880 *** is disabling shared libraries support. We urge you to upgrade GNU
16881 *** binutils to release 2.9.1 or newer. Another option is to modify
16882 *** your PATH or compiler configuration so that the native linker is
16883 *** used, and then restart.
16886 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16887 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16888 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16895 case `$LD -v 2>&1` in
16896 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16900 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16901 *** reliably create shared libraries on SCO systems. Therefore, libtool
16902 *** is disabling shared libraries support. We urge you to upgrade GNU
16903 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16904 *** your PATH or compiler configuration so that the native linker is
16905 *** used, and then restart.
16910 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16911 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16912 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16913 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16922 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16924 hardcode_direct_GCJ=yes
16925 hardcode_shlibpath_var_GCJ=no
16929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16930 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16931 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16938 if test "$ld_shlibs_GCJ" = no; then
16940 hardcode_libdir_flag_spec_GCJ=
16941 export_dynamic_flag_spec_GCJ=
16942 whole_archive_flag_spec_GCJ=
16945 # PORTME fill in a description of your system's linker (not GNU ld)
16948 allow_undefined_flag_GCJ=unsupported
16949 always_export_symbols_GCJ=yes
16950 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16951 # Note: this linker hardcodes the directories in LIBPATH if there
16952 # are no directories specified by -L.
16953 hardcode_minus_L_GCJ=yes
16954 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16955 # Neither direct hardcoding nor static linking is supported with a
16957 hardcode_direct_GCJ=unsupported
16962 if test "$host_cpu" = ia64; then
16963 # On IA64, the linker does run time linking by default, so we don't
16964 # have to do anything special.
16965 aix_use_runtimelinking=no
16966 exp_sym_flag='-Bexport'
16969 # If we're using GNU nm, then we don't want the "-C" option.
16970 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16971 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16972 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16974 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16976 aix_use_runtimelinking=no
16978 # Test if we are trying to use run time linking or normal
16979 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16980 # need to do runtime linking.
16981 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16982 for ld_flag in $LDFLAGS; do
16983 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16984 aix_use_runtimelinking=yes
16991 exp_sym_flag='-bexport'
16992 no_entry_flag='-bnoentry'
16995 # When large executables or shared objects are built, AIX ld can
16996 # have problems creating the table of contents. If linking a library
16997 # or program results in "error TOC overflow" add -mminimal-toc to
16998 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16999 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17001 archive_cmds_GCJ=''
17002 hardcode_direct_GCJ=yes
17003 hardcode_libdir_separator_GCJ=':'
17004 link_all_deplibs_GCJ=yes
17006 if test "$GCC" = yes; then
17007 case $host_os in aix4.[012]|aix4.[012].*)
17008 # We only want to do this on AIX 4.2 and lower, the check
17009 # below for broken collect2 doesn't work under 4.3+
17010 collect2name=`${CC} -print-prog-name=collect2`
17011 if test -f "$collect2name" && \
17012 strings "$collect2name" | grep resolve_lib_name >/dev/null
17014 # We have reworked collect2
17015 hardcode_direct_GCJ=yes
17017 # We have old collect2
17018 hardcode_direct_GCJ=unsupported
17019 # It fails to find uninstalled libraries when the uninstalled
17020 # path is not listed in the libpath. Setting hardcode_minus_L
17021 # to unsupported forces relinking
17022 hardcode_minus_L_GCJ=yes
17023 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17024 hardcode_libdir_separator_GCJ=
17028 shared_flag='-shared'
17029 if test "$aix_use_runtimelinking" = yes; then
17030 shared_flag="$shared_flag "'${wl}-G'
17034 if test "$host_cpu" = ia64; then
17035 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17036 # chokes on -Wl,-G. The following line is correct:
17039 if test "$aix_use_runtimelinking" = yes; then
17040 shared_flag='${wl}-G'
17042 shared_flag='${wl}-bM:SRE'
17047 # It seems that -bexpall does not export symbols beginning with
17048 # underscore (_), so it is better to generate a list of symbols to export.
17049 always_export_symbols_GCJ=yes
17050 if test "$aix_use_runtimelinking" = yes; then
17051 # Warning - without using the other runtime loading flags (-brtl),
17052 # -berok will link without error, but may produce a broken library.
17053 allow_undefined_flag_GCJ='-berok'
17054 # Determine the default libpath from the value encoded in an empty executable.
17055 cat >conftest.$ac_ext <<_ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_link") 2>conftest.er1
17079 grep -v '^ *+' conftest.er1 >conftest.err
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && {
17084 test -z "$ac_c_werror_flag" ||
17085 test ! -s conftest.err
17086 } && test -s conftest$ac_exeext &&
17087 $as_test_x conftest$ac_exeext; then
17089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17091 # Check for a 64-bit object if we didn't find anything.
17092 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17102 conftest$ac_exeext conftest.$ac_ext
17103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17105 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17106 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17108 if test "$host_cpu" = ia64; then
17109 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17110 allow_undefined_flag_GCJ="-z nodefs"
17111 archive_expsym_cmds_GCJ="\$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"
17113 # Determine the default libpath from the value encoded in an empty executable.
17114 cat >conftest.$ac_ext <<_ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17129 rm -f conftest.$ac_objext conftest$ac_exeext
17130 if { (ac_try="$ac_link"
17131 case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_link") 2>conftest.er1
17138 grep -v '^ *+' conftest.er1 >conftest.err
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } && {
17143 test -z "$ac_c_werror_flag" ||
17144 test ! -s conftest.err
17145 } && test -s conftest$ac_exeext &&
17146 $as_test_x conftest$ac_exeext; then
17148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17150 # Check for a 64-bit object if we didn't find anything.
17151 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17161 conftest$ac_exeext conftest.$ac_ext
17162 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17164 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17165 # Warning - without using the other run time loading flags,
17166 # -berok will link without error, but may produce a broken library.
17167 no_undefined_flag_GCJ=' ${wl}-bernotok'
17168 allow_undefined_flag_GCJ=' ${wl}-berok'
17169 # Exported symbols can be pulled into shared objects from archives
17170 whole_archive_flag_spec_GCJ='$convenience'
17171 archive_cmds_need_lc_GCJ=yes
17172 # This is similar to how AIX traditionally builds its shared libraries.
17173 archive_expsym_cmds_GCJ="\$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'
17179 archive_cmds_GCJ='$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)'
17180 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17181 hardcode_minus_L_GCJ=yes
17182 # see comment about different semantics on the GNU ld section
17187 export_dynamic_flag_spec_GCJ=-rdynamic
17190 cygwin* | mingw* | pw32*)
17191 # When not using gcc, we currently assume that we are using
17192 # Microsoft Visual C++.
17193 # hardcode_libdir_flag_spec is actually meaningless, as there is
17194 # no search path for DLLs.
17195 hardcode_libdir_flag_spec_GCJ=' '
17196 allow_undefined_flag_GCJ=unsupported
17197 # Tell ltmain to make .lib files, not .a files.
17199 # Tell ltmain to make .dll files, not .so files.
17201 # FIXME: Setting linknames here is a bad hack.
17202 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17203 # The linker will automatically build a .lib file if we build a DLL.
17204 old_archive_From_new_cmds_GCJ='true'
17205 # FIXME: Should let the user specify the lib program.
17206 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17207 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17208 enable_shared_with_static_runtimes_GCJ=yes
17211 darwin* | rhapsody*)
17213 rhapsody* | darwin1.[012])
17214 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17217 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17218 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17220 case ${MACOSX_DEPLOYMENT_TARGET} in
17222 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17225 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17231 archive_cmds_need_lc_GCJ=no
17232 hardcode_direct_GCJ=no
17233 hardcode_automatic_GCJ=yes
17234 hardcode_shlibpath_var_GCJ=unsupported
17235 whole_archive_flag_spec_GCJ=''
17236 link_all_deplibs_GCJ=yes
17237 if test "$GCC" = yes ; then
17238 output_verbose_link_cmd='echo'
17239 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17240 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17241 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17242 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17243 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17245 case $cc_basename in
17247 output_verbose_link_cmd='echo'
17248 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17249 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17250 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17251 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17252 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17262 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17263 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17264 hardcode_shlibpath_var_GCJ=no
17271 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17272 # support. Future versions do this automatically, but an explicit c++rt0.o
17273 # does not break anything, and helps significantly (at the cost of a little
17276 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17277 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17278 hardcode_direct_GCJ=yes
17279 hardcode_shlibpath_var_GCJ=no
17282 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17284 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17285 hardcode_direct_GCJ=yes
17286 hardcode_minus_L_GCJ=yes
17287 hardcode_shlibpath_var_GCJ=no
17290 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17291 freebsd* | dragonfly*)
17292 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17293 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17294 hardcode_direct_GCJ=yes
17295 hardcode_shlibpath_var_GCJ=no
17299 if test "$GCC" = yes; then
17300 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17302 archive_cmds_GCJ='$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'
17304 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17305 hardcode_libdir_separator_GCJ=:
17306 hardcode_direct_GCJ=yes
17308 # hardcode_minus_L: Not really in the search PATH,
17309 # but as the default location of the library.
17310 hardcode_minus_L_GCJ=yes
17311 export_dynamic_flag_spec_GCJ='${wl}-E'
17315 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17316 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17318 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17320 if test "$with_gnu_ld" = no; then
17321 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17322 hardcode_libdir_separator_GCJ=:
17324 hardcode_direct_GCJ=yes
17325 export_dynamic_flag_spec_GCJ='${wl}-E'
17327 # hardcode_minus_L: Not really in the search PATH,
17328 # but as the default location of the library.
17329 hardcode_minus_L_GCJ=yes
17334 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17337 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17340 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17343 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17349 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17352 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17355 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17359 if test "$with_gnu_ld" = no; then
17360 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17361 hardcode_libdir_separator_GCJ=:
17365 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17366 hardcode_direct_GCJ=no
17367 hardcode_shlibpath_var_GCJ=no
17370 hardcode_direct_GCJ=yes
17371 export_dynamic_flag_spec_GCJ='${wl}-E'
17373 # hardcode_minus_L: Not really in the search PATH,
17374 # but as the default location of the library.
17375 hardcode_minus_L_GCJ=yes
17381 irix5* | irix6* | nonstopux*)
17382 if test "$GCC" = yes; then
17383 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17385 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17386 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17389 hardcode_libdir_separator_GCJ=:
17390 link_all_deplibs_GCJ=yes
17393 netbsd* | netbsdelf*-gnu)
17394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17395 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17397 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17399 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17400 hardcode_direct_GCJ=yes
17401 hardcode_shlibpath_var_GCJ=no
17405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17406 hardcode_direct_GCJ=yes
17407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17408 hardcode_libdir_separator_GCJ=:
17409 hardcode_shlibpath_var_GCJ=no
17413 hardcode_direct_GCJ=yes
17414 hardcode_shlibpath_var_GCJ=no
17415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17416 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17417 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17418 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17419 export_dynamic_flag_spec_GCJ='${wl}-E'
17422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17423 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17424 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17427 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17428 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17435 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17436 hardcode_minus_L_GCJ=yes
17437 allow_undefined_flag_GCJ=unsupported
17438 archive_cmds_GCJ='$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'
17439 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17443 if test "$GCC" = yes; then
17444 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17445 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17447 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17448 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17450 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17451 hardcode_libdir_separator_GCJ=:
17454 osf4* | osf5*) # as osf3* with the addition of -msym flag
17455 if test "$GCC" = yes; then
17456 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17457 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17458 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17460 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17461 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17462 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17463 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17465 # Both c and cxx compiler support -rpath directly
17466 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17468 hardcode_libdir_separator_GCJ=:
17472 no_undefined_flag_GCJ=' -z text'
17473 if test "$GCC" = yes; then
17475 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17476 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17477 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17480 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17481 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17482 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17484 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17485 hardcode_shlibpath_var_GCJ=no
17487 solaris2.[0-5] | solaris2.[0-5].*) ;;
17489 # The compiler driver will combine linker options so we
17490 # cannot just pass the convience library names through
17491 # without $wl, iff we do not link with $LD.
17492 # Luckily, gcc supports the same syntax we need for Sun Studio.
17493 # Supported since Solaris 2.6 (maybe 2.5.1?)
17496 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17498 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17501 link_all_deplibs_GCJ=yes
17505 if test "x$host_vendor" = xsequent; then
17506 # Use $CC to link under sequent, because it throws in some extra .o
17507 # files that make .init and .fini sections work.
17508 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17510 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17513 hardcode_direct_GCJ=yes
17514 hardcode_minus_L_GCJ=yes
17515 hardcode_shlibpath_var_GCJ=no
17519 case $host_vendor in
17521 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17522 hardcode_direct_GCJ=yes # is this really true???
17525 ## LD is ld it makes a PLAMLIB
17526 ## CC just makes a GrossModule.
17527 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17528 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17529 hardcode_direct_GCJ=no
17532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17533 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17536 runpath_var='LD_RUN_PATH'
17537 hardcode_shlibpath_var_GCJ=no
17541 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17542 hardcode_shlibpath_var_GCJ=no
17543 export_dynamic_flag_spec_GCJ='-Bexport'
17547 if test -d /usr/nec; then
17548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549 hardcode_shlibpath_var_GCJ=no
17550 runpath_var=LD_RUN_PATH
17551 hardcode_runpath_var=yes
17556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17557 no_undefined_flag_GCJ='${wl}-z,text'
17558 archive_cmds_need_lc_GCJ=no
17559 hardcode_shlibpath_var_GCJ=no
17560 runpath_var='LD_RUN_PATH'
17562 if test "$GCC" = yes; then
17563 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17564 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17566 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17567 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17571 sysv5* | sco3.2v5* | sco5v6*)
17572 # Note: We can NOT use -z defs as we might desire, because we do not
17573 # link with -lc, and that would cause any symbols used from libc to
17574 # always be unresolved, which means just about no library would
17575 # ever link correctly. If we're not using GNU ld we use -z text
17576 # though, which does catch some bad symbols but isn't as heavy-handed
17578 no_undefined_flag_GCJ='${wl}-z,text'
17579 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17580 archive_cmds_need_lc_GCJ=no
17581 hardcode_shlibpath_var_GCJ=no
17582 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17583 hardcode_libdir_separator_GCJ=':'
17584 link_all_deplibs_GCJ=yes
17585 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17586 runpath_var='LD_RUN_PATH'
17588 if test "$GCC" = yes; then
17589 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17590 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17592 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17593 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17600 hardcode_shlibpath_var_GCJ=no
17609 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17610 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17611 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17614 # Do we need to explicitly link libc?
17616 case "x$archive_cmds_need_lc_GCJ" in
17618 # Assume -lc should be added
17619 archive_cmds_need_lc_GCJ=yes
17621 if test "$enable_shared" = yes && test "$GCC" = yes; then
17622 case $archive_cmds_GCJ in
17624 # FIXME: we may have to deal with multi-command sequences.
17627 # Test whether the compiler implicitly links with -lc since on some
17628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17629 # to ld, don't add -lc before -lgcc.
17630 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636 (eval $ac_compile) 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } 2>conftest.err; then
17642 libobjs=conftest.$ac_objext
17644 wl=$lt_prog_compiler_wl_GCJ
17645 pic_flag=$lt_prog_compiler_pic_GCJ
17651 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17652 allow_undefined_flag_GCJ=
17653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17654 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }
17659 archive_cmds_need_lc_GCJ=no
17661 archive_cmds_need_lc_GCJ=yes
17663 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17665 cat conftest.err 1>&5
17668 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17669 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17676 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17678 library_names_spec=
17679 libname_spec='lib$name'
17683 postuninstall_cmds=
17687 shlibpath_overrides_runpath=unknown
17689 dynamic_linker="$host_os ld.so"
17690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17691 if test "$GCC" = yes; then
17692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17693 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17694 # if the path contains ";" then we assume it to be the separator
17695 # otherwise default to the standard path separator (i.e. ":") - it is
17696 # assumed that no part of a normal pathname contains ";" but that should
17697 # okay in the real world where ";" in dirpaths is itself problematic.
17698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17705 need_lib_prefix=unknown
17706 hardcode_into_libs=no
17708 # when you set need_version to no, make sure it does not cause -set_version
17709 # flags to be left without arguments
17710 need_version=unknown
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17716 shlibpath_var=LIBPATH
17718 # AIX 3 has no versioning support, so we append a major version to the name.
17719 soname_spec='${libname}${release}${shared_ext}$major'
17726 hardcode_into_libs=yes
17727 if test "$host_cpu" = ia64; then
17728 # AIX 5 supports IA64
17729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17730 shlibpath_var=LD_LIBRARY_PATH
17732 # With GCC up to 2.95.x, collect2 would create an import file
17733 # for dependence libraries. The import file would start with
17734 # the line `#! .'. This would cause the generated library to
17735 # depend on `.', always an invalid library. This was fixed in
17736 # development snapshots of GCC prior to 3.0.
17738 aix4 | aix4.[01] | aix4.[01].*)
17739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17744 can_build_shared=no
17748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17749 # soname into executable. Probably we can add versioning support to
17750 # collect2, so additional links can be useful in future.
17751 if test "$aix_use_runtimelinking" = yes; then
17752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17753 # instead of lib<name>.a to let people know that these are not
17754 # typical AIX shared libraries.
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17757 # We preserve .a as extension for shared libraries through AIX4.2
17758 # and later when we are not doing run time linking.
17759 library_names_spec='${libname}${release}.a $libname.a'
17760 soname_spec='${libname}${release}${shared_ext}$major'
17762 shlibpath_var=LIBPATH
17767 library_names_spec='$libname.ixlibrary $libname.a'
17768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17769 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
17773 library_names_spec='${libname}${shared_ext}'
17774 dynamic_linker="$host_os ld.so"
17775 shlibpath_var=LIBRARY_PATH
17781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17782 soname_spec='${libname}${release}${shared_ext}$major'
17783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17787 # the default ld.so.conf also contains /usr/contrib/lib and
17788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17789 # libtool to hard-code these into programs
17792 cygwin* | mingw* | pw32*)
17793 version_type=windows
17798 case $GCC,$host_os in
17799 yes,cygwin* | yes,mingw* | yes,pw32*)
17800 library_names_spec='$libname.dll.a'
17801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17802 postinstall_cmds='base_file=`basename \${file}`~
17803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17804 dldir=$destdir/`dirname \$dlpath`~
17805 test -d \$dldir || mkdir -p \$dldir~
17806 $install_prog $dir/$dlname \$dldir/$dlname~
17807 chmod a+x \$dldir/$dlname'
17808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17809 dlpath=$dir/\$dldll~
17811 shlibpath_overrides_runpath=yes
17815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17820 # MinGW DLLs use traditional 'lib' prefix
17821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17824 # It is most probably a Windows format PATH printed by
17825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17826 # path with ; separators, and with drive letters. We can handle the
17827 # drive letters (cygwin fileutils understands them), so leave them,
17828 # especially as we might pass files found there to a mingw objdump,
17829 # which wouldn't understand a cygwinified path. Ahh.
17830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17836 # pw32 DLLs use 'pw' prefix rather than 'lib'
17837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17846 dynamic_linker='Win32 ld.exe'
17847 # FIXME: first we should search . and the directory the executable is in
17851 darwin* | rhapsody*)
17852 dynamic_linker="$host_os dyld"
17853 version_type=darwin
17856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17857 soname_spec='${libname}${release}${major}$shared_ext'
17858 shlibpath_overrides_runpath=yes
17859 shlibpath_var=DYLD_LIBRARY_PATH
17860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17861 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17862 if test "$GCC" = yes; then
17863 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17865 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17875 soname_spec='${libname}${release}${shared_ext}$major'
17876 shlibpath_var=LD_LIBRARY_PATH
17883 freebsd* | dragonfly*)
17884 # DragonFly does not have aout. When/if they implement a new
17885 # versioning mechanism, adjust this.
17886 if test -x /usr/bin/objformat; then
17887 objformat=`/usr/bin/objformat`
17890 freebsd[123]*) objformat=aout ;;
17891 *) objformat=elf ;;
17894 version_type=freebsd-$objformat
17895 case $version_type in
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17906 shlibpath_var=LD_LIBRARY_PATH
17909 shlibpath_overrides_runpath=yes
17911 freebsd3.[01]* | freebsdelf3.[01]*)
17912 shlibpath_overrides_runpath=yes
17913 hardcode_into_libs=yes
17915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17917 shlibpath_overrides_runpath=no
17918 hardcode_into_libs=yes
17920 freebsd*) # from 4.6 on
17921 shlibpath_overrides_runpath=yes
17922 hardcode_into_libs=yes
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17932 soname_spec='${libname}${release}${shared_ext}$major'
17933 shlibpath_var=LD_LIBRARY_PATH
17934 hardcode_into_libs=yes
17937 hpux9* | hpux10* | hpux11*)
17938 # Give a soname corresponding to the major version so that dld.sl refuses to
17939 # link against other versions.
17946 hardcode_into_libs=yes
17947 dynamic_linker="$host_os dld.so"
17948 shlibpath_var=LD_LIBRARY_PATH
17949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951 soname_spec='${libname}${release}${shared_ext}$major'
17952 if test "X$HPUX_IA64_MODE" = X32; then
17953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17961 hardcode_into_libs=yes
17962 dynamic_linker="$host_os dld.sl"
17963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966 soname_spec='${libname}${release}${shared_ext}$major'
17967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17972 dynamic_linker="$host_os dld.sl"
17973 shlibpath_var=SHLIB_PATH
17974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17976 soname_spec='${libname}${release}${shared_ext}$major'
17979 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17980 postinstall_cmds='chmod 555 $lib'
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17988 soname_spec='${libname}${release}${shared_ext}$major'
17989 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 shlibpath_overrides_runpath=no
17992 hardcode_into_libs=yes
17995 irix5* | irix6* | nonstopux*)
17997 nonstopux*) version_type=nonstopux ;;
17999 if test "$lt_cv_prog_gnu_ld" = yes; then
18007 soname_spec='${libname}${release}${shared_ext}$major'
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18010 irix5* | nonstopux*)
18011 libsuff= shlibsuff=
18014 case $LD in # libtool.m4 will add one of these switches to LD
18015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18016 libsuff= shlibsuff= libmagic=32-bit;;
18017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18018 libsuff=32 shlibsuff=N32 libmagic=N32;;
18019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18020 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18021 *) libsuff= shlibsuff= libmagic=never-match;;
18025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18026 shlibpath_overrides_runpath=no
18027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18029 hardcode_into_libs=yes
18032 # No shared lib support for Linux oldld, aout, or coff.
18033 linux*oldld* | linux*aout* | linux*coff*)
18037 # This must be Linux ELF.
18038 linux* | k*bsd*-gnu)
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18045 shlibpath_var=LD_LIBRARY_PATH
18046 shlibpath_overrides_runpath=no
18047 # This implies no fast_install, which is unacceptable.
18048 # Some rework will be needed to allow for fast_install
18049 # before this can be enabled.
18050 hardcode_into_libs=yes
18052 # Append ld.so.conf contents to the search path
18053 if test -f /etc/ld.so.conf; then
18054 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18055 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18058 # We used to test for /lib/ld.so.1 and disable shared libraries on
18059 # powerpc, because MkLinux only supported shared libraries with the
18060 # GNU dynamic linker. Since this was broken with cross compilers,
18061 # most powerpc-linux boxes support dynamic linking these days and
18062 # people can always --disable-shared, the test was removed, and we
18063 # assume the GNU/Linux dynamic linker is in use.
18064 dynamic_linker='GNU/Linux ld.so'
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 shlibpath_var=LD_LIBRARY_PATH
18074 shlibpath_overrides_runpath=no
18075 hardcode_into_libs=yes
18076 dynamic_linker='NetBSD ld.elf_so'
18083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18086 dynamic_linker='NetBSD (a.out) ld.so'
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18089 soname_spec='${libname}${release}${shared_ext}$major'
18090 dynamic_linker='NetBSD ld.elf_so'
18092 shlibpath_var=LD_LIBRARY_PATH
18093 shlibpath_overrides_runpath=yes
18094 hardcode_into_libs=yes
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 shlibpath_var=LD_LIBRARY_PATH
18101 shlibpath_overrides_runpath=yes
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 shlibpath_var=LD_LIBRARY_PATH
18111 shlibpath_overrides_runpath=yes
18116 sys_lib_dlsearch_path_spec="/usr/lib"
18118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18121 *) need_version=no ;;
18123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18125 shlibpath_var=LD_LIBRARY_PATH
18126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18128 openbsd2.[89] | openbsd2.[89].*)
18129 shlibpath_overrides_runpath=no
18132 shlibpath_overrides_runpath=yes
18136 shlibpath_overrides_runpath=yes
18141 libname_spec='$name'
18144 library_names_spec='$libname${shared_ext} $libname.a'
18145 dynamic_linker='OS/2 ld.exe'
18146 shlibpath_var=LIBPATH
18149 osf3* | osf4* | osf5*)
18153 soname_spec='${libname}${release}${shared_ext}$major'
18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155 shlibpath_var=LD_LIBRARY_PATH
18156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18165 soname_spec='${libname}${release}${shared_ext}$major'
18166 shlibpath_var=LD_LIBRARY_PATH
18167 shlibpath_overrides_runpath=yes
18168 hardcode_into_libs=yes
18169 # ldd complains unless libraries are executable
18170 postinstall_cmds='chmod +x $lib'
18175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18177 shlibpath_var=LD_LIBRARY_PATH
18178 shlibpath_overrides_runpath=yes
18179 if test "$with_gnu_ld" = yes; then
18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18188 soname_spec='${libname}${release}${shared_ext}$major'
18189 shlibpath_var=LD_LIBRARY_PATH
18190 case $host_vendor in
18192 shlibpath_overrides_runpath=no
18194 export_dynamic_flag_spec='${wl}-Blargedynsym'
18195 runpath_var=LD_RUN_PATH
18203 shlibpath_overrides_runpath=no
18204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18210 if test -d /usr/nec ;then
18212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18213 soname_spec='$libname${shared_ext}.$major'
18214 shlibpath_var=LD_LIBRARY_PATH
18218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18219 version_type=freebsd-elf
18222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18223 soname_spec='${libname}${release}${shared_ext}$major'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 hardcode_into_libs=yes
18226 if test "$with_gnu_ld" = yes; then
18227 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18228 shlibpath_overrides_runpath=no
18230 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18231 shlibpath_overrides_runpath=yes
18234 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18238 sys_lib_dlsearch_path_spec='/usr/lib'
18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18244 soname_spec='${libname}${release}${shared_ext}$major'
18245 shlibpath_var=LD_LIBRARY_PATH
18252 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18253 echo "${ECHO_T}$dynamic_linker" >&6; }
18254 test "$dynamic_linker" = no && can_build_shared=no
18256 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18257 if test "$GCC" = yes; then
18258 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18261 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18263 hardcode_action_GCJ=
18264 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18265 test -n "$runpath_var_GCJ" || \
18266 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18268 # We can hardcode non-existant directories.
18269 if test "$hardcode_direct_GCJ" != no &&
18270 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18271 # have to relink, otherwise we might link with an installed library
18272 # when we should be linking with a yet-to-be-installed one
18273 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18274 test "$hardcode_minus_L_GCJ" != no; then
18275 # Linking always hardcodes the temporary library directory.
18276 hardcode_action_GCJ=relink
18278 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18279 hardcode_action_GCJ=immediate
18282 # We cannot hardcode anything, or else we can only hardcode existing
18284 hardcode_action_GCJ=unsupported
18286 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18287 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18289 if test "$hardcode_action_GCJ" = relink; then
18290 # Fast installation is not supported
18291 enable_fast_install=no
18292 elif test "$shlibpath_overrides_runpath" = yes ||
18293 test "$enable_shared" = no; then
18294 # Fast installation is not necessary
18295 enable_fast_install=needless
18299 # The else clause should only fire when bootstrapping the
18300 # libtool distribution, otherwise you forgot to ship ltmain.sh
18301 # with your package, and you will get complaints that there are
18302 # no rules to generate ltmain.sh.
18303 if test -f "$ltmain"; then
18304 # See if we are running on zsh, and set the options which allow our commands through
18305 # without removal of \ escapes.
18306 if test -n "${ZSH_VERSION+set}" ; then
18307 setopt NO_GLOB_SUBST
18309 # Now quote all the things that may contain metacharacters while being
18310 # careful not to overquote the AC_SUBSTed values. We take copies of the
18311 # variables and quote the copies for generation of the libtool script.
18312 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18314 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18315 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18316 deplibs_check_method reload_flag reload_cmds need_locks \
18317 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18318 lt_cv_sys_global_symbol_to_c_name_address \
18319 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18320 old_postinstall_cmds old_postuninstall_cmds \
18324 lt_prog_compiler_wl_GCJ \
18325 lt_prog_compiler_pic_GCJ \
18326 lt_prog_compiler_static_GCJ \
18327 lt_prog_compiler_no_builtin_flag_GCJ \
18328 export_dynamic_flag_spec_GCJ \
18329 thread_safe_flag_spec_GCJ \
18330 whole_archive_flag_spec_GCJ \
18331 enable_shared_with_static_runtimes_GCJ \
18332 old_archive_cmds_GCJ \
18333 old_archive_from_new_cmds_GCJ \
18334 predep_objects_GCJ \
18335 postdep_objects_GCJ \
18338 compiler_lib_search_path_GCJ \
18340 archive_expsym_cmds_GCJ \
18341 postinstall_cmds_GCJ \
18342 postuninstall_cmds_GCJ \
18343 old_archive_from_expsyms_cmds_GCJ \
18344 allow_undefined_flag_GCJ \
18345 no_undefined_flag_GCJ \
18346 export_symbols_cmds_GCJ \
18347 hardcode_libdir_flag_spec_GCJ \
18348 hardcode_libdir_flag_spec_ld_GCJ \
18349 hardcode_libdir_separator_GCJ \
18350 hardcode_automatic_GCJ \
18352 module_expsym_cmds_GCJ \
18353 lt_cv_prog_compiler_c_o_GCJ \
18354 exclude_expsyms_GCJ \
18355 include_expsyms_GCJ; do
18358 old_archive_cmds_GCJ | \
18359 old_archive_from_new_cmds_GCJ | \
18360 archive_cmds_GCJ | \
18361 archive_expsym_cmds_GCJ | \
18362 module_cmds_GCJ | \
18363 module_expsym_cmds_GCJ | \
18364 old_archive_from_expsyms_cmds_GCJ | \
18365 export_symbols_cmds_GCJ | \
18366 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18367 postinstall_cmds | postuninstall_cmds | \
18368 old_postinstall_cmds | old_postuninstall_cmds | \
18369 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18370 # Double-quote double-evaled strings.
18371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18380 *'\$0 --fallback-echo"')
18381 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18387 cat <<__EOF__ >> "$cfgfile"
18388 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18390 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18392 # Shell to use when invoking shell scripts.
18395 # Whether or not to build shared libraries.
18396 build_libtool_libs=$enable_shared
18398 # Whether or not to build static libraries.
18399 build_old_libs=$enable_static
18401 # Whether or not to add -lc for building shared libraries.
18402 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18404 # Whether or not to disallow shared libs when runtime libs are static
18405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18407 # Whether or not to optimize for fast installation.
18408 fast_install=$enable_fast_install
18411 host_alias=$host_alias
18415 # The build system.
18416 build_alias=$build_alias
18420 # An echo program that does not interpret backslashes.
18425 AR_FLAGS=$lt_AR_FLAGS
18430 # LTCC compiler flags.
18431 LTCFLAGS=$lt_LTCFLAGS
18433 # A language-specific compiler.
18434 CC=$lt_compiler_GCJ
18436 # Is the compiler the GNU C compiler?
18442 # The linker used to build libraries.
18445 # Whether we need hard or soft links.
18448 # A BSD-compatible nm program.
18451 # A symbol stripping program
18454 # Used to examine libraries when file_magic_cmd begins "file"
18455 MAGIC_CMD=$MAGIC_CMD
18457 # Used on cygwin: DLL creation program.
18460 # Used on cygwin: object dumper.
18463 # Used on cygwin: assembler.
18466 # The name of the directory that contains temporary libtool files.
18469 # How to create reloadable object files.
18470 reload_flag=$lt_reload_flag
18471 reload_cmds=$lt_reload_cmds
18473 # How to pass a linker flag through the compiler.
18474 wl=$lt_lt_prog_compiler_wl_GCJ
18476 # Object file suffix (normally "o").
18477 objext="$ac_objext"
18479 # Old archive suffix (normally "a").
18482 # Shared library suffix (normally ".so").
18483 shrext_cmds='$shrext_cmds'
18485 # Executable file suffix (normally "").
18488 # Additional compiler flags for building library objects.
18489 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18492 # What is the maximum length of a command?
18493 max_cmd_len=$lt_cv_sys_max_cmd_len
18495 # Does compiler simultaneously support -c and -o options?
18496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18498 # Must we lock files when doing compilation?
18499 need_locks=$lt_need_locks
18501 # Do we need the lib prefix for modules?
18502 need_lib_prefix=$need_lib_prefix
18504 # Do we need a version for libraries?
18505 need_version=$need_version
18507 # Whether dlopen is supported.
18508 dlopen_support=$enable_dlopen
18510 # Whether dlopen of programs is supported.
18511 dlopen_self=$enable_dlopen_self
18513 # Whether dlopen of statically linked programs is supported.
18514 dlopen_self_static=$enable_dlopen_self_static
18516 # Compiler flag to prevent dynamic linking.
18517 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18519 # Compiler flag to turn off builtin functions.
18520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18522 # Compiler flag to allow reflexive dlopens.
18523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18525 # Compiler flag to generate shared objects directly from archives.
18526 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18528 # Compiler flag to generate thread-safe objects.
18529 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18531 # Library versioning type.
18532 version_type=$version_type
18534 # Format of library name prefix.
18535 libname_spec=$lt_libname_spec
18537 # List of archive names. First name is the real one, the rest are links.
18538 # The last name is the one that the linker finds with -lNAME.
18539 library_names_spec=$lt_library_names_spec
18541 # The coded name of the library, if different from the real name.
18542 soname_spec=$lt_soname_spec
18544 # Commands used to build and install an old-style archive.
18546 old_archive_cmds=$lt_old_archive_cmds_GCJ
18547 old_postinstall_cmds=$lt_old_postinstall_cmds
18548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18550 # Create an old-style archive from a shared archive.
18551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18553 # Create a temporary old-style archive to link instead of a shared archive.
18554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18556 # Commands used to build and install a shared archive.
18557 archive_cmds=$lt_archive_cmds_GCJ
18558 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18559 postinstall_cmds=$lt_postinstall_cmds
18560 postuninstall_cmds=$lt_postuninstall_cmds
18562 # Commands used to build a loadable module (assumed same as above if empty)
18563 module_cmds=$lt_module_cmds_GCJ
18564 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18566 # Commands to strip libraries.
18567 old_striplib=$lt_old_striplib
18568 striplib=$lt_striplib
18570 # Dependencies to place before the objects being linked to create a
18572 predep_objects=$lt_predep_objects_GCJ
18574 # Dependencies to place after the objects being linked to create a
18576 postdep_objects=$lt_postdep_objects_GCJ
18578 # Dependencies to place before the objects being linked to create a
18580 predeps=$lt_predeps_GCJ
18582 # Dependencies to place after the objects being linked to create a
18584 postdeps=$lt_postdeps_GCJ
18586 # The library search path used internally by the compiler when linking
18587 # a shared library.
18588 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18590 # Method to check whether dependent libraries are shared objects.
18591 deplibs_check_method=$lt_deplibs_check_method
18593 # Command to use when deplibs_check_method == file_magic.
18594 file_magic_cmd=$lt_file_magic_cmd
18596 # Flag that allows shared libraries with undefined symbols to be built.
18597 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18599 # Flag that forces no undefined symbols.
18600 no_undefined_flag=$lt_no_undefined_flag_GCJ
18602 # Commands used to finish a libtool library installation in a directory.
18603 finish_cmds=$lt_finish_cmds
18605 # Same as above, but a single script fragment to be evaled but not shown.
18606 finish_eval=$lt_finish_eval
18608 # Take the output of nm and produce a listing of raw symbols and C names.
18609 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18611 # Transform the output of nm in a proper C declaration
18612 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18614 # Transform the output of nm in a C name address pair
18615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18617 # This is the shared library runtime path variable.
18618 runpath_var=$runpath_var
18620 # This is the shared library path variable.
18621 shlibpath_var=$shlibpath_var
18623 # Is shlibpath searched before the hard-coded library search path?
18624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18626 # How to hardcode a shared library path into an executable.
18627 hardcode_action=$hardcode_action_GCJ
18629 # Whether we should hardcode library paths into libraries.
18630 hardcode_into_libs=$hardcode_into_libs
18632 # Flag to hardcode \$libdir into a binary during linking.
18633 # This must work even if \$libdir does not exist.
18634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18636 # If ld is used when linking, flag to hardcode \$libdir into
18637 # a binary during linking. This must work even if \$libdir does
18639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18641 # Whether we need a single -rpath flag with a separated argument.
18642 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18644 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18645 # resulting binary.
18646 hardcode_direct=$hardcode_direct_GCJ
18648 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18649 # resulting binary.
18650 hardcode_minus_L=$hardcode_minus_L_GCJ
18652 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18653 # the resulting binary.
18654 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18656 # Set to yes if building a shared library automatically hardcodes DIR into the library
18657 # and all subsequent libraries and executables linked against it.
18658 hardcode_automatic=$hardcode_automatic_GCJ
18660 # Variables whose values should be saved in libtool wrapper scripts and
18661 # restored at relink time.
18662 variables_saved_for_relink="$variables_saved_for_relink"
18664 # Whether libtool must link a program against all its dependency libraries.
18665 link_all_deplibs=$link_all_deplibs_GCJ
18667 # Compile-time system search path for libraries
18668 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18670 # Run-time system search path for libraries
18671 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18673 # Fix the shell variable \$srcfile for the compiler.
18674 fix_srcfile_path="$fix_srcfile_path_GCJ"
18676 # Set to yes if exported symbols are required.
18677 always_export_symbols=$always_export_symbols_GCJ
18679 # The commands to list exported symbols.
18680 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18682 # The commands to extract the exported symbol list from a shared archive.
18683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18685 # Symbols that should not be listed in the preloaded symbols.
18686 exclude_expsyms=$lt_exclude_expsyms_GCJ
18688 # Symbols that must always be exported.
18689 include_expsyms=$lt_include_expsyms_GCJ
18691 # ### END LIBTOOL TAG CONFIG: $tagname
18697 # If there is no Makefile yet, we rely on a make rule to execute
18698 # `config.status --recheck' to rerun these tests and create the
18699 # libtool script then.
18700 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18701 if test -f "$ltmain_in"; then
18702 test -f Makefile && make "$ltmain"
18708 ac_cpp='$CPP $CPPFLAGS'
18709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18723 # Source file extension for RC test sources.
18726 # Object file extension for compiled RC test sources.
18730 # Code to be used in simple compile tests
18731 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18733 # Code to be used in simple link tests
18734 lt_simple_link_test_code="$lt_simple_compile_test_code"
18736 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18738 # If no C compiler was specified, use CC.
18741 # If no C compiler flags were specified, use CFLAGS.
18742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18744 # Allow CC to be a program name with arguments.
18748 # save warnings/boilerplate of simple test code
18749 ac_outfile=conftest.$ac_objext
18750 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18752 _lt_compiler_boilerplate=`cat conftest.err`
18755 ac_outfile=conftest.$ac_objext
18756 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18758 _lt_linker_boilerplate=`cat conftest.err`
18762 # Allow CC to be a program name with arguments.
18767 for cc_temp in $compiler""; do
18769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18775 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18777 lt_cv_prog_compiler_c_o_RC=yes
18779 # The else clause should only fire when bootstrapping the
18780 # libtool distribution, otherwise you forgot to ship ltmain.sh
18781 # with your package, and you will get complaints that there are
18782 # no rules to generate ltmain.sh.
18783 if test -f "$ltmain"; then
18784 # See if we are running on zsh, and set the options which allow our commands through
18785 # without removal of \ escapes.
18786 if test -n "${ZSH_VERSION+set}" ; then
18787 setopt NO_GLOB_SUBST
18789 # Now quote all the things that may contain metacharacters while being
18790 # careful not to overquote the AC_SUBSTed values. We take copies of the
18791 # variables and quote the copies for generation of the libtool script.
18792 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18794 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18795 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18796 deplibs_check_method reload_flag reload_cmds need_locks \
18797 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18798 lt_cv_sys_global_symbol_to_c_name_address \
18799 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18800 old_postinstall_cmds old_postuninstall_cmds \
18804 lt_prog_compiler_wl_RC \
18805 lt_prog_compiler_pic_RC \
18806 lt_prog_compiler_static_RC \
18807 lt_prog_compiler_no_builtin_flag_RC \
18808 export_dynamic_flag_spec_RC \
18809 thread_safe_flag_spec_RC \
18810 whole_archive_flag_spec_RC \
18811 enable_shared_with_static_runtimes_RC \
18812 old_archive_cmds_RC \
18813 old_archive_from_new_cmds_RC \
18814 predep_objects_RC \
18815 postdep_objects_RC \
18818 compiler_lib_search_path_RC \
18820 archive_expsym_cmds_RC \
18821 postinstall_cmds_RC \
18822 postuninstall_cmds_RC \
18823 old_archive_from_expsyms_cmds_RC \
18824 allow_undefined_flag_RC \
18825 no_undefined_flag_RC \
18826 export_symbols_cmds_RC \
18827 hardcode_libdir_flag_spec_RC \
18828 hardcode_libdir_flag_spec_ld_RC \
18829 hardcode_libdir_separator_RC \
18830 hardcode_automatic_RC \
18832 module_expsym_cmds_RC \
18833 lt_cv_prog_compiler_c_o_RC \
18834 exclude_expsyms_RC \
18835 include_expsyms_RC; do
18838 old_archive_cmds_RC | \
18839 old_archive_from_new_cmds_RC | \
18840 archive_cmds_RC | \
18841 archive_expsym_cmds_RC | \
18843 module_expsym_cmds_RC | \
18844 old_archive_from_expsyms_cmds_RC | \
18845 export_symbols_cmds_RC | \
18846 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18847 postinstall_cmds | postuninstall_cmds | \
18848 old_postinstall_cmds | old_postuninstall_cmds | \
18849 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18850 # Double-quote double-evaled strings.
18851 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18860 *'\$0 --fallback-echo"')
18861 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18867 cat <<__EOF__ >> "$cfgfile"
18868 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18872 # Shell to use when invoking shell scripts.
18875 # Whether or not to build shared libraries.
18876 build_libtool_libs=$enable_shared
18878 # Whether or not to build static libraries.
18879 build_old_libs=$enable_static
18881 # Whether or not to add -lc for building shared libraries.
18882 build_libtool_need_lc=$archive_cmds_need_lc_RC
18884 # Whether or not to disallow shared libs when runtime libs are static
18885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18887 # Whether or not to optimize for fast installation.
18888 fast_install=$enable_fast_install
18891 host_alias=$host_alias
18895 # The build system.
18896 build_alias=$build_alias
18900 # An echo program that does not interpret backslashes.
18905 AR_FLAGS=$lt_AR_FLAGS
18910 # LTCC compiler flags.
18911 LTCFLAGS=$lt_LTCFLAGS
18913 # A language-specific compiler.
18916 # Is the compiler the GNU C compiler?
18922 # The linker used to build libraries.
18925 # Whether we need hard or soft links.
18928 # A BSD-compatible nm program.
18931 # A symbol stripping program
18934 # Used to examine libraries when file_magic_cmd begins "file"
18935 MAGIC_CMD=$MAGIC_CMD
18937 # Used on cygwin: DLL creation program.
18940 # Used on cygwin: object dumper.
18943 # Used on cygwin: assembler.
18946 # The name of the directory that contains temporary libtool files.
18949 # How to create reloadable object files.
18950 reload_flag=$lt_reload_flag
18951 reload_cmds=$lt_reload_cmds
18953 # How to pass a linker flag through the compiler.
18954 wl=$lt_lt_prog_compiler_wl_RC
18956 # Object file suffix (normally "o").
18957 objext="$ac_objext"
18959 # Old archive suffix (normally "a").
18962 # Shared library suffix (normally ".so").
18963 shrext_cmds='$shrext_cmds'
18965 # Executable file suffix (normally "").
18968 # Additional compiler flags for building library objects.
18969 pic_flag=$lt_lt_prog_compiler_pic_RC
18972 # What is the maximum length of a command?
18973 max_cmd_len=$lt_cv_sys_max_cmd_len
18975 # Does compiler simultaneously support -c and -o options?
18976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18978 # Must we lock files when doing compilation?
18979 need_locks=$lt_need_locks
18981 # Do we need the lib prefix for modules?
18982 need_lib_prefix=$need_lib_prefix
18984 # Do we need a version for libraries?
18985 need_version=$need_version
18987 # Whether dlopen is supported.
18988 dlopen_support=$enable_dlopen
18990 # Whether dlopen of programs is supported.
18991 dlopen_self=$enable_dlopen_self
18993 # Whether dlopen of statically linked programs is supported.
18994 dlopen_self_static=$enable_dlopen_self_static
18996 # Compiler flag to prevent dynamic linking.
18997 link_static_flag=$lt_lt_prog_compiler_static_RC
18999 # Compiler flag to turn off builtin functions.
19000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19002 # Compiler flag to allow reflexive dlopens.
19003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19005 # Compiler flag to generate shared objects directly from archives.
19006 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19008 # Compiler flag to generate thread-safe objects.
19009 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19011 # Library versioning type.
19012 version_type=$version_type
19014 # Format of library name prefix.
19015 libname_spec=$lt_libname_spec
19017 # List of archive names. First name is the real one, the rest are links.
19018 # The last name is the one that the linker finds with -lNAME.
19019 library_names_spec=$lt_library_names_spec
19021 # The coded name of the library, if different from the real name.
19022 soname_spec=$lt_soname_spec
19024 # Commands used to build and install an old-style archive.
19026 old_archive_cmds=$lt_old_archive_cmds_RC
19027 old_postinstall_cmds=$lt_old_postinstall_cmds
19028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19030 # Create an old-style archive from a shared archive.
19031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19033 # Create a temporary old-style archive to link instead of a shared archive.
19034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19036 # Commands used to build and install a shared archive.
19037 archive_cmds=$lt_archive_cmds_RC
19038 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19039 postinstall_cmds=$lt_postinstall_cmds
19040 postuninstall_cmds=$lt_postuninstall_cmds
19042 # Commands used to build a loadable module (assumed same as above if empty)
19043 module_cmds=$lt_module_cmds_RC
19044 module_expsym_cmds=$lt_module_expsym_cmds_RC
19046 # Commands to strip libraries.
19047 old_striplib=$lt_old_striplib
19048 striplib=$lt_striplib
19050 # Dependencies to place before the objects being linked to create a
19052 predep_objects=$lt_predep_objects_RC
19054 # Dependencies to place after the objects being linked to create a
19056 postdep_objects=$lt_postdep_objects_RC
19058 # Dependencies to place before the objects being linked to create a
19060 predeps=$lt_predeps_RC
19062 # Dependencies to place after the objects being linked to create a
19064 postdeps=$lt_postdeps_RC
19066 # The library search path used internally by the compiler when linking
19067 # a shared library.
19068 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19070 # Method to check whether dependent libraries are shared objects.
19071 deplibs_check_method=$lt_deplibs_check_method
19073 # Command to use when deplibs_check_method == file_magic.
19074 file_magic_cmd=$lt_file_magic_cmd
19076 # Flag that allows shared libraries with undefined symbols to be built.
19077 allow_undefined_flag=$lt_allow_undefined_flag_RC
19079 # Flag that forces no undefined symbols.
19080 no_undefined_flag=$lt_no_undefined_flag_RC
19082 # Commands used to finish a libtool library installation in a directory.
19083 finish_cmds=$lt_finish_cmds
19085 # Same as above, but a single script fragment to be evaled but not shown.
19086 finish_eval=$lt_finish_eval
19088 # Take the output of nm and produce a listing of raw symbols and C names.
19089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19091 # Transform the output of nm in a proper C declaration
19092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19094 # Transform the output of nm in a C name address pair
19095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19097 # This is the shared library runtime path variable.
19098 runpath_var=$runpath_var
19100 # This is the shared library path variable.
19101 shlibpath_var=$shlibpath_var
19103 # Is shlibpath searched before the hard-coded library search path?
19104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19106 # How to hardcode a shared library path into an executable.
19107 hardcode_action=$hardcode_action_RC
19109 # Whether we should hardcode library paths into libraries.
19110 hardcode_into_libs=$hardcode_into_libs
19112 # Flag to hardcode \$libdir into a binary during linking.
19113 # This must work even if \$libdir does not exist.
19114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19116 # If ld is used when linking, flag to hardcode \$libdir into
19117 # a binary during linking. This must work even if \$libdir does
19119 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19121 # Whether we need a single -rpath flag with a separated argument.
19122 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19124 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19125 # resulting binary.
19126 hardcode_direct=$hardcode_direct_RC
19128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19129 # resulting binary.
19130 hardcode_minus_L=$hardcode_minus_L_RC
19132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19133 # the resulting binary.
19134 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19136 # Set to yes if building a shared library automatically hardcodes DIR into the library
19137 # and all subsequent libraries and executables linked against it.
19138 hardcode_automatic=$hardcode_automatic_RC
19140 # Variables whose values should be saved in libtool wrapper scripts and
19141 # restored at relink time.
19142 variables_saved_for_relink="$variables_saved_for_relink"
19144 # Whether libtool must link a program against all its dependency libraries.
19145 link_all_deplibs=$link_all_deplibs_RC
19147 # Compile-time system search path for libraries
19148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19150 # Run-time system search path for libraries
19151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19153 # Fix the shell variable \$srcfile for the compiler.
19154 fix_srcfile_path="$fix_srcfile_path_RC"
19156 # Set to yes if exported symbols are required.
19157 always_export_symbols=$always_export_symbols_RC
19159 # The commands to list exported symbols.
19160 export_symbols_cmds=$lt_export_symbols_cmds_RC
19162 # The commands to extract the exported symbol list from a shared archive.
19163 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19165 # Symbols that should not be listed in the preloaded symbols.
19166 exclude_expsyms=$lt_exclude_expsyms_RC
19168 # Symbols that must always be exported.
19169 include_expsyms=$lt_include_expsyms_RC
19171 # ### END LIBTOOL TAG CONFIG: $tagname
19177 # If there is no Makefile yet, we rely on a make rule to execute
19178 # `config.status --recheck' to rerun these tests and create the
19179 # libtool script then.
19180 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19181 if test -f "$ltmain_in"; then
19182 test -f Makefile && make "$ltmain"
19188 ac_cpp='$CPP $CPPFLAGS'
19189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19198 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19199 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19200 { (exit 1); exit 1; }; }
19204 # Append the new tag name to the list of available tags.
19205 if test -n "$tagname" ; then
19206 available_tags="$available_tags $tagname"
19212 # Now substitute the updated list of available tags.
19213 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19214 mv "${ofile}T" "$ofile"
19218 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19219 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19220 { (exit 1); exit 1; }; }
19226 # This can be used to rebuild libtool when needed
19227 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19229 # Always use our own libtool.
19230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19232 # Prevent multiple expansion
19254 # Extract the first word of "doxygen", so it can be a program name with args.
19255 set dummy doxygen; ac_word=$2
19256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19258 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 if test -n "$DOXYGEN"; then
19262 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19265 for as_dir in $PATH
19268 test -z "$as_dir" && as_dir=.
19269 for ac_exec_ext in '' $ac_executable_extensions; do
19270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19271 ac_cv_prog_DOXYGEN="true"
19272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19279 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
19282 DOXYGEN=$ac_cv_prog_DOXYGEN
19283 if test -n "$DOXYGEN"; then
19284 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
19285 echo "${ECHO_T}$DOXYGEN" >&6; }
19287 { echo "$as_me:$LINENO: result: no" >&5
19288 echo "${ECHO_T}no" >&6; }
19294 if test "$DOXYGEN" = true; then
19303 # Checks for header files.
19304 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19305 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19306 if test "${ac_cv_header_stdc+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 cat >conftest.$ac_ext <<_ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19315 #include <stdlib.h>
19316 #include <stdarg.h>
19317 #include <string.h>
19328 rm -f conftest.$ac_objext
19329 if { (ac_try="$ac_compile"
19330 case "(($ac_try" in
19331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332 *) ac_try_echo=$ac_try;;
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335 (eval "$ac_compile") 2>conftest.er1
19337 grep -v '^ *+' conftest.er1 >conftest.err
19339 cat conftest.err >&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); } && {
19342 test -z "$ac_c_werror_flag" ||
19343 test ! -s conftest.err
19344 } && test -s conftest.$ac_objext; then
19345 ac_cv_header_stdc=yes
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19350 ac_cv_header_stdc=no
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19355 if test $ac_cv_header_stdc = yes; then
19356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 #include <string.h>
19366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19367 $EGREP "memchr" >/dev/null 2>&1; then
19370 ac_cv_header_stdc=no
19376 if test $ac_cv_header_stdc = yes; then
19377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19378 cat >conftest.$ac_ext <<_ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384 #include <stdlib.h>
19387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19388 $EGREP "free" >/dev/null 2>&1; then
19391 ac_cv_header_stdc=no
19397 if test $ac_cv_header_stdc = yes; then
19398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19399 if test "$cross_compiling" = yes; then
19402 cat >conftest.$ac_ext <<_ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19409 #include <stdlib.h>
19410 #if ((' ' & 0x0FF) == 0x020)
19411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19414 # define ISLOWER(c) \
19415 (('a' <= (c) && (c) <= 'i') \
19416 || ('j' <= (c) && (c) <= 'r') \
19417 || ('s' <= (c) && (c) <= 'z'))
19418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19426 for (i = 0; i < 256; i++)
19427 if (XOR (islower (i), ISLOWER (i))
19428 || toupper (i) != TOUPPER (i))
19433 rm -f conftest$ac_exeext
19434 if { (ac_try="$ac_link"
19435 case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_link") 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19444 { (case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_try") 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19455 echo "$as_me: program exited with status $ac_status" >&5
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 ( exit $ac_status )
19460 ac_cv_header_stdc=no
19462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19468 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19469 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19470 if test $ac_cv_header_stdc = yes; then
19472 cat >>confdefs.h <<\_ACEOF
19473 #define STDC_HEADERS 1
19479 for ac_header in stdlib.h
19481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 ac_res=`eval echo '${'$as_ac_Header'}'`
19489 { echo "$as_me:$LINENO: result: $ac_res" >&5
19490 echo "${ECHO_T}$ac_res" >&6; }
19492 # Is the header compilable?
19493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19495 cat >conftest.$ac_ext <<_ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19501 $ac_includes_default
19502 #include <$ac_header>
19504 rm -f conftest.$ac_objext
19505 if { (ac_try="$ac_compile"
19506 case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_compile") 2>conftest.er1
19513 grep -v '^ *+' conftest.er1 >conftest.err
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } && {
19518 test -z "$ac_c_werror_flag" ||
19519 test ! -s conftest.err
19520 } && test -s conftest.$ac_objext; then
19521 ac_header_compiler=yes
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_header_compiler=no
19529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19531 echo "${ECHO_T}$ac_header_compiler" >&6; }
19533 # Is the header present?
19534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19536 cat >conftest.$ac_ext <<_ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h. */
19542 #include <$ac_header>
19544 if { (ac_try="$ac_cpp conftest.$ac_ext"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19552 grep -v '^ *+' conftest.er1 >conftest.err
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } >/dev/null && {
19557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19558 test ! -s conftest.err
19560 ac_header_preproc=yes
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ac_header_preproc=no
19568 rm -f conftest.err conftest.$ac_ext
19569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19570 echo "${ECHO_T}$ac_header_preproc" >&6; }
19572 # So? What about this header?
19573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19579 ac_header_preproc=yes
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19595 ## ------------------------------------------------------------ ##
19596 ## Report this to http://pyyaml.org/newticket?component=libyaml ##
19597 ## ------------------------------------------------------------ ##
19599 ) | sed "s/^/$as_me: WARNING: /" >&2
19602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 eval "$as_ac_Header=\$ac_header_preproc"
19609 ac_res=`eval echo '${'$as_ac_Header'}'`
19610 { echo "$as_me:$LINENO: result: $ac_res" >&5
19611 echo "${ECHO_T}$ac_res" >&6; }
19614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19615 cat >>confdefs.h <<_ACEOF
19616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19624 # Checks for typedefs, structures, and compiler characteristics.
19625 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19626 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19627 if test "${ac_cv_c_const+set}" = set; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19630 cat >conftest.$ac_ext <<_ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19640 /* FIXME: Include the comments suggested by Paul. */
19641 #ifndef __cplusplus
19642 /* Ultrix mips cc rejects this. */
19643 typedef int charset[2];
19645 /* SunOS 4.1.1 cc rejects this. */
19646 char const *const *pcpcc;
19648 /* NEC SVR4.0.2 mips cc rejects this. */
19649 struct point {int x, y;};
19650 static struct point const zero = {0,0};
19651 /* AIX XL C 1.02.0.0 rejects this.
19652 It does not let you subtract one const X* pointer from another in
19653 an arm of an if-expression whose if-part is not a constant
19655 const char *g = "string";
19656 pcpcc = &g + (g ? g-g : 0);
19657 /* HPUX 7.0 cc rejects these. */
19659 ppc = (char**) pcpcc;
19660 pcpcc = (char const *const *) ppc;
19661 { /* SCO 3.2v4 cc rejects this. */
19663 char const *s = 0 ? (char *) 0 : (char const *) 0;
19668 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19669 int x[] = {25, 17};
19670 const int *foo = &x[0];
19673 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19674 typedef const int *iptr;
19678 { /* AIX XL C 1.02.0.0 rejects this saying
19679 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19680 struct s { int j; const int *ap[3]; };
19681 struct s *b; b->j = 5;
19683 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19684 const int foo = 10;
19685 if (!foo) return 0;
19687 return !cs[0] && !zero.x;
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest.$ac_objext; then
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19722 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19723 if test $ac_cv_c_const = no; then
19725 cat >>confdefs.h <<\_ACEOF
19731 { echo "$as_me:$LINENO: checking for size_t" >&5
19732 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19733 if test "${ac_cv_type_size_t+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 cat >conftest.$ac_ext <<_ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 $ac_includes_default
19743 typedef size_t ac__type_new_;
19747 if ((ac__type_new_ *) 0)
19749 if (sizeof (ac__type_new_))
19755 rm -f conftest.$ac_objext
19756 if { (ac_try="$ac_compile"
19757 case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19762 (eval "$ac_compile") 2>conftest.er1
19764 grep -v '^ *+' conftest.er1 >conftest.err
19766 cat conftest.err >&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } && {
19769 test -z "$ac_c_werror_flag" ||
19770 test ! -s conftest.err
19771 } && test -s conftest.$ac_objext; then
19772 ac_cv_type_size_t=yes
19774 echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19777 ac_cv_type_size_t=no
19780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19783 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19784 if test $ac_cv_type_size_t = yes; then
19788 cat >>confdefs.h <<_ACEOF
19789 #define size_t unsigned int
19795 # Define Makefiles.
19796 ac_config_files="$ac_config_files include/Makefile src/Makefile Makefile tests/Makefile"
19799 # Generate the "configure" script.
19800 cat >confcache <<\_ACEOF
19801 # This file is a shell script that caches the results of configure
19802 # tests run on this system so they can be shared between configure
19803 # scripts and configure runs, see configure's option --config-cache.
19804 # It is not useful on other systems. If it contains results you don't
19805 # want to keep, you may remove or edit it.
19807 # config.status only pays attention to the cache file if you give it
19808 # the --recheck option to rerun configure.
19810 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19811 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19812 # following values.
19816 # The following way of writing the cache mishandles newlines in values,
19817 # but we know of no workaround that is simple, portable, and efficient.
19818 # So, we kill variables containing newlines.
19819 # Ultrix sh set writes to stderr and can't be redirected directly,
19820 # and sets the high bit in the cache file unless we assign to the vars.
19822 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19823 eval ac_val=\$$ac_var
19827 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19828 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19831 _ | IFS | as_nl) ;; #(
19832 *) $as_unset $ac_var ;;
19838 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19839 *${as_nl}ac_space=\ *)
19840 # `set' does not quote correctly, so add quotes (double-quote
19841 # substitution turns \\\\ into \\, and sed turns \\ into \).
19844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19847 # `set' quotes correctly as required by POSIX, so do not add quotes.
19848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19857 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19859 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19861 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19862 if test -w "$cache_file"; then
19863 test "x$cache_file" != "x/dev/null" &&
19864 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19865 echo "$as_me: updating cache $cache_file" >&6;}
19866 cat confcache >$cache_file
19868 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19869 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19874 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19875 # Let make expand exec_prefix.
19876 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19878 DEFS=-DHAVE_CONFIG_H
19882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19883 # 1. Remove the extension, and $U if already installed.
19884 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19885 ac_i=`echo "$ac_i" | sed "$ac_script"`
19886 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19887 # will be set to the directory where LIBOBJS objects are built.
19888 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19889 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19891 LIBOBJS=$ac_libobjs
19893 LTLIBOBJS=$ac_ltlibobjs
19896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19897 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19898 Usually this means the macro was only invoked conditionally." >&5
19899 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19900 Usually this means the macro was only invoked conditionally." >&2;}
19901 { (exit 1); exit 1; }; }
19903 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19904 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19905 Usually this means the macro was only invoked conditionally." >&5
19906 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19907 Usually this means the macro was only invoked conditionally." >&2;}
19908 { (exit 1); exit 1; }; }
19910 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19911 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19912 Usually this means the macro was only invoked conditionally." >&5
19913 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19914 Usually this means the macro was only invoked conditionally." >&2;}
19915 { (exit 1); exit 1; }; }
19917 if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
19918 { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
19919 Usually this means the macro was only invoked conditionally." >&5
19920 echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
19921 Usually this means the macro was only invoked conditionally." >&2;}
19922 { (exit 1); exit 1; }; }
19925 : ${CONFIG_STATUS=./config.status}
19926 ac_clean_files_save=$ac_clean_files
19927 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19928 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19929 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19930 cat >$CONFIG_STATUS <<_ACEOF
19932 # Generated by $as_me.
19933 # Run this file to recreate the current configuration.
19934 # Compiler output produced by configure, useful for debugging
19935 # configure, is in config.log if it exists.
19938 ac_cs_recheck=false
19940 SHELL=\${CONFIG_SHELL-$SHELL}
19943 cat >>$CONFIG_STATUS <<\_ACEOF
19944 ## --------------------- ##
19945 ## M4sh Initialization. ##
19946 ## --------------------- ##
19948 # Be more Bourne compatible
19949 DUALCASE=1; export DUALCASE # for MKS sh
19950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19954 # is contrary to our usage. Disable this feature.
19955 alias -g '${1+"$@"}'='"$@"'
19956 setopt NO_GLOB_SUBST
19958 case `(set -o) 2>/dev/null` in
19959 *posix*) set -o posix ;;
19968 # Avoid depending upon Character Ranges.
19969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19972 as_cr_digits='0123456789'
19973 as_cr_alnum=$as_cr_Letters$as_cr_digits
19975 # The user is always right.
19976 if test "${PATH_SEPARATOR+set}" != set; then
19977 echo "#! /bin/sh" >conf$$.sh
19978 echo "exit 0" >>conf$$.sh
19980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19988 # Support unset when possible.
19989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19997 # We need space, tab and new line, in precisely that order. Quoting is
19998 # there to prevent editors from complaining about space-tab.
19999 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20000 # splitting by setting IFS to empty value.)
20005 # Find who we are. Look in the path if we contain no directory separator.
20007 *[\\/]* ) as_myself=$0 ;;
20008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20009 for as_dir in $PATH
20012 test -z "$as_dir" && as_dir=.
20013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20019 # We did not find ourselves, most probably we were run as `sh COMMAND'
20020 # in which case we are not to be found in the path.
20021 if test "x$as_myself" = x; then
20024 if test ! -f "$as_myself"; then
20025 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20026 { (exit 1); exit 1; }
20029 # Work around bugs in pre-3.0 UWIN ksh.
20030 for as_var in ENV MAIL MAILPATH
20031 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20041 LC_TELEPHONE LC_TIME
20043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20044 eval $as_var=C; export $as_var
20046 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20050 # Required to use basename.
20051 if expr a : '\(a\)' >/dev/null 2>&1 &&
20052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20059 as_basename=basename
20065 # Name of the executable.
20066 as_me=`$as_basename -- "$0" ||
20067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20068 X"$0" : 'X\(//\)$' \| \
20069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20071 sed '/^.*\/\([^/][^/]*\)\/*$/{
20090 as_lineno_1=$LINENO
20091 as_lineno_2=$LINENO
20092 test "x$as_lineno_1" != "x$as_lineno_2" &&
20093 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20095 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20096 # uniformly replaced by the line number. The first 'sed' inserts a
20097 # line-number line after each line using $LINENO; the second 'sed'
20098 # does the real work. The second script uses 'N' to pair each
20099 # line-number line with the line containing $LINENO, and appends
20100 # trailing '-' during substitution so that $LINENO is not a special
20101 # case at line end.
20102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20103 # scripts with optimization help from Paolo Bonzini. Blame Lee
20104 # E. McMahon (1931-1989) for sed's syntax. :-)
20116 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20119 ' >$as_me.lineno &&
20120 chmod +x "$as_me.lineno" ||
20121 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20122 { (exit 1); exit 1; }; }
20124 # Don't try to exec as it changes $[0], causing all sort of problems
20125 # (the dirname of $[0] is not the place where we might find the
20126 # original and so on. Autoconf is especially sensitive to this).
20127 . "./$as_me.lineno"
20128 # Exit status is that of the last command.
20133 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20139 ECHO_C= ECHO_N= ECHO_T=
20140 case `echo -n x` in
20142 case `echo 'x\c'` in
20143 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20150 if expr a : '\(a\)' >/dev/null 2>&1 &&
20151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20157 rm -f conf$$ conf$$.exe conf$$.file
20158 if test -d conf$$.dir; then
20159 rm -f conf$$.dir/conf$$.file
20165 if ln -s conf$$.file conf$$ 2>/dev/null; then
20167 # ... but there are two gotchas:
20168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20170 # In both cases, we have to default to `cp -p'.
20171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20173 elif ln conf$$.file conf$$ 2>/dev/null; then
20178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20179 rmdir conf$$.dir 2>/dev/null
20181 if mkdir -p . 2>/dev/null; then
20184 test -d ./-p && rmdir ./-p
20188 if test -x / >/dev/null 2>&1; then
20189 as_test_x='test -x'
20191 if ls -dL / >/dev/null 2>&1; then
20198 if test -d "$1"; then
20204 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20205 ???[sx]*):;;*)false;;esac;fi
20209 as_executable_p=$as_test_x
20211 # Sed expression to map a string onto a valid CPP name.
20212 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20214 # Sed expression to map a string onto a valid variable name.
20215 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20220 # Save the log message, to keep $[0] and so on meaningful, and to
20221 # report actual input values of CONFIG_FILES etc. instead of their
20222 # values after options handling.
20224 This file was extended by yaml $as_me 0.1.1, which was
20225 generated by GNU Autoconf 2.61. Invocation command line was
20227 CONFIG_FILES = $CONFIG_FILES
20228 CONFIG_HEADERS = $CONFIG_HEADERS
20229 CONFIG_LINKS = $CONFIG_LINKS
20230 CONFIG_COMMANDS = $CONFIG_COMMANDS
20233 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20238 cat >>$CONFIG_STATUS <<_ACEOF
20239 # Files that config.status was made for.
20240 config_files="$ac_config_files"
20241 config_headers="$ac_config_headers"
20242 config_commands="$ac_config_commands"
20246 cat >>$CONFIG_STATUS <<\_ACEOF
20248 \`$as_me' instantiates files from templates according to the
20249 current configuration.
20251 Usage: $0 [OPTIONS] [FILE]...
20253 -h, --help print this help, then exit
20254 -V, --version print version number and configuration settings, then exit
20255 -q, --quiet do not print progress messages
20256 -d, --debug don't remove temporary files
20257 --recheck update $as_me by reconfiguring in the same conditions
20258 --file=FILE[:TEMPLATE]
20259 instantiate the configuration file FILE
20260 --header=FILE[:TEMPLATE]
20261 instantiate the configuration header FILE
20263 Configuration files:
20266 Configuration headers:
20269 Configuration commands:
20272 Report bugs to <bug-autoconf@gnu.org>."
20275 cat >>$CONFIG_STATUS <<_ACEOF
20277 yaml config.status 0.1.1
20278 configured by $0, generated by GNU Autoconf 2.61,
20279 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20281 Copyright (C) 2006 Free Software Foundation, Inc.
20282 This config.status script is free software; the Free Software Foundation
20283 gives unlimited permission to copy, distribute and modify it."
20290 cat >>$CONFIG_STATUS <<\_ACEOF
20291 # If no file are specified by the user, then we need to provide default
20292 # value. By we need to know if files were specified by the user.
20298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20310 # Handling of the options.
20311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20313 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20314 echo "$ac_cs_version"; exit ;;
20315 --debug | --debu | --deb | --de | --d | -d )
20317 --file | --fil | --fi | --f )
20319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20320 ac_need_defaults=false;;
20321 --header | --heade | --head | --hea )
20323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20324 ac_need_defaults=false;;
20326 # Conflict between --help and --header
20327 { echo "$as_me: error: ambiguous option: $1
20328 Try \`$0 --help' for more information." >&2
20329 { (exit 1); exit 1; }; };;
20330 --help | --hel | -h )
20331 echo "$ac_cs_usage"; exit ;;
20332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20333 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20336 # This is an error.
20337 -*) { echo "$as_me: error: unrecognized option: $1
20338 Try \`$0 --help' for more information." >&2
20339 { (exit 1); exit 1; }; } ;;
20341 *) ac_config_targets="$ac_config_targets $1"
20342 ac_need_defaults=false ;;
20348 ac_configure_extra_args=
20350 if $ac_cs_silent; then
20352 ac_configure_extra_args="$ac_configure_extra_args --silent"
20356 cat >>$CONFIG_STATUS <<_ACEOF
20357 if \$ac_cs_recheck; then
20358 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20359 CONFIG_SHELL=$SHELL
20360 export CONFIG_SHELL
20361 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20365 cat >>$CONFIG_STATUS <<\_ACEOF
20369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20370 ## Running $as_me. ##
20376 cat >>$CONFIG_STATUS <<_ACEOF
20380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20384 cat >>$CONFIG_STATUS <<\_ACEOF
20386 # Handling of arguments.
20387 for ac_config_target in $ac_config_targets
20389 case $ac_config_target in
20390 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20391 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20392 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20393 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20394 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20395 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20397 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20398 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20399 { (exit 1); exit 1; }; };;
20404 # If the user did not use the arguments to specify the items to instantiate,
20405 # then the envvar interface is used. Set only those that are not.
20406 # We use the long form for the default assignment because of an extremely
20407 # bizarre bug on SunOS 4.1.3.
20408 if $ac_need_defaults; then
20409 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20410 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20411 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20414 # Have a temporary directory for convenience. Make it in the build tree
20415 # simply because there is no reason against having it here, and in addition,
20416 # creating and moving files from /tmp can sometimes cause problems.
20417 # Hook for its removal unless debugging.
20418 # Note that there is a small window in which the directory will not be cleaned:
20419 # after its creation but before its name has been assigned to `$tmp'.
20423 trap 'exit_status=$?
20424 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20426 trap '{ (exit 1); exit 1; }' 1 2 13 15
20428 # Create a (secure) tmp directory for tmp files.
20431 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20432 test -n "$tmp" && test -d "$tmp"
20435 tmp=./conf$$-$RANDOM
20436 (umask 077 && mkdir "$tmp")
20439 echo "$me: cannot create a temporary directory in ." >&2
20440 { (exit 1); exit 1; }
20444 # Set up the sed scripts for CONFIG_FILES section.
20447 # No need to generate the scripts if there are no CONFIG_FILES.
20448 # This happens for instance when ./config.status config.h
20449 if test -n "$CONFIG_FILES"; then
20456 for ac_last_try in false false false false false :; do
20457 cat >conf$$subs.sed <<_ACEOF
20458 SHELL!$SHELL$ac_delim
20459 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20460 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20461 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20462 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20463 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20464 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20465 exec_prefix!$exec_prefix$ac_delim
20466 prefix!$prefix$ac_delim
20467 program_transform_name!$program_transform_name$ac_delim
20468 bindir!$bindir$ac_delim
20469 sbindir!$sbindir$ac_delim
20470 libexecdir!$libexecdir$ac_delim
20471 datarootdir!$datarootdir$ac_delim
20472 datadir!$datadir$ac_delim
20473 sysconfdir!$sysconfdir$ac_delim
20474 sharedstatedir!$sharedstatedir$ac_delim
20475 localstatedir!$localstatedir$ac_delim
20476 includedir!$includedir$ac_delim
20477 oldincludedir!$oldincludedir$ac_delim
20478 docdir!$docdir$ac_delim
20479 infodir!$infodir$ac_delim
20480 htmldir!$htmldir$ac_delim
20481 dvidir!$dvidir$ac_delim
20482 pdfdir!$pdfdir$ac_delim
20483 psdir!$psdir$ac_delim
20484 libdir!$libdir$ac_delim
20485 localedir!$localedir$ac_delim
20486 mandir!$mandir$ac_delim
20487 DEFS!$DEFS$ac_delim
20488 ECHO_C!$ECHO_C$ac_delim
20489 ECHO_N!$ECHO_N$ac_delim
20490 ECHO_T!$ECHO_T$ac_delim
20491 LIBS!$LIBS$ac_delim
20492 build_alias!$build_alias$ac_delim
20493 host_alias!$host_alias$ac_delim
20494 target_alias!$target_alias$ac_delim
20495 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20496 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20497 INSTALL_DATA!$INSTALL_DATA$ac_delim
20498 CYGPATH_W!$CYGPATH_W$ac_delim
20499 PACKAGE!$PACKAGE$ac_delim
20500 VERSION!$VERSION$ac_delim
20501 ACLOCAL!$ACLOCAL$ac_delim
20502 AUTOCONF!$AUTOCONF$ac_delim
20503 AUTOMAKE!$AUTOMAKE$ac_delim
20504 AUTOHEADER!$AUTOHEADER$ac_delim
20505 MAKEINFO!$MAKEINFO$ac_delim
20506 install_sh!$install_sh$ac_delim
20507 STRIP!$STRIP$ac_delim
20508 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20509 mkdir_p!$mkdir_p$ac_delim
20511 SET_MAKE!$SET_MAKE$ac_delim
20512 am__leading_dot!$am__leading_dot$ac_delim
20513 AMTAR!$AMTAR$ac_delim
20514 am__tar!$am__tar$ac_delim
20515 am__untar!$am__untar$ac_delim
20516 YAML_LT_RELEASE!$YAML_LT_RELEASE$ac_delim
20517 YAML_LT_CURRENT!$YAML_LT_CURRENT$ac_delim
20518 YAML_LT_REVISION!$YAML_LT_REVISION$ac_delim
20519 YAML_LT_AGE!$YAML_LT_AGE$ac_delim
20521 CFLAGS!$CFLAGS$ac_delim
20522 LDFLAGS!$LDFLAGS$ac_delim
20523 CPPFLAGS!$CPPFLAGS$ac_delim
20524 ac_ct_CC!$ac_ct_CC$ac_delim
20525 EXEEXT!$EXEEXT$ac_delim
20526 OBJEXT!$OBJEXT$ac_delim
20527 DEPDIR!$DEPDIR$ac_delim
20528 am__include!$am__include$ac_delim
20529 am__quote!$am__quote$ac_delim
20530 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20531 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20532 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20533 CCDEPMODE!$CCDEPMODE$ac_delim
20534 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20535 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20537 LN_S!$LN_S$ac_delim
20538 build!$build$ac_delim
20539 build_cpu!$build_cpu$ac_delim
20540 build_vendor!$build_vendor$ac_delim
20541 build_os!$build_os$ac_delim
20542 host!$host$ac_delim
20543 host_cpu!$host_cpu$ac_delim
20544 host_vendor!$host_vendor$ac_delim
20545 host_os!$host_os$ac_delim
20546 GREP!$GREP$ac_delim
20547 EGREP!$EGREP$ac_delim
20548 ECHO!$ECHO$ac_delim
20550 RANLIB!$RANLIB$ac_delim
20552 CXXFLAGS!$CXXFLAGS$ac_delim
20553 ac_ct_CXX!$ac_ct_CXX$ac_delim
20554 CXXDEPMODE!$CXXDEPMODE$ac_delim
20557 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20559 elif $ac_last_try; then
20560 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20561 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20562 { (exit 1); exit 1; }; }
20564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20568 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20569 if test -n "$ac_eof"; then
20570 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20571 ac_eof=`expr $ac_eof + 1`
20574 cat >>$CONFIG_STATUS <<_ACEOF
20575 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20579 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20580 s/^/s,@/; s/!/@,|#_!!_#|/
20583 s/'"$ac_delim"'$/,g/; t
20585 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20586 ' >>$CONFIG_STATUS <conf$$subs.sed
20587 rm -f conf$$subs.sed
20588 cat >>$CONFIG_STATUS <<_ACEOF
20594 for ac_last_try in false false false false false :; do
20595 cat >conf$$subs.sed <<_ACEOF
20596 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20597 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20598 CXXCPP!$CXXCPP$ac_delim
20600 FFLAGS!$FFLAGS$ac_delim
20601 ac_ct_F77!$ac_ct_F77$ac_delim
20602 LIBTOOL!$LIBTOOL$ac_delim
20603 DOXYGEN!$DOXYGEN$ac_delim
20604 DOXYGEN_TRUE!$DOXYGEN_TRUE$ac_delim
20605 DOXYGEN_FALSE!$DOXYGEN_FALSE$ac_delim
20606 LIBOBJS!$LIBOBJS$ac_delim
20607 LTLIBOBJS!$LTLIBOBJS$ac_delim
20610 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
20612 elif $ac_last_try; then
20613 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20614 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20615 { (exit 1); exit 1; }; }
20617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20621 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20622 if test -n "$ac_eof"; then
20623 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20624 ac_eof=`expr $ac_eof + 1`
20627 cat >>$CONFIG_STATUS <<_ACEOF
20628 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20632 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20633 s/^/s,@/; s/!/@,|#_!!_#|/
20636 s/'"$ac_delim"'$/,g/; t
20638 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20639 ' >>$CONFIG_STATUS <conf$$subs.sed
20640 rm -f conf$$subs.sed
20641 cat >>$CONFIG_STATUS <<_ACEOF
20648 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20649 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20650 # trailing colons and then remove the whole line if VPATH becomes empty
20651 # (actually we leave an empty line to preserve line numbers).
20652 if test "x$srcdir" = x.; then
20653 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20654 s/:*\$(srcdir):*/:/
20655 s/:*\${srcdir}:*/:/
20657 s/^\([^=]*=[ ]*\):*/\1/
20663 cat >>$CONFIG_STATUS <<\_ACEOF
20664 fi # test -n "$CONFIG_FILES"
20667 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20670 :[FHLC]) ac_mode=$ac_tag; continue;;
20672 case $ac_mode$ac_tag in
20674 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20675 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20676 { (exit 1); exit 1; }; };;
20677 :[FH]-) ac_tag=-:-;;
20678 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20695 -) ac_f="$tmp/stdin";;
20696 *) # Look for the file first in the build tree, then in the source tree
20697 # (if the path is not absolute). The absolute path cannot be DOS-style,
20698 # because $ac_f cannot contain `:'.
20702 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20704 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20705 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20706 { (exit 1); exit 1; }; };;
20708 ac_file_inputs="$ac_file_inputs $ac_f"
20711 # Let's still pretend it is `configure' which instantiates (i.e., don't
20712 # use $as_me), people would be surprised to read:
20713 # /* config.h. Generated by config.status. */
20714 configure_input="Generated from "`IFS=:
20715 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20716 if test x"$ac_file" != x-; then
20717 configure_input="$ac_file. $configure_input"
20718 { echo "$as_me:$LINENO: creating $ac_file" >&5
20719 echo "$as_me: creating $ac_file" >&6;}
20723 *:-:* | *:-) cat >"$tmp/stdin";;
20728 ac_dir=`$as_dirname -- "$ac_file" ||
20729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20730 X"$ac_file" : 'X\(//\)[^/]' \| \
20731 X"$ac_file" : 'X\(//\)$' \| \
20732 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20738 /^X\(\/\/\)[^/].*/{
20753 -*) as_dir=./$as_dir;;
20755 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20759 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20760 *) as_qdir=$as_dir;;
20762 as_dirs="'$as_qdir' $as_dirs"
20763 as_dir=`$as_dirname -- "$as_dir" ||
20764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20765 X"$as_dir" : 'X\(//\)[^/]' \| \
20766 X"$as_dir" : 'X\(//\)$' \| \
20767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20773 /^X\(\/\/\)[^/].*/{
20786 test -d "$as_dir" && break
20788 test -z "$as_dirs" || eval "mkdir $as_dirs"
20789 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20790 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20791 { (exit 1); exit 1; }; }; }
20795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20797 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20798 # A ".." for each directory in $ac_dir_suffix.
20799 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20800 case $ac_top_builddir_sub in
20801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20805 ac_abs_top_builddir=$ac_pwd
20806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20807 # for backward compatibility:
20808 ac_top_builddir=$ac_top_build_prefix
20811 .) # We are building in place.
20813 ac_top_srcdir=$ac_top_builddir_sub
20814 ac_abs_top_srcdir=$ac_pwd ;;
20815 [\\/]* | ?:[\\/]* ) # Absolute name.
20816 ac_srcdir=$srcdir$ac_dir_suffix;
20817 ac_top_srcdir=$srcdir
20818 ac_abs_top_srcdir=$srcdir ;;
20819 *) # Relative name.
20820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20821 ac_top_srcdir=$ac_top_build_prefix$srcdir
20822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20835 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20839 cat >>$CONFIG_STATUS <<\_ACEOF
20840 # If the template does not know about datarootdir, expand it.
20841 # FIXME: This hack should be removed a few years after 2.60.
20842 ac_datarootdir_hack=; ac_datarootdir_seen=
20844 case `sed -n '/datarootdir/ {
20853 ' $ac_file_inputs` in
20854 *datarootdir*) ac_datarootdir_seen=yes;;
20855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20856 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20857 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20859 cat >>$CONFIG_STATUS <<_ACEOF
20860 ac_datarootdir_hack='
20861 s&@datadir@&$datadir&g
20862 s&@docdir@&$docdir&g
20863 s&@infodir@&$infodir&g
20864 s&@localedir@&$localedir&g
20865 s&@mandir@&$mandir&g
20866 s&\\\${datarootdir}&$datarootdir&g' ;;
20870 # Neutralize VPATH when `$srcdir' = `.'.
20871 # Shell code in configure.ac might set extrasub.
20872 # FIXME: do we really want to maintain this feature?
20873 cat >>$CONFIG_STATUS <<_ACEOF
20877 cat >>$CONFIG_STATUS <<\_ACEOF
20879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20880 s&@configure_input@&$configure_input&;t t
20881 s&@top_builddir@&$ac_top_builddir_sub&;t t
20882 s&@srcdir@&$ac_srcdir&;t t
20883 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20884 s&@top_srcdir@&$ac_top_srcdir&;t t
20885 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20886 s&@builddir@&$ac_builddir&;t t
20887 s&@abs_builddir@&$ac_abs_builddir&;t t
20888 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20889 s&@INSTALL@&$ac_INSTALL&;t t
20890 $ac_datarootdir_hack
20891 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20893 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20894 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20895 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20896 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20897 which seems to be undefined. Please make sure it is defined." >&5
20898 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20899 which seems to be undefined. Please make sure it is defined." >&2;}
20903 -) cat "$tmp/out"; rm -f "$tmp/out";;
20904 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20913 # Transform confdefs.h into a sed script `conftest.defines', that
20914 # substitutes the proper values into config.h.in to produce config.h.
20915 rm -f conftest.defines conftest.tail
20916 # First, append a space to every undef/define line, to ease matching.
20917 echo 's/$/ /' >conftest.defines
20918 # Then, protect against being on the right side of a sed subst, or in
20919 # an unquoted here document, in config.status. If some macros were
20920 # called several times there might be several #defines for the same
20921 # symbol, which is useless. But do not sort them, since the last
20922 # AC_DEFINE must be honored.
20923 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20924 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20925 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20926 # PARAMS is the parameter list in the macro definition--in most cases, it's
20927 # just an empty string.
20928 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20929 ac_dB='\\)[ (].*,\\1define\\2'
20937 s/^[ ]*#[ ]*define[ ][ ]*//
20942 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20943 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20944 ' >>conftest.defines
20946 # Remove the space that was appended to ease matching.
20947 # Then replace #undef with comments. This is necessary, for
20948 # example, in the case of _POSIX_SOURCE, which is predefined and required
20949 # on some systems where configure will not decide to define it.
20950 # (The regexp can be short, since the line contains either #define or #undef.)
20952 s,^[ #]*u.*,/* & */,' >>conftest.defines
20954 # Break up conftest.defines:
20955 ac_max_sed_lines=50
20957 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20958 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20959 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20961 ac_in='$ac_file_inputs'
20962 ac_out='"$tmp/out1"'
20963 ac_nxt='"$tmp/out2"'
20967 # Write a here document:
20968 cat >>$CONFIG_STATUS <<_ACEOF
20969 # First, check the format of the line:
20970 cat >"\$tmp/defines.sed" <<\\CEOF
20971 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20972 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20976 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20978 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20979 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20980 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20981 grep . conftest.tail >/dev/null || break
20982 rm -f conftest.defines
20983 mv conftest.tail conftest.defines
20985 rm -f conftest.defines conftest.tail
20987 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20988 cat >>$CONFIG_STATUS <<\_ACEOF
20989 if test x"$ac_file" != x-; then
20990 echo "/* $configure_input */" >"$tmp/config.h"
20991 cat "$ac_result" >>"$tmp/config.h"
20992 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20993 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20994 echo "$as_me: $ac_file is unchanged" >&6;}
20997 mv "$tmp/config.h" $ac_file
21000 echo "/* $configure_input */"
21004 # Compute $ac_file's index in $config_headers.
21006 for _am_header in $config_headers :; do
21007 case $_am_header in
21008 $ac_file | $ac_file:* )
21011 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21014 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21015 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21016 X$ac_file : 'X\(//\)[^/]' \| \
21017 X$ac_file : 'X\(//\)$' \| \
21018 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21024 /^X\(\/\/\)[^/].*/{
21036 s/.*/./; q'`/stamp-h$_am_stamp_count
21039 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21040 echo "$as_me: executing $ac_file commands" >&6;}
21045 case $ac_file$ac_mode in
21046 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21047 # Strip MF so we end up with the name of the file.
21048 mf=`echo "$mf" | sed -e 's/:.*$//'`
21049 # Check whether this is an Automake generated Makefile or not.
21050 # We used to match only the files named `Makefile.in', but
21051 # some people rename them; so instead we look at the file content.
21052 # Grep'ing the first line is not enough: some people post-process
21053 # each Makefile.in and add a new line on top of each file to say so.
21054 # So let's grep whole file.
21055 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21056 dirpart=`$as_dirname -- "$mf" ||
21057 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21058 X"$mf" : 'X\(//\)[^/]' \| \
21059 X"$mf" : 'X\(//\)$' \| \
21060 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21066 /^X\(\/\/\)[^/].*/{
21082 # Extract the definition of DEPDIR, am__include, and am__quote
21083 # from the Makefile without running `make'.
21084 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21085 test -z "$DEPDIR" && continue
21086 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21087 test -z "am__include" && continue
21088 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21089 # When using ansi2knr, U may be empty or an underscore; expand it
21090 U=`sed -n 's/^U = //p' < "$mf"`
21091 # Find all dependency output files, they are included files with
21092 # $(DEPDIR) in their names. We invoke sed twice because it is the
21093 # simplest approach to changing $(DEPDIR) to its actual value in the
21095 for file in `sed -n "
21096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21098 # Make sure the directory exists.
21099 test -f "$dirpart/$file" && continue
21100 fdir=`$as_dirname -- "$file" ||
21101 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21102 X"$file" : 'X\(//\)[^/]' \| \
21103 X"$file" : 'X\(//\)$' \| \
21104 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21110 /^X\(\/\/\)[^/].*/{
21123 { as_dir=$dirpart/$fdir
21125 -*) as_dir=./$as_dir;;
21127 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21131 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21132 *) as_qdir=$as_dir;;
21134 as_dirs="'$as_qdir' $as_dirs"
21135 as_dir=`$as_dirname -- "$as_dir" ||
21136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21137 X"$as_dir" : 'X\(//\)[^/]' \| \
21138 X"$as_dir" : 'X\(//\)$' \| \
21139 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21145 /^X\(\/\/\)[^/].*/{
21158 test -d "$as_dir" && break
21160 test -z "$as_dirs" || eval "mkdir $as_dirs"
21161 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21162 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21163 { (exit 1); exit 1; }; }; }
21164 # echo "creating $dirpart/$file"
21165 echo '# dummy' > "$dirpart/$file"
21174 { (exit 0); exit 0; }
21176 chmod +x $CONFIG_STATUS
21177 ac_clean_files=$ac_clean_files_save
21180 # configure is writing to config.log, and then calls config.status.
21181 # config.status does its own redirection, appending to config.log.
21182 # Unfortunately, on DOS this fails, as config.log is still kept open
21183 # by configure, so config.status won't be able to write to it; its
21184 # output is simply discarded. So we exec the FD to /dev/null,
21185 # effectively closing config.log, so it can be properly (re)opened and
21186 # appended to by config.status. When coming back to configure, we
21187 # need to make the FD available again.
21188 if test "$no_create" != yes; then
21190 ac_config_status_args=
21191 test "$silent" = yes &&
21192 ac_config_status_args="$ac_config_status_args --quiet"
21194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21197 # would make configure fail if this is the last instruction.
21198 $ac_cs_success || { (exit 1); exit 1; }